diff --git a/.apigentools-info b/.apigentools-info index e7929d9d3428..3514a32b044b 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2025-01-09 20:03:52.560198", - "spec_repo_commit": "07ed2f56" + "regenerated": "2025-01-09 21:08:21.064628", + "spec_repo_commit": "435429e0" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2025-01-09 20:03:52.575369", - "spec_repo_commit": "07ed2f56" + "regenerated": "2025-01-09 21:08:21.079610", + "spec_repo_commit": "435429e0" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index e810c23508e9..c2af523e94cd 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -28873,7 +28873,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 @@ -28956,6 +28956,7 @@ paths: content: application/json: schema: + description: An array of monitor objects. items: $ref: '#/components/schemas/Monitor' type: array @@ -28979,7 +28980,7 @@ paths: appKeyAuth: [] - AuthZ: - monitors_read - summary: Get all monitor details + summary: Get all monitors tags: - Monitors x-pagination: diff --git a/cassettes/v1/Monitors_4022238206/Get-all-monitor-details-returns-Bad-Request-response_1895831028/frozen.json b/cassettes/v1/Monitors_4022238206/Get-all-monitors-returns-Bad-Request-response_2086012425/frozen.json similarity index 100% rename from cassettes/v1/Monitors_4022238206/Get-all-monitor-details-returns-Bad-Request-response_1895831028/frozen.json rename to cassettes/v1/Monitors_4022238206/Get-all-monitors-returns-Bad-Request-response_2086012425/frozen.json diff --git a/cassettes/v1/Monitors_4022238206/Get-all-monitor-details-returns-Bad-Request-response_1895831028/recording.har b/cassettes/v1/Monitors_4022238206/Get-all-monitors-returns-Bad-Request-response_2086012425/recording.har similarity index 94% rename from cassettes/v1/Monitors_4022238206/Get-all-monitor-details-returns-Bad-Request-response_1895831028/recording.har rename to cassettes/v1/Monitors_4022238206/Get-all-monitors-returns-Bad-Request-response_2086012425/recording.har index 260f9f5bb32f..dcb585124a42 100644 --- a/cassettes/v1/Monitors_4022238206/Get-all-monitor-details-returns-Bad-Request-response_1895831028/recording.har +++ b/cassettes/v1/Monitors_4022238206/Get-all-monitors-returns-Bad-Request-response_2086012425/recording.har @@ -1,6 +1,6 @@ { "log": { - "_recordingName": "Monitors/Get all monitor details returns \"Bad Request\" response", + "_recordingName": "Monitors/Get all monitors returns \"Bad Request\" response", "creator": { "comment": "persister:fs", "name": "Polly.JS", diff --git a/cassettes/v1/Monitors_4022238206/Get-all-monitor-details-returns-OK-response-with-pagination_764191302/frozen.json b/cassettes/v1/Monitors_4022238206/Get-all-monitors-returns-OK-response-with-pagination_1138556425/frozen.json similarity index 100% rename from cassettes/v1/Monitors_4022238206/Get-all-monitor-details-returns-OK-response-with-pagination_764191302/frozen.json rename to cassettes/v1/Monitors_4022238206/Get-all-monitors-returns-OK-response-with-pagination_1138556425/frozen.json diff --git a/cassettes/v1/Monitors_4022238206/Get-all-monitor-details-returns-OK-response-with-pagination_764191302/recording.har b/cassettes/v1/Monitors_4022238206/Get-all-monitors-returns-OK-response-with-pagination_1138556425/recording.har similarity index 98% rename from cassettes/v1/Monitors_4022238206/Get-all-monitor-details-returns-OK-response-with-pagination_764191302/recording.har rename to cassettes/v1/Monitors_4022238206/Get-all-monitors-returns-OK-response-with-pagination_1138556425/recording.har index 8800ee1b9568..070a706bdc4b 100644 --- a/cassettes/v1/Monitors_4022238206/Get-all-monitor-details-returns-OK-response-with-pagination_764191302/recording.har +++ b/cassettes/v1/Monitors_4022238206/Get-all-monitors-returns-OK-response-with-pagination_1138556425/recording.har @@ -1,6 +1,6 @@ { "log": { - "_recordingName": "Monitors/Get all monitor details returns \"OK\" response with pagination", + "_recordingName": "Monitors/Get all monitors returns \"OK\" response with pagination", "creator": { "comment": "persister:fs", "name": "Polly.JS", diff --git a/examples/v1/monitors/ListMonitors.ts b/examples/v1/monitors/ListMonitors.ts index a458eb73201c..27178949cc59 100644 --- a/examples/v1/monitors/ListMonitors.ts +++ b/examples/v1/monitors/ListMonitors.ts @@ -1,5 +1,5 @@ /** - * Get all monitor details returns "OK" response + * Get all monitors returns "OK" response */ import { client, v1 } from "@datadog/datadog-api-client"; diff --git a/examples/v1/monitors/ListMonitors_3448441939.ts b/examples/v1/monitors/ListMonitors_2154432960.ts similarity index 93% rename from examples/v1/monitors/ListMonitors_3448441939.ts rename to examples/v1/monitors/ListMonitors_2154432960.ts index bb76cce0bfcf..e7fd9e93318b 100644 --- a/examples/v1/monitors/ListMonitors_3448441939.ts +++ b/examples/v1/monitors/ListMonitors_2154432960.ts @@ -1,5 +1,5 @@ /** - * Get all monitor details with tags + * Get all monitors with tags */ import { client, v1 } from "@datadog/datadog-api-client"; diff --git a/examples/v1/monitors/ListMonitors_2966492814.ts b/examples/v1/monitors/ListMonitors_463213563.ts similarity index 87% rename from examples/v1/monitors/ListMonitors_2966492814.ts rename to examples/v1/monitors/ListMonitors_463213563.ts index 307e1ab28f0b..6a8919a3c3fb 100644 --- a/examples/v1/monitors/ListMonitors_2966492814.ts +++ b/examples/v1/monitors/ListMonitors_463213563.ts @@ -1,5 +1,5 @@ /** - * Get all monitor details returns "OK" response with pagination + * Get all monitors returns "OK" response with pagination */ import { client, v1 } from "@datadog/datadog-api-client"; diff --git a/features/v1/monitors.feature b/features/v1/monitors.feature index 5ff2e691c180..8154cd7a8797 100644 --- a/features/v1/monitors.feature +++ b/features/v1/monitors.feature @@ -227,20 +227,20 @@ 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 @@ -248,7 +248,7 @@ Feature: Monitors 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 }}" diff --git a/packages/datadog-api-client-v1/apis/MonitorsApi.ts b/packages/datadog-api-client-v1/apis/MonitorsApi.ts index 5180954a9ffa..7b766a7ed04b 100644 --- a/packages/datadog-api-client-v1/apis/MonitorsApi.ts +++ b/packages/datadog-api-client-v1/apis/MonitorsApi.ts @@ -1668,7 +1668,7 @@ export class MonitorsApi { } /** - * Get details about the specified monitor from your organization. + * Get all monitors from your organization. * @param param The request object */ public listMonitors(