@@ -7255,6 +7255,12 @@ components:
72557255 Monitor:
72567256 description: Object describing a monitor.
72577257 properties:
7258+ assets:
7259+ description: The list of monitor assets tied to a monitor, which represents
7260+ key links for users to take action on monitor alerts (for example, runbooks).
7261+ items:
7262+ $ref: '#/components/schemas/MonitorAsset'
7263+ type: array
72587264 created:
72597265 description: Timestamp of the monitor creation.
72607266 format: date-time
@@ -7338,6 +7344,52 @@ components:
73387344 - type
73397345 - query
73407346 type: object
7347+ MonitorAsset:
7348+ description: 'Represents key links tied to a monitor to help users take action
7349+ on alerts.
7350+
7351+ This feature is in Preview and only available to users with the feature enabled.'
7352+ properties:
7353+ category:
7354+ $ref: '#/components/schemas/MonitorAssetCategory'
7355+ name:
7356+ description: Name for the monitor asset
7357+ example: Monitor Runbook
7358+ type: string
7359+ resource_key:
7360+ description: Represents the identifier of the internal Datadog resource
7361+ that this asset represents. IDs in this field should be passed in as strings.
7362+ example: '12345'
7363+ type: string
7364+ resource_type:
7365+ $ref: '#/components/schemas/MonitorAssetResourceType'
7366+ url:
7367+ description: URL link for the asset. For links with an internal resource
7368+ type set, this should be the relative path to where the Datadog domain
7369+ is appended internally. For external links, this should be the full URL
7370+ path.
7371+ example: /notebooks/12345
7372+ type: string
7373+ required:
7374+ - name
7375+ - url
7376+ - category
7377+ type: object
7378+ MonitorAssetCategory:
7379+ description: Indicates the type of asset this entity represents on a monitor.
7380+ enum:
7381+ - runbook
7382+ example: runbook
7383+ type: string
7384+ x-enum-varnames:
7385+ - RUNBOOK
7386+ MonitorAssetResourceType:
7387+ description: Type of internal Datadog resource associated with a monitor asset.
7388+ enum:
7389+ - notebook
7390+ type: string
7391+ x-enum-varnames:
7392+ - NOTEBOOK
73417393 MonitorDeviceID:
73427394 description: ID of the device the Synthetics monitor is running on. Same as
73437395 `SyntheticsDeviceID`.
@@ -8452,6 +8504,13 @@ components:
84528504 MonitorUpdateRequest:
84538505 description: Object describing a monitor update request.
84548506 properties:
8507+ assets:
8508+ description: The list of monitor assets tied to a monitor, which represents
8509+ key links for users to take action on monitor alerts (for example, runbooks).
8510+ items:
8511+ $ref: '#/components/schemas/MonitorAsset'
8512+ nullable: true
8513+ type: array
84558514 created:
84568515 description: Timestamp of the monitor creation.
84578516 format: date-time
@@ -31584,6 +31643,13 @@ paths:
3158431643 required: false
3158531644 schema:
3158631645 type: boolean
31646+ - description: If this argument is set to `true`, the returned data includes
31647+ all assets tied to this monitor.
31648+ in: query
31649+ name: with_assets
31650+ required: false
31651+ schema:
31652+ type: boolean
3158731653 responses:
3158831654 '200':
3158931655 content:
0 commit comments