@@ -11082,6 +11082,136 @@ components:
11082
11082
$ref: '#/components/schemas/MetricAllTags'
11083
11083
readOnly: true
11084
11084
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
11085
11215
MetricBulkConfigureTagsType:
11086
11216
default: metric_bulk_configure_tags
11087
11217
description: The metric bulk configure tags resource.
@@ -11323,6 +11453,44 @@ components:
11323
11453
- MAX
11324
11454
- MIN
11325
11455
- 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
11326
11494
MetricDistinctVolume:
11327
11495
description: Object for a single metric's distinct volume.
11328
11496
properties:
@@ -11463,10 +11631,60 @@ components:
11463
11631
origin:
11464
11632
$ref: '#/components/schemas/MetricOrigin'
11465
11633
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
11466
11659
MetricName:
11467
11660
description: The metric name for this resource.
11468
11661
example: test.metric.latency
11469
11662
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
11470
11688
MetricOrigin:
11471
11689
description: Metric origin information.
11472
11690
properties:
@@ -11540,6 +11758,31 @@ components:
11540
11758
description: The type of the resource.
11541
11759
type: string
11542
11760
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
11543
11786
MetricSeries:
11544
11787
description: 'A metric to submit to Datadog.
11545
11788
@@ -28087,6 +28330,51 @@ paths:
28087
28330
summary: List tags by metric name
28088
28331
tags:
28089
28332
- 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
28090
28378
/api/v2/metrics/{metric_name}/estimate:
28091
28379
get:
28092
28380
description: Returns the estimated cardinality for a metric with a given tag,
@@ -28180,19 +28468,6 @@ paths:
28180
28468
summary: Tag Configuration Cardinality Estimator
28181
28469
tags:
28182
28470
- 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: []
28196
28471
/api/v2/metrics/{metric_name}/tags:
28197
28472
delete:
28198
28473
description: 'Deletes a metric''s tag configuration. Can only be used with application
0 commit comments