Skip to content

Commit e785002

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit bb5305bc of spec repo
1 parent 949d7f3 commit e785002

32 files changed

+1697
-17
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2024-02-28 21:36:44.614979",
8-
"spec_repo_commit": "f478a381"
7+
"regenerated": "2024-02-29 14:49:25.092326",
8+
"spec_repo_commit": "bb5305bc"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-02-28 21:36:44.629759",
13-
"spec_repo_commit": "f478a381"
12+
"regenerated": "2024-02-29 14:49:25.138459",
13+
"spec_repo_commit": "bb5305bc"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 288 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11082,6 +11082,136 @@ components:
1108211082
$ref: '#/components/schemas/MetricAllTags'
1108311083
readOnly: true
1108411084
type: object
11085+
MetricAssetAttributes:
11086+
description: Assets where only included attribute is its title
11087+
properties:
11088+
title:
11089+
description: Title of the asset.
11090+
type: string
11091+
type: object
11092+
MetricAssetDashboardRelationship:
11093+
description: An object of type `dashboard` that can be referenced in the `included`
11094+
data.
11095+
properties:
11096+
id:
11097+
$ref: '#/components/schemas/MetricDashboardID'
11098+
type:
11099+
$ref: '#/components/schemas/MetricDashboardType'
11100+
type: object
11101+
MetricAssetDashboardRelationships:
11102+
description: An object containing the list of dashboards that can be referenced
11103+
in the `included` data.
11104+
properties:
11105+
data:
11106+
description: A list of dashboards that can be referenced in the `included`
11107+
data.
11108+
items:
11109+
$ref: '#/components/schemas/MetricAssetDashboardRelationship'
11110+
type: array
11111+
type: object
11112+
MetricAssetMonitorRelationship:
11113+
description: An object of type `monitor` that can be referenced in the `included`
11114+
data.
11115+
properties:
11116+
id:
11117+
$ref: '#/components/schemas/MetricMonitorID'
11118+
type:
11119+
$ref: '#/components/schemas/MetricMonitorType'
11120+
type: object
11121+
MetricAssetMonitorRelationships:
11122+
description: A object containing the list of monitors that can be referenced
11123+
in the `included` data.
11124+
properties:
11125+
data:
11126+
description: A list of monitors that can be referenced in the `included`
11127+
data.
11128+
items:
11129+
$ref: '#/components/schemas/MetricAssetMonitorRelationship'
11130+
type: array
11131+
type: object
11132+
MetricAssetNotebookRelationship:
11133+
description: An object of type `notebook` that can be referenced in the `included`
11134+
data.
11135+
properties:
11136+
id:
11137+
$ref: '#/components/schemas/MetricNotebookID'
11138+
type:
11139+
$ref: '#/components/schemas/MetricNotebookType'
11140+
type: object
11141+
MetricAssetNotebookRelationships:
11142+
description: An object containing the list of notebooks that can be referenced
11143+
in the `included` data.
11144+
properties:
11145+
data:
11146+
description: A list of notebooks that can be referenced in the `included`
11147+
data.
11148+
items:
11149+
$ref: '#/components/schemas/MetricAssetNotebookRelationship'
11150+
type: array
11151+
type: object
11152+
MetricAssetResponseData:
11153+
description: Metric assets response data.
11154+
properties:
11155+
id:
11156+
$ref: '#/components/schemas/MetricName'
11157+
relationships:
11158+
$ref: '#/components/schemas/MetricAssetResponseRelationships'
11159+
type:
11160+
$ref: '#/components/schemas/MetricType'
11161+
required:
11162+
- id
11163+
- type
11164+
type: object
11165+
MetricAssetResponseIncluded:
11166+
description: List of included assets with full set of attributes.
11167+
oneOf:
11168+
- $ref: '#/components/schemas/MetricDashboardAsset'
11169+
- $ref: '#/components/schemas/MetricMonitorAsset'
11170+
- $ref: '#/components/schemas/MetricNotebookAsset'
11171+
- $ref: '#/components/schemas/MetricSLOAsset'
11172+
MetricAssetResponseRelationships:
11173+
description: Relationships to assets related to the metric.
11174+
properties:
11175+
dashboards:
11176+
$ref: '#/components/schemas/MetricAssetDashboardRelationships'
11177+
monitors:
11178+
$ref: '#/components/schemas/MetricAssetMonitorRelationships'
11179+
notebooks:
11180+
$ref: '#/components/schemas/MetricAssetNotebookRelationships'
11181+
slos:
11182+
$ref: '#/components/schemas/MetricAssetSLORelationships'
11183+
type: object
11184+
MetricAssetSLORelationship:
11185+
description: An object of type `slos` that can be referenced in the `included`
11186+
data.
11187+
properties:
11188+
id:
11189+
$ref: '#/components/schemas/MetricSLOID'
11190+
type:
11191+
$ref: '#/components/schemas/MetricSLOType'
11192+
type: object
11193+
MetricAssetSLORelationships:
11194+
description: An object containing a list of SLOs that can be referenced in the
11195+
`included` data.
11196+
properties:
11197+
data:
11198+
description: A list of SLOs that can be referenced in the `included` data.
11199+
items:
11200+
$ref: '#/components/schemas/MetricAssetSLORelationship'
11201+
type: array
11202+
type: object
11203+
MetricAssetsResponse:
11204+
description: Response object that includes related dashboards, monitors, notebooks,
11205+
and SLOs.
11206+
properties:
11207+
data:
11208+
$ref: '#/components/schemas/MetricAssetResponseData'
11209+
included:
11210+
description: Array of objects related to the metric assets.
11211+
items:
11212+
$ref: '#/components/schemas/MetricAssetResponseIncluded'
11213+
type: array
11214+
type: object
1108511215
MetricBulkConfigureTagsType:
1108611216
default: metric_bulk_configure_tags
1108711217
description: The metric bulk configure tags resource.
@@ -11323,6 +11453,44 @@ components:
1132311453
- MAX
1132411454
- MIN
1132511455
- SUM
11456+
MetricDashboardAsset:
11457+
description: A dashboard object with title and popularity.
11458+
properties:
11459+
attributes:
11460+
$ref: '#/components/schemas/MetricDashboardAttributes'
11461+
id:
11462+
$ref: '#/components/schemas/MetricDashboardID'
11463+
type:
11464+
$ref: '#/components/schemas/MetricDashboardType'
11465+
required:
11466+
- id
11467+
- type
11468+
type: object
11469+
MetricDashboardAttributes:
11470+
description: Attributes related to the dashboard, including title and popularity.
11471+
properties:
11472+
popularity:
11473+
description: Value from 0 to 5 that ranks popularity of the dashboard.
11474+
format: double
11475+
maximum: 5
11476+
minimum: 0
11477+
type: number
11478+
title:
11479+
description: Title of the asset.
11480+
type: string
11481+
type: object
11482+
MetricDashboardID:
11483+
description: The related dashboard's ID.
11484+
example: xxx-yyy-zzz
11485+
type: string
11486+
MetricDashboardType:
11487+
description: Dashboard resource type.
11488+
enum:
11489+
- dashboards
11490+
example: dashboards
11491+
type: string
11492+
x-enum-varnames:
11493+
- DASHBOARDS
1132611494
MetricDistinctVolume:
1132711495
description: Object for a single metric's distinct volume.
1132811496
properties:
@@ -11463,10 +11631,60 @@ components:
1146311631
origin:
1146411632
$ref: '#/components/schemas/MetricOrigin'
1146511633
type: object
11634+
MetricMonitorAsset:
11635+
description: A monitor object with title.
11636+
properties:
11637+
attributes:
11638+
$ref: '#/components/schemas/MetricAssetAttributes'
11639+
id:
11640+
$ref: '#/components/schemas/MetricMonitorID'
11641+
type:
11642+
$ref: '#/components/schemas/MetricMonitorType'
11643+
required:
11644+
- id
11645+
- type
11646+
type: object
11647+
MetricMonitorID:
11648+
description: The related monitor's ID.
11649+
example: '1775073'
11650+
type: string
11651+
MetricMonitorType:
11652+
description: Monitor resource type.
11653+
enum:
11654+
- monitors
11655+
example: monitors
11656+
type: string
11657+
x-enum-varnames:
11658+
- MONITORS
1146611659
MetricName:
1146711660
description: The metric name for this resource.
1146811661
example: test.metric.latency
1146911662
type: string
11663+
MetricNotebookAsset:
11664+
description: A notebook object with title.
11665+
properties:
11666+
attributes:
11667+
$ref: '#/components/schemas/MetricAssetAttributes'
11668+
id:
11669+
$ref: '#/components/schemas/MetricNotebookID'
11670+
type:
11671+
$ref: '#/components/schemas/MetricNotebookType'
11672+
required:
11673+
- id
11674+
- type
11675+
type: object
11676+
MetricNotebookID:
11677+
description: The related notebook's ID.
11678+
example: '12345'
11679+
type: string
11680+
MetricNotebookType:
11681+
description: Notebook resource type.
11682+
enum:
11683+
- notebooks
11684+
example: notebooks
11685+
type: string
11686+
x-enum-varnames:
11687+
- NOTEBOOKS
1147011688
MetricOrigin:
1147111689
description: Metric origin information.
1147211690
properties:
@@ -11540,6 +11758,31 @@ components:
1154011758
description: The type of the resource.
1154111759
type: string
1154211760
type: object
11761+
MetricSLOAsset:
11762+
description: A SLO object with title.
11763+
properties:
11764+
attributes:
11765+
$ref: '#/components/schemas/MetricAssetAttributes'
11766+
id:
11767+
$ref: '#/components/schemas/MetricSLOID'
11768+
type:
11769+
$ref: '#/components/schemas/MetricSLOType'
11770+
required:
11771+
- id
11772+
- type
11773+
type: object
11774+
MetricSLOID:
11775+
description: The SLO ID.
11776+
example: 9ffef113b389520db54391d67d652dfb
11777+
type: string
11778+
MetricSLOType:
11779+
description: SLO resource type.
11780+
enum:
11781+
- slos
11782+
example: slos
11783+
type: string
11784+
x-enum-varnames:
11785+
- SLOS
1154311786
MetricSeries:
1154411787
description: 'A metric to submit to Datadog.
1154511788

@@ -28087,6 +28330,51 @@ paths:
2808728330
summary: List tags by metric name
2808828331
tags:
2808928332
- Metrics
28333+
/api/v2/metrics/{metric_name}/assets:
28334+
get:
28335+
description: Returns dashboards, monitors, notebooks, and SLOs that a metric
28336+
is stored in, if any. Updated every 24 hours.
28337+
operationId: ListMetricAssets
28338+
parameters:
28339+
- $ref: '#/components/parameters/MetricName'
28340+
responses:
28341+
'200':
28342+
content:
28343+
application/json:
28344+
schema:
28345+
$ref: '#/components/schemas/MetricAssetsResponse'
28346+
description: Success
28347+
'400':
28348+
content:
28349+
application/json:
28350+
schema:
28351+
$ref: '#/components/schemas/APIErrorResponse'
28352+
description: API error response.
28353+
'403':
28354+
content:
28355+
application/json:
28356+
schema:
28357+
$ref: '#/components/schemas/APIErrorResponse'
28358+
description: API error response.
28359+
'404':
28360+
content:
28361+
application/json:
28362+
schema:
28363+
$ref: '#/components/schemas/APIErrorResponse'
28364+
description: API error response.
28365+
'429':
28366+
content:
28367+
application/json:
28368+
schema:
28369+
$ref: '#/components/schemas/APIErrorResponse'
28370+
description: Too Many Requests
28371+
security:
28372+
- apiKeyAuth: []
28373+
appKeyAuth: []
28374+
- AuthZ: []
28375+
summary: Related Assets to a Metric
28376+
tags:
28377+
- Metrics
2809028378
/api/v2/metrics/{metric_name}/estimate:
2809128379
get:
2809228380
description: Returns the estimated cardinality for a metric with a given tag,
@@ -28180,19 +28468,6 @@ paths:
2818028468
summary: Tag Configuration Cardinality Estimator
2818128469
tags:
2818228470
- Metrics
28183-
x-dd-ownership:
28184-
notification_configuration:
28185-
manual_escalation_policy: '[Points Aggregation] Primary'
28186-
prod_high_urgency: '@pagerduty-Points-Aggregation @slack-points-aggr-ops'
28187-
prod_low_urgency: '@slack-points-aggr-ops'
28188-
slack_support_channel: '#points-aggregation'
28189-
staging_high_urgency: '@slack-points-aggr-stg-ops'
28190-
staging_low_urgency: '@slack-points-aggr-stg-ops'
28191-
team: points-aggregation
28192-
team_escalation: '[Points Aggregation] Primary'
28193-
x-permission:
28194-
operator: OPEN
28195-
permissions: []
2819628471
/api/v2/metrics/{metric_name}/tags:
2819728472
delete:
2819828473
description: 'Deletes a metric''s tag configuration. Can only be used with application

0 commit comments

Comments
 (0)