Skip to content

Commit 480e1f1

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit e5c97ff of spec repo
1 parent 8aec44e commit 480e1f1

2 files changed

Lines changed: 60 additions & 88 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 32 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -91522,111 +91522,92 @@ paths:
9152291522
- logs_read_data
9152391523
/api/v2/metrics:
9152491524
get:
91525-
description: 'Returns all metrics for your organization that match the given
91526-
filter parameters.
91527-
91528-
Optionally, paginate by using the `page[cursor]` and/or `page[size]` query
91529-
parameters.
91530-
91531-
To fetch the first page, pass in a query parameter with either a valid `page[size]`
91532-
or an empty cursor like `page[cursor]=`. To fetch the next page, pass in the
91533-
`next_cursor` value from the response as the new `page[cursor]` value.
91534-
91535-
Once the `meta.pagination.next_cursor` value is null, all pages have been
91536-
retrieved.'
91525+
description: Get a list of actively reporting metrics for your organization.
91526+
Pagination is optional using the `page[cursor]` and `page[size]` query parameters.
9153791527
operationId: ListTagConfigurations
9153891528
parameters:
91539-
- description: Filter custom metrics that have configured tags.
91529+
- description: Only return custom metrics that have been configured with Metrics
91530+
Without Limits.
9154091531
example: true
9154191532
in: query
9154291533
name: filter[configured]
9154391534
required: false
9154491535
schema:
9154591536
type: boolean
91546-
- description: Filter tag configurations by configured tags.
91547-
example: app
91537+
- description: Only return metrics that have the given tag key(s) in their Metrics
91538+
Without Limits configuration (included or excluded).
91539+
example: app,env
9154891540
in: query
9154991541
name: filter[tags_configured]
9155091542
required: false
9155191543
schema:
9155291544
description: Tag keys to filter by.
9155391545
type: string
91554-
- description: Filter metrics by metric type.
91546+
- description: Only return metrics of the given metric type.
9155591547
in: query
9155691548
name: filter[metric_type]
9155791549
required: false
9155891550
schema:
9155991551
$ref: '#/components/schemas/MetricTagConfigurationMetricTypeCategory'
91560-
- description: 'Filter distributions with additional percentile
91561-
91562-
aggregations enabled or disabled.'
91552+
- description: Only return distribution metrics that have percentile aggregations
91553+
enabled (true) or disabled (false).
9156391554
example: true
9156491555
in: query
9156591556
name: filter[include_percentiles]
9156691557
required: false
9156791558
schema:
9156891559
type: boolean
91569-
- description: '(Preview) Filter custom metrics that have or have not been queried
91570-
in the specified window[seconds].
91571-
91572-
If no window is provided or the window is less than 2 hours, a default of
91573-
2 hours will be applied.'
91560+
- description: Only return metrics that have been queried (true) or not queried
91561+
(false) in the look back window. Set the window with `filter[queried][window][seconds]`;
91562+
if omitted, a default window is used.
9157491563
example: true
9157591564
in: query
9157691565
name: filter[queried]
9157791566
required: false
9157891567
schema:
9157991568
type: boolean
91580-
- description: 'The number of seconds of look back (from now) used by the `filter[queried]`
91581-
filter logic.
91582-
91583-
Must be sent with `filter[queried]` and is only applied when `filter[queried]=true`.
91584-
91585-
If `filter[queried]=false`, this parameter is ignored and default queried-window
91586-
behavior applies.
91587-
91588-
If `filter[queried]` is not provided, sending this parameter returns a 400.
91589-
91590-
For example: `GET /api/v2/metrics?filter[queried]=true&filter[queried][window][seconds]=15552000`.'
91569+
- description: Only return metrics that have been queried or not queried in
91570+
the specified window. Dependent on being sent with `filter[queried]`.
9159191571
example: 15552000
9159291572
in: query
9159391573
name: filter[queried][window][seconds]
9159491574
required: false
9159591575
schema:
91576+
default: 2592000
9159691577
format: int64
9159791578
maximum: 15552000
91598-
minimum: 0
91579+
minimum: 1
9159991580
type: integer
91600-
- description: 'Filter metrics that have been submitted with the given tags.
91601-
Supports boolean and wildcard expressions.
91602-
91603-
Can only be combined with the filter[queried] filter.'
91604-
example: env IN (staging,test) AND service:web
91581+
- description: Only return metrics that were submitted with tags matching this
91582+
expression. You can use AND, OR, IN, and wildcards (for example, service:web*).
91583+
example: env IN (staging,test) AND service:web*
9160591584
in: query
9160691585
name: filter[tags]
9160791586
required: false
9160891587
schema:
9160991588
type: string
91610-
- description: (Preview) Filter metrics that are used in dashboards, monitors,
91611-
notebooks, SLOs.
91589+
- description: Only return metrics that are used in at least one dashboard,
91590+
monitor, notebook, or SLO.
9161291591
example: true
9161391592
in: query
9161491593
name: filter[related_assets]
9161591594
required: false
9161691595
schema:
9161791596
type: boolean
91618-
- description: 'The number of seconds of look back (from now) to apply to a
91619-
filter[tag] query.
91620-
91621-
Default value is 3600 (1 hour), maximum value is 5,184,000 (60 days).'
91597+
- description: Only return metrics that have been actively reporting in the
91598+
specified window.
9162291599
example: 3600
9162391600
in: query
9162491601
name: window[seconds]
9162591602
required: false
9162691603
schema:
91604+
default: 3600
9162791605
format: int64
91606+
maximum: 2592000
91607+
minimum: 1
9162891608
type: integer
91629-
- description: Maximum number of results returned.
91609+
- description: Maximum number of results per page. Use with `page[cursor]` for
91610+
pagination.
9163091611
in: query
9163191612
name: page[size]
9163291613
required: false
@@ -91636,12 +91617,9 @@ paths:
9163691617
maximum: 10000
9163791618
minimum: 1
9163891619
type: integer
91639-
- description: 'String to query the next page of results.
91640-
91641-
This key is provided with each valid response from the API in `meta.pagination.next_cursor`.
91642-
91643-
Once the `meta.pagination.next_cursor` key is null, all pages have been
91644-
retrieved.'
91620+
- description: Cursor for pagination. Use `page[size]` to opt-in to pagination
91621+
and get the first page; for subsequent pages, use the value from `meta.pagination.next_cursor`
91622+
in the response. Pagination is complete when `next_cursor` is null.
9164591623
in: query
9164691624
name: page[cursor]
9164791625
required: false

src/main/java/com/datadog/api/client/v2/api/MetricsApi.java

Lines changed: 28 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1606,7 +1606,8 @@ public static class ListTagConfigurationsOptionalParameters {
16061606
/**
16071607
* Set filterConfigured.
16081608
*
1609-
* @param filterConfigured Filter custom metrics that have configured tags. (optional)
1609+
* @param filterConfigured Only return custom metrics that have been configured with Metrics
1610+
* Without Limits. (optional)
16101611
* @return ListTagConfigurationsOptionalParameters
16111612
*/
16121613
public ListTagConfigurationsOptionalParameters filterConfigured(Boolean filterConfigured) {
@@ -1617,7 +1618,8 @@ public ListTagConfigurationsOptionalParameters filterConfigured(Boolean filterCo
16171618
/**
16181619
* Set filterTagsConfigured.
16191620
*
1620-
* @param filterTagsConfigured Filter tag configurations by configured tags. (optional)
1621+
* @param filterTagsConfigured Only return metrics that have the given tag key(s) in their
1622+
* Metrics Without Limits configuration (included or excluded). (optional)
16211623
* @return ListTagConfigurationsOptionalParameters
16221624
*/
16231625
public ListTagConfigurationsOptionalParameters filterTagsConfigured(
@@ -1629,7 +1631,8 @@ public ListTagConfigurationsOptionalParameters filterTagsConfigured(
16291631
/**
16301632
* Set filterMetricType.
16311633
*
1632-
* @param filterMetricType Filter metrics by metric type. (optional, default to "distribution")
1634+
* @param filterMetricType Only return metrics of the given metric type. (optional, default to
1635+
* "distribution")
16331636
* @return ListTagConfigurationsOptionalParameters
16341637
*/
16351638
public ListTagConfigurationsOptionalParameters filterMetricType(
@@ -1641,8 +1644,8 @@ public ListTagConfigurationsOptionalParameters filterMetricType(
16411644
/**
16421645
* Set filterIncludePercentiles.
16431646
*
1644-
* @param filterIncludePercentiles Filter distributions with additional percentile aggregations
1645-
* enabled or disabled. (optional)
1647+
* @param filterIncludePercentiles Only return distribution metrics that have percentile
1648+
* aggregations enabled (true) or disabled (false). (optional)
16461649
* @return ListTagConfigurationsOptionalParameters
16471650
*/
16481651
public ListTagConfigurationsOptionalParameters filterIncludePercentiles(
@@ -1654,9 +1657,9 @@ public ListTagConfigurationsOptionalParameters filterIncludePercentiles(
16541657
/**
16551658
* Set filterQueried.
16561659
*
1657-
* @param filterQueried (Preview) Filter custom metrics that have or have not been queried in
1658-
* the specified window[seconds]. If no window is provided or the window is less than 2
1659-
* hours, a default of 2 hours will be applied. (optional)
1660+
* @param filterQueried Only return metrics that have been queried (true) or not queried (false)
1661+
* in the look back window. Set the window with <code>filter[queried][window][seconds]
1662+
* </code>; if omitted, a default window is used. (optional)
16601663
* @return ListTagConfigurationsOptionalParameters
16611664
*/
16621665
public ListTagConfigurationsOptionalParameters filterQueried(Boolean filterQueried) {
@@ -1667,14 +1670,9 @@ public ListTagConfigurationsOptionalParameters filterQueried(Boolean filterQueri
16671670
/**
16681671
* Set filterQueriedWindowSeconds.
16691672
*
1670-
* @param filterQueriedWindowSeconds The number of seconds of look back (from now) used by the
1671-
* <code>filter[queried]</code> filter logic. Must be sent with <code>filter[queried]</code>
1672-
* and is only applied when <code>filter[queried]=true</code>. If <code>
1673-
* filter[queried]=false</code>, this parameter is ignored and default queried-window
1674-
* behavior applies. If <code>filter[queried]</code> is not provided, sending this parameter
1675-
* returns a 400. For example: <code>
1676-
* GET /api/v2/metrics?filter[queried]=true&amp;filter[queried][window][seconds]=15552000
1677-
* </code>. (optional)
1673+
* @param filterQueriedWindowSeconds Only return metrics that have been queried or not queried
1674+
* in the specified window. Dependent on being sent with <code>filter[queried]</code>.
1675+
* (optional, default to 2592000)
16781676
* @return ListTagConfigurationsOptionalParameters
16791677
*/
16801678
public ListTagConfigurationsOptionalParameters filterQueriedWindowSeconds(
@@ -1686,9 +1684,8 @@ public ListTagConfigurationsOptionalParameters filterQueriedWindowSeconds(
16861684
/**
16871685
* Set filterTags.
16881686
*
1689-
* @param filterTags Filter metrics that have been submitted with the given tags. Supports
1690-
* boolean and wildcard expressions. Can only be combined with the filter[queried] filter.
1691-
* (optional)
1687+
* @param filterTags Only return metrics that were submitted with tags matching this expression.
1688+
* You can use AND, OR, IN, and wildcards (for example, service:web*). (optional)
16921689
* @return ListTagConfigurationsOptionalParameters
16931690
*/
16941691
public ListTagConfigurationsOptionalParameters filterTags(String filterTags) {
@@ -1699,8 +1696,8 @@ public ListTagConfigurationsOptionalParameters filterTags(String filterTags) {
16991696
/**
17001697
* Set filterRelatedAssets.
17011698
*
1702-
* @param filterRelatedAssets (Preview) Filter metrics that are used in dashboards, monitors,
1703-
* notebooks, SLOs. (optional)
1699+
* @param filterRelatedAssets Only return metrics that are used in at least one dashboard,
1700+
* monitor, notebook, or SLO. (optional)
17041701
* @return ListTagConfigurationsOptionalParameters
17051702
*/
17061703
public ListTagConfigurationsOptionalParameters filterRelatedAssets(
@@ -1712,8 +1709,8 @@ public ListTagConfigurationsOptionalParameters filterRelatedAssets(
17121709
/**
17131710
* Set windowSeconds.
17141711
*
1715-
* @param windowSeconds The number of seconds of look back (from now) to apply to a filter[tag]
1716-
* query. Default value is 3600 (1 hour), maximum value is 5,184,000 (60 days). (optional)
1712+
* @param windowSeconds Only return metrics that have been actively reporting in the specified
1713+
* window. (optional, default to 3600)
17171714
* @return ListTagConfigurationsOptionalParameters
17181715
*/
17191716
public ListTagConfigurationsOptionalParameters windowSeconds(Long windowSeconds) {
@@ -1724,7 +1721,8 @@ public ListTagConfigurationsOptionalParameters windowSeconds(Long windowSeconds)
17241721
/**
17251722
* Set pageSize.
17261723
*
1727-
* @param pageSize Maximum number of results returned. (optional, default to 10000)
1724+
* @param pageSize Maximum number of results per page. Use with <code>page[cursor]</code> for
1725+
* pagination. (optional, default to 10000)
17281726
* @return ListTagConfigurationsOptionalParameters
17291727
*/
17301728
public ListTagConfigurationsOptionalParameters pageSize(Integer pageSize) {
@@ -1735,9 +1733,10 @@ public ListTagConfigurationsOptionalParameters pageSize(Integer pageSize) {
17351733
/**
17361734
* Set pageCursor.
17371735
*
1738-
* @param pageCursor String to query the next page of results. This key is provided with each
1739-
* valid response from the API in <code>meta.pagination.next_cursor</code>. Once the <code>
1740-
* meta.pagination.next_cursor</code> key is null, all pages have been retrieved. (optional)
1736+
* @param pageCursor Cursor for pagination. Use <code>page[size]</code> to opt-in to pagination
1737+
* and get the first page; for subsequent pages, use the value from <code>
1738+
* meta.pagination.next_cursor</code> in the response. Pagination is complete when <code>
1739+
* next_cursor</code> is null. (optional)
17411740
* @return ListTagConfigurationsOptionalParameters
17421741
*/
17431742
public ListTagConfigurationsOptionalParameters pageCursor(String pageCursor) {
@@ -1860,13 +1859,8 @@ public PaginationIterable<MetricsAndMetricTagConfigurations> listTagConfiguratio
18601859
}
18611860

18621861
/**
1863-
* Returns all metrics for your organization that match the given filter parameters. Optionally,
1864-
* paginate by using the <code>page[cursor]</code> and/or <code>page[size]</code> query
1865-
* parameters. To fetch the first page, pass in a query parameter with either a valid <code>
1866-
* page[size]</code> or an empty cursor like <code>page[cursor]=</code>. To fetch the next page,
1867-
* pass in the <code>next_cursor</code> value from the response as the new <code>page[cursor]
1868-
* </code> value. Once the <code>meta.pagination.next_cursor</code> value is null, all pages have
1869-
* been retrieved.
1862+
* Get a list of actively reporting metrics for your organization. Pagination is optional using
1863+
* the <code>page[cursor]</code> and <code>page[size]</code> query parameters.
18701864
*
18711865
* @param parameters Optional parameters for the request.
18721866
* @return ApiResponse&lt;MetricsAndMetricTagConfigurationsResponse&gt;

0 commit comments

Comments
 (0)