com.cloudera.api.model
Class ApiTimeSeriesRow

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

public class ApiTimeSeriesRow
extends Object

A time series data point.


Constructor Summary
ApiTimeSeriesRow()
           
ApiTimeSeriesRow(String entityName, String metricName, Date timestamp, double value)
           
 
Method Summary
 String getEntityName()
          The name of the entity for this time series data point.
 String getMetricName()
          The name of the metric for this time series data point.
 Date getTimestamp()
          The timestamp for this time series data point.
 double getValue()
          The value for this time series data point.
 void setEntityName(String entityName)
           
 void setMetricName(String metricName)
           
 void setTimestamp(Date timestamp)
           
 void setValue(double value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApiTimeSeriesRow

public ApiTimeSeriesRow()

ApiTimeSeriesRow

public ApiTimeSeriesRow(String entityName,
                        String metricName,
                        Date timestamp,
                        double value)
Method Detail

getEntityName

public String getEntityName()
The name of the entity for this time series data point.


setEntityName

public void setEntityName(String entityName)

getMetricName

public String getMetricName()
The name of the metric for this time series data point.


setMetricName

public void setMetricName(String metricName)

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 for this time series data point.


setValue

public void setValue(double value)


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