public class Metric extends Object implements MetricContext
| Modifier and Type | Class and Description |
|---|---|
static class |
Metric.RestBlueprint |
static class |
Metric.Update |
| Constructor and Description |
|---|
Metric(Metric.RestBlueprint restBlueprint,
String tenant,
String feed) |
Metric(Metric that) |
Metric(String tenant,
String feed,
String id,
Long collectionInterval,
Long forecastingHorizon,
MetricType metricType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Long |
getCollectionInterval() |
String |
getFeed() |
Long |
getForecastingHorizon() |
String |
getMetricId() |
MetricType |
getMetricType() |
String |
getTenant() |
int |
hashCode() |
void |
setCollectionInterval(Long collectionInterval) |
void |
setForecastingHorizon(Long forecastingHorizon) |
public Metric(String tenant, String feed, String id, Long collectionInterval, Long forecastingHorizon, MetricType metricType)
public Metric(Metric that)
public Metric(Metric.RestBlueprint restBlueprint, String tenant, String feed)
public void setCollectionInterval(Long collectionInterval)
setCollectionInterval in interface MetricContextpublic String getTenant()
getTenant in interface MetricContextpublic String getMetricId()
getMetricId in interface MetricContextpublic Long getCollectionInterval()
getCollectionInterval in interface MetricContextpublic String getFeed()
public MetricType getMetricType()
public Long getForecastingHorizon()
public void setForecastingHorizon(Long forecastingHorizon)
forecastingHorizon - in secondsCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.