public interface ActivitiesResource
Modifier and Type | Method and Description |
---|---|
ApiMetricList |
getMetrics(String clusterName,
String serviceName,
String activityId,
String from,
String to,
List<String> metrics,
DataView dataView)
Fetch metric readings for a particular activity.
|
ApiActivityList |
readActivities(String clusterName,
String serviceName,
Integer maxResults,
Integer resultOffset,
String query,
DataView dataView)
Read all activities in the system
|
ApiActivity |
readActivity(String clusterName,
String serviceName,
String activityId,
DataView dataView)
Returns a specific activity in the system
|
ApiActivityList |
readChildActivities(String clusterName,
String serviceName,
String activityId,
Integer maxResults,
Integer resultOffset,
DataView dataView)
Returns the child activities
|
ApiActivityList |
readSimilarActivities(String clusterName,
String serviceName,
String activityId,
DataView dataView)
Returns a list of similar activities
|
@Path(value="/") ApiActivityList readActivities(String clusterName, String serviceName, Integer maxResults, Integer resultOffset, String query, DataView dataView)
clusterName
- The name of the clusterserviceName
- The name of the servicemaxResults
- The maximum number of activities to return.resultOffset
- Specified the offset of activities to return.query
- The query to perform to find activities in the system. By default,
this call returns top level (i.e. root) activities that have currently
started.
The query specifies the intersection of a list of constraints, joined together with semicolons (without spaces). For example:
The valid comparators are ==, !=, =lt=, =le=, =ge=, and =gt=. They stand for "==", "!=", "<", "<=", ">=", ">" respectively.
dataView
- The view of the activities to materialize@Path(value="/{activityId}") ApiActivity readActivity(String clusterName, String serviceName, String activityId, DataView dataView)
clusterName
- The name of the clusterserviceName
- The name of the serviceactivityId
- The id of the activity to retrievedataView
- The view of the activity to materialize@Path(value="/{activityId}/children") ApiActivityList readChildActivities(String clusterName, String serviceName, String activityId, Integer maxResults, Integer resultOffset, DataView dataView)
clusterName
- The name of the clusterserviceName
- The name of the serviceactivityId
- The id of the activitymaxResults
- The maximum number of activities to return.resultOffset
- Specified the offset of activities to return.dataView
- The view of the children to materialize@Path(value="/{activityId}/similar") ApiActivityList readSimilarActivities(String clusterName, String serviceName, String activityId, DataView dataView)
clusterName
- The name of the clusterserviceName
- The name of the serviceactivityId
- The id of the activitydataView
- The view of the activities to materialize@Path(value="/{activityId}/metrics") ApiMetricList getMetrics(String clusterName, String serviceName, String activityId, String from, String to, List<String> metrics, DataView dataView)
By default, this call will look up all metrics available for the activity. If only specific metrics are desired, use the metrics parameter.
By default, the returned results correspond to a 5 minute window based on the provided end time (which defaults to the current server time). The from and to parameters can be used to control the window being queried. A maximum window of 3 hours is enforced.
When requesting a "full" view, aside from the extended properties of the returned metric data, the collection will also contain information about all metrics available for the activity, even if no readings are available in the requested window.
clusterName
- The name of the cluster.serviceName
- The name of the service.activityId
- The name of the activity.from
- Start of the period to query.to
- End of the period to query.metrics
- Filter for which metrics to query.dataView
- The view of the data to materialize,
either "summary" or "full".Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.