Skip to content
Merged
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
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2025-03-14 07:51:10.767732",
"spec_repo_commit": "899883be"
"regenerated": "2025-03-17 17:20:20.728873",
"spec_repo_commit": "29344bf2"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-03-14 07:51:10.783055",
"spec_repo_commit": "899883be"
"regenerated": "2025-03-17 17:20:20.745019",
"spec_repo_commit": "29344bf2"
}
}
}
18 changes: 2 additions & 16 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14746,6 +14746,8 @@ components:
properties:
aggregation:
$ref: '#/components/schemas/SecurityMonitoringRuleQueryAggregation'
dataSource:
$ref: '#/components/schemas/SecurityMonitoringStandardDataSource'
distinctFields:
description: Field for which the cardinality is measured. Sent as an array.
items:
Expand Down Expand Up @@ -29900,24 +29902,8 @@ components:
type: object
ServiceDefinitionV2Dot2Type:
description: The type of service.
enum:
- web
- db
- cache
- function
- browser
- mobile
- custom
example: web
type: string
x-enum-varnames:
- WEB
- DB
- CACHE
- FUNCTION
- BROSWER
- MOBILE
- CUSTOM
ServiceDefinitionV2Dot2Version:
default: v2.2
description: Schema version being used.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@
],
team: "my-team",
tier: "High",
type: DatadogAPIClient::V2::ServiceDefinitionV2Dot2Type::WEB,
type: "web",
})
p api_instance.create_or_update_service_definitions(body)
1 change: 0 additions & 1 deletion lib/datadog_api_client/inflector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2769,7 +2769,6 @@ def overrides
"v2.service_definition_v2_dot2_opsgenie" => "ServiceDefinitionV2Dot2Opsgenie",
"v2.service_definition_v2_dot2_opsgenie_region" => "ServiceDefinitionV2Dot2OpsgenieRegion",
"v2.service_definition_v2_dot2_pagerduty" => "ServiceDefinitionV2Dot2Pagerduty",
"v2.service_definition_v2_dot2_type" => "ServiceDefinitionV2Dot2Type",
"v2.service_definition_v2_dot2_version" => "ServiceDefinitionV2Dot2Version",
"v2.service_definition_v2_email" => "ServiceDefinitionV2Email",
"v2.service_definition_v2_email_type" => "ServiceDefinitionV2EmailType",
Expand Down
12 changes: 11 additions & 1 deletion lib/datadog_api_client/v2/models/historical_job_query.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ class HistoricalJobQuery
# The aggregation type.
attr_accessor :aggregation

# Source of events, either logs or audit trail.
attr_accessor :data_source

# Field for which the cardinality is measured. Sent as an array.
attr_accessor :distinct_fields

Expand All @@ -49,6 +52,7 @@ class HistoricalJobQuery
def self.attribute_map
{
:'aggregation' => :'aggregation',
:'data_source' => :'dataSource',
:'distinct_fields' => :'distinctFields',
:'group_by_fields' => :'groupByFields',
:'has_optional_group_by_fields' => :'hasOptionalGroupByFields',
Expand All @@ -63,6 +67,7 @@ def self.attribute_map
def self.openapi_types
{
:'aggregation' => :'SecurityMonitoringRuleQueryAggregation',
:'data_source' => :'SecurityMonitoringStandardDataSource',
:'distinct_fields' => :'Array<String>',
:'group_by_fields' => :'Array<String>',
:'has_optional_group_by_fields' => :'Boolean',
Expand Down Expand Up @@ -94,6 +99,10 @@ def initialize(attributes = {})
self.aggregation = attributes[:'aggregation']
end

if attributes.key?(:'data_source')
self.data_source = attributes[:'data_source']
end

if attributes.key?(:'distinct_fields')
if (value = attributes[:'distinct_fields']).is_a?(Array)
self.distinct_fields = value
Expand Down Expand Up @@ -152,6 +161,7 @@ def ==(o)
return true if self.equal?(o)
self.class == o.class &&
aggregation == o.aggregation &&
data_source == o.data_source &&
distinct_fields == o.distinct_fields &&
group_by_fields == o.group_by_fields &&
has_optional_group_by_fields == o.has_optional_group_by_fields &&
Expand All @@ -165,7 +175,7 @@ def ==(o)
# @return [Integer] Hash code
# @!visibility private
def hash
[aggregation, distinct_fields, group_by_fields, has_optional_group_by_fields, metrics, name, query, additional_properties].hash
[aggregation, data_source, distinct_fields, group_by_fields, has_optional_group_by_fields, metrics, name, query, additional_properties].hash
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def self.openapi_types
:'tags' => :'Array<String>',
:'team' => :'String',
:'tier' => :'String',
:'type' => :'ServiceDefinitionV2Dot2Type'
:'type' => :'String'
}
end

Expand Down

This file was deleted.

Loading