diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 1798ff51a84..1523c21d0f4 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -1750,7 +1750,7 @@ components: type: string ResourceID: description: |- - Identifier, formatted as `type:id`. Supported types: `dashboard`, `integration-service`, `integration-webhook`, `notebook`, `powerpack`, `reference-table`, `security-rule`, `slo`, `synthetics-global-variable`, `synthetics-test`, `synthetics-private-location`, `monitor`, `workflow`, `app-builder-app`, `connection`, `connection-group`, `rum-application`, `cross-org-connection`, `spreadsheet`, `on-call-schedule`, `on-call-escalation-policy`, `on-call-team-routing-rules`, `logs-pipeline`, `case-management-project`, `monitor-notification-rule`, `status-page`, `feature-flag`, `network-path-config`. + Identifier, formatted as `type:id`. Supported types: `ai-gateway-provider`, `dashboard`, `integration-service`, `integration-webhook`, `notebook`, `powerpack`, `reference-table`, `security-rule`, `slo`, `synthetics-global-variable`, `synthetics-test`, `synthetics-private-location`, `monitor`, `workflow`, `app-builder-app`, `connection`, `connection-group`, `rum-application`, `cross-org-connection`, `spreadsheet`, `on-call-schedule`, `on-call-escalation-policy`, `on-call-team-routing-rules`, `logs-pipeline`, `case-management-project`, `monitor-notification-rule`, `status-page`, `feature-flag`, `network-path-config`. example: "dashboard:abc-def-ghi" in: path name: resource_id @@ -83346,6 +83346,8 @@ components: $ref: "#/components/schemas/MonitorNotificationRuleName" recipients: $ref: "#/components/schemas/MonitorNotificationRuleRecipients" + rule_options: + $ref: "#/components/schemas/MonitorNotificationRuleOptions" required: [name] type: object MonitorNotificationRuleBundleConfig: @@ -83486,6 +83488,17 @@ components: maxLength: 1000 minLength: 1 type: string + MonitorNotificationRuleOptions: + description: Additional options for the monitor notification rule. + properties: + is_threaded: + description: |- + Whether notifications from this rule are threaded. When `true`, follow-up notifications for the same monitor alert are posted in Slack as replies to the first notification. + Cannot be `true` when `bundle_config` is set. + example: true + type: boolean + required: [is_threaded] + type: object MonitorNotificationRuleRecipients: description: |- A list of recipients to notify. Uses the same format as the monitor `message` field. Must not start with an '@'. Cannot be used with `conditional_recipients`. @@ -83563,6 +83576,8 @@ components: $ref: "#/components/schemas/MonitorNotificationRuleName" recipients: $ref: "#/components/schemas/MonitorNotificationRuleRecipients" + rule_options: + $ref: "#/components/schemas/MonitorNotificationRuleOptions" type: object MonitorNotificationRuleResponseIncludedItem: description: An object related to a monitor notification rule. @@ -220788,7 +220803,10 @@ paths: x-codegen-request-body-name: body /api/v2/restriction_policy/{resource_id}: delete: - description: Deletes the restriction policy associated with a specified resource. + description: |- + Deletes the restriction policy associated with a specified resource. + For AI Gateway providers, requires `ai_gateway_config_write` and provider Edit. + Deleting a provider policy restores normal unrestricted defaults. operationId: DeleteRestrictionPolicy parameters: - $ref: "#/components/parameters/ResourceID" @@ -220812,7 +220830,9 @@ paths: operator: OPEN permissions: [] get: - description: Retrieves the restriction policy associated with a specified resource. + description: |- + Retrieves the restriction policy associated with a specified resource. + For AI Gateway providers, requires `ai_gateway_config_read` and provider View. Hidden providers return 404. operationId: GetRestrictionPolicy parameters: - $ref: "#/components/parameters/ResourceID" @@ -220838,6 +220858,8 @@ paths: $ref: "#/components/responses/BadRequestResponse" "403": $ref: "#/components/responses/NotAuthorizedResponse" + "404": + $ref: "#/components/responses/NotFoundResponse" "429": $ref: "#/components/responses/TooManyRequestsResponse" security: @@ -220856,6 +220878,7 @@ paths: #### Supported resources Restriction policies can be applied to the following resources: + - AI Gateway Providers: `ai-gateway-provider` - Dashboards: `dashboard` - Integration Services: `integration-service` - Integration Webhooks: `integration-webhook` @@ -220885,9 +220908,17 @@ paths: - Feature Flags: `feature-flag` - Network Path Configs: `network-path-config` + AI Gateway provider policies control configuration and inherited model/catalog/pricing visibility. + The editor relation includes View. Providers have no Run relation; restriction policies don't affect inference. + Reading requires `ai_gateway_config_read` and provider View. Updating or deleting requires + `ai_gateway_config_write` and provider Edit. + Providers without a restriction policy retain the normal unrestricted defaults. Administrator status + alone does not bypass provider restrictions. + #### Supported relations for resources Resource Type | Supported Relations ----------------------------|-------------------------- + AI Gateway Providers | `viewer`, `editor` Dashboards | `viewer`, `editor` Integration Services | `viewer`, `editor` Integration Webhooks | `viewer`, `editor` diff --git a/examples/v2/monitors/CreateMonitorNotificationRule_292428701.java b/examples/v2/monitors/CreateMonitorNotificationRule_292428701.java new file mode 100644 index 00000000000..f5569078595 --- /dev/null +++ b/examples/v2/monitors/CreateMonitorNotificationRule_292428701.java @@ -0,0 +1,48 @@ +// Create a monitor notification rule with rule options returns "OK" response + +import com.datadog.api.client.ApiClient; +import com.datadog.api.client.ApiException; +import com.datadog.api.client.v2.api.MonitorsApi; +import com.datadog.api.client.v2.model.MonitorNotificationRuleAttributes; +import com.datadog.api.client.v2.model.MonitorNotificationRuleCreateRequest; +import com.datadog.api.client.v2.model.MonitorNotificationRuleCreateRequestData; +import com.datadog.api.client.v2.model.MonitorNotificationRuleFilter; +import com.datadog.api.client.v2.model.MonitorNotificationRuleFilterTags; +import com.datadog.api.client.v2.model.MonitorNotificationRuleOptions; +import com.datadog.api.client.v2.model.MonitorNotificationRuleResourceType; +import com.datadog.api.client.v2.model.MonitorNotificationRuleResponse; +import java.util.Collections; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = ApiClient.getDefaultApiClient(); + defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); + MonitorsApi apiInstance = new MonitorsApi(defaultClient); + + MonitorNotificationRuleCreateRequest body = + new MonitorNotificationRuleCreateRequest() + .data( + new MonitorNotificationRuleCreateRequestData() + .attributes( + new MonitorNotificationRuleAttributes() + .filter( + new MonitorNotificationRuleFilter( + new MonitorNotificationRuleFilterTags() + .tags(Collections.singletonList("test:example-monitor")))) + .name("test rule") + .recipients(Collections.singletonList("slack-test-channel")) + .ruleOptions(new MonitorNotificationRuleOptions().isThreaded(true))) + .type(MonitorNotificationRuleResourceType.MONITOR_NOTIFICATION_RULE)); + + try { + MonitorNotificationRuleResponse result = apiInstance.createMonitorNotificationRule(body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MonitorsApi#createMonitorNotificationRule"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} diff --git a/examples/v2/monitors/UpdateMonitorNotificationRule_365435820.java b/examples/v2/monitors/UpdateMonitorNotificationRule_365435820.java new file mode 100644 index 00000000000..e2dbd42acb5 --- /dev/null +++ b/examples/v2/monitors/UpdateMonitorNotificationRule_365435820.java @@ -0,0 +1,53 @@ +// Update a monitor notification rule with rule options returns "OK" response + +import com.datadog.api.client.ApiClient; +import com.datadog.api.client.ApiException; +import com.datadog.api.client.v2.api.MonitorsApi; +import com.datadog.api.client.v2.model.MonitorNotificationRuleAttributes; +import com.datadog.api.client.v2.model.MonitorNotificationRuleFilter; +import com.datadog.api.client.v2.model.MonitorNotificationRuleFilterTags; +import com.datadog.api.client.v2.model.MonitorNotificationRuleOptions; +import com.datadog.api.client.v2.model.MonitorNotificationRuleResourceType; +import com.datadog.api.client.v2.model.MonitorNotificationRuleResponse; +import com.datadog.api.client.v2.model.MonitorNotificationRuleUpdateRequest; +import com.datadog.api.client.v2.model.MonitorNotificationRuleUpdateRequestData; +import java.util.Collections; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = ApiClient.getDefaultApiClient(); + defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN")); + MonitorsApi apiInstance = new MonitorsApi(defaultClient); + + // there is a valid "monitor_notification_rule" in the system + String MONITOR_NOTIFICATION_RULE_DATA_ID = System.getenv("MONITOR_NOTIFICATION_RULE_DATA_ID"); + + MonitorNotificationRuleUpdateRequest body = + new MonitorNotificationRuleUpdateRequest() + .data( + new MonitorNotificationRuleUpdateRequestData() + .attributes( + new MonitorNotificationRuleAttributes() + .filter( + new MonitorNotificationRuleFilter( + new MonitorNotificationRuleFilterTags() + .tags(Collections.singletonList("test:example-monitor")))) + .name("updated rule") + .recipients(Collections.singletonList("slack-test-channel")) + .ruleOptions(new MonitorNotificationRuleOptions().isThreaded(false))) + .id(MONITOR_NOTIFICATION_RULE_DATA_ID) + .type(MonitorNotificationRuleResourceType.MONITOR_NOTIFICATION_RULE)); + + try { + MonitorNotificationRuleResponse result = + apiInstance.updateMonitorNotificationRule(MONITOR_NOTIFICATION_RULE_DATA_ID, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling MonitorsApi#updateMonitorNotificationRule"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} diff --git a/src/main/java/com/datadog/api/client/v2/api/RestrictionPoliciesApi.java b/src/main/java/com/datadog/api/client/v2/api/RestrictionPoliciesApi.java index c76491c777b..a90eae63da0 100644 --- a/src/main/java/com/datadog/api/client/v2/api/RestrictionPoliciesApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/RestrictionPoliciesApi.java @@ -51,14 +51,15 @@ public void setApiClient(ApiClient apiClient) { *
See {@link #deleteRestrictionPolicyWithHttpInfo}.
*
* @param resourceId Identifier, formatted as type:id. Supported types:
- * dashboard, integration-service, integration-webhook,
- * notebook, powerpack, reference-table,
- * security-rule, slo, synthetics-global-variable,
- * synthetics-test, synthetics-private-location, monitor,
- * workflow, app-builder-app, connection,
- * connection-group, rum-application, cross-org-connection,
- * spreadsheet, on-call-schedule, on-call-escalation-policy
- * , on-call-team-routing-rules, logs-pipeline,
+ * ai-gateway-provider, dashboard, integration-service,
+ * integration-webhook, notebook, powerpack,
+ * reference-table, security-rule, slo,
+ * synthetics-global-variable, synthetics-test,
+ * synthetics-private-location, monitor, workflow,
+ * app-builder-app, connection, connection-group,
+ * rum-application, cross-org-connection, spreadsheet,
+ * on-call-schedule, on-call-escalation-policy,
+ * on-call-team-routing-rules, logs-pipeline,
* case-management-project, monitor-notification-rule, status-page
* , feature-flag, network-path-config. (required)
* @throws ApiException if fails to make API call
@@ -73,14 +74,15 @@ public void deleteRestrictionPolicy(String resourceId) throws ApiException {
*
See {@link #deleteRestrictionPolicyWithHttpInfoAsync}.
*
* @param resourceId Identifier, formatted as See {@link #deleteRestrictionPolicyWithHttpInfo}.
*
* @param resourceId Identifier, formatted as See {@link #getRestrictionPolicyWithHttpInfo}.
*
* @param resourceId Identifier, formatted as See {@link #getRestrictionPolicyWithHttpInfoAsync}.
*
* @param resourceId Identifier, formatted as See {@link #getRestrictionPolicyWithHttpInfo}.
*
* @param resourceId Identifier, formatted as See {@link #updateRestrictionPolicyWithHttpInfo}.
*
* @param resourceId Identifier, formatted as See {@link #updateRestrictionPolicyWithHttpInfoAsync}.
*
* @param resourceId Identifier, formatted as See {@link #updateRestrictionPolicyWithHttpInfo}.
*
* @param resourceId Identifier, formatted as See {@link #updateRestrictionPolicyWithHttpInfoAsync}.
*
* @param resourceId Identifier, formatted as Restriction policies can be applied to the following resources: - Dashboards: Restriction policies can be applied to the following resources: - AI Gateway Providers:
+ * AI Gateway provider policies control configuration and inherited model/catalog/pricing
+ * visibility. The editor relation includes View. Providers have no Run relation; restriction
+ * policies don't affect inference. Reading requires Resource Type | Supported Relations ----------------------------|--------------------------
- * Dashboards | See {@link #updateRestrictionPolicyWithHttpInfo}.
*
* @param resourceId Identifier, formatted as type:id. Supported types:
- * dashboard, integration-service, integration-webhook,
- * notebook, powerpack, reference-table,
- * security-rule, slo, synthetics-global-variable,
- * synthetics-test, synthetics-private-location, monitor,
- * workflow, app-builder-app, connection,
- * connection-group, rum-application, cross-org-connection,
- * spreadsheet, on-call-schedule, on-call-escalation-policy
- * , on-call-team-routing-rules, logs-pipeline,
+ * ai-gateway-provider, dashboard, integration-service,
+ * integration-webhook, notebook, powerpack,
+ * reference-table, security-rule, slo,
+ * synthetics-global-variable, synthetics-test,
+ * synthetics-private-location, monitor, workflow,
+ * app-builder-app, connection, connection-group,
+ * rum-application, cross-org-connection, spreadsheet,
+ * on-call-schedule, on-call-escalation-policy,
+ * on-call-team-routing-rules, logs-pipeline,
* case-management-project, monitor-notification-rule, status-page
* , feature-flag, network-path-config. (required)
* @return CompletableFuture
@@ -94,17 +96,20 @@ public CompletableFutureai_gateway_config_write and provider Edit. Deleting a provider policy
+ * restores normal unrestricted defaults.
*
* @param resourceId Identifier, formatted as type:id. Supported types:
- * dashboard, integration-service, integration-webhook,
- * notebook, powerpack, reference-table,
- * security-rule, slo, synthetics-global-variable,
- * synthetics-test, synthetics-private-location, monitor,
- * workflow, app-builder-app, connection,
- * connection-group, rum-application, cross-org-connection,
- * spreadsheet, on-call-schedule, on-call-escalation-policy
- * , on-call-team-routing-rules, logs-pipeline,
+ * ai-gateway-provider, dashboard, integration-service,
+ * integration-webhook, notebook, powerpack,
+ * reference-table, security-rule, slo,
+ * synthetics-global-variable, synthetics-test,
+ * synthetics-private-location, monitor, workflow,
+ * app-builder-app, connection, connection-group,
+ * rum-application, cross-org-connection, spreadsheet,
+ * on-call-schedule, on-call-escalation-policy,
+ * on-call-team-routing-rules, logs-pipeline,
* case-management-project, monitor-notification-rule, status-page
* , feature-flag, network-path-config. (required)
* @return ApiResponse<Void>
@@ -162,14 +167,15 @@ public ApiResponsetype:id. Supported types:
- * dashboard, integration-service, integration-webhook,
- * notebook, powerpack, reference-table,
- * security-rule, slo, synthetics-global-variable,
- * synthetics-test, synthetics-private-location, monitor,
- * workflow, app-builder-app, connection,
- * connection-group, rum-application, cross-org-connection,
- * spreadsheet, on-call-schedule, on-call-escalation-policy
- * , on-call-team-routing-rules, logs-pipeline,
+ * ai-gateway-provider, dashboard, integration-service,
+ * integration-webhook, notebook, powerpack,
+ * reference-table, security-rule, slo,
+ * synthetics-global-variable, synthetics-test,
+ * synthetics-private-location, monitor, workflow,
+ * app-builder-app, connection, connection-group,
+ * rum-application, cross-org-connection, spreadsheet,
+ * on-call-schedule, on-call-escalation-policy,
+ * on-call-team-routing-rules, logs-pipeline,
* case-management-project, monitor-notification-rule, status-page
* , feature-flag, network-path-config. (required)
* @return CompletableFuture<ApiResponse<Void>>
@@ -228,14 +234,15 @@ public CompletableFuturetype:id. Supported types:
- * dashboard, integration-service, integration-webhook,
- * notebook, powerpack, reference-table,
- * security-rule, slo, synthetics-global-variable,
- * synthetics-test, synthetics-private-location, monitor,
- * workflow, app-builder-app, connection,
- * connection-group, rum-application, cross-org-connection,
- * spreadsheet, on-call-schedule, on-call-escalation-policy
- * , on-call-team-routing-rules, logs-pipeline,
+ * ai-gateway-provider, dashboard, integration-service,
+ * integration-webhook, notebook, powerpack,
+ * reference-table, security-rule, slo,
+ * synthetics-global-variable, synthetics-test,
+ * synthetics-private-location, monitor, workflow,
+ * app-builder-app, connection, connection-group,
+ * rum-application, cross-org-connection, spreadsheet,
+ * on-call-schedule, on-call-escalation-policy,
+ * on-call-team-routing-rules, logs-pipeline,
* case-management-project, monitor-notification-rule, status-page
* , feature-flag, network-path-config. (required)
* @return RestrictionPolicyResponse
@@ -251,14 +258,15 @@ public RestrictionPolicyResponse getRestrictionPolicy(String resourceId) throws
* type:id. Supported types:
- * dashboard, integration-service, integration-webhook,
- * notebook, powerpack, reference-table,
- * security-rule, slo, synthetics-global-variable,
- * synthetics-test, synthetics-private-location, monitor,
- * workflow, app-builder-app, connection,
- * connection-group, rum-application, cross-org-connection,
- * spreadsheet, on-call-schedule, on-call-escalation-policy
- * , on-call-team-routing-rules, logs-pipeline,
+ * ai-gateway-provider, dashboard, integration-service,
+ * integration-webhook, notebook, powerpack,
+ * reference-table, security-rule, slo,
+ * synthetics-global-variable, synthetics-test,
+ * synthetics-private-location, monitor, workflow,
+ * app-builder-app, connection, connection-group,
+ * rum-application, cross-org-connection, spreadsheet,
+ * on-call-schedule, on-call-escalation-policy,
+ * on-call-team-routing-rules, logs-pipeline,
* case-management-project, monitor-notification-rule, status-page
* , feature-flag, network-path-config. (required)
* @return CompletableFuture<RestrictionPolicyResponse>
@@ -272,17 +280,20 @@ public CompletableFutureai_gateway_config_read and provider View. Hidden providers
+ * return 404.
*
* @param resourceId Identifier, formatted as type:id. Supported types:
- * dashboard, integration-service, integration-webhook,
- * notebook, powerpack, reference-table,
- * security-rule, slo, synthetics-global-variable,
- * synthetics-test, synthetics-private-location, monitor,
- * workflow, app-builder-app, connection,
- * connection-group, rum-application, cross-org-connection,
- * spreadsheet, on-call-schedule, on-call-escalation-policy
- * , on-call-team-routing-rules, logs-pipeline,
+ * ai-gateway-provider, dashboard, integration-service,
+ * integration-webhook, notebook, powerpack,
+ * reference-table, security-rule, slo,
+ * synthetics-global-variable, synthetics-test,
+ * synthetics-private-location, monitor, workflow,
+ * app-builder-app, connection, connection-group,
+ * rum-application, cross-org-connection, spreadsheet,
+ * on-call-schedule, on-call-escalation-policy,
+ * on-call-team-routing-rules, logs-pipeline,
* case-management-project, monitor-notification-rule, status-page
* , feature-flag, network-path-config. (required)
* @return ApiResponse<RestrictionPolicyResponse>
@@ -294,6 +305,7 @@ public CompletableFuture
* 200 OK -
* 400 Bad Request -
+ * 403 Not Authorized -
* 404 Not Found -
*
*/
@@ -340,14 +352,15 @@ public ApiResponse 429 Too many requests - type:id. Supported types:
- * dashboard, integration-service, integration-webhook,
- * notebook, powerpack, reference-table,
- * security-rule, slo, synthetics-global-variable,
- * synthetics-test, synthetics-private-location, monitor,
- * workflow, app-builder-app, connection,
- * connection-group, rum-application, cross-org-connection,
- * spreadsheet, on-call-schedule, on-call-escalation-policy
- * , on-call-team-routing-rules, logs-pipeline,
+ * ai-gateway-provider, dashboard, integration-service,
+ * integration-webhook, notebook, powerpack,
+ * reference-table, security-rule, slo,
+ * synthetics-global-variable, synthetics-test,
+ * synthetics-private-location, monitor, workflow,
+ * app-builder-app, connection, connection-group,
+ * rum-application, cross-org-connection, spreadsheet,
+ * on-call-schedule, on-call-escalation-policy,
+ * on-call-team-routing-rules, logs-pipeline,
* case-management-project, monitor-notification-rule, status-page
* , feature-flag, network-path-config. (required)
* @return CompletableFuture<ApiResponse<RestrictionPolicyResponse>>
@@ -425,14 +438,15 @@ public UpdateRestrictionPolicyOptionalParameters allowSelfLockout(Boolean allowS
* type:id. Supported types:
- * dashboard, integration-service, integration-webhook,
- * notebook, powerpack, reference-table,
- * security-rule, slo, synthetics-global-variable,
- * synthetics-test, synthetics-private-location, monitor,
- * workflow, app-builder-app, connection,
- * connection-group, rum-application, cross-org-connection,
- * spreadsheet, on-call-schedule, on-call-escalation-policy
- * , on-call-team-routing-rules, logs-pipeline,
+ * ai-gateway-provider, dashboard, integration-service,
+ * integration-webhook, notebook, powerpack,
+ * reference-table, security-rule, slo,
+ * synthetics-global-variable, synthetics-test,
+ * synthetics-private-location, monitor, workflow,
+ * app-builder-app, connection, connection-group,
+ * rum-application, cross-org-connection, spreadsheet,
+ * on-call-schedule, on-call-escalation-policy,
+ * on-call-team-routing-rules, logs-pipeline,
* case-management-project, monitor-notification-rule, status-page
* , feature-flag, network-path-config. (required)
* @param body Restriction policy payload (required)
@@ -452,14 +466,15 @@ resourceId, body, new UpdateRestrictionPolicyOptionalParameters())
* type:id. Supported types:
- * dashboard, integration-service, integration-webhook,
- * notebook, powerpack, reference-table,
- * security-rule, slo, synthetics-global-variable,
- * synthetics-test, synthetics-private-location, monitor,
- * workflow, app-builder-app, connection,
- * connection-group, rum-application, cross-org-connection,
- * spreadsheet, on-call-schedule, on-call-escalation-policy
- * , on-call-team-routing-rules, logs-pipeline,
+ * ai-gateway-provider, dashboard, integration-service,
+ * integration-webhook, notebook, powerpack,
+ * reference-table, security-rule, slo,
+ * synthetics-global-variable, synthetics-test,
+ * synthetics-private-location, monitor, workflow,
+ * app-builder-app, connection, connection-group,
+ * rum-application, cross-org-connection, spreadsheet,
+ * on-call-schedule, on-call-escalation-policy,
+ * on-call-team-routing-rules, logs-pipeline,
* case-management-project, monitor-notification-rule, status-page
* , feature-flag, network-path-config. (required)
* @param body Restriction policy payload (required)
@@ -481,14 +496,15 @@ resourceId, body, new UpdateRestrictionPolicyOptionalParameters())
* type:id. Supported types:
- * dashboard, integration-service, integration-webhook,
- * notebook, powerpack, reference-table,
- * security-rule, slo, synthetics-global-variable,
- * synthetics-test, synthetics-private-location, monitor,
- * workflow, app-builder-app, connection,
- * connection-group, rum-application, cross-org-connection,
- * spreadsheet, on-call-schedule, on-call-escalation-policy
- * , on-call-team-routing-rules, logs-pipeline,
+ * ai-gateway-provider, dashboard, integration-service,
+ * integration-webhook, notebook, powerpack,
+ * reference-table, security-rule, slo,
+ * synthetics-global-variable, synthetics-test,
+ * synthetics-private-location, monitor, workflow,
+ * app-builder-app, connection, connection-group,
+ * rum-application, cross-org-connection, spreadsheet,
+ * on-call-schedule, on-call-escalation-policy,
+ * on-call-team-routing-rules, logs-pipeline,
* case-management-project, monitor-notification-rule, status-page
* , feature-flag, network-path-config. (required)
* @param body Restriction policy payload (required)
@@ -510,14 +526,15 @@ public RestrictionPolicyResponse updateRestrictionPolicy(
* type:id. Supported types:
- * dashboard, integration-service, integration-webhook,
- * notebook, powerpack, reference-table,
- * security-rule, slo, synthetics-global-variable,
- * synthetics-test, synthetics-private-location, monitor,
- * workflow, app-builder-app, connection,
- * connection-group, rum-application, cross-org-connection,
- * spreadsheet, on-call-schedule, on-call-escalation-policy
- * , on-call-team-routing-rules, logs-pipeline,
+ * ai-gateway-provider, dashboard, integration-service,
+ * integration-webhook, notebook, powerpack,
+ * reference-table, security-rule, slo,
+ * synthetics-global-variable, synthetics-test,
+ * synthetics-private-location, monitor, workflow,
+ * app-builder-app, connection, connection-group,
+ * rum-application, cross-org-connection, spreadsheet,
+ * on-call-schedule, on-call-escalation-policy,
+ * on-call-team-routing-rules, logs-pipeline,
* case-management-project, monitor-notification-rule, status-page
* , feature-flag, network-path-config. (required)
* @param body Restriction policy payload (required)
@@ -540,58 +557,67 @@ public CompletableFutureSupported resources
*
- *
- * dashboard - Integration Services: integration-service - Integration
- * Webhooks: integration-webhook - Notebooks: notebook - Powerpacks:
- * powerpack - Reference Tables: reference-table - Security Rules:
- * security-rule - Service Level Objectives: slo - Synthetic Global
- * Variables: synthetics-global-variable - Synthetic Tests: synthetics-test
- * - Synthetic Private Locations: synthetics-private-location - Monitors:
- * monitor - Workflows: workflow - App Builder Apps:
- * app-builder-app - Connections: connection - Connection Groups:
- * connection-group - RUM Applications: rum-application - Cross Org
- * Connections: cross-org-connection - Spreadsheets: spreadsheet -
- * On-Call Schedules: on-call-schedule - On-Call Escalation Policies:
- * on-call-escalation-policy - On-Call Team Routing Rules: on-call-team-routing-rules
- * - Logs Pipelines: logs-pipeline - Case Management Projects:
- * case-management-project - Monitor Notification Rules: monitor-notification-rule
- * - Status Pages: status-page - Feature Flags: feature-flag -
- * Network Path Configs: network-path-config
+ * ai-gateway-provider - Dashboards: dashboard - Integration Services:
+ * integration-service - Integration Webhooks: integration-webhook -
+ * Notebooks: notebook - Powerpacks: powerpack - Reference Tables:
+ * reference-table - Security Rules: security-rule - Service Level
+ * Objectives: slo - Synthetic Global Variables: synthetics-global-variable
+ * - Synthetic Tests: synthetics-test - Synthetic Private Locations:
+ * synthetics-private-location - Monitors: monitor - Workflows: workflow
+ * - App Builder Apps: app-builder-app - Connections: connection
+ * - Connection Groups: connection-group - RUM Applications: rum-application
+ * - Cross Org Connections: cross-org-connection - Spreadsheets:
+ * spreadsheet - On-Call Schedules: on-call-schedule - On-Call Escalation
+ * Policies: on-call-escalation-policy - On-Call Team Routing Rules:
+ * on-call-team-routing-rules - Logs Pipelines: logs-pipeline - Case
+ * Management Projects: case-management-project - Monitor Notification Rules:
+ * monitor-notification-rule - Status Pages: status-page - Feature Flags:
+ * feature-flag - Network Path Configs: network-path-config
+ *
+ * ai_gateway_config_read and
+ * provider View. Updating or deleting requires ai_gateway_config_write and provider
+ * Edit. Providers without a restriction policy retain the normal unrestricted defaults.
+ * Administrator status alone does not bypass provider restrictions.
*
* Supported relations for resources
*
* viewer, editor Integration Services | viewer
- * , editor Integration Webhooks | viewer, editor
- * Notebooks | viewer, editor Powerpacks | viewer,
- * editor Security Rules | viewer, editor Service Level
- * Objectives | viewer, editor Synthetic Global Variables | viewer
- * , editor Synthetic Tests | viewer, editor
- * Synthetic Private Locations | viewer, editor Monitors | viewer
- * , editor Reference Tables | viewer, editor
- * Workflows | viewer, runner, editor App Builder Apps |
- * viewer, editor Connections | viewer, resolver
- * , editor Connection Groups | viewer, editor RUM
- * Application | viewer, editor Cross Org Connections | viewer
- * , editor Spreadsheets | viewer, editor On-Call
- * Schedules | viewer, overrider, editor On-Call Escalation
- * Policies | viewer, editor On-Call Team Routing Rules | viewer
- * , editor Logs Pipelines | viewer, processors_editor
- * , editor Case Management Projects | viewer, contributor
- * , manager Monitor Notification Rules | viewer, editor
- * Status Pages | viewer, responder, manager
- * Feature Flags | viewer, contributor, editor Network Path
- * Configs | viewer, editor
+ * AI Gateway Providers | viewer, editor Dashboards | viewer
+ * , editor Integration Services | viewer, editor
+ * Integration Webhooks | viewer, editor Notebooks | viewer
+ * , editor Powerpacks | viewer, editor Security Rules |
+ * viewer, editor Service Level Objectives | viewer,
+ * editor Synthetic Global Variables | viewer, editor Synthetic
+ * Tests | viewer, editor Synthetic Private Locations | viewer
+ * , editor Monitors | viewer, editor Reference
+ * Tables | viewer, editor Workflows | viewer, runner
+ * , editor App Builder Apps | viewer, editor
+ * Connections | viewer, resolver, editor Connection Groups
+ * | viewer, editor RUM Application | viewer, editor
+ * Cross Org Connections | viewer, editor Spreadsheets |
+ * viewer, editor On-Call Schedules | viewer, overrider
+ * , editor On-Call Escalation Policies | viewer, editor
+ * On-Call Team Routing Rules | viewer, editor Logs Pipelines |
+ * viewer, processors_editor, editor Case Management
+ * Projects | viewer, contributor, manager Monitor
+ * Notification Rules | viewer, editor Status Pages | viewer
+ * , responder, manager Feature Flags | viewer,
+ * contributor, editor Network Path Configs | viewer,
+ * editor
*
* @param resourceId Identifier, formatted as type:id. Supported types:
- * dashboard, integration-service, integration-webhook,
- * notebook, powerpack, reference-table,
- * security-rule, slo, synthetics-global-variable,
- * synthetics-test, synthetics-private-location, monitor,
- * workflow, app-builder-app, connection,
- * connection-group, rum-application, cross-org-connection,
- * spreadsheet, on-call-schedule, on-call-escalation-policy
- * , on-call-team-routing-rules, logs-pipeline,
+ * ai-gateway-provider, dashboard, integration-service,
+ * integration-webhook, notebook, powerpack,
+ * reference-table, security-rule, slo,
+ * synthetics-global-variable, synthetics-test,
+ * synthetics-private-location, monitor, workflow,
+ * app-builder-app, connection, connection-group,
+ * rum-application, cross-org-connection, spreadsheet,
+ * on-call-schedule, on-call-escalation-policy,
+ * on-call-team-routing-rules, logs-pipeline,
* case-management-project, monitor-notification-rule, status-page
* , feature-flag, network-path-config. (required)
* @param body Restriction policy payload (required)
@@ -665,14 +691,15 @@ public ApiResponsetype:id. Supported types:
- * dashboard, integration-service, integration-webhook,
- * notebook, powerpack, reference-table,
- * security-rule, slo, synthetics-global-variable,
- * synthetics-test, synthetics-private-location, monitor,
- * workflow, app-builder-app, connection,
- * connection-group, rum-application, cross-org-connection,
- * spreadsheet, on-call-schedule, on-call-escalation-policy
- * , on-call-team-routing-rules, logs-pipeline,
+ * ai-gateway-provider, dashboard, integration-service,
+ * integration-webhook, notebook, powerpack,
+ * reference-table, security-rule, slo,
+ * synthetics-global-variable, synthetics-test,
+ * synthetics-private-location, monitor, workflow,
+ * app-builder-app, connection, connection-group,
+ * rum-application, cross-org-connection, spreadsheet,
+ * on-call-schedule, on-call-escalation-policy,
+ * on-call-team-routing-rules, logs-pipeline,
* case-management-project, monitor-notification-rule, status-page
* , feature-flag, network-path-config. (required)
* @param body Restriction policy payload (required)
diff --git a/src/main/java/com/datadog/api/client/v2/model/MonitorNotificationRuleAttributes.java b/src/main/java/com/datadog/api/client/v2/model/MonitorNotificationRuleAttributes.java
index cafd40ebb1e..7072b15e482 100644
--- a/src/main/java/com/datadog/api/client/v2/model/MonitorNotificationRuleAttributes.java
+++ b/src/main/java/com/datadog/api/client/v2/model/MonitorNotificationRuleAttributes.java
@@ -21,7 +21,8 @@
MonitorNotificationRuleAttributes.JSON_PROPERTY_CONDITIONAL_RECIPIENTS,
MonitorNotificationRuleAttributes.JSON_PROPERTY_FILTER,
MonitorNotificationRuleAttributes.JSON_PROPERTY_NAME,
- MonitorNotificationRuleAttributes.JSON_PROPERTY_RECIPIENTS
+ MonitorNotificationRuleAttributes.JSON_PROPERTY_RECIPIENTS,
+ MonitorNotificationRuleAttributes.JSON_PROPERTY_RULE_OPTIONS
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
@@ -42,6 +43,9 @@ public class MonitorNotificationRuleAttributes {
public static final String JSON_PROPERTY_RECIPIENTS = "recipients";
private Listtrue, follow-up
+ * notifications for the same monitor alert are posted in Slack as replies to the first
+ * notification. Cannot be true when bundle_config is set.
+ *
+ * @return isThreaded
+ */
+ @JsonProperty(JSON_PROPERTY_IS_THREADED)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ public Boolean getIsThreaded() {
+ return isThreaded;
+ }
+
+ public void setIsThreaded(Boolean isThreaded) {
+ this.isThreaded = isThreaded;
+ }
+
+ /**
+ * A container for additional, undeclared properties. This is a holder for any undeclared
+ * properties as specified with the 'additionalProperties' keyword in the OAS document.
+ */
+ private Map