Skip to content

Commit 4217345

Browse files
api-clients-generation-pipeline[bot]therveci.datadog-api-spec
authored
Fix API description in docs (#493)
* Fix notes in docs * Regenerate client from commit 4046482 of spec repo Co-authored-by: Thomas Hervé <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 31f2cd3 commit 4217345

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+388
-615
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.4.1.dev8",
7-
"regenerated": "2021-06-22 08:01:40.508539",
8-
"spec_repo_commit": "6820788"
7+
"regenerated": "2021-06-22 13:17:19.274865",
8+
"spec_repo_commit": "4046482"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev8",
12-
"regenerated": "2021-06-22 08:02:06.972364",
13-
"spec_repo_commit": "6820788"
12+
"regenerated": "2021-06-22 13:17:45.898559",
13+
"spec_repo_commit": "4046482"
1414
}
1515
}
1616
}

.generator/templates/api_doc.mustache

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ Method | HTTP request | Description
1313
# **{{{operationId}}}**
1414
> {{#returnType}}{{{returnType}}} {{/returnType}}{{{operationId}}}({{#requiredParams}}{{^defaultValue}}{{paramName}}{{^-last}}, {{/-last}}{{/defaultValue}}{{/requiredParams}})
1515

16-
{{{summary}}}{{#notes}}
17-
18-
{{{notes}}}{{/notes}}
16+
{{#notes}}{{{unescapedNotes}}}{{/notes}}
1917

2018
### Example
2119

docs/v1/AWSIntegrationApi.md

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ Method | HTTP request | Description
1818
# **create_aws_account**
1919
> AWSAccountCreateResponse create_aws_account(body)
2020
21-
Create an AWS integration
22-
23-
Create a Datadog-Amazon Web Services integration. Using the `POST` method updates your integration configuration by adding your new configuration to the existing one in your Datadog organization. A unique AWS Account ID for role based authentication.
21+
Create a Datadog-Amazon Web Services integration.
22+
Using the `POST` method updates your integration configuration
23+
by adding your new configuration to the existing one in your Datadog organization.
24+
A unique AWS Account ID for role based authentication.
2425

2526
### Example
2627

@@ -96,8 +97,6 @@ Name | Type | Description | Notes
9697
# **create_aws_tag_filter**
9798
> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} create_aws_tag_filter(body)
9899
99-
Set an AWS tag filter
100-
101100
Set an AWS tag filter.
102101

103102
### Example
@@ -166,8 +165,6 @@ Name | Type | Description | Notes
166165
# **create_new_aws_external_id**
167166
> AWSAccountCreateResponse create_new_aws_external_id(body)
168167
169-
Generate a new external ID
170-
171168
Generate a new AWS external ID for a given AWS account ID and role name pair.
172169

173170
### Example
@@ -243,8 +240,6 @@ Name | Type | Description | Notes
243240
# **delete_aws_account**
244241
> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} delete_aws_account(body)
245242
246-
Delete an AWS integration
247-
248243
Delete a Datadog-AWS integration matching the specified `account_id` and `role_name parameters`.
249244

250245
### Example
@@ -321,8 +316,6 @@ Name | Type | Description | Notes
321316
# **delete_aws_tag_filter**
322317
> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} delete_aws_tag_filter(body)
323318
324-
Delete a tag filtering entry
325-
326319
Delete a tag filtering entry.
327320

328321
### Example
@@ -390,8 +383,6 @@ Name | Type | Description | Notes
390383
# **list_available_aws_namespaces**
391384
> [str] list_available_aws_namespaces()
392385
393-
List namespace rules
394-
395386
List all namespace rules for a given Datadog-AWS integration. This endpoint takes no arguments.
396387

397388
### Example
@@ -451,8 +442,6 @@ This endpoint does not need any parameter.
451442
# **list_aws_accounts**
452443
> AWSAccountListResponse list_aws_accounts()
453444
454-
List all AWS integrations
455-
456445
List all Datadog-AWS integrations available in your Datadog organization.
457446

458447
### Example
@@ -522,8 +511,6 @@ Name | Type | Description | Notes
522511
# **list_aws_tag_filters**
523512
> AWSTagFilterListResponse list_aws_tag_filters(account_id)
524513
525-
Get all AWS tag filters
526-
527514
Get all AWS tag filters.
528515

529516
### Example
@@ -588,8 +575,6 @@ Name | Type | Description | Notes
588575
# **update_aws_account**
589576
> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} update_aws_account(body)
590577
591-
Update an AWS integration
592-
593578
Update a Datadog-Amazon Web Services integration.
594579

595580
### Example

docs/v1/AWSLogsIntegrationApi.md

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,14 @@ Method | HTTP request | Description
1616
# **check_aws_logs_lambda_async**
1717
> AWSLogsAsyncResponse check_aws_logs_lambda_async(body)
1818
19-
Check that an AWS Lambda Function exists
19+
Test if permissions are present to add a log-forwarding triggers for the given services and AWS account. The input
20+
is the same as for Enable an AWS service log collection. Subsequent requests will always repeat the above, so this
21+
endpoint can be polled intermittently instead of blocking.
2022

21-
Test if permissions are present to add a log-forwarding triggers for the given services and AWS account. The input is the same as for Enable an AWS service log collection. Subsequent requests will always repeat the above, so this endpoint can be polled intermittently instead of blocking. - Returns a status of 'created' when it's checking if the Lambda exists in the account. - Returns a status of 'waiting' while checking. - Returns a status of 'checked and ok' if the Lambda exists. - Returns a status of 'error' if the Lambda does not exist.
23+
- Returns a status of 'created' when it's checking if the Lambda exists in the account.
24+
- Returns a status of 'waiting' while checking.
25+
- Returns a status of 'checked and ok' if the Lambda exists.
26+
- Returns a status of 'error' if the Lambda does not exist.
2227

2328
### Example
2429

@@ -85,9 +90,16 @@ Name | Type | Description | Notes
8590
# **check_aws_logs_services_async**
8691
> AWSLogsAsyncResponse check_aws_logs_services_async(body)
8792
88-
Check permissions for log services
93+
Test if permissions are present to add log-forwarding triggers for the
94+
given services and AWS account. Input is the same as for `EnableAWSLogServices`.
95+
Done async, so can be repeatedly polled in a non-blocking fashion until
96+
the async request completes.
8997

90-
Test if permissions are present to add log-forwarding triggers for the given services and AWS account. Input is the same as for `EnableAWSLogServices`. Done async, so can be repeatedly polled in a non-blocking fashion until the async request completes. - Returns a status of `created` when it's checking if the permissions exists in the AWS account. - Returns a status of `waiting` while checking. - Returns a status of `checked and ok` if the Lambda exists. - Returns a status of `error` if the Lambda does not exist.
98+
- Returns a status of `created` when it's checking if the permissions exists
99+
in the AWS account.
100+
- Returns a status of `waiting` while checking.
101+
- Returns a status of `checked and ok` if the Lambda exists.
102+
- Returns a status of `error` if the Lambda does not exist.
91103

92104
### Example
93105

@@ -154,8 +166,6 @@ Name | Type | Description | Notes
154166
# **create_aws_lambda_arn**
155167
> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} create_aws_lambda_arn(body)
156168
157-
Add AWS Log Lambda ARN
158-
159169
Attach the Lambda ARN of the Lambda created for the Datadog-AWS log collection to your AWS account ID to enable log collection.
160170

161171
### Example
@@ -223,8 +233,6 @@ Name | Type | Description | Notes
223233
# **delete_aws_lambda_arn**
224234
> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} delete_aws_lambda_arn(body)
225235
226-
Delete an AWS Logs integration
227-
228236
Delete a Datadog-AWS logs configuration by removing the specific Lambda ARN associated with a given AWS account.
229237

230238
### Example
@@ -292,8 +300,6 @@ Name | Type | Description | Notes
292300
# **enable_aws_log_services**
293301
> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} enable_aws_log_services(body)
294302
295-
Enable an AWS Logs integration
296-
297303
Enable automatic log collection for a list of services. This should be run after running `CreateAWSLambdaARN` to save the configuration.
298304

299305
### Example
@@ -361,8 +367,6 @@ Name | Type | Description | Notes
361367
# **list_aws_logs_integrations**
362368
> [AWSLogsListResponse] list_aws_logs_integrations()
363369
364-
List all AWS Logs integrations
365-
366370
List all Datadog-AWS Logs integrations configured in your Datadog account.
367371

368372
### Example
@@ -423,8 +427,6 @@ This endpoint does not need any parameter.
423427
# **list_aws_logs_services**
424428
> [AWSLogsListServicesResponse] list_aws_logs_services()
425429
426-
Get list of AWS log ready services
427-
428430
Get the list of current AWS services that Datadog offers automatic log collection. Use returned service IDs with the services parameter for the Enable an AWS service log collection API endpoint.
429431

430432
### Example

docs/v1/AuthenticationApi.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ Method | HTTP request | Description
1010
# **validate**
1111
> AuthenticationValidationResponse validate()
1212
13-
Validate API key
14-
1513
Check if the API key (not the APP key) is valid. If invalid, a 403 is returned.
1614

1715
### Example

docs/v1/AzureIntegrationApi.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,13 @@ Method | HTTP request | Description
1414
# **create_azure_integration**
1515
> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} create_azure_integration(body)
1616
17-
Create an Azure integration
17+
Create a Datadog-Azure integration.
1818

19-
Create a Datadog-Azure integration. Using the `POST` method updates your integration configuration by adding your new configuration to the existing one in your Datadog organization. Using the `PUT` method updates your integration configuration by replacing your current configuration with the new one sent to your Datadog organization.
19+
Using the `POST` method updates your integration configuration by adding your new
20+
configuration to the existing one in your Datadog organization.
21+
22+
Using the `PUT` method updates your integration configuration by replacing your
23+
current configuration with the new one sent to your Datadog organization.
2024

2125
### Example
2226

@@ -88,8 +92,6 @@ Name | Type | Description | Notes
8892
# **delete_azure_integration**
8993
> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} delete_azure_integration(body)
9094
91-
Delete an Azure integration
92-
9395
Delete a given Datadog-Azure integration from your Datadog account.
9496

9597
### Example
@@ -162,8 +164,6 @@ Name | Type | Description | Notes
162164
# **list_azure_integration**
163165
> AzureAccountListResponse list_azure_integration()
164166
165-
List all Azure integrations
166-
167167
List all Datadog-Azure integrations configured in your Datadog account.
168168

169169
### Example
@@ -224,8 +224,6 @@ This endpoint does not need any parameter.
224224
# **update_azure_host_filters**
225225
> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} update_azure_host_filters(body)
226226
227-
Update Azure integration host filters
228-
229227
Update the defined list of host filters for a given Datadog-Azure integration.
230228

231229
### Example
@@ -298,9 +296,9 @@ Name | Type | Description | Notes
298296
# **update_azure_integration**
299297
> {str: (bool, date, datetime, dict, float, int, list, str, none_type)} update_azure_integration(body)
300298
301-
Update an Azure integration
302-
303-
Update a Datadog-Azure integration. Requires an existing `tenant_name` and `client_id`. Any other fields supplied will overwrite existing values. To overwrite `tenant_name` or `client_id`, use `new_tenant_name` and `new_client_id`. To leave a field unchanged, do not supply that field in the payload.
299+
Update a Datadog-Azure integration. Requires an existing `tenant_name` and `client_id`.
300+
Any other fields supplied will overwrite existing values. To overwrite `tenant_name` or `client_id`,
301+
use `new_tenant_name` and `new_client_id`. To leave a field unchanged, do not supply that field in the payload.
304302

305303
### Example
306304

docs/v1/DashboardListsApi.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ Method | HTTP request | Description
1414
# **create_dashboard_list**
1515
> DashboardList create_dashboard_list(body)
1616
17-
Create a dashboard list
18-
1917
Create an empty dashboard list.
2018

2119
### Example
@@ -93,8 +91,6 @@ Name | Type | Description | Notes
9391
# **delete_dashboard_list**
9492
> DashboardListDeleteResponse delete_dashboard_list(list_id)
9593
96-
Delete a dashboard list
97-
9894
Delete a dashboard list.
9995

10096
### Example
@@ -159,8 +155,6 @@ Name | Type | Description | Notes
159155
# **get_dashboard_list**
160156
> DashboardList get_dashboard_list(list_id)
161157
162-
Get a dashboard list
163-
164158
Fetch an existing dashboard list's definition.
165159

166160
### Example
@@ -225,8 +219,6 @@ Name | Type | Description | Notes
225219
# **list_dashboard_lists**
226220
> DashboardListListResponse list_dashboard_lists()
227221
228-
Get all dashboard lists
229-
230222
Fetch all of your existing dashboard list definitions.
231223

232224
### Example
@@ -286,8 +278,6 @@ This endpoint does not need any parameter.
286278
# **update_dashboard_list**
287279
> DashboardList update_dashboard_list(list_id, body)
288280
289-
Update a dashboard list
290-
291281
Update the name of a dashboard list.
292282

293283
### Example

docs/v1/DashboardsApi.md

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ Method | HTTP request | Description
1414
# **create_dashboard**
1515
> Dashboard create_dashboard(body)
1616
17-
Create a new dashboard
18-
19-
Create a dashboard using the specified options. When defining queries in your widgets, take note of which queries should have the `as_count()` or `as_rate()` modifiers appended. Refer to the following [documentation](https://docs.datadoghq.com/developers/metrics/type_modifiers/?tab=count#in-application-modifiers) for more information on these modifiers.
17+
Create a dashboard using the specified options. When defining queries in your widgets, take note of which queries should have the `as_count()` or `as_rate()` modifiers appended.
18+
Refer to the following [documentation](https://docs.datadoghq.com/developers/metrics/type_modifiers/?tab=count#in-application-modifiers) for more information on these modifiers.
2019

2120
### Example
2221

@@ -128,8 +127,6 @@ Name | Type | Description | Notes
128127
# **delete_dashboard**
129128
> DashboardDeleteResponse delete_dashboard(dashboard_id)
130129
131-
Delete a dashboard
132-
133130
Delete a dashboard using the specified ID.
134131

135132
### Example
@@ -194,8 +191,6 @@ Name | Type | Description | Notes
194191
# **get_dashboard**
195192
> Dashboard get_dashboard(dashboard_id)
196193
197-
Get a dashboard
198-
199194
Get a dashboard using the specified ID.
200195

201196
### Example
@@ -260,9 +255,10 @@ Name | Type | Description | Notes
260255
# **list_dashboards**
261256
> DashboardSummary list_dashboards()
262257
263-
Get all dashboards
258+
Get all dashboards.
264259

265-
Get all dashboards. **Note**: This query will only return custom created or cloned dashboards. This query will not return preset dashboards.
260+
**Note**: This query will only return custom created or cloned dashboards.
261+
This query will not return preset dashboards.
266262

267263
### Example
268264

@@ -326,8 +322,6 @@ Name | Type | Description | Notes
326322
# **update_dashboard**
327323
> Dashboard update_dashboard(dashboard_id, body)
328324
329-
Update a dashboard
330-
331325
Update a dashboard using the specified ID.
332326

333327
### Example

0 commit comments

Comments
 (0)