Package com.seeq.api
Class MetricsApi
java.lang.Object
com.seeq.api.MetricsApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionarchiveMetric
(String id) Archive a metricarchiveMetricWithHeadersAndHttpInfo
(String id, Map<String, String> customHeaders) Archive a metricArchive a metricCreate a metric that defines thresholdscreateThresholdMetricWithHeadersAndHttpInfo
(ThresholdMetricInputV1 body, Map<String, String> customHeaders) Create a metric that defines thresholdsCreate a metric that defines thresholdsGet metricgetMetrics
(Integer offset, Integer limit) List metricsList metricsgetMetricsWithHttpInfo
(Integer offset, Integer limit) List metricsgetMetricWithHeadersAndHttpInfo
(String id, Map<String, String> customHeaders) Get metricGet metriclong
putThresholdMetric
(String id, ThresholdMetricInputV1 body) Updates a metric that defines thresholdsputThresholdMetricWithHeadersAndHttpInfo
(String id, ThresholdMetricInputV1 body, Map<String, String> customHeaders) Updates a metric that defines thresholdsUpdates a metric that defines thresholdsvoid
setApiClient
(ApiClient apiClient) void
setRetryTimeout
(long retryTimeout)
-
Constructor Details
-
MetricsApi
public MetricsApi() -
MetricsApi
-
-
Method Details
-
setRetryTimeout
public void setRetryTimeout(long retryTimeout) -
getRetryTimeout
public long getRetryTimeout() -
getApiClient
-
setApiClient
-
archiveMetric
Archive a metric- Parameters:
id
- The Seeq ID for the metric (required)- Returns:
- StatusMessageBase
- Throws:
ApiException
- if fails to make API call
-
archiveMetricWithHttpInfo
public ApiClient.ApiResponse<StatusMessageBase> archiveMetricWithHttpInfo(String id) throws ApiException Archive a metric- Parameters:
id
- The Seeq ID for the metric (required)- Throws:
ApiException
- if fails to make API call
-
archiveMetricWithHeadersAndHttpInfo
public ApiClient.ApiResponse<StatusMessageBase> archiveMetricWithHeadersAndHttpInfo(String id, Map<String, String> customHeaders) throws ApiExceptionArchive a metric- Parameters:
id
- The Seeq ID for the metric (required)customHeaders
- a map with custom headers for the HTTP request (required)- Throws:
ApiException
- if fails to make API call
-
createThresholdMetric
public ThresholdMetricOutputV1 createThresholdMetric(ThresholdMetricInputV1 body) throws ApiException Create a metric that defines thresholds- Parameters:
body
- (required)- Returns:
- ThresholdMetricOutputV1
- Throws:
ApiException
- if fails to make API call
-
createThresholdMetricWithHttpInfo
public ApiClient.ApiResponse<ThresholdMetricOutputV1> createThresholdMetricWithHttpInfo(ThresholdMetricInputV1 body) throws ApiException Create a metric that defines thresholds- Parameters:
body
- (required)- Throws:
ApiException
- if fails to make API call
-
createThresholdMetricWithHeadersAndHttpInfo
public ApiClient.ApiResponse<ThresholdMetricOutputV1> createThresholdMetricWithHeadersAndHttpInfo(ThresholdMetricInputV1 body, Map<String, String> customHeaders) throws ApiExceptionCreate a metric that defines thresholds- Parameters:
body
- (required)customHeaders
- a map with custom headers for the HTTP request (required)- Throws:
ApiException
- if fails to make API call
-
getMetric
Get metric- Parameters:
id
- The Seeq ID for the metric (required)- Returns:
- ThresholdMetricOutputV1
- Throws:
ApiException
- if fails to make API call
-
getMetricWithHttpInfo
public ApiClient.ApiResponse<ThresholdMetricOutputV1> getMetricWithHttpInfo(String id) throws ApiException Get metric- Parameters:
id
- The Seeq ID for the metric (required)- Throws:
ApiException
- if fails to make API call
-
getMetricWithHeadersAndHttpInfo
public ApiClient.ApiResponse<ThresholdMetricOutputV1> getMetricWithHeadersAndHttpInfo(String id, Map<String, String> customHeaders) throws ApiExceptionGet metric- Parameters:
id
- The Seeq ID for the metric (required)customHeaders
- a map with custom headers for the HTTP request (required)- Throws:
ApiException
- if fails to make API call
-
getMetrics
List metrics- Parameters:
offset
- The pagination offset, the index of the first metric that will be returned in this page of results (optional, default to 0)limit
- The pagination limit, the total number of metrics that will be returned in this page of results (optional, default to 40)- Returns:
- GetMetricsOutputV1
- Throws:
ApiException
- if fails to make API call
-
getMetricsWithHttpInfo
public ApiClient.ApiResponse<GetMetricsOutputV1> getMetricsWithHttpInfo(Integer offset, Integer limit) throws ApiException List metrics- Parameters:
offset
- The pagination offset, the index of the first metric that will be returned in this page of results (optional, default to 0)limit
- The pagination limit, the total number of metrics that will be returned in this page of results (optional, default to 40)- Throws:
ApiException
- if fails to make API call
-
getMetricsWithHeadersAndHttpInfo
public ApiClient.ApiResponse<GetMetricsOutputV1> getMetricsWithHeadersAndHttpInfo(Integer offset, Integer limit, Map<String, String> customHeaders) throws ApiExceptionList metrics- Parameters:
offset
- The pagination offset, the index of the first metric that will be returned in this page of results (optional, default to 0)limit
- The pagination limit, the total number of metrics that will be returned in this page of results (optional, default to 40)customHeaders
- a map with custom headers for the HTTP request (required)- Throws:
ApiException
- if fails to make API call
-
putThresholdMetric
public ThresholdMetricOutputV1 putThresholdMetric(String id, ThresholdMetricInputV1 body) throws ApiException Updates a metric that defines thresholds- Parameters:
id
- The Seeq ID for the metric (required)body
- (required)- Returns:
- ThresholdMetricOutputV1
- Throws:
ApiException
- if fails to make API call
-
putThresholdMetricWithHttpInfo
public ApiClient.ApiResponse<ThresholdMetricOutputV1> putThresholdMetricWithHttpInfo(String id, ThresholdMetricInputV1 body) throws ApiException Updates a metric that defines thresholds- Parameters:
id
- The Seeq ID for the metric (required)body
- (required)- Throws:
ApiException
- if fails to make API call
-
putThresholdMetricWithHeadersAndHttpInfo
public ApiClient.ApiResponse<ThresholdMetricOutputV1> putThresholdMetricWithHeadersAndHttpInfo(String id, ThresholdMetricInputV1 body, Map<String, String> customHeaders) throws ApiExceptionUpdates a metric that defines thresholds- Parameters:
id
- The Seeq ID for the metric (required)body
- (required)customHeaders
- a map with custom headers for the HTTP request (required)- Throws:
ApiException
- if fails to make API call
-