Sha256: 92ed74a070e68a80f154ee867b3928ed6e56f2fa70989565321335cdcce8cab0
Contents?: true
Size: 715 Bytes
Versions: 9
Compression:
Stored size: 715 Bytes
Contents
# Update a suppression rule returns "OK" response require "datadog_api_client" api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new # there is a valid "suppression" in the system SUPPRESSION_DATA_ID = ENV["SUPPRESSION_DATA_ID"] body = DatadogAPIClient::V2::SecurityMonitoringSuppressionUpdateRequest.new({ data: DatadogAPIClient::V2::SecurityMonitoringSuppressionUpdateData.new({ attributes: DatadogAPIClient::V2::SecurityMonitoringSuppressionUpdateAttributes.new({ suppression_query: "env:staging status:low", }), type: DatadogAPIClient::V2::SecurityMonitoringSuppressionType::SUPPRESSIONS, }), }) p api_instance.update_security_monitoring_suppression(SUPPRESSION_DATA_ID, body)
Version data entries
9 entries across 9 versions & 1 rubygems