Skip to content

Commit e6991fb

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 1f3268e7 of spec repo
1 parent b8d1a05 commit e6991fb

30 files changed

+1250
-59
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.4",
7-
"regenerated": "2023-03-28 08:41:46.039985",
8-
"spec_repo_commit": "21917b12"
7+
"regenerated": "2023-03-29 13:52:23.963801",
8+
"spec_repo_commit": "1f3268e7"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-03-28 08:41:46.052027",
13-
"spec_repo_commit": "21917b12"
12+
"regenerated": "2023-03-29 13:52:23.978283",
13+
"spec_repo_commit": "1f3268e7"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 205 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12101,6 +12101,7 @@ components:
1210112101
oneOf:
1210212102
- $ref: '#/components/schemas/ServiceDefinitionV1'
1210312103
- $ref: '#/components/schemas/ServiceDefinitionV2'
12104+
- $ref: '#/components/schemas/ServiceDefinitionV2Dot1'
1210412105
type: object
1210512106
ServiceDefinitionV1:
1210612107
deprecated: true
@@ -12331,6 +12332,209 @@ components:
1233112332
- name
1233212333
- url
1233312334
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+
example: contact@datadoghq.com
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
1233412538
ServiceDefinitionV2Email:
1233512539
description: Service owner's email.
1233612540
properties:
@@ -12489,6 +12693,7 @@ components:
1248912693
ServiceDefinitionsCreateRequest:
1249012694
description: Create service definitions request.
1249112695
oneOf:
12696+
- $ref: '#/components/schemas/ServiceDefinitionV2Dot1'
1249212697
- $ref: '#/components/schemas/ServiceDefinitionV2'
1249312698
- $ref: '#/components/schemas/ServiceDefinitionRaw'
1249412699
ServiceDefinitionsListResponse:
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2022-11-10T21:14:44.544Z"
1+
"2023-03-24T18:06:23.874Z"

cassettes/v2/Service-Definition_2211895093/Create-or-update-service-definition-returns-CREATED-response_4118101501/recording.har

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "b5aa6928e06a8df2c5c8ff06a6bdb3f1",
11+
"_id": "754cd889a8eb2e3f8542e52601a9df38",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 786,
15+
"bodySize": 777,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -32,17 +32,17 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"contacts\":[{\"contact\":\"contact@datadoghq.com\",\"name\":\"Team Email\",\"type\":\"email\"}],\"dd-service\":\"service-Test-Create_or_update_service_definition_returns_CREATED_response-1668114884\",\"dd-team\":\"my-team\",\"docs\":[{\"name\":\"Architecture\",\"provider\":\"google drive\",\"url\":\"https://gdrive/mydoc\"}],\"extensions\":{\"myorgextension\":\"extensionvalue\"},\"integrations\":{\"opsgenie\":{\"region\":\"US\",\"service-url\":\"https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000\"},\"pagerduty\":\"https://my-org.pagerduty.com/service-directory/PMyService\"},\"links\":[{\"name\":\"Runbook\",\"type\":\"runbook\",\"url\":\"https://my-runbook\"}],\"repos\":[{\"name\":\"Source Code\",\"provider\":\"GitHub\",\"url\":\"https://github.com/DataDog/schema\"}],\"schema-version\":\"v2\",\"tags\":[\"my:tag\",\"service:tag\"],\"team\":\"my-team\"}"
35+
"text": "{\"contacts\":[{\"contact\":\"contact@datadoghq.com\",\"name\":\"Team Email\",\"type\":\"email\"}],\"dd-service\":\"service-testcreateorupdateservicedefinitionreturnscreatedresponse1679681183\",\"dd-team\":\"my-team\",\"docs\":[{\"name\":\"Architecture\",\"provider\":\"google drive\",\"url\":\"https://gdrive/mydoc\"}],\"extensions\":{\"myorgextension\":\"extensionvalue\"},\"integrations\":{\"opsgenie\":{\"region\":\"US\",\"service-url\":\"https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000\"},\"pagerduty\":\"https://my-org.pagerduty.com/service-directory/PMyService\"},\"links\":[{\"name\":\"Runbook\",\"type\":\"runbook\",\"url\":\"https://my-runbook\"}],\"repos\":[{\"name\":\"Source Code\",\"provider\":\"GitHub\",\"url\":\"https://github.com/DataDog/schema\"}],\"schema-version\":\"v2\",\"tags\":[\"my:tag\",\"service:tag\"],\"team\":\"my-team\"}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/services/definitions"
3939
},
4040
"response": {
41-
"bodySize": 1005,
41+
"bodySize": 1035,
4242
"content": {
4343
"mimeType": "application/json",
44-
"size": 1005,
45-
"text": "{\"data\":[{\"type\":\"service-definition\",\"attributes\":{\"meta\":{\"last-modified-time\":\"2022-11-10T21:14:45.52228008Z\",\"github-html-url\":\"\",\"ingestion-source\":\"api\",\"warnings\":[],\"ingested-schema-version\":\"v2\"},\"schema\":{\"schema-version\":\"v2\",\"dd-service\":\"service-test-create_or_update_service_definition_returns_created_response-1668114884\",\"dd-team\":\"my-team\",\"team\":\"my-team\",\"contacts\":[{\"name\":\"Team Email\",\"type\":\"email\",\"contact\":\"contact@datadoghq.com\"}],\"links\":[{\"name\":\"Runbook\",\"type\":\"runbook\",\"url\":\"https://my-runbook\"}],\"repos\":[{\"name\":\"Source Code\",\"provider\":\"GitHub\",\"url\":\"https://github.com/DataDog/schema\"}],\"docs\":[{\"name\":\"Architecture\",\"provider\":\"google drive\",\"url\":\"https://gdrive/mydoc\"}],\"tags\":[\"my:tag\",\"service:tag\"],\"integrations\":{\"pagerduty\":\"https://my-org.pagerduty.com/service-directory/PMyService\",\"opsgenie\":{\"service-url\":\"https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000\",\"region\":\"US\"}},\"extensions\":{\"myorgextension\":\"extensionvalue\"}}}}]}\n"
44+
"size": 1035,
45+
"text": "{\"data\":[{\"type\":\"service-definition\",\"attributes\":{\"meta\":{\"last-modified-time\":\"2023-03-24T18:06:24.041193351Z\",\"github-html-url\":\"\",\"ingestion-source\":\"api\",\"origin\":\"unknown\",\"origin-detail\":\"\",\"warnings\":[],\"ingested-schema-version\":\"v2\"},\"schema\":{\"schema-version\":\"v2\",\"dd-service\":\"service-testcreateorupdateservicedefinitionreturnscreatedresponse1679681183\",\"dd-team\":\"my-team\",\"team\":\"my-team\",\"contacts\":[{\"name\":\"Team Email\",\"type\":\"email\",\"contact\":\"contact@datadoghq.com\"}],\"links\":[{\"name\":\"Runbook\",\"type\":\"runbook\",\"url\":\"https://my-runbook\"}],\"repos\":[{\"name\":\"Source Code\",\"provider\":\"GitHub\",\"url\":\"https://github.com/DataDog/schema\"}],\"docs\":[{\"name\":\"Architecture\",\"provider\":\"google drive\",\"url\":\"https://gdrive/mydoc\"}],\"tags\":[\"my:tag\",\"service:tag\"],\"integrations\":{\"pagerduty\":\"https://my-org.pagerduty.com/service-directory/PMyService\",\"opsgenie\":{\"service-url\":\"https://my-org.opsgenie.com/service/123e4567-e89b-12d3-a456-426614174000\",\"region\":\"US\"}},\"extensions\":{\"myorgextension\":\"extensionvalue\"}}}}]}\n"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -51,17 +51,17 @@
5151
"value": "application/json"
5252
}
5353
],
54-
"headersSize": 629,
54+
"headersSize": 630,
5555
"httpVersion": "HTTP/1.1",
5656
"redirectURL": "",
5757
"status": 200,
5858
"statusText": "OK"
5959
},
60-
"startedDateTime": "2022-11-10T21:14:44.561Z",
61-
"time": 1001
60+
"startedDateTime": "2023-03-24T18:06:23.883Z",
61+
"time": 167
6262
},
6363
{
64-
"_id": "8da7c885e895edd327aed527f50e4817",
64+
"_id": "523a43d4827084ffaa9c26d789d5c1da",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -74,11 +74,11 @@
7474
"value": "*/*"
7575
}
7676
],
77-
"headersSize": 599,
77+
"headersSize": 590,
7878
"httpVersion": "HTTP/1.1",
7979
"method": "DELETE",
8080
"queryString": [],
81-
"url": "https://api.datadoghq.com/api/v2/services/definitions/service-test-create_or_update_service_definition_returns_created_response-1668114884"
81+
"url": "https://api.datadoghq.com/api/v2/services/definitions/service-testcreateorupdateservicedefinitionreturnscreatedresponse1679681183"
8282
},
8383
"response": {
8484
"bodySize": 46,
@@ -94,14 +94,14 @@
9494
"value": "application/json"
9595
}
9696
],
97-
"headersSize": 627,
97+
"headersSize": 628,
9898
"httpVersion": "HTTP/1.1",
9999
"redirectURL": "",
100100
"status": 404,
101101
"statusText": "Not Found"
102102
},
103-
"startedDateTime": "2022-11-10T21:14:45.587Z",
104-
"time": 511
103+
"startedDateTime": "2023-03-24T18:06:24.062Z",
104+
"time": 162
105105
}
106106
],
107107
"pages": [],
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2023-03-28T20:28:44.080Z"

0 commit comments

Comments
 (0)