public interface MetricStore
| Modifier and Type | Method and Description |
|---|---|
void |
add(Collection<? extends MetricValues> metricValues)
Adds
MetricValuess to the store. |
void |
add(MetricValues metricValues)
Adds
MetricValues to the store. |
void |
delete(MetricDeleteQuery query)
Deletes all metric data specified by the
MetricDeleteQuery |
void |
deleteAll()
Deletes all metrics data.
|
void |
deleteBefore(long timestamp)
Deletes all metric data before given timestamp.
|
Collection<String> |
findMetricNames(MetricSearchQuery query)
Given a list of tags in the
MetricSearchQuery, returns the list of measures available |
Collection<TagValue> |
findNextAvailableTags(MetricSearchQuery query)
Given a list of tags in the
MetricSearchQuery, returns the list of next available tags |
Collection<MetricTimeSeries> |
query(MetricDataQuery query)
Queries metrics data.
|
void |
setMetricsContext(MetricsContext metricsContext)
Sets
MetricsContext to be used for emitting metrics by this MetricStore. |
void setMetricsContext(MetricsContext metricsContext)
MetricsContext to be used for emitting metrics by this MetricStore.metricsContext - metrics context to usevoid add(MetricValues metricValues) throws Exception
MetricValues to the store.metricValues - metric values to add.Exceptionvoid add(Collection<? extends MetricValues> metricValues) throws Exception
MetricValuess to the store.metricValues - metric values to add.ExceptionCollection<MetricTimeSeries> query(MetricDataQuery query)
query - query to executevoid deleteBefore(long timestamp)
throws Exception
timestamp - time up to which to delete metrics data, in ms since epochExceptionvoid delete(MetricDeleteQuery query) throws Exception
MetricDeleteQueryquery - specifies what to deleteExceptionvoid deleteAll()
throws Exception
ExceptionCollection<TagValue> findNextAvailableTags(MetricSearchQuery query) throws Exception
MetricSearchQuery, returns the list of next available tagsquery - specifies where to searchExceptionCollection<String> findMetricNames(MetricSearchQuery query) throws Exception
MetricSearchQuery, returns the list of measures availablequery - specifies where to searchExceptionCopyright © 2015 Cask Data, Inc. Licensed under the Apache License, Version 2.0.