@@ -12101,6 +12101,7 @@ components:
12101
12101
oneOf:
12102
12102
- $ref: '#/components/schemas/ServiceDefinitionV1'
12103
12103
- $ref: '#/components/schemas/ServiceDefinitionV2'
12104
+ - $ref: '#/components/schemas/ServiceDefinitionV2Dot1'
12104
12105
type: object
12105
12106
ServiceDefinitionV1:
12106
12107
deprecated: true
@@ -12331,6 +12332,209 @@ components:
12331
12332
- name
12332
12333
- url
12333
12334
type: object
12335
+ ServiceDefinitionV2Dot1:
12336
+ description: Service definition v2.1 for providing service metadata and integrations.
12337
+ properties:
12338
+ application:
12339
+ description: Identifier for a group of related services serving a product
12340
+ feature, which the service is a part of.
12341
+ example: my-app
12342
+ type: string
12343
+ contacts:
12344
+ description: A list of contacts related to the services.
12345
+ items:
12346
+ $ref: '#/components/schemas/ServiceDefinitionV2Dot1Contact'
12347
+ type: array
12348
+ dd-service:
12349
+ description: Unique identifier of the service. Must be unique across all
12350
+ services and is used to match with a service in Datadog.
12351
+ example: my-service
12352
+ type: string
12353
+ description:
12354
+ description: A short description of the service.
12355
+ example: My service description
12356
+ type: string
12357
+ extensions:
12358
+ additionalProperties: {}
12359
+ description: Extensions to v2.1 schema.
12360
+ example:
12361
+ myorg/extension: extensionValue
12362
+ type: object
12363
+ integrations:
12364
+ $ref: '#/components/schemas/ServiceDefinitionV2Dot1Integrations'
12365
+ lifecycle:
12366
+ description: The current life cycle phase of the service.
12367
+ example: sandbox
12368
+ type: string
12369
+ links:
12370
+ description: A list of links related to the services.
12371
+ items:
12372
+ $ref: '#/components/schemas/ServiceDefinitionV2Dot1Link'
12373
+ type: array
12374
+ schema-version:
12375
+ $ref: '#/components/schemas/ServiceDefinitionV2Dot1Version'
12376
+ tags:
12377
+ description: A set of custom tags.
12378
+ example:
12379
+ - my:tag
12380
+ - service:tag
12381
+ items:
12382
+ type: string
12383
+ type: array
12384
+ team:
12385
+ description: Team that owns the service. It is used to locate a team defined
12386
+ in Datadog Teams if it exists.
12387
+ example: my-team
12388
+ type: string
12389
+ tier:
12390
+ description: Importance of the service.
12391
+ example: High
12392
+ type: string
12393
+ required:
12394
+ - schema-version
12395
+ - dd-service
12396
+ type: object
12397
+ ServiceDefinitionV2Dot1Contact:
12398
+ description: Service owner's contacts information.
12399
+ oneOf:
12400
+ - $ref: '#/components/schemas/ServiceDefinitionV2Dot1Email'
12401
+ - $ref: '#/components/schemas/ServiceDefinitionV2Dot1Slack'
12402
+ ServiceDefinitionV2Dot1Email:
12403
+ description: Service owner's email.
12404
+ properties:
12405
+ contact:
12406
+ description: Contact value.
12407
+
12408
+ format: email
12409
+ type: string
12410
+ name:
12411
+ description: Contact email.
12412
+ example: Team Email
12413
+ type: string
12414
+ type:
12415
+ $ref: '#/components/schemas/ServiceDefinitionV2Dot1EmailType'
12416
+ required:
12417
+ - type
12418
+ - contact
12419
+ type: object
12420
+ ServiceDefinitionV2Dot1EmailType:
12421
+ description: Contact type.
12422
+ enum:
12423
+ - email
12424
+ example: email
12425
+ type: string
12426
+ x-enum-varnames:
12427
+ - EMAIL
12428
+ ServiceDefinitionV2Dot1Integrations:
12429
+ description: Third party integrations that Datadog supports.
12430
+ properties:
12431
+ opsgenie:
12432
+ $ref: '#/components/schemas/ServiceDefinitionV2Dot1Opsgenie'
12433
+ pagerduty:
12434
+ $ref: '#/components/schemas/ServiceDefinitionV2Dot1Pagerduty'
12435
+ type: object
12436
+ ServiceDefinitionV2Dot1Link:
12437
+ description: Service's external links.
12438
+ properties:
12439
+ name:
12440
+ description: Link name.
12441
+ example: Runbook
12442
+ type: string
12443
+ provider:
12444
+ description: Link provider.
12445
+ example: Github
12446
+ type: string
12447
+ type:
12448
+ $ref: '#/components/schemas/ServiceDefinitionV2Dot1LinkType'
12449
+ url:
12450
+ description: Link URL.
12451
+ example: https://my-runbook
12452
+ type: string
12453
+ required:
12454
+ - name
12455
+ - type
12456
+ - url
12457
+ type: object
12458
+ ServiceDefinitionV2Dot1LinkType:
12459
+ description: Link type.
12460
+ enum:
12461
+ - doc
12462
+ - repo
12463
+ - runbook
12464
+ - dashboard
12465
+ - other
12466
+ example: runbook
12467
+ type: string
12468
+ x-enum-varnames:
12469
+ - DOC
12470
+ - REPO
12471
+ - RUNBOOK
12472
+ - DASHBOARD
12473
+ - OTHER
12474
+ ServiceDefinitionV2Dot1Opsgenie:
12475
+ description: Opsgenie integration for the service.
12476
+ properties:
12477
+ region:
12478
+ $ref: '#/components/schemas/ServiceDefinitionV2Dot1OpsgenieRegion'
12479
+ service-url:
12480
+ description: Opsgenie service url.
12481
+ example: https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000
12482
+ type: string
12483
+ required:
12484
+ - service-url
12485
+ type: object
12486
+ ServiceDefinitionV2Dot1OpsgenieRegion:
12487
+ description: Opsgenie instance region.
12488
+ enum:
12489
+ - US
12490
+ - EU
12491
+ example: US
12492
+ type: string
12493
+ x-enum-varnames:
12494
+ - US
12495
+ - EU
12496
+ ServiceDefinitionV2Dot1Pagerduty:
12497
+ description: PagerDuty integration for the service.
12498
+ properties:
12499
+ service-url:
12500
+ description: PagerDuty service url.
12501
+ example: https://my-org.pagerduty.com/service-directory/PMyService
12502
+ type: string
12503
+ type: object
12504
+ ServiceDefinitionV2Dot1Slack:
12505
+ description: Service owner's Slack channel.
12506
+ properties:
12507
+ contact:
12508
+ description: Slack Channel.
12509
+ example: https://yourcompany.slack.com/archives/channel123
12510
+ type: string
12511
+ name:
12512
+ description: Contact Slack.
12513
+ example: Team Slack
12514
+ type: string
12515
+ type:
12516
+ $ref: '#/components/schemas/ServiceDefinitionV2Dot1SlackType'
12517
+ required:
12518
+ - type
12519
+ - contact
12520
+ type: object
12521
+ ServiceDefinitionV2Dot1SlackType:
12522
+ description: Contact type.
12523
+ enum:
12524
+ - slack
12525
+ example: slack
12526
+ type: string
12527
+ x-enum-varnames:
12528
+ - SLACK
12529
+ ServiceDefinitionV2Dot1Version:
12530
+ default: v2.1
12531
+ description: Schema version being used.
12532
+ enum:
12533
+ - v2.1
12534
+ example: v2.1
12535
+ type: string
12536
+ x-enum-varnames:
12537
+ - V2_1
12334
12538
ServiceDefinitionV2Email:
12335
12539
description: Service owner's email.
12336
12540
properties:
@@ -12489,6 +12693,7 @@ components:
12489
12693
ServiceDefinitionsCreateRequest:
12490
12694
description: Create service definitions request.
12491
12695
oneOf:
12696
+ - $ref: '#/components/schemas/ServiceDefinitionV2Dot1'
12492
12697
- $ref: '#/components/schemas/ServiceDefinitionV2'
12493
12698
- $ref: '#/components/schemas/ServiceDefinitionRaw'
12494
12699
ServiceDefinitionsListResponse:
0 commit comments