public class ActivitiesResourceApi extends Object
Constructor and Description |
---|
ActivitiesResourceApi() |
ActivitiesResourceApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
ApiClient |
getApiClient() |
ApiMetricList |
getMetrics(String activityId,
String clusterName,
String serviceName,
String from,
List<String> metrics,
String to,
String view)
Fetch metric readings for a particular activity.
|
com.squareup.okhttp.Call |
getMetricsAsync(String activityId,
String clusterName,
String serviceName,
String from,
List<String> metrics,
String to,
String view,
ApiCallback<ApiMetricList> callback)
Fetch metric readings for a particular activity.
|
com.squareup.okhttp.Call |
getMetricsCall(String activityId,
String clusterName,
String serviceName,
String from,
List<String> metrics,
String to,
String view,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getMetrics
|
ApiResponse<ApiMetricList> |
getMetricsWithHttpInfo(String activityId,
String clusterName,
String serviceName,
String from,
List<String> metrics,
String to,
String view)
Fetch metric readings for a particular activity.
|
ApiActivityList |
readActivities(String clusterName,
String serviceName,
Integer maxResults,
String query,
Integer resultOffset,
String view)
Read all activities in the system.
|
com.squareup.okhttp.Call |
readActivitiesAsync(String clusterName,
String serviceName,
Integer maxResults,
String query,
Integer resultOffset,
String view,
ApiCallback<ApiActivityList> callback)
Read all activities in the system.
|
com.squareup.okhttp.Call |
readActivitiesCall(String clusterName,
String serviceName,
Integer maxResults,
String query,
Integer resultOffset,
String view,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for readActivities
|
ApiResponse<ApiActivityList> |
readActivitiesWithHttpInfo(String clusterName,
String serviceName,
Integer maxResults,
String query,
Integer resultOffset,
String view)
Read all activities in the system.
|
ApiActivity |
readActivity(String activityId,
String clusterName,
String serviceName,
String view)
Returns a specific activity in the system.
|
com.squareup.okhttp.Call |
readActivityAsync(String activityId,
String clusterName,
String serviceName,
String view,
ApiCallback<ApiActivity> callback)
Returns a specific activity in the system.
|
com.squareup.okhttp.Call |
readActivityCall(String activityId,
String clusterName,
String serviceName,
String view,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for readActivity
|
ApiResponse<ApiActivity> |
readActivityWithHttpInfo(String activityId,
String clusterName,
String serviceName,
String view)
Returns a specific activity in the system.
|
ApiActivityList |
readChildActivities(String activityId,
String clusterName,
String serviceName,
Integer maxResults,
Integer resultOffset,
String view)
Returns the child activities.
|
com.squareup.okhttp.Call |
readChildActivitiesAsync(String activityId,
String clusterName,
String serviceName,
Integer maxResults,
Integer resultOffset,
String view,
ApiCallback<ApiActivityList> callback)
Returns the child activities.
|
com.squareup.okhttp.Call |
readChildActivitiesCall(String activityId,
String clusterName,
String serviceName,
Integer maxResults,
Integer resultOffset,
String view,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for readChildActivities
|
ApiResponse<ApiActivityList> |
readChildActivitiesWithHttpInfo(String activityId,
String clusterName,
String serviceName,
Integer maxResults,
Integer resultOffset,
String view)
Returns the child activities.
|
ApiActivityList |
readSimilarActivities(String activityId,
String clusterName,
String serviceName,
String view)
Returns a list of similar activities.
|
com.squareup.okhttp.Call |
readSimilarActivitiesAsync(String activityId,
String clusterName,
String serviceName,
String view,
ApiCallback<ApiActivityList> callback)
Returns a list of similar activities.
|
com.squareup.okhttp.Call |
readSimilarActivitiesCall(String activityId,
String clusterName,
String serviceName,
String view,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for readSimilarActivities
|
ApiResponse<ApiActivityList> |
readSimilarActivitiesWithHttpInfo(String activityId,
String clusterName,
String serviceName,
String view)
Returns a list of similar activities.
|
void |
setApiClient(ApiClient apiClient) |
public ActivitiesResourceApi()
public ActivitiesResourceApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call getMetricsCall(String activityId, String clusterName, String serviceName, String from, List<String> metrics, String to, String view, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
activityId
- The name of the activity. (required)clusterName
- The name of the cluster. (required)serviceName
- The name of the service. (required)from
- Start of the period to query. (optional)metrics
- Filter for which metrics to query. (optional)to
- End of the period to query. (optional, default to now)view
- The view of the data to materialize, either \"summary\" or \"full\". (optional, default to summary)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiMetricList getMetrics(String activityId, String clusterName, String serviceName, String from, List<String> metrics, String to, String view) throws ApiException
activityId
- The name of the activity. (required)clusterName
- The name of the cluster. (required)serviceName
- The name of the service. (required)from
- Start of the period to query. (optional)metrics
- Filter for which metrics to query. (optional)to
- End of the period to query. (optional, default to now)view
- The view of the data to materialize, either \"summary\" or \"full\". (optional, default to summary)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiMetricList> getMetricsWithHttpInfo(String activityId, String clusterName, String serviceName, String from, List<String> metrics, String to, String view) throws ApiException
activityId
- The name of the activity. (required)clusterName
- The name of the cluster. (required)serviceName
- The name of the service. (required)from
- Start of the period to query. (optional)metrics
- Filter for which metrics to query. (optional)to
- End of the period to query. (optional, default to now)view
- The view of the data to materialize, either \"summary\" or \"full\". (optional, default to summary)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getMetricsAsync(String activityId, String clusterName, String serviceName, String from, List<String> metrics, String to, String view, ApiCallback<ApiMetricList> callback) throws ApiException
activityId
- The name of the activity. (required)clusterName
- The name of the cluster. (required)serviceName
- The name of the service. (required)from
- Start of the period to query. (optional)metrics
- Filter for which metrics to query. (optional)to
- End of the period to query. (optional, default to now)view
- The view of the data to materialize, either \"summary\" or \"full\". (optional, default to summary)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call readActivitiesCall(String clusterName, String serviceName, Integer maxResults, String query, Integer resultOffset, String view, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
clusterName
- The name of the cluster (required)serviceName
- The name of the service (required)maxResults
- The maximum number of activities to return. (optional, default to 100)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. <p> The query specifies the intersection of a list of constraints, joined together with semicolons (without spaces). For example: </p> <dl> <dt>status==started;parent==</dt> <dd>looks for running root activities. This is also the default query.</dd> <dt>status==failed;finishTime=gt=2012-04-01T20:30:00.000Z</dt> <dd>looks for failed activities after the given date time.</dd> <dt>name==Pi Estimator;startTime=gt=2012-04-01T20:30:00.000Z</dt> <dd>looks for activities started after the given date time, with the name of \"Pi Estimator\".</dd> <dt>startTime=lt=2012-01-02T00:00:00.000Z;finishTime=ge=2012-01-01T00:00:00.000Z</dt> <dd>looks for activities that are active on 2012 New Year's Day. Note that they may start before or finish after that day.</dd> <dt>status==failed;parent==000014-20120425161321-oozie-joe</dt> <dd>looks for failed child activities of the given parent activity id.</dd> <dt>status==started;metrics.cpu_user=gt=10</dt> <dd>looks for started activities that are using more than 10 cores per second.</dd> <dt>type==hive;metrics.user==bc;finishTime=gt=2012-04-01T20:30:00.000Z</dt> <dd>looks for all hive queries submitted by user bc after the given date time.</dd> </dl> You may query any fields present in the ApiActivity object. You can also query by activity metric values using the <em>metrics.*</em> syntax. Values for date time fields should be ISO8601 timestamps. <p> The valid comparators are <em>==</em>, <em>!=</em>, <em>=lt=</em>, <em>=le=</em>, <em>=ge=</em>, and <em>=gt=</em>. They stand for \"==\", \"!=\", \"<\", \"<=\", \">=\", \">\" respectively. (optional, default to status==started;parent==)resultOffset
- Specified the offset of activities to return. (optional, default to 0)view
- The view of the activities to materialize (optional, default to summary)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiActivityList readActivities(String clusterName, String serviceName, Integer maxResults, String query, Integer resultOffset, String view) throws ApiException
clusterName
- The name of the cluster (required)serviceName
- The name of the service (required)maxResults
- The maximum number of activities to return. (optional, default to 100)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. <p> The query specifies the intersection of a list of constraints, joined together with semicolons (without spaces). For example: </p> <dl> <dt>status==started;parent==</dt> <dd>looks for running root activities. This is also the default query.</dd> <dt>status==failed;finishTime=gt=2012-04-01T20:30:00.000Z</dt> <dd>looks for failed activities after the given date time.</dd> <dt>name==Pi Estimator;startTime=gt=2012-04-01T20:30:00.000Z</dt> <dd>looks for activities started after the given date time, with the name of \"Pi Estimator\".</dd> <dt>startTime=lt=2012-01-02T00:00:00.000Z;finishTime=ge=2012-01-01T00:00:00.000Z</dt> <dd>looks for activities that are active on 2012 New Year's Day. Note that they may start before or finish after that day.</dd> <dt>status==failed;parent==000014-20120425161321-oozie-joe</dt> <dd>looks for failed child activities of the given parent activity id.</dd> <dt>status==started;metrics.cpu_user=gt=10</dt> <dd>looks for started activities that are using more than 10 cores per second.</dd> <dt>type==hive;metrics.user==bc;finishTime=gt=2012-04-01T20:30:00.000Z</dt> <dd>looks for all hive queries submitted by user bc after the given date time.</dd> </dl> You may query any fields present in the ApiActivity object. You can also query by activity metric values using the <em>metrics.*</em> syntax. Values for date time fields should be ISO8601 timestamps. <p> The valid comparators are <em>==</em>, <em>!=</em>, <em>=lt=</em>, <em>=le=</em>, <em>=ge=</em>, and <em>=gt=</em>. They stand for \"==\", \"!=\", \"<\", \"<=\", \">=\", \">\" respectively. (optional, default to status==started;parent==)resultOffset
- Specified the offset of activities to return. (optional, default to 0)view
- The view of the activities to materialize (optional, default to summary)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiActivityList> readActivitiesWithHttpInfo(String clusterName, String serviceName, Integer maxResults, String query, Integer resultOffset, String view) throws ApiException
clusterName
- The name of the cluster (required)serviceName
- The name of the service (required)maxResults
- The maximum number of activities to return. (optional, default to 100)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. <p> The query specifies the intersection of a list of constraints, joined together with semicolons (without spaces). For example: </p> <dl> <dt>status==started;parent==</dt> <dd>looks for running root activities. This is also the default query.</dd> <dt>status==failed;finishTime=gt=2012-04-01T20:30:00.000Z</dt> <dd>looks for failed activities after the given date time.</dd> <dt>name==Pi Estimator;startTime=gt=2012-04-01T20:30:00.000Z</dt> <dd>looks for activities started after the given date time, with the name of \"Pi Estimator\".</dd> <dt>startTime=lt=2012-01-02T00:00:00.000Z;finishTime=ge=2012-01-01T00:00:00.000Z</dt> <dd>looks for activities that are active on 2012 New Year's Day. Note that they may start before or finish after that day.</dd> <dt>status==failed;parent==000014-20120425161321-oozie-joe</dt> <dd>looks for failed child activities of the given parent activity id.</dd> <dt>status==started;metrics.cpu_user=gt=10</dt> <dd>looks for started activities that are using more than 10 cores per second.</dd> <dt>type==hive;metrics.user==bc;finishTime=gt=2012-04-01T20:30:00.000Z</dt> <dd>looks for all hive queries submitted by user bc after the given date time.</dd> </dl> You may query any fields present in the ApiActivity object. You can also query by activity metric values using the <em>metrics.*</em> syntax. Values for date time fields should be ISO8601 timestamps. <p> The valid comparators are <em>==</em>, <em>!=</em>, <em>=lt=</em>, <em>=le=</em>, <em>=ge=</em>, and <em>=gt=</em>. They stand for \"==\", \"!=\", \"<\", \"<=\", \">=\", \">\" respectively. (optional, default to status==started;parent==)resultOffset
- Specified the offset of activities to return. (optional, default to 0)view
- The view of the activities to materialize (optional, default to summary)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call readActivitiesAsync(String clusterName, String serviceName, Integer maxResults, String query, Integer resultOffset, String view, ApiCallback<ApiActivityList> callback) throws ApiException
clusterName
- The name of the cluster (required)serviceName
- The name of the service (required)maxResults
- The maximum number of activities to return. (optional, default to 100)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. <p> The query specifies the intersection of a list of constraints, joined together with semicolons (without spaces). For example: </p> <dl> <dt>status==started;parent==</dt> <dd>looks for running root activities. This is also the default query.</dd> <dt>status==failed;finishTime=gt=2012-04-01T20:30:00.000Z</dt> <dd>looks for failed activities after the given date time.</dd> <dt>name==Pi Estimator;startTime=gt=2012-04-01T20:30:00.000Z</dt> <dd>looks for activities started after the given date time, with the name of \"Pi Estimator\".</dd> <dt>startTime=lt=2012-01-02T00:00:00.000Z;finishTime=ge=2012-01-01T00:00:00.000Z</dt> <dd>looks for activities that are active on 2012 New Year's Day. Note that they may start before or finish after that day.</dd> <dt>status==failed;parent==000014-20120425161321-oozie-joe</dt> <dd>looks for failed child activities of the given parent activity id.</dd> <dt>status==started;metrics.cpu_user=gt=10</dt> <dd>looks for started activities that are using more than 10 cores per second.</dd> <dt>type==hive;metrics.user==bc;finishTime=gt=2012-04-01T20:30:00.000Z</dt> <dd>looks for all hive queries submitted by user bc after the given date time.</dd> </dl> You may query any fields present in the ApiActivity object. You can also query by activity metric values using the <em>metrics.*</em> syntax. Values for date time fields should be ISO8601 timestamps. <p> The valid comparators are <em>==</em>, <em>!=</em>, <em>=lt=</em>, <em>=le=</em>, <em>=ge=</em>, and <em>=gt=</em>. They stand for \"==\", \"!=\", \"<\", \"<=\", \">=\", \">\" respectively. (optional, default to status==started;parent==)resultOffset
- Specified the offset of activities to return. (optional, default to 0)view
- The view of the activities to materialize (optional, default to summary)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call readActivityCall(String activityId, String clusterName, String serviceName, String view, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
activityId
- The id of the activity to retrieve (required)clusterName
- The name of the cluster (required)serviceName
- The name of the service (required)view
- The view of the activity to materialize (optional, default to summary)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiActivity readActivity(String activityId, String clusterName, String serviceName, String view) throws ApiException
activityId
- The id of the activity to retrieve (required)clusterName
- The name of the cluster (required)serviceName
- The name of the service (required)view
- The view of the activity to materialize (optional, default to summary)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiActivity> readActivityWithHttpInfo(String activityId, String clusterName, String serviceName, String view) throws ApiException
activityId
- The id of the activity to retrieve (required)clusterName
- The name of the cluster (required)serviceName
- The name of the service (required)view
- The view of the activity to materialize (optional, default to summary)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call readActivityAsync(String activityId, String clusterName, String serviceName, String view, ApiCallback<ApiActivity> callback) throws ApiException
activityId
- The id of the activity to retrieve (required)clusterName
- The name of the cluster (required)serviceName
- The name of the service (required)view
- The view of the activity to materialize (optional, default to summary)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call readChildActivitiesCall(String activityId, String clusterName, String serviceName, Integer maxResults, Integer resultOffset, String view, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
activityId
- The id of the activity (required)clusterName
- The name of the cluster (required)serviceName
- The name of the service (required)maxResults
- The maximum number of activities to return. (optional, default to 100)resultOffset
- Specified the offset of activities to return. (optional, default to 0)view
- The view of the children to materialize (optional, default to summary)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiActivityList readChildActivities(String activityId, String clusterName, String serviceName, Integer maxResults, Integer resultOffset, String view) throws ApiException
activityId
- The id of the activity (required)clusterName
- The name of the cluster (required)serviceName
- The name of the service (required)maxResults
- The maximum number of activities to return. (optional, default to 100)resultOffset
- Specified the offset of activities to return. (optional, default to 0)view
- The view of the children to materialize (optional, default to summary)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiActivityList> readChildActivitiesWithHttpInfo(String activityId, String clusterName, String serviceName, Integer maxResults, Integer resultOffset, String view) throws ApiException
activityId
- The id of the activity (required)clusterName
- The name of the cluster (required)serviceName
- The name of the service (required)maxResults
- The maximum number of activities to return. (optional, default to 100)resultOffset
- Specified the offset of activities to return. (optional, default to 0)view
- The view of the children to materialize (optional, default to summary)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call readChildActivitiesAsync(String activityId, String clusterName, String serviceName, Integer maxResults, Integer resultOffset, String view, ApiCallback<ApiActivityList> callback) throws ApiException
activityId
- The id of the activity (required)clusterName
- The name of the cluster (required)serviceName
- The name of the service (required)maxResults
- The maximum number of activities to return. (optional, default to 100)resultOffset
- Specified the offset of activities to return. (optional, default to 0)view
- The view of the children to materialize (optional, default to summary)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call readSimilarActivitiesCall(String activityId, String clusterName, String serviceName, String view, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
activityId
- The id of the activity (required)clusterName
- The name of the cluster (required)serviceName
- The name of the service (required)view
- The view of the activities to materialize (optional, default to summary)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiActivityList readSimilarActivities(String activityId, String clusterName, String serviceName, String view) throws ApiException
activityId
- The id of the activity (required)clusterName
- The name of the cluster (required)serviceName
- The name of the service (required)view
- The view of the activities to materialize (optional, default to summary)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiActivityList> readSimilarActivitiesWithHttpInfo(String activityId, String clusterName, String serviceName, String view) throws ApiException
activityId
- The id of the activity (required)clusterName
- The name of the cluster (required)serviceName
- The name of the service (required)view
- The view of the activities to materialize (optional, default to summary)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call readSimilarActivitiesAsync(String activityId, String clusterName, String serviceName, String view, ApiCallback<ApiActivityList> callback) throws ApiException
activityId
- The id of the activity (required)clusterName
- The name of the cluster (required)serviceName
- The name of the service (required)view
- The view of the activities to materialize (optional, default to summary)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectCopyright © 2019. All rights reserved.