@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class LogsMetricsApi extends Object
| Constructor and Description |
|---|
LogsMetricsApi() |
LogsMetricsApi(ApiClient apiClient) |
public LogsMetricsApi()
public LogsMetricsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic LogsMetricResponse createLogsMetric(LogsMetricCreateRequest body) throws ApiException
See createLogsMetricWithHttpInfo(com.datadog.api.client.v2.model.LogsMetricCreateRequest).
body - The definition of the new log-based metric. (required)ApiException - if fails to make API callpublic CompletableFuture<LogsMetricResponse> createLogsMetricAsync(LogsMetricCreateRequest body)
See createLogsMetricWithHttpInfoAsync(com.datadog.api.client.v2.model.LogsMetricCreateRequest).
body - The definition of the new log-based metric. (required)public ApiResponse<LogsMetricResponse> createLogsMetricWithHttpInfo(LogsMetricCreateRequest body) throws ApiException
body - The definition of the new log-based metric. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Not Authorized | - |
| 409 | Conflict | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<LogsMetricResponse>> createLogsMetricWithHttpInfoAsync(LogsMetricCreateRequest body)
See createLogsMetricWithHttpInfo(com.datadog.api.client.v2.model.LogsMetricCreateRequest).
body - The definition of the new log-based metric. (required)public void deleteLogsMetric(String metricId) throws ApiException
metricId - The name of the log-based metric. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteLogsMetricAsync(String metricId)
metricId - The name of the log-based metric. (required)public ApiResponse<Void> deleteLogsMetricWithHttpInfo(String metricId) throws ApiException
metricId - The name of the log-based metric. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | OK | - |
| 403 | Not Authorized | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteLogsMetricWithHttpInfoAsync(String metricId)
metricId - The name of the log-based metric. (required)public LogsMetricResponse getLogsMetric(String metricId) throws ApiException
metricId - The name of the log-based metric. (required)ApiException - if fails to make API callpublic CompletableFuture<LogsMetricResponse> getLogsMetricAsync(String metricId)
metricId - The name of the log-based metric. (required)public ApiResponse<LogsMetricResponse> getLogsMetricWithHttpInfo(String metricId) throws ApiException
metricId - The name of the log-based metric. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Not Authorized | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<LogsMetricResponse>> getLogsMetricWithHttpInfoAsync(String metricId)
metricId - The name of the log-based metric. (required)public LogsMetricsResponse listLogsMetrics() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<LogsMetricsResponse> listLogsMetricsAsync()
public ApiResponse<LogsMetricsResponse> listLogsMetricsWithHttpInfo() throws ApiException
ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Not Authorized | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<LogsMetricsResponse>> listLogsMetricsWithHttpInfoAsync()
public LogsMetricResponse updateLogsMetric(String metricId, LogsMetricUpdateRequest body) throws ApiException
metricId - The name of the log-based metric. (required)body - New definition of the log-based metric. (required)ApiException - if fails to make API callpublic CompletableFuture<LogsMetricResponse> updateLogsMetricAsync(String metricId, LogsMetricUpdateRequest body)
metricId - The name of the log-based metric. (required)body - New definition of the log-based metric. (required)public ApiResponse<LogsMetricResponse> updateLogsMetricWithHttpInfo(String metricId, LogsMetricUpdateRequest body) throws ApiException
metricId - The name of the log-based metric. (required)body - New definition of the log-based metric. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Not Authorized | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<LogsMetricResponse>> updateLogsMetricWithHttpInfoAsync(String metricId, LogsMetricUpdateRequest body)
metricId - The name of the log-based metric. (required)body - New definition of the log-based metric. (required)Copyright © 2024. All rights reserved.