WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit ea9b5e6

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 78326bb of spec repo
1 parent ea3b5ba commit ea9b5e6

File tree

12 files changed

+208
-75
lines changed

12 files changed

+208
-75
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 47 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -4179,7 +4179,7 @@ components:
41794179
example: false
41804180
type: boolean
41814181
type: object
4182-
HostTags:
4182+
HostTagsInput:
41834183
description: Set of tags to associate with your host.
41844184
properties:
41854185
host:
@@ -4194,6 +4194,21 @@ components:
41944194
type: string
41954195
type: array
41964196
type: object
4197+
HostTagsOutput:
4198+
description: Set of tags to associate with your host.
4199+
properties:
4200+
host:
4201+
description: Your host name.
4202+
example: test.host
4203+
type: string
4204+
tags:
4205+
description: A list of tags attached to a given host.
4206+
items:
4207+
description: A given tag in a list.
4208+
example: environment:production
4209+
type: string
4210+
type: array
4211+
type: object
41974212
HostTotals:
41984213
description: Total number of host currently monitored by Datadog.
41994214
properties:
@@ -18689,18 +18704,18 @@ components:
1868918704
- match
1869018705
type: object
1869118706
TagToHosts:
18692-
description: In this object, the key is the tag, the value is a list of host
18693-
names that are reporting that tag.
18707+
description: In this object, the key is the tag, and the value is a list of
18708+
host names that are reporting that tag.
1869418709
properties:
1869518710
tags:
1869618711
additionalProperties:
18697-
description: A list of additional properties for tags.
18712+
description: A list of host names which contain this tag
1869818713
items:
1869918714
description: A given tag in a list.
1870018715
example: test.metric.host
1870118716
type: string
1870218717
type: array
18703-
description: A list of tags to apply to the host.
18718+
description: A mapping of tags to host names
1870418719
type: object
1870518720
type: object
1870618721
TargetFormatType:
@@ -35712,11 +35727,13 @@ paths:
3571235727
- synthetics_global_variable_write
3571335728
/api/v1/tags/hosts:
3571435729
get:
35715-
description: Return a mapping of tags to hosts for your whole infrastructure.
35730+
description: Returns a mapping of tags to hosts. For each tag, the response
35731+
returns a list of host names that contain this tag. There is a restriction
35732+
of 10k host names from the org that can be attached to tags and returned.
3571635733
operationId: ListHostTags
3571735734
parameters:
35718-
- description: When specified, filters host list to those tags with the specified
35719-
source.
35735+
- description: Source to filter. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
35736+
Use "user" source for custom-defined tags.
3572035737
in: query
3572135738
name: source
3572235739
required: false
@@ -35747,7 +35764,7 @@ paths:
3574735764
- apiKeyAuth: []
3574835765
appKeyAuth: []
3574935766
- AuthZ: []
35750-
summary: Get Tags
35767+
summary: Get All Host Tags
3575135768
tags:
3575235769
- Tags
3575335770
x-permission:
@@ -35760,16 +35777,14 @@ paths:
3576035777
for a single host.'
3576135778
operationId: DeleteHostTags
3576235779
parameters:
35763-
- description: This endpoint allows you to remove all user-assigned tags for
35764-
a single host.
35780+
- description: Specified host name to delete tags
3576535781
in: path
3576635782
name: host_name
3576735783
required: true
3576835784
schema:
3576935785
type: string
35770-
- description: 'The source of the tags (for example chef, puppet).
35771-
35772-
[Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).'
35786+
- description: Source to filter. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
35787+
Use "user" source for custom-defined tags.
3577335788
in: query
3577435789
name: source
3577535790
required: false
@@ -35799,14 +35814,14 @@ paths:
3579935814
description: Return the list of tags that apply to a given host.
3580035815
operationId: GetHostTags
3580135816
parameters:
35802-
- description: When specified, filters list of tags to those tags with the specified
35803-
source.
35817+
- description: Specified host name to view tags
3580435818
in: path
3580535819
name: host_name
3580635820
required: true
3580735821
schema:
3580835822
type: string
35809-
- description: Source to filter.
35823+
- description: Source to filter. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
35824+
Use "user" source for custom-defined tags.
3581035825
in: query
3581135826
name: source
3581235827
required: false
@@ -35817,7 +35832,7 @@ paths:
3581735832
content:
3581835833
application/json:
3581935834
schema:
35820-
$ref: '#/components/schemas/HostTags'
35835+
$ref: '#/components/schemas/HostTagsOutput'
3582135836
description: OK
3582235837
'403':
3582335838
content:
@@ -35833,25 +35848,23 @@ paths:
3583335848
description: Not Found
3583435849
'429':
3583535850
$ref: '#/components/responses/TooManyRequestsResponse'
35836-
summary: Get host tags
35851+
summary: Get Host Tags
3583735852
tags:
3583835853
- Tags
3583935854
post:
3584035855
description: 'This endpoint allows you to add new tags to a host,
3584135856

35842-
optionally specifying where these tags come from.'
35857+
optionally specifying what source these tags come from.'
3584335858
operationId: CreateHostTags
3584435859
parameters:
35845-
- description: This endpoint allows you to add new tags to a host, optionally
35846-
specifying where the tags came from.
35860+
- description: Specified host name to add new tags
3584735861
in: path
3584835862
name: host_name
3584935863
required: true
3585035864
schema:
3585135865
type: string
35852-
- description: 'The source of the tags.
35853-
35854-
[Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).'
35866+
- description: Source to filter. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
35867+
Use "user" source for custom-defined tags.
3585535868
example: chef
3585635869
in: query
3585735870
name: source
@@ -35862,15 +35875,15 @@ paths:
3586235875
content:
3586335876
application/json:
3586435877
schema:
35865-
$ref: '#/components/schemas/HostTags'
35878+
$ref: '#/components/schemas/HostTagsInput'
3586635879
description: Update host tags request body.
3586735880
required: true
3586835881
responses:
3586935882
'201':
3587035883
content:
3587135884
application/json:
3587235885
schema:
35873-
$ref: '#/components/schemas/HostTags'
35886+
$ref: '#/components/schemas/HostTagsOutput'
3587435887
description: Created
3587535888
'403':
3587635889
content:
@@ -35896,16 +35909,14 @@ paths:
3589635909
an integration source with those supplied in the request.'
3589735910
operationId: UpdateHostTags
3589835911
parameters:
35899-
- description: This endpoint allows you to update/replace all in an integration
35900-
source with those supplied in the request.
35912+
- description: Specified host name to change tags
3590135913
in: path
3590235914
name: host_name
3590335915
required: true
3590435916
schema:
3590535917
type: string
35906-
- description: 'The source of the tags (for example chef, puppet).
35907-
35908-
[Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value)'
35918+
- description: Source to filter. [Complete list of source attribute values](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
35919+
Use "user" source for custom-defined tags.
3590935920
in: query
3591035921
name: source
3591135922
required: false
@@ -35915,15 +35926,15 @@ paths:
3591535926
content:
3591635927
application/json:
3591735928
schema:
35918-
$ref: '#/components/schemas/HostTags'
35929+
$ref: '#/components/schemas/HostTagsInput'
3591935930
description: Add tags to host
3592035931
required: true
3592135932
responses:
3592235933
'201':
3592335934
content:
3592435935
application/json:
3592535936
schema:
35926-
$ref: '#/components/schemas/HostTags'
35937+
$ref: '#/components/schemas/HostTagsOutput'
3592735938
description: OK
3592835939
'403':
3592935940
content:
@@ -38918,7 +38929,8 @@ tags:
3891838929

3891938930
by a source. For example, some valid sources include nagios, hudson, jenkins,
3892038931

38921-
users, feed, chef, puppet, git, bitbucket, fabric, capistrano, etc.
38932+
users, feed, chef, puppet, git, bitbucket, fabric, capistrano, etc. Find a complete
38933+
list of source type names under [API Source Attributes](https://docs.datadoghq.com/integrations/faq/list-of-api-source-attribute-value).
3892238934

3892338935

3892438936
Read more about tags on [Getting Started with Tags](https://docs.datadoghq.com/getting_started/tagging/).'

examples/v1/tags/CreateHostTags.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
require "datadog_api_client"
44
api_instance = DatadogAPIClient::V1::TagsAPI.new
55

6-
body = DatadogAPIClient::V1::HostTags.new({
6+
body = DatadogAPIClient::V1::HostTagsInput.new({
77
host: "test.host",
88
tags: [
99
"environment:production",

examples/v1/tags/GetHostTags.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Get host tags returns "OK" response
1+
# Get Host Tags returns "OK" response
22

33
require "datadog_api_client"
44
api_instance = DatadogAPIClient::V1::TagsAPI.new

examples/v1/tags/ListHostTags.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Get Tags returns "OK" response
1+
# Get All Host Tags returns "OK" response
22

33
require "datadog_api_client"
44
api_instance = DatadogAPIClient::V1::TagsAPI.new

examples/v1/tags/UpdateHostTags.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
require "datadog_api_client"
44
api_instance = DatadogAPIClient::V1::TagsAPI.new
55

6-
body = DatadogAPIClient::V1::HostTags.new({
6+
body = DatadogAPIClient::V1::HostTagsInput.new({
77
host: "test.host",
88
tags: [
99
"environment:production",

features/scenarios_model_mapping.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -819,12 +819,12 @@
819819
"v1.CreateHostTags" => {
820820
"host_name" => "String",
821821
"source" => "String",
822-
"body" => "HostTags",
822+
"body" => "HostTagsInput",
823823
},
824824
"v1.UpdateHostTags" => {
825825
"host_name" => "String",
826826
"source" => "String",
827-
"body" => "HostTags",
827+
"body" => "HostTagsInput",
828828
},
829829
"v1.CreateUser" => {
830830
"body" => "User",

features/v1/tags.feature

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ Feature: Tags
66
tags to a particular host. The component of your infrastructure
77
responsible for a tag is identified by a source. For example, some valid
88
sources include nagios, hudson, jenkins, users, feed, chef, puppet, git,
9-
bitbucket, fabric, capistrano, etc. Read more about tags on [Getting
10-
Started with Tags](https://docs.datadoghq.com/getting_started/tagging/).
9+
bitbucket, fabric, capistrano, etc. Find a complete list of source type
10+
names under [API Source
11+
Attributes](https://docs.datadoghq.com/integrations/faq/list-of-api-
12+
source-attribute-value). Read more about tags on [Getting Started with
13+
Tags](https://docs.datadoghq.com/getting_started/tagging/).
1114

1215
Background:
1316
Given a valid "apiKeyAuth" key in the system
@@ -31,26 +34,26 @@ Feature: Tags
3134
Then the response status is 404 Not Found
3235

3336
@generated @skip @team:DataDog/core-index
34-
Scenario: Get Tags returns "Not Found" response
37+
Scenario: Get All Host Tags returns "Not Found" response
3538
Given new "ListHostTags" request
3639
When the request is sent
3740
Then the response status is 404 Not Found
3841

3942
@generated @skip @team:DataDog/core-index
40-
Scenario: Get Tags returns "OK" response
43+
Scenario: Get All Host Tags returns "OK" response
4144
Given new "ListHostTags" request
4245
When the request is sent
4346
Then the response status is 200 OK
4447

4548
@generated @skip @team:DataDog/core-index
46-
Scenario: Get host tags returns "Not Found" response
49+
Scenario: Get Host Tags returns "Not Found" response
4750
Given new "GetHostTags" request
4851
And request contains "host_name" parameter from "REPLACE.ME"
4952
When the request is sent
5053
Then the response status is 404 Not Found
5154

5255
@generated @skip @team:DataDog/core-index
53-
Scenario: Get host tags returns "OK" response
56+
Scenario: Get Host Tags returns "OK" response
5457
Given new "GetHostTags" request
5558
And request contains "host_name" parameter from "REPLACE.ME"
5659
When the request is sent

lib/datadog_api_client/inflector.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ def overrides
182182
"v1.host_metrics" => "HostMetrics",
183183
"v1.host_mute_response" => "HostMuteResponse",
184184
"v1.host_mute_settings" => "HostMuteSettings",
185-
"v1.host_tags" => "HostTags",
185+
"v1.host_tags_input" => "HostTagsInput",
186+
"v1.host_tags_output" => "HostTagsOutput",
186187
"v1.host_totals" => "HostTotals",
187188
"v1.hourly_usage_attribution_body" => "HourlyUsageAttributionBody",
188189
"v1.hourly_usage_attribution_metadata" => "HourlyUsageAttributionMetadata",

0 commit comments

Comments
 (0)