Skip to content

Commit 00a9e66

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Reflect existing requirements (#1693)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 10de605 commit 00a9e66

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

.generator/schemas/v1/openapi.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34701,7 +34701,7 @@ paths:
3470134701
description: |-
3470234702
Validate the monitor provided in the request.
3470334703

34704-
**Note**: Log monitors require an unscoped App Key.
34704+
**Note**: Log monitors require an unscoped App Key and `logs_read_data` permission.
3470534705
operationId: ValidateMonitor
3470634706
requestBody:
3470734707
content:
@@ -35061,7 +35061,10 @@ paths:
3506135061
- monitors_read
3506235062
/api/v1/monitor/{monitor_id}/validate:
3506335063
post:
35064-
description: Validate the monitor provided in the request.
35064+
description: |-
35065+
Validate the monitor provided in the request.
35066+
35067+
**Note**: Log monitors require an unscoped App Key and `logs_read_data` permission.
3506535068
operationId: ValidateExistingMonitor
3506635069
parameters:
3506735070
- description: The ID of the monitor

src/datadogV1/api/api_monitors.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1972,6 +1972,8 @@ impl MonitorsAPI {
19721972
}
19731973

19741974
/// Validate the monitor provided in the request.
1975+
///
1976+
/// **Note**: Log monitors require an unscoped App Key and `logs_read_data` permission.
19751977
pub async fn validate_existing_monitor(
19761978
&self,
19771979
monitor_id: i64,
@@ -1998,6 +2000,8 @@ impl MonitorsAPI {
19982000
}
19992001

20002002
/// Validate the monitor provided in the request.
2003+
///
2004+
/// **Note**: Log monitors require an unscoped App Key and `logs_read_data` permission.
20012005
pub async fn validate_existing_monitor_with_http_info(
20022006
&self,
20032007
monitor_id: i64,
@@ -2134,7 +2138,7 @@ impl MonitorsAPI {
21342138

21352139
/// Validate the monitor provided in the request.
21362140
///
2137-
/// **Note**: Log monitors require an unscoped App Key.
2141+
/// **Note**: Log monitors require an unscoped App Key and `logs_read_data` permission.
21382142
pub async fn validate_monitor(
21392143
&self,
21402144
body: crate::datadogV1::model::Monitor,
@@ -2158,7 +2162,7 @@ impl MonitorsAPI {
21582162

21592163
/// Validate the monitor provided in the request.
21602164
///
2161-
/// **Note**: Log monitors require an unscoped App Key.
2165+
/// **Note**: Log monitors require an unscoped App Key and `logs_read_data` permission.
21622166
pub async fn validate_monitor_with_http_info(
21632167
&self,
21642168
body: crate::datadogV1::model::Monitor,

0 commit comments

Comments
 (0)