@@ -14994,18 +14994,21 @@ components:
14994
14994
- $ref: '#/components/schemas/ServiceDefinitionV1'
14995
14995
- $ref: '#/components/schemas/ServiceDefinitionV2'
14996
14996
- $ref: '#/components/schemas/ServiceDefinitionV2Dot1'
14997
+ - $ref: '#/components/schemas/ServiceDefinitionV2Dot2'
14997
14998
type: object
14998
14999
ServiceDefinitionSchemaVersions:
14999
15000
description: Schema versions
15000
15001
enum:
15001
15002
- v1
15002
15003
- v2
15003
15004
- v2.1
15005
+ - v2.2
15004
15006
type: string
15005
15007
x-enum-varnames:
15006
15008
- V1
15007
15009
- V2
15008
15010
- V2_1
15011
+ - V2_2
15009
15012
ServiceDefinitionV1:
15010
15013
deprecated: true
15011
15014
description: Deprecated - Service definition V1 for providing additional service
@@ -15466,6 +15469,181 @@ components:
15466
15469
type: string
15467
15470
x-enum-varnames:
15468
15471
- V2_1
15472
+ ServiceDefinitionV2Dot2:
15473
+ description: Service definition v2.2 for providing service metadata and integrations.
15474
+ properties:
15475
+ application:
15476
+ description: Identifier for a group of related services serving a product
15477
+ feature, which the service is a part of.
15478
+ example: my-app
15479
+ type: string
15480
+ contacts:
15481
+ description: A list of contacts related to the services.
15482
+ items:
15483
+ $ref: '#/components/schemas/ServiceDefinitionV2Dot2Contact'
15484
+ type: array
15485
+ dd-service:
15486
+ description: Unique identifier of the service. Must be unique across all
15487
+ services and is used to match with a service in Datadog.
15488
+ example: my-service
15489
+ type: string
15490
+ description:
15491
+ description: A short description of the service.
15492
+ example: My service description
15493
+ type: string
15494
+ extensions:
15495
+ additionalProperties: {}
15496
+ description: Extensions to v2.2 schema.
15497
+ example:
15498
+ myorg/extension: extensionValue
15499
+ type: object
15500
+ integrations:
15501
+ $ref: '#/components/schemas/ServiceDefinitionV2Dot2Integrations'
15502
+ langauges:
15503
+ description: 'The service''s programming language. Datadog recognizes the
15504
+ following languages: `dotnet`, `go`, `java`, `js`, `php`, `python`, `ruby`,
15505
+ and `c++`.'
15506
+ example:
15507
+ - dotnet
15508
+ - go
15509
+ - java
15510
+ - js
15511
+ - php
15512
+ - python
15513
+ - ruby
15514
+ - c++
15515
+ items:
15516
+ type: string
15517
+ type: array
15518
+ lifecycle:
15519
+ description: The current life cycle phase of the service.
15520
+ example: sandbox
15521
+ type: string
15522
+ links:
15523
+ description: A list of links related to the services.
15524
+ items:
15525
+ $ref: '#/components/schemas/ServiceDefinitionV2Dot2Link'
15526
+ type: array
15527
+ schema-version:
15528
+ $ref: '#/components/schemas/ServiceDefinitionV2Dot2Version'
15529
+ service-type:
15530
+ description: 'The type of service. Datadog recognizes the following service
15531
+ types: `database`, `cache`, `function`, `web`, `browser`, and `mobile`.'
15532
+ example: web
15533
+ type: string
15534
+ tags:
15535
+ description: A set of custom tags.
15536
+ example:
15537
+ - my:tag
15538
+ - service:tag
15539
+ items:
15540
+ type: string
15541
+ type: array
15542
+ team:
15543
+ description: Team that owns the service. It is used to locate a team defined
15544
+ in Datadog Teams if it exists.
15545
+ example: my-team
15546
+ type: string
15547
+ tier:
15548
+ description: Importance of the service.
15549
+ example: High
15550
+ type: string
15551
+ required:
15552
+ - schema-version
15553
+ - dd-service
15554
+ type: object
15555
+ ServiceDefinitionV2Dot2Contact:
15556
+ description: Service owner's contacts information.
15557
+ properties:
15558
+ contact:
15559
+ description: Contact value.
15560
+ example: https://teams.microsoft.com/myteam
15561
+ type: string
15562
+ name:
15563
+ description: Contact Name.
15564
+ example: My team channel
15565
+ type: string
15566
+ type:
15567
+ description: 'Contact type. Datadog recognizes the following types: `email`,
15568
+ `slack`, and `microsoft-teams`.'
15569
+ example: slack
15570
+ type: string
15571
+ required:
15572
+ - type
15573
+ - contact
15574
+ type: object
15575
+ ServiceDefinitionV2Dot2Integrations:
15576
+ description: Third party integrations that Datadog supports.
15577
+ properties:
15578
+ opsgenie:
15579
+ $ref: '#/components/schemas/ServiceDefinitionV2Dot2Opsgenie'
15580
+ pagerduty:
15581
+ $ref: '#/components/schemas/ServiceDefinitionV2Dot2Pagerduty'
15582
+ type: object
15583
+ ServiceDefinitionV2Dot2Link:
15584
+ description: Service's external links.
15585
+ properties:
15586
+ name:
15587
+ description: Link name.
15588
+ example: Runbook
15589
+ type: string
15590
+ provider:
15591
+ description: Link provider.
15592
+ example: Github
15593
+ type: string
15594
+ type:
15595
+ description: 'Link type. Datadog recognizes the following types: `runbook`,
15596
+ `doc`, `repo`, `dashboard`, and `other`.'
15597
+ example: runbook
15598
+ type: string
15599
+ url:
15600
+ description: Link URL.
15601
+ example: https://my-runbook
15602
+ type: string
15603
+ required:
15604
+ - name
15605
+ - type
15606
+ - url
15607
+ type: object
15608
+ ServiceDefinitionV2Dot2Opsgenie:
15609
+ description: Opsgenie integration for the service.
15610
+ properties:
15611
+ region:
15612
+ $ref: '#/components/schemas/ServiceDefinitionV2Dot2OpsgenieRegion'
15613
+ service-url:
15614
+ description: Opsgenie service url.
15615
+ example: https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000
15616
+ type: string
15617
+ required:
15618
+ - service-url
15619
+ type: object
15620
+ ServiceDefinitionV2Dot2OpsgenieRegion:
15621
+ description: Opsgenie instance region.
15622
+ enum:
15623
+ - US
15624
+ - EU
15625
+ example: US
15626
+ type: string
15627
+ x-enum-varnames:
15628
+ - US
15629
+ - EU
15630
+ ServiceDefinitionV2Dot2Pagerduty:
15631
+ description: PagerDuty integration for the service.
15632
+ properties:
15633
+ service-url:
15634
+ description: PagerDuty service url.
15635
+ example: https://my-org.pagerduty.com/service-directory/PMyService
15636
+ type: string
15637
+ type: object
15638
+ ServiceDefinitionV2Dot2Version:
15639
+ default: v2.2
15640
+ description: Schema version being used.
15641
+ enum:
15642
+ - v2.2
15643
+ example: v2.2
15644
+ type: string
15645
+ x-enum-varnames:
15646
+ - V2_2
15469
15647
ServiceDefinitionV2Email:
15470
15648
description: Service owner's email.
15471
15649
properties:
@@ -15649,6 +15827,7 @@ components:
15649
15827
ServiceDefinitionsCreateRequest:
15650
15828
description: Create service definitions request.
15651
15829
oneOf:
15830
+ - $ref: '#/components/schemas/ServiceDefinitionV2Dot2'
15652
15831
- $ref: '#/components/schemas/ServiceDefinitionV2Dot1'
15653
15832
- $ref: '#/components/schemas/ServiceDefinitionV2'
15654
15833
- $ref: '#/components/schemas/ServiceDefinitionRaw'
0 commit comments