Tabnine Logo
NewRelicTimeSeries$NewRelicSeriesEntry
Code IndexAdd Tabnine to your IDE (free)

How to use
NewRelicTimeSeries$NewRelicSeriesEntry
in
com.netflix.kayenta.newrelic.service

Best Java code snippets using com.netflix.kayenta.newrelic.service.NewRelicTimeSeries$NewRelicSeriesEntry (Showing top 6 results out of 315)

origin: spinnaker/kayenta

 @JsonIgnore
 public Double getValue() {
  return adjustSingleResult(results.get(0));
 }
}
origin: spinnaker/kayenta

public Stream<Double> getDataPoints() {
 return timeSeries.stream().map(o -> o.getValue());
}
origin: com.netflix.kayenta/kayenta-newrelic-insights

 /**
  * identifies the stepDuration based on the timeseries. With 'TIMESERIES MAX' New Relic returns the maximum possible
  * resolution we need to determine the step size.
  * @param timeSeries to identify stepsize for
  * @return step size
  */
 private Duration calculateStepDuration(NewRelicTimeSeries timeSeries) {
  Long firstTimestamp = null;
  for (NewRelicTimeSeries.NewRelicSeriesEntry entry : timeSeries.getTimeSeries()) {
   if (firstTimestamp == null) {
    // get first
    firstTimestamp = entry.getBeginTimeSeconds();
   } else {
    // get next which differs from first
    if (!firstTimestamp.equals(entry.getBeginTimeSeconds())) {
     return Duration.ofSeconds(entry.getBeginTimeSeconds() - firstTimestamp);
    }
   }
  }
  return Duration.ZERO;
 }
}
origin: com.netflix.kayenta/kayenta-newrelic-insights

public Stream<Double> getDataPoints() {
 return timeSeries.stream().map(o -> o.getValue());
}
origin: com.netflix.kayenta/kayenta-newrelic-insights

 @JsonIgnore
 public Double getValue() {
  return adjustSingleResult(results.get(0));
 }
}
origin: spinnaker/kayenta

 /**
  * identifies the stepDuration based on the timeseries. With 'TIMESERIES MAX' New Relic returns the maximum possible
  * resolution we need to determine the step size.
  * @param timeSeries to identify stepsize for
  * @return step size
  */
 private Duration calculateStepDuration(NewRelicTimeSeries timeSeries) {
  Long firstTimestamp = null;
  for (NewRelicTimeSeries.NewRelicSeriesEntry entry : timeSeries.getTimeSeries()) {
   if (firstTimestamp == null) {
    // get first
    firstTimestamp = entry.getBeginTimeSeconds();
   } else {
    // get next which differs from first
    if (!firstTimestamp.equals(entry.getBeginTimeSeconds())) {
     return Duration.ofSeconds(entry.getBeginTimeSeconds() - firstTimestamp);
    }
   }
  }
  return Duration.ZERO;
 }
}
com.netflix.kayenta.newrelic.serviceNewRelicTimeSeries$NewRelicSeriesEntry

Most used methods

  • adjustSingleResult
  • getBeginTimeSeconds
  • getValue

Popular in Java

  • Creating JSON documents from java classes using gson
  • setScale (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • runOnUiThread (Activity)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JTable (javax.swing)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now