Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39721,19 +39721,24 @@ components:
- DISTRIBUTION
MetricTagConfigurationMetricTypes:
default: gauge
description: The metric's type.
description: The metric's type. Contact your Customer Success Manager (CSM)
for instructions on how to use the histogram types.
enum:
- gauge
- count
- rate
- distribution
- exponential_histogram
- explicit_histogram
example: count
type: string
x-enum-varnames:
- GAUGE
- COUNT
- RATE
- DISTRIBUTION
- EXPONENTIAL_HISTOGRAM
- EXPLICIT_HISTOGRAM
MetricTagConfigurationResponse:
description: Response object which includes a single metric's tag configuration.
properties:
Expand Down Expand Up @@ -102212,6 +102217,13 @@ paths:
get:
description: Get the list of all critical assets.
operationId: ListSecurityMonitoringCriticalAssets
parameters:
- description: Query string.
in: query
name: query
required: false
schema:
type: string
responses:
'200':
content:
Expand Down
3 changes: 3 additions & 0 deletions features/scenarios_model_mapping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1607,6 +1607,9 @@
"filter_operating_system_name" => "String",
"filter_operating_system_version" => "String",
},
"v2.ListSecurityMonitoringCriticalAssets" => {
"query" => "String",
},
"v2.CreateSecurityMonitoringCriticalAsset" => {
"body" => "SecurityMonitoringCriticalAssetCreateRequest",
},
Expand Down
2 changes: 2 additions & 0 deletions lib/datadog_api_client/v2/api/security_monitoring_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4326,6 +4326,7 @@ def list_security_monitoring_critical_assets(opts = {})
# Get the list of all critical assets.
#
# @param opts [Hash] the optional parameters
# @option opts [String] :query Query string.
# @return [Array<(SecurityMonitoringCriticalAssetsResponse, Integer, Hash)>] SecurityMonitoringCriticalAssetsResponse data, response status code and response headers
def list_security_monitoring_critical_assets_with_http_info(opts = {})

Expand All @@ -4337,6 +4338,7 @@ def list_security_monitoring_critical_assets_with_http_info(opts = {})

# query parameters
query_params = opts[:query_params] || {}
query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?

# header parameters
header_params = opts[:header_params] || {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class MetricTagConfigurationAttributes
# Only present when the `metric_type` is `distribution`.
attr_accessor :include_percentiles

# The metric's type.
# The metric's type. Contact your Customer Success Manager (CSM) for instructions on how to use the histogram types.
attr_accessor :metric_type

# Timestamp when the tag configuration was last modified.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class MetricTagConfigurationCreateAttributes
# Defaults to false. Can only be applied to metrics that have a `metric_type` of `distribution`.
attr_accessor :include_percentiles

# The metric's type.
# The metric's type. Contact your Customer Success Manager (CSM) for instructions on how to use the histogram types.
attr_reader :metric_type

# A list of tag keys that will be queryable for your metric.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@
require 'time'

module DatadogAPIClient::V2
# The metric's type.
# The metric's type. Contact your Customer Success Manager (CSM) for instructions on how to use the histogram types.
class MetricTagConfigurationMetricTypes
include BaseEnumModel

GAUGE = "gauge".freeze
COUNT = "count".freeze
RATE = "rate".freeze
DISTRIBUTION = "distribution".freeze
EXPONENTIAL_HISTOGRAM = "exponential_histogram".freeze
EXPLICIT_HISTOGRAM = "explicit_histogram".freeze
end
end
Loading