@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class MonitorsApi extends Object
| Constructor and Description |
|---|
MonitorsApi() |
MonitorsApi(ApiClient apiClient) |
public MonitorsApi()
public MonitorsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic MonitorConfigPolicyResponse createMonitorConfigPolicy(MonitorConfigPolicyCreateRequest body) throws ApiException
body - Create a monitor configuration policy request body. (required)ApiException - if fails to make API callpublic CompletableFuture<MonitorConfigPolicyResponse> createMonitorConfigPolicyAsync(MonitorConfigPolicyCreateRequest body)
body - Create a monitor configuration policy request body. (required)public ApiResponse<MonitorConfigPolicyResponse> createMonitorConfigPolicyWithHttpInfo(MonitorConfigPolicyCreateRequest body) throws ApiException
body - Create a monitor configuration policy request body. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<MonitorConfigPolicyResponse>> createMonitorConfigPolicyWithHttpInfoAsync(MonitorConfigPolicyCreateRequest body)
body - Create a monitor configuration policy request body. (required)public void deleteMonitorConfigPolicy(String policyId) throws ApiException
See deleteMonitorConfigPolicyWithHttpInfo(java.lang.String).
policyId - ID of the monitor configuration policy. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteMonitorConfigPolicyAsync(String policyId)
See deleteMonitorConfigPolicyWithHttpInfoAsync(java.lang.String).
policyId - ID of the monitor configuration policy. (required)public ApiResponse<Void> deleteMonitorConfigPolicyWithHttpInfo(String policyId) throws ApiException
policyId - ID of the monitor configuration policy. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteMonitorConfigPolicyWithHttpInfoAsync(String policyId)
See deleteMonitorConfigPolicyWithHttpInfo(java.lang.String).
policyId - ID of the monitor configuration policy. (required)public MonitorConfigPolicyResponse getMonitorConfigPolicy(String policyId) throws ApiException
policyId - ID of the monitor configuration policy. (required)ApiException - if fails to make API callpublic CompletableFuture<MonitorConfigPolicyResponse> getMonitorConfigPolicyAsync(String policyId)
See getMonitorConfigPolicyWithHttpInfoAsync(java.lang.String).
policyId - ID of the monitor configuration policy. (required)public ApiResponse<MonitorConfigPolicyResponse> getMonitorConfigPolicyWithHttpInfo(String policyId) throws ApiException
policy_id.policyId - ID of the monitor configuration policy. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<MonitorConfigPolicyResponse>> getMonitorConfigPolicyWithHttpInfoAsync(String policyId)
policyId - ID of the monitor configuration policy. (required)public MonitorConfigPolicyListResponse listMonitorConfigPolicies() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<MonitorConfigPolicyListResponse> listMonitorConfigPoliciesAsync()
public ApiResponse<MonitorConfigPolicyListResponse> listMonitorConfigPoliciesWithHttpInfo() throws ApiException
ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<MonitorConfigPolicyListResponse>> listMonitorConfigPoliciesWithHttpInfoAsync()
public MonitorConfigPolicyResponse updateMonitorConfigPolicy(String policyId, MonitorConfigPolicyEditRequest body) throws ApiException
policyId - ID of the monitor configuration policy. (required)body - Description of the update. (required)ApiException - if fails to make API callpublic CompletableFuture<MonitorConfigPolicyResponse> updateMonitorConfigPolicyAsync(String policyId, MonitorConfigPolicyEditRequest body)
policyId - ID of the monitor configuration policy. (required)body - Description of the update. (required)public ApiResponse<MonitorConfigPolicyResponse> updateMonitorConfigPolicyWithHttpInfo(String policyId, MonitorConfigPolicyEditRequest body) throws ApiException
policyId - ID of the monitor configuration policy. (required)body - Description of the update. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 422 | Unprocessable Entity | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<MonitorConfigPolicyResponse>> updateMonitorConfigPolicyWithHttpInfoAsync(String policyId, MonitorConfigPolicyEditRequest body)
policyId - ID of the monitor configuration policy. (required)body - Description of the update. (required)Copyright © 2024. All rights reserved.