@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class MetricsApi extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MetricsApi.EstimateMetricsOutputSeriesOptionalParameters
Manage optional parameters to estimateMetricsOutputSeries.
|
static class |
MetricsApi.ListActiveMetricConfigurationsOptionalParameters
Manage optional parameters to listActiveMetricConfigurations.
|
static class |
MetricsApi.ListTagConfigurationsOptionalParameters
Manage optional parameters to listTagConfigurations.
|
static class |
MetricsApi.ListTagIndexingRulesOptionalParameters
Manage optional parameters to listTagIndexingRules.
|
static class |
MetricsApi.ListTagsByMetricNameOptionalParameters
Manage optional parameters to listTagsByMetricName.
|
static class |
MetricsApi.ListVolumesByMetricNameOptionalParameters
Manage optional parameters to listVolumesByMetricName.
|
static class |
MetricsApi.SubmitMetricsOptionalParameters
Manage optional parameters to submitMetrics.
|
| Constructor and Description |
|---|
MetricsApi() |
MetricsApi(ApiClient apiClient) |
public MetricsApi()
public MetricsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API client@Deprecated public MetricBulkTagConfigResponse createBulkTagsMetricsConfiguration(MetricBulkTagConfigCreateRequest body) throws ApiException
body - (required)ApiException - if fails to make API call@Deprecated public CompletableFuture<MetricBulkTagConfigResponse> createBulkTagsMetricsConfigurationAsync(MetricBulkTagConfigCreateRequest body)
body - (required)@Deprecated public ApiResponse<MetricBulkTagConfigResponse> createBulkTagsMetricsConfigurationWithHttpInfo(MetricBulkTagConfigCreateRequest body) throws ApiException
POST /api/v2/metrics/tag-indexing-rules) instead.
Create and define a list of queryable tag keys for a set of existing count, gauge, rate, and
distribution metrics. Metrics are selected by passing a metric name prefix. Use the Delete
method of this API path to remove tag configurations. Results can be sent to a set of account
email addresses, just like the same operation in the Datadog web app. If multiple calls include
the same metric, the last configuration applied (not by submit order) is used, do not expect
deterministic ordering of concurrent calls. The exclude_tags_mode value will set
all metrics that match the prefix to the same exclusion state, metric tag configurations do not
support mixed inclusion and exclusion for tags on the same metric. Can only be used with
application keys of users with the Manage Tags for Metrics permission.
body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 202 | Accepted | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too Many Requests | - |
@Deprecated public CompletableFuture<ApiResponse<MetricBulkTagConfigResponse>> createBulkTagsMetricsConfigurationWithHttpInfoAsync(MetricBulkTagConfigCreateRequest body)
body - (required)public MetricTagConfigurationResponse createTagConfiguration(String metricName, MetricTagConfigurationCreateRequest body) throws ApiException
metricName - The name of the metric. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<MetricTagConfigurationResponse> createTagConfigurationAsync(String metricName, MetricTagConfigurationCreateRequest body)
metricName - The name of the metric. (required)body - (required)public ApiResponse<MetricTagConfigurationResponse> createTagConfigurationWithHttpInfo(String metricName, MetricTagConfigurationCreateRequest body) throws ApiException
exclude_tags_mode to true, the behavior is changed from an allow-list to a
deny-list, and tags in the defined list are not queryable. Can only be used with application
keys of users with the Manage Tags for Metrics permission.metricName - The name of the metric. (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 201 | Created | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 409 | Conflict | - |
| 429 | Too Many Requests | - |
public CompletableFuture<ApiResponse<MetricTagConfigurationResponse>> createTagConfigurationWithHttpInfoAsync(String metricName, MetricTagConfigurationCreateRequest body)
metricName - The name of the metric. (required)body - (required)public TagIndexingRuleResponse createTagIndexingRule(TagIndexingRuleCreateRequest body) throws ApiException
See createTagIndexingRuleWithHttpInfo(com.datadog.api.client.v2.model.TagIndexingRuleCreateRequest).
body - (required)ApiException - if fails to make API callpublic CompletableFuture<TagIndexingRuleResponse> createTagIndexingRuleAsync(TagIndexingRuleCreateRequest body)
See createTagIndexingRuleWithHttpInfoAsync(com.datadog.api.client.v2.model.TagIndexingRuleCreateRequest).
body - (required)public ApiResponse<TagIndexingRuleResponse> createTagIndexingRuleWithHttpInfo(TagIndexingRuleCreateRequest body) throws ApiException
rule_order is assigned server-side as
max+1 among existing rules; use the reorder endpoint to change the evaluation order. Requires
the Manage Tags for Metrics permission.body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 201 | Created | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 429 | Too Many Requests | - |
public CompletableFuture<ApiResponse<TagIndexingRuleResponse>> createTagIndexingRuleWithHttpInfoAsync(TagIndexingRuleCreateRequest body)
See createTagIndexingRuleWithHttpInfo(com.datadog.api.client.v2.model.TagIndexingRuleCreateRequest).
body - (required)public TagIndexingRuleExemptionResponse createTagIndexingRuleExemption(String metricName, TagIndexingRuleExemptionCreateRequest body) throws ApiException
metricName - The name of the metric. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<TagIndexingRuleExemptionResponse> createTagIndexingRuleExemptionAsync(String metricName, TagIndexingRuleExemptionCreateRequest body)
metricName - The name of the metric. (required)body - (required)public ApiResponse<TagIndexingRuleExemptionResponse> createTagIndexingRuleExemptionWithHttpInfo(String metricName, TagIndexingRuleExemptionCreateRequest body) throws ApiException
Manage Tags for Metrics permission.metricName - The name of the metric. (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 201 | Created | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 429 | Too Many Requests | - |
public CompletableFuture<ApiResponse<TagIndexingRuleExemptionResponse>> createTagIndexingRuleExemptionWithHttpInfoAsync(String metricName, TagIndexingRuleExemptionCreateRequest body)
metricName - The name of the metric. (required)body - (required)@Deprecated public MetricBulkTagConfigResponse deleteBulkTagsMetricsConfiguration(MetricBulkTagConfigDeleteRequest body) throws ApiException
body - (required)ApiException - if fails to make API call@Deprecated public CompletableFuture<MetricBulkTagConfigResponse> deleteBulkTagsMetricsConfigurationAsync(MetricBulkTagConfigDeleteRequest body)
body - (required)@Deprecated public ApiResponse<MetricBulkTagConfigResponse> deleteBulkTagsMetricsConfigurationWithHttpInfo(MetricBulkTagConfigDeleteRequest body) throws ApiException
POST /api/v2/metrics/tag-indexing-rules) instead.
Delete all custom lists of queryable tag keys for a set of existing count, gauge, rate, and
distribution metrics. Metrics are selected by passing a metric name prefix. Results can be sent
to a set of account email addresses, just like the same operation in the Datadog web app. Can
only be used with application keys of users with the Manage Tags for Metrics
permission.
body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 202 | Accepted | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too Many Requests | - |
@Deprecated public CompletableFuture<ApiResponse<MetricBulkTagConfigResponse>> deleteBulkTagsMetricsConfigurationWithHttpInfoAsync(MetricBulkTagConfigDeleteRequest body)
body - (required)public void deleteTagConfiguration(String metricName) throws ApiException
metricName - The name of the metric. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteTagConfigurationAsync(String metricName)
See deleteTagConfigurationWithHttpInfoAsync(java.lang.String).
metricName - The name of the metric. (required)public ApiResponse<Void> deleteTagConfigurationWithHttpInfo(String metricName) throws ApiException
Manage Tags for Metrics permission. Note: This operation is irreversible.metricName - The name of the metric. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 403 | Forbidden | - |
| 404 | Not found | - |
| 429 | Too Many Requests | - |
public CompletableFuture<ApiResponse<Void>> deleteTagConfigurationWithHttpInfoAsync(String metricName)
metricName - The name of the metric. (required)public void deleteTagIndexingRule(String id) throws ApiException
id - ID of the tag indexing rule. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteTagIndexingRuleAsync(String id)
See deleteTagIndexingRuleWithHttpInfoAsync(java.lang.String).
id - ID of the tag indexing rule. (required)public ApiResponse<Void> deleteTagIndexingRuleWithHttpInfo(String id) throws ApiException
rule_order dense and 1-based. Requires the Manage Tags for Metrics
permission.id - ID of the tag indexing rule. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 429 | Too Many Requests | - |
public CompletableFuture<ApiResponse<Void>> deleteTagIndexingRuleWithHttpInfoAsync(String id)
id - ID of the tag indexing rule. (required)public void deleteTagIndexingRuleExemption(String metricName) throws ApiException
See deleteTagIndexingRuleExemptionWithHttpInfo(java.lang.String).
metricName - The name of the metric. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteTagIndexingRuleExemptionAsync(String metricName)
See deleteTagIndexingRuleExemptionWithHttpInfoAsync(java.lang.String).
metricName - The name of the metric. (required)public ApiResponse<Void> deleteTagIndexingRuleExemptionWithHttpInfo(String metricName) throws ApiException
Manage Tags for Metrics permission.metricName - The name of the metric. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 429 | Too Many Requests | - |
public CompletableFuture<ApiResponse<Void>> deleteTagIndexingRuleExemptionWithHttpInfoAsync(String metricName)
See deleteTagIndexingRuleExemptionWithHttpInfo(java.lang.String).
metricName - The name of the metric. (required)public MetricEstimateResponse estimateMetricsOutputSeries(String metricName) throws ApiException
metricName - The name of the metric. (required)ApiException - if fails to make API callpublic CompletableFuture<MetricEstimateResponse> estimateMetricsOutputSeriesAsync(String metricName)
metricName - The name of the metric. (required)public MetricEstimateResponse estimateMetricsOutputSeries(String metricName, MetricsApi.EstimateMetricsOutputSeriesOptionalParameters parameters) throws ApiException
metricName - The name of the metric. (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<MetricEstimateResponse> estimateMetricsOutputSeriesAsync(String metricName, MetricsApi.EstimateMetricsOutputSeriesOptionalParameters parameters)
metricName - The name of the metric. (required)parameters - Optional parameters for the request.public ApiResponse<MetricEstimateResponse> estimateMetricsOutputSeriesWithHttpInfo(String metricName, MetricsApi.EstimateMetricsOutputSeriesOptionalParameters parameters) throws ApiException
metricName - The name of the metric. (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | Success | - |
| 400 | API error response. | - |
| 403 | API error response. | - |
| 404 | API error response. | - |
| 429 | Too Many Requests | - |
public CompletableFuture<ApiResponse<MetricEstimateResponse>> estimateMetricsOutputSeriesWithHttpInfoAsync(String metricName, MetricsApi.EstimateMetricsOutputSeriesOptionalParameters parameters)
metricName - The name of the metric. (required)parameters - Optional parameters for the request.public MetricTagCardinalitiesResponse getMetricTagCardinalityDetails(String metricName) throws ApiException
See getMetricTagCardinalityDetailsWithHttpInfo(java.lang.String).
metricName - The name of the metric. (required)ApiException - if fails to make API callpublic CompletableFuture<MetricTagCardinalitiesResponse> getMetricTagCardinalityDetailsAsync(String metricName)
See getMetricTagCardinalityDetailsWithHttpInfoAsync(java.lang.String).
metricName - The name of the metric. (required)public ApiResponse<MetricTagCardinalitiesResponse> getMetricTagCardinalityDetailsWithHttpInfo(String metricName) throws ApiException
metricName - The name of the metric. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | Success | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too Many Requests | - |
public CompletableFuture<ApiResponse<MetricTagCardinalitiesResponse>> getMetricTagCardinalityDetailsWithHttpInfoAsync(String metricName)
See getMetricTagCardinalityDetailsWithHttpInfo(java.lang.String).
metricName - The name of the metric. (required)public TagIndexingRuleResponse getTagIndexingRule(String id) throws ApiException
id - ID of the tag indexing rule. (required)ApiException - if fails to make API callpublic CompletableFuture<TagIndexingRuleResponse> getTagIndexingRuleAsync(String id)
id - ID of the tag indexing rule. (required)public ApiResponse<TagIndexingRuleResponse> getTagIndexingRuleWithHttpInfo(String id) throws ApiException
id - ID of the tag indexing rule. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too Many Requests | - |
public CompletableFuture<ApiResponse<TagIndexingRuleResponse>> getTagIndexingRuleWithHttpInfoAsync(String id)
id - ID of the tag indexing rule. (required)public TagIndexingRuleExemptionResponse getTagIndexingRuleExemption(String metricName) throws ApiException
See getTagIndexingRuleExemptionWithHttpInfo(java.lang.String).
metricName - The name of the metric. (required)ApiException - if fails to make API callpublic CompletableFuture<TagIndexingRuleExemptionResponse> getTagIndexingRuleExemptionAsync(String metricName)
See getTagIndexingRuleExemptionWithHttpInfoAsync(java.lang.String).
metricName - The name of the metric. (required)public ApiResponse<TagIndexingRuleExemptionResponse> getTagIndexingRuleExemptionWithHttpInfo(String metricName) throws ApiException
kind=exemption
when an explicit exemption exists, 200 with kind=legacy_tag_configuration
when the metric has a legacy tag configuration acting as an implicit exclusion, or 404 when
neither applies.metricName - The name of the metric. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too Many Requests | - |
public CompletableFuture<ApiResponse<TagIndexingRuleExemptionResponse>> getTagIndexingRuleExemptionWithHttpInfoAsync(String metricName)
See getTagIndexingRuleExemptionWithHttpInfo(java.lang.String).
metricName - The name of the metric. (required)public MetricSuggestedTagsAndAggregationsResponse listActiveMetricConfigurations(String metricName) throws ApiException
metricName - The name of the metric. (required)ApiException - if fails to make API callpublic CompletableFuture<MetricSuggestedTagsAndAggregationsResponse> listActiveMetricConfigurationsAsync(String metricName)
metricName - The name of the metric. (required)public MetricSuggestedTagsAndAggregationsResponse listActiveMetricConfigurations(String metricName, MetricsApi.ListActiveMetricConfigurationsOptionalParameters parameters) throws ApiException
metricName - The name of the metric. (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<MetricSuggestedTagsAndAggregationsResponse> listActiveMetricConfigurationsAsync(String metricName, MetricsApi.ListActiveMetricConfigurationsOptionalParameters parameters)
metricName - The name of the metric. (required)parameters - Optional parameters for the request.public ApiResponse<MetricSuggestedTagsAndAggregationsResponse> listActiveMetricConfigurationsWithHttpInfo(String metricName, MetricsApi.ListActiveMetricConfigurationsOptionalParameters parameters) throws ApiException
metricName - The name of the metric. (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | Success | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too Many Requests | - |
public CompletableFuture<ApiResponse<MetricSuggestedTagsAndAggregationsResponse>> listActiveMetricConfigurationsWithHttpInfoAsync(String metricName, MetricsApi.ListActiveMetricConfigurationsOptionalParameters parameters)
metricName - The name of the metric. (required)parameters - Optional parameters for the request.public MetricAssetsResponse listMetricAssets(String metricName) throws ApiException
metricName - The name of the metric. (required)ApiException - if fails to make API callpublic CompletableFuture<MetricAssetsResponse> listMetricAssetsAsync(String metricName)
metricName - The name of the metric. (required)public ApiResponse<MetricAssetsResponse> listMetricAssetsWithHttpInfo(String metricName) throws ApiException
metricName - The name of the metric. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | Success | - |
| 400 | API error response. | - |
| 403 | API error response. | - |
| 404 | API error response. | - |
| 429 | Too Many Requests | - |
public CompletableFuture<ApiResponse<MetricAssetsResponse>> listMetricAssetsWithHttpInfoAsync(String metricName)
metricName - The name of the metric. (required)public MetricTagConfigurationResponse listTagConfigurationByName(String metricName) throws ApiException
See listTagConfigurationByNameWithHttpInfo(java.lang.String).
metricName - The name of the metric. (required)ApiException - if fails to make API callpublic CompletableFuture<MetricTagConfigurationResponse> listTagConfigurationByNameAsync(String metricName)
See listTagConfigurationByNameWithHttpInfoAsync(java.lang.String).
metricName - The name of the metric. (required)public ApiResponse<MetricTagConfigurationResponse> listTagConfigurationByNameWithHttpInfo(String metricName) throws ApiException
metricName - The name of the metric. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | Success | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too Many Requests | - |
public CompletableFuture<ApiResponse<MetricTagConfigurationResponse>> listTagConfigurationByNameWithHttpInfoAsync(String metricName)
See listTagConfigurationByNameWithHttpInfo(java.lang.String).
metricName - The name of the metric. (required)public MetricsAndMetricTagConfigurationsResponse listTagConfigurations() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<MetricsAndMetricTagConfigurationsResponse> listTagConfigurationsAsync()
public MetricsAndMetricTagConfigurationsResponse listTagConfigurations(MetricsApi.ListTagConfigurationsOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<MetricsAndMetricTagConfigurationsResponse> listTagConfigurationsAsync(MetricsApi.ListTagConfigurationsOptionalParameters parameters)
parameters - Optional parameters for the request.public PaginationIterable<MetricsAndMetricTagConfigurations> listTagConfigurationsWithPagination()
public PaginationIterable<MetricsAndMetricTagConfigurations> listTagConfigurationsWithPagination(MetricsApi.ListTagConfigurationsOptionalParameters parameters)
public ApiResponse<MetricsAndMetricTagConfigurationsResponse> listTagConfigurationsWithHttpInfo(MetricsApi.ListTagConfigurationsOptionalParameters parameters) throws ApiException
page[cursor] and page[size] query parameters.
Query parameters use bracket notation (for example, filter[tags],
filter[queried][window][seconds]). Pass them as standard URL query strings, URL-encoding
the brackets if your client does not handle them. For example:
GET /api/v2/metrics?filter[tags]=env:prod&window[seconds]=86400&page[size]=500.
parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | Success | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 429 | Too Many Requests | - |
public CompletableFuture<ApiResponse<MetricsAndMetricTagConfigurationsResponse>> listTagConfigurationsWithHttpInfoAsync(MetricsApi.ListTagConfigurationsOptionalParameters parameters)
parameters - Optional parameters for the request.public TagIndexingRulesResponse listTagIndexingRules() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<TagIndexingRulesResponse> listTagIndexingRulesAsync()
public TagIndexingRulesResponse listTagIndexingRules(MetricsApi.ListTagIndexingRulesOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<TagIndexingRulesResponse> listTagIndexingRulesAsync(MetricsApi.ListTagIndexingRulesOptionalParameters parameters)
parameters - Optional parameters for the request.public ApiResponse<TagIndexingRulesResponse> listTagIndexingRulesWithHttpInfo(MetricsApi.ListTagIndexingRulesOptionalParameters parameters) throws ApiException
rule_order, with offset/limit
pagination.parameters - Optional parameters for the request.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<TagIndexingRulesResponse>> listTagIndexingRulesWithHttpInfoAsync(MetricsApi.ListTagIndexingRulesOptionalParameters parameters)
parameters - Optional parameters for the request.public TagIndexingRulesResponse listTagIndexingRulesForMetric(String metricName) throws ApiException
See listTagIndexingRulesForMetricWithHttpInfo(java.lang.String).
metricName - The name of the metric. (required)ApiException - if fails to make API callpublic CompletableFuture<TagIndexingRulesResponse> listTagIndexingRulesForMetricAsync(String metricName)
See listTagIndexingRulesForMetricWithHttpInfoAsync(java.lang.String).
metricName - The name of the metric. (required)public ApiResponse<TagIndexingRulesResponse> listTagIndexingRulesForMetricWithHttpInfo(String metricName) throws ApiException
rule_order.
Matching is performed server-side using each rule's metric_name_matches glob
patterns.metricName - The name of the metric. (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<TagIndexingRulesResponse>> listTagIndexingRulesForMetricWithHttpInfoAsync(String metricName)
See listTagIndexingRulesForMetricWithHttpInfo(java.lang.String).
metricName - The name of the metric. (required)public MetricAllTagsResponse listTagsByMetricName(String metricName) throws ApiException
metricName - The name of the metric. (required)ApiException - if fails to make API callpublic CompletableFuture<MetricAllTagsResponse> listTagsByMetricNameAsync(String metricName)
metricName - The name of the metric. (required)public MetricAllTagsResponse listTagsByMetricName(String metricName, MetricsApi.ListTagsByMetricNameOptionalParameters parameters) throws ApiException
metricName - The name of the metric. (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<MetricAllTagsResponse> listTagsByMetricNameAsync(String metricName, MetricsApi.ListTagsByMetricNameOptionalParameters parameters)
metricName - The name of the metric. (required)parameters - Optional parameters for the request.public ApiResponse<MetricAllTagsResponse> listTagsByMetricNameWithHttpInfo(String metricName, MetricsApi.ListTagsByMetricNameOptionalParameters parameters) throws ApiException
window[seconds] parameter, which defaults to 14400 (4 hours).metricName - The name of the metric. (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | Success | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too Many Requests | - |
public CompletableFuture<ApiResponse<MetricAllTagsResponse>> listTagsByMetricNameWithHttpInfoAsync(String metricName, MetricsApi.ListTagsByMetricNameOptionalParameters parameters)
metricName - The name of the metric. (required)parameters - Optional parameters for the request.public MetricVolumesResponse listVolumesByMetricName(String metricName) throws ApiException
metricName - The name of the metric. (required)ApiException - if fails to make API callpublic CompletableFuture<MetricVolumesResponse> listVolumesByMetricNameAsync(String metricName)
metricName - The name of the metric. (required)public MetricVolumesResponse listVolumesByMetricName(String metricName, MetricsApi.ListVolumesByMetricNameOptionalParameters parameters) throws ApiException
metricName - The name of the metric. (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<MetricVolumesResponse> listVolumesByMetricNameAsync(String metricName, MetricsApi.ListVolumesByMetricNameOptionalParameters parameters)
metricName - The name of the metric. (required)parameters - Optional parameters for the request.public ApiResponse<MetricVolumesResponse> listVolumesByMetricNameWithHttpInfo(String metricName, MetricsApi.ListVolumesByMetricNameOptionalParameters parameters) throws ApiException
metricName - The name of the metric. (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | Success | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too Many Requests | - |
public CompletableFuture<ApiResponse<MetricVolumesResponse>> listVolumesByMetricNameWithHttpInfoAsync(String metricName, MetricsApi.ListVolumesByMetricNameOptionalParameters parameters)
metricName - The name of the metric. (required)parameters - Optional parameters for the request.public ScalarFormulaQueryResponse queryScalarData(ScalarFormulaQueryRequest body) throws ApiException
See queryScalarDataWithHttpInfo(com.datadog.api.client.v2.model.ScalarFormulaQueryRequest).
body - (required)ApiException - if fails to make API callpublic CompletableFuture<ScalarFormulaQueryResponse> queryScalarDataAsync(ScalarFormulaQueryRequest body)
See queryScalarDataWithHttpInfoAsync(com.datadog.api.client.v2.model.ScalarFormulaQueryRequest).
body - (required)public ApiResponse<ScalarFormulaQueryResponse> queryScalarDataWithHttpInfo(ScalarFormulaQueryRequest body) throws ApiException
body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ScalarFormulaQueryResponse>> queryScalarDataWithHttpInfoAsync(ScalarFormulaQueryRequest body)
See queryScalarDataWithHttpInfo(com.datadog.api.client.v2.model.ScalarFormulaQueryRequest).
body - (required)public TimeseriesFormulaQueryResponse queryTimeseriesData(TimeseriesFormulaQueryRequest body) throws ApiException
See queryTimeseriesDataWithHttpInfo(com.datadog.api.client.v2.model.TimeseriesFormulaQueryRequest).
body - (required)ApiException - if fails to make API callpublic CompletableFuture<TimeseriesFormulaQueryResponse> queryTimeseriesDataAsync(TimeseriesFormulaQueryRequest body)
See queryTimeseriesDataWithHttpInfoAsync(com.datadog.api.client.v2.model.TimeseriesFormulaQueryRequest).
body - (required)public ApiResponse<TimeseriesFormulaQueryResponse> queryTimeseriesDataWithHttpInfo(TimeseriesFormulaQueryRequest body) throws ApiException
body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 401 | Unauthorized | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<TimeseriesFormulaQueryResponse>> queryTimeseriesDataWithHttpInfoAsync(TimeseriesFormulaQueryRequest body)
See queryTimeseriesDataWithHttpInfo(com.datadog.api.client.v2.model.TimeseriesFormulaQueryRequest).
body - (required)public void reorderTagIndexingRules(TagIndexingRuleOrderRequest body) throws ApiException
See reorderTagIndexingRulesWithHttpInfo(com.datadog.api.client.v2.model.TagIndexingRuleOrderRequest).
body - (required)ApiException - if fails to make API callpublic CompletableFuture<Void> reorderTagIndexingRulesAsync(TagIndexingRuleOrderRequest body)
body - (required)public ApiResponse<Void> reorderTagIndexingRulesWithHttpInfo(TagIndexingRuleOrderRequest body) throws ApiException
rule_order 1, 2, … matching each rule UUID by position
in the list. Requires the Manage Tags for Metrics permission.body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too Many Requests | - |
public CompletableFuture<ApiResponse<Void>> reorderTagIndexingRulesWithHttpInfoAsync(TagIndexingRuleOrderRequest body)
See reorderTagIndexingRulesWithHttpInfo(com.datadog.api.client.v2.model.TagIndexingRuleOrderRequest).
body - (required)public IntakePayloadAccepted submitMetrics(MetricPayload body) throws ApiException
body - (required)ApiException - if fails to make API callpublic CompletableFuture<IntakePayloadAccepted> submitMetricsAsync(MetricPayload body)
body - (required)public IntakePayloadAccepted submitMetrics(MetricPayload body, MetricsApi.SubmitMetricsOptionalParameters parameters) throws ApiException
body - (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<IntakePayloadAccepted> submitMetricsAsync(MetricPayload body, MetricsApi.SubmitMetricsOptionalParameters parameters)
body - (required)parameters - Optional parameters for the request.public ApiResponse<IntakePayloadAccepted> submitMetricsWithHttpInfo(MetricPayload body, MetricsApi.SubmitMetricsOptionalParameters parameters) throws ApiException
If you’re submitting metrics directly to the Datadog API without using DogStatsD, expect:
Host name is one of the resources in the Resources field.
body - (required)parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 202 | Payload accepted | - |
| 400 | Bad Request | - |
| 403 | Authentication error | - |
| 408 | Request timeout | - |
| 413 | Payload too large | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<IntakePayloadAccepted>> submitMetricsWithHttpInfoAsync(MetricPayload body, MetricsApi.SubmitMetricsOptionalParameters parameters)
body - (required)parameters - Optional parameters for the request.public MetricTagConfigurationResponse updateTagConfiguration(String metricName, MetricTagConfigurationUpdateRequest body) throws ApiException
metricName - The name of the metric. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<MetricTagConfigurationResponse> updateTagConfigurationAsync(String metricName, MetricTagConfigurationUpdateRequest body)
metricName - The name of the metric. (required)body - (required)public ApiResponse<MetricTagConfigurationResponse> updateTagConfigurationWithHttpInfo(String metricName, MetricTagConfigurationUpdateRequest body) throws ApiException
exclude_tags_mode
to true the behavior is changed from an allow-list to a deny-list, and tags in the
defined list will not be queryable. Can only be used with application keys from users with the
Manage Tags for Metrics permission. This endpoint requires a tag configuration to
be created first.metricName - The name of the metric. (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 422 | Unprocessable Entity | - |
| 429 | Too Many Requests | - |
public CompletableFuture<ApiResponse<MetricTagConfigurationResponse>> updateTagConfigurationWithHttpInfoAsync(String metricName, MetricTagConfigurationUpdateRequest body)
metricName - The name of the metric. (required)body - (required)public TagIndexingRuleResponse updateTagIndexingRule(String id, TagIndexingRuleUpdateRequest body) throws ApiException
id - ID of the tag indexing rule. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<TagIndexingRuleResponse> updateTagIndexingRuleAsync(String id, TagIndexingRuleUpdateRequest body)
id - ID of the tag indexing rule. (required)body - (required)public ApiResponse<TagIndexingRuleResponse> updateTagIndexingRuleWithHttpInfo(String id, TagIndexingRuleUpdateRequest body) throws ApiException
rule_order to a value already used by another rule returns 409; use the
reorder endpoint for atomic re-sequencing. Requires the Manage Tags for Metrics
permission.id - ID of the tag indexing rule. (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 409 | Conflict | - |
| 429 | Too Many Requests | - |
public CompletableFuture<ApiResponse<TagIndexingRuleResponse>> updateTagIndexingRuleWithHttpInfoAsync(String id, TagIndexingRuleUpdateRequest body)
id - ID of the tag indexing rule. (required)body - (required)Copyright © 2026. All rights reserved.