Skip to content

Commit

Permalink
Regenerate client from commit b13f9fae of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Dec 20, 2024
1 parent da24389 commit a402c4b
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 16 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-12-19 07:26:25.280337",
"spec_repo_commit": "5dd2cbe4"
"regenerated": "2024-12-20 11:18:45.309090",
"spec_repo_commit": "b13f9fae"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-12-19 07:26:25.294170",
"spec_repo_commit": "5dd2cbe4"
"regenerated": "2024-12-20 11:18:45.323063",
"spec_repo_commit": "b13f9fae"
}
}
}
5 changes: 3 additions & 2 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28674,7 +28674,7 @@ paths:
- metrics_metadata_write
/api/v1/monitor:
get:
description: Get details about the specified monitor from your organization.
description: Get all monitors from your organization.
operationId: ListMonitors
parameters:
- description: 'When specified, shows additional information about the group
Expand Down Expand Up @@ -28757,6 +28757,7 @@ paths:
content:
application/json:
schema:
description: An array of monitor objects.
items:
$ref: '#/components/schemas/Monitor'
type: array
Expand All @@ -28780,7 +28781,7 @@ paths:
appKeyAuth: []
- AuthZ:
- monitors_read
summary: Get all monitor details
summary: Get all monitors
tags:
- Monitors
x-pagination:
Expand Down
2 changes: 1 addition & 1 deletion examples/v1/monitors/ListMonitors.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Get all monitor details returns "OK" response
Get all monitors returns "OK" response
"""

from datadog_api_client import ApiClient, Configuration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Get all monitor details with tags
Get all monitors with tags
"""

from datadog_api_client import ApiClient, Configuration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Get all monitor details returns "OK" response with pagination
Get all monitors returns "OK" response with pagination
"""

from datadog_api_client import ApiClient, Configuration
Expand Down
6 changes: 3 additions & 3 deletions src/datadog_api_client/v1/api/monitors_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,9 +640,9 @@ def list_monitors(
page: Union[int, UnsetType] = unset,
page_size: Union[int, UnsetType] = unset,
) -> List[Monitor]:
"""Get all monitor details.
"""Get all monitors.
Get details about the specified monitor from your organization.
Get all monitors from your organization.
:param group_states: When specified, shows additional information about the group states.
Choose one or more from ``all`` , ``alert`` , ``warn`` , and ``no data``.
Expand Down Expand Up @@ -704,7 +704,7 @@ def list_monitors_with_pagination(
page: Union[int, UnsetType] = unset,
page_size: Union[int, UnsetType] = unset,
) -> collections.abc.Iterable[Monitor]:
"""Get all monitor details.
"""Get all monitors.
Provide a paginated version of :meth:`list_monitors`, returning all items.
Expand Down
8 changes: 4 additions & 4 deletions tests/v1/features/monitors.feature
Original file line number Diff line number Diff line change
Expand Up @@ -227,28 +227,28 @@ Feature: Monitors
And the response "options.synthetics_check_id" has the same value as "synthetics_api_test.public_id"

@team:DataDog/monitor-app
Scenario: Get all monitor details returns "Bad Request" response
Scenario: Get all monitors returns "Bad Request" response
Given new "ListMonitors" request
And request contains "group_states" parameter with value "notagroupstate"
When the request is sent
Then the response status is 400 Bad Request

@integration-only @team:DataDog/monitor-app
Scenario: Get all monitor details returns "OK" response
Scenario: Get all monitors returns "OK" response
Given new "ListMonitors" request
When the request is sent
Then the response status is 200 OK

@replay-only @skip-validation @team:DataDog/monitor-app @with-pagination
Scenario: Get all monitor details returns "OK" response with pagination
Scenario: Get all monitors returns "OK" response with pagination
Given new "ListMonitors" request
And request contains "page_size" parameter with value 2
When the request with pagination is sent
Then the response status is 200 OK
And the response has 3 items

@skip @team:DataDog/monitor-app
Scenario: Get all monitor details with tags
Scenario: Get all monitors with tags
Given there is a valid "monitor" in the system
And new "ListMonitors" request
And request contains "tags" parameter with value "test:{{ unique_lower_alnum }}"
Expand Down

0 comments on commit a402c4b

Please sign in to comment.