com.cloudera.api.model
Class ApiTimeSeriesData

java.lang.Object
  extended by com.cloudera.api.model.ApiTimeSeriesData

public class ApiTimeSeriesData
extends Object

A single data point of time series data.


Constructor Summary
ApiTimeSeriesData()
           
 
Method Summary
 ApiTimeSeriesAggregateStatistics getAggregateStatistics()
          Available from v6 for data points containing aggregate data.
 Date getTimestamp()
          The timestamp for this time series data point.
 String getType()
          The type of the time series data.
 double getValue()
          The value of the time series data.
 void setAggregateStatistics(ApiTimeSeriesAggregateStatistics aggregateStatistics)
           
 void setTimestamp(Date timestamp)
           
 void setType(String type)
           
 void setValue(double value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApiTimeSeriesData

public ApiTimeSeriesData()
Method Detail

getTimestamp

public Date getTimestamp()
The timestamp for this time series data point. Note that the timestamp reflects coordinated universal time (UTC) and not necessarily the server's time zone. The rest API formats the UTC timestamp as an ISO-8061 string.


setTimestamp

public void setTimestamp(Date timestamp)

getValue

public double getValue()
The value of the time series data.


setValue

public void setValue(double value)

getType

public String getType()
The type of the time series data.


setType

public void setType(String type)

getAggregateStatistics

public ApiTimeSeriesAggregateStatistics getAggregateStatistics()
Available from v6 for data points containing aggregate data. It includes further statistics about the data point. An aggregate can be across entities (e.g., fd_open_across_datanodes), over time (e.g., a daily point for the fd_open metric for a specific DataNode), or both (e.g., a daily point for the fd_open_across_datanodes metric). If the data point is for non-aggregate date this will return null.


setAggregateStatistics

public void setAggregateStatistics(ApiTimeSeriesAggregateStatistics aggregateStatistics)


Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.