public class MetricsApi extends Object
| Constructor and Description |
|---|
MetricsApi(ApiClient api)
MetricsApi constructor.
|
| Modifier and Type | Method and Description |
|---|---|
MetricGroup |
addGroupToGroup(long childId,
long parentId)
Add an existing metric group to another metric group.
|
Metric |
addMetricToGroup(long metricId,
long groupId)
Add an existing metric to a metric group.
|
List<Metric> |
all()
all is used to get a list of all metrics.
|
List<Metric> |
all(Options options)
all is used to get a list of all metrics.
|
Msg |
delete(long id)
Delete a metric by id.
|
Msg |
deleteGroupFromGroup(long childId,
long parentId)
Delete a metric group from another metric group.
|
Msg |
deleteMetricFromGroup(long metricId,
long groupId)
Delete a metric from a metric group.
|
Msg |
deleteMetricGroup(long id)
Delete a specific metric group.
|
Metric |
get(long id)
get a metric by the id.
|
List<MetricGroup> |
getAllMetricGroups()
Get all metric groups.
|
List<Metric> |
getGroupMetrics(long groupId)
* Get all metrics in the metric group.
|
List<MetricGroup> |
getGroupsFromGroup(long groupId)
Get all child metric groups for a metric group.
|
MetricGroup |
getMetricGroup(long id)
Get a specific metric group.
|
Metric |
insert(MetricInsert metric)
Insert a new metric.
|
MetricGroup |
insertMetricGroup(MetricGroupInsert metricGroup)
Insert a new metric group.
|
public MetricsApi(ApiClient api)
api - ApiClient.public List<Metric> all() throws IOException
IOExceptionpublic List<Metric> all(Options options) throws IOException
IOExceptionpublic Metric get(long id) throws IOException
id - id of the metric.IOExceptionpublic Metric insert(MetricInsert metric) throws IOException
metric - MetricInsert containing data for the new metric.IOExceptionpublic Msg delete(long id) throws IOException
id - id of the metric.IOExceptionpublic List<MetricGroup> getAllMetricGroups() throws IOException
IOExceptionpublic MetricGroup getMetricGroup(long id) throws IOException
id - the id of the metric groupIOExceptionpublic MetricGroup insertMetricGroup(MetricGroupInsert metricGroup) throws IOException
metricGroup - the metric group to insert.IOExceptionpublic Msg deleteMetricGroup(long id) throws IOException
id - the id of the metric group.IOExceptionpublic MetricGroup addGroupToGroup(long childId, long parentId) throws IOException
childId - parentId - IOExceptionpublic Metric addMetricToGroup(long metricId, long groupId) throws IOException
metricId - groupId - IOExceptionpublic List<Metric> getGroupMetrics(long groupId) throws IOException
groupId - the id of the metric group * @return List of Metrics.IOExceptionpublic Msg deleteMetricFromGroup(long metricId, long groupId) throws IOException
metricId - the id of the metric.groupId - the id of the group.IOExceptionpublic List<MetricGroup> getGroupsFromGroup(long groupId) throws IOException
groupId - the if of the group.IOExceptionpublic Msg deleteGroupFromGroup(long childId, long parentId) throws IOException
childId - the id of the group that will be removed.parentId - the id of the group from which the child group will be
removed.IOExceptionCopyright © 2016. All rights reserved.