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
32 changes: 32 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4231,6 +4231,8 @@ components:
description: >-
A query for APM dependency statistics between services, such as call latency and error rates.
properties:
cross_org_uuids:
$ref: "#/components/schemas/CrossOrgUuids"
data_source:
$ref: "#/components/schemas/ApmDependencyStatsDataSource"
env:
Expand Down Expand Up @@ -4289,6 +4291,8 @@ components:
description: >-
A query for APM trace metrics such as hits, errors, and latency percentiles, aggregated across services.
properties:
cross_org_uuids:
$ref: "#/components/schemas/CrossOrgUuids"
data_source:
$ref: "#/components/schemas/ApmMetricsDataSource"
group_by:
Expand Down Expand Up @@ -4439,6 +4443,8 @@ components:
description: >-
A query for APM resource statistics such as latency, error rate, and hit count, grouped by resource name.
properties:
cross_org_uuids:
$ref: "#/components/schemas/CrossOrgUuids"
data_source:
$ref: "#/components/schemas/ApmResourceStatsDataSource"
env:
Expand Down Expand Up @@ -15258,6 +15264,8 @@ components:
properties:
aggregator:
$ref: "#/components/schemas/MetricsAggregator"
cross_org_uuids:
$ref: "#/components/schemas/CrossOrgUuids"
data_source:
$ref: "#/components/schemas/ContainerDataSource"
is_normalized_cpu:
Expand Down Expand Up @@ -15295,6 +15303,8 @@ components:
ContainerTimeseriesQuery:
description: A query for container-level metrics such as CPU and memory usage.
properties:
cross_org_uuids:
$ref: "#/components/schemas/CrossOrgUuids"
data_source:
$ref: "#/components/schemas/ContainerDataSource"
is_normalized_cpu:
Expand Down Expand Up @@ -18122,6 +18132,14 @@ components:
nullable: true
type: string
type: object
CrossOrgUuids:
description: >-
Organization UUIDs to query when using [cross-organization visibility](/account_management/org_settings/cross_org_visibility/). Limited to one organization UUID.
items:
description: An organization UUID.
type: string
maxItems: 1
type: array
CsmAgentData:
description: Single Agent Data.
properties:
Expand Down Expand Up @@ -26178,6 +26196,8 @@ components:
properties:
compute:
$ref: "#/components/schemas/EventsCompute"
cross_org_uuids:
$ref: "#/components/schemas/CrossOrgUuids"
data_source:
$ref: "#/components/schemas/EventsDataSource"
group_by:
Expand Down Expand Up @@ -26231,6 +26251,8 @@ components:
properties:
compute:
$ref: "#/components/schemas/EventsCompute"
cross_org_uuids:
$ref: "#/components/schemas/CrossOrgUuids"
data_source:
$ref: "#/components/schemas/EventsDataSource"
group_by:
Expand Down Expand Up @@ -44132,6 +44154,8 @@ components:
properties:
aggregator:
$ref: "#/components/schemas/MetricsAggregator"
cross_org_uuids:
$ref: "#/components/schemas/CrossOrgUuids"
data_source:
$ref: "#/components/schemas/MetricsDataSource"
name:
Expand All @@ -44149,6 +44173,8 @@ components:
MetricsTimeseriesQuery:
description: A query against Datadog custom metrics or Cloud Cost data sources.
properties:
cross_org_uuids:
$ref: "#/components/schemas/CrossOrgUuids"
data_source:
$ref: "#/components/schemas/MetricsDataSource"
name:
Expand Down Expand Up @@ -55263,6 +55289,8 @@ components:
properties:
aggregator:
$ref: "#/components/schemas/MetricsAggregator"
cross_org_uuids:
$ref: "#/components/schemas/CrossOrgUuids"
data_source:
$ref: "#/components/schemas/ProcessDataSource"
is_normalized_cpu:
Expand Down Expand Up @@ -55386,6 +55414,8 @@ components:
ProcessTimeseriesQuery:
description: A query for host-level process metrics such as CPU and memory usage.
properties:
cross_org_uuids:
$ref: "#/components/schemas/CrossOrgUuids"
data_source:
$ref: "#/components/schemas/ProcessDataSource"
is_normalized_cpu:
Expand Down Expand Up @@ -69793,6 +69823,8 @@ components:
description: Additional filters applied to the SLO query.
example: "host:host_a,env:prod"
type: string
cross_org_uuids:
$ref: "#/components/schemas/CrossOrgUuids"
data_source:
$ref: "#/components/schemas/SloDataSource"
group_mode:
Expand Down
25 changes: 24 additions & 1 deletion lib/datadog_api_client/v2/models/apm_dependency_stats_query.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ module DatadogAPIClient::V2
class ApmDependencyStatsQuery
include BaseGenericModel

# Organization UUIDs to query when using [cross-organization visibility](/account_management/org_settings/cross_org_visibility/). Limited to one organization UUID.
attr_reader :cross_org_uuids

# A data source for APM dependency statistics queries.
attr_reader :data_source

Expand Down Expand Up @@ -57,6 +60,7 @@ class ApmDependencyStatsQuery
# @!visibility private
def self.attribute_map
{
:'cross_org_uuids' => :'cross_org_uuids',
:'data_source' => :'data_source',
:'env' => :'env',
:'is_upstream' => :'is_upstream',
Expand All @@ -74,6 +78,7 @@ def self.attribute_map
# @!visibility private
def self.openapi_types
{
:'cross_org_uuids' => :'Array<String>',
:'data_source' => :'ApmDependencyStatsDataSource',
:'env' => :'String',
:'is_upstream' => :'Boolean',
Expand Down Expand Up @@ -105,6 +110,12 @@ def initialize(attributes = {})
end
}

if attributes.key?(:'cross_org_uuids')
if (value = attributes[:'cross_org_uuids']).is_a?(Array)
self.cross_org_uuids = value
end
end

if attributes.key?(:'data_source')
self.data_source = attributes[:'data_source']
end
Expand Down Expand Up @@ -150,6 +161,7 @@ def initialize(attributes = {})
# @return true if the model is valid
# @!visibility private
def valid?
return false if !@cross_org_uuids.nil? && @cross_org_uuids.length > 1
return false if @data_source.nil?
return false if @env.nil?
return false if @name.nil?
Expand All @@ -160,6 +172,16 @@ def valid?
true
end

# Custom attribute writer method with validation
# @param cross_org_uuids [Object] Object to be assigned
# @!visibility private
def cross_org_uuids=(cross_org_uuids)
if !cross_org_uuids.nil? && cross_org_uuids.length > 1
fail ArgumentError, 'invalid value for "cross_org_uuids", number of items must be less than or equal to 1.'
end
@cross_org_uuids = cross_org_uuids
end

# Custom attribute writer method with validation
# @param data_source [Object] Object to be assigned
# @!visibility private
Expand Down Expand Up @@ -256,6 +278,7 @@ def to_hash
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
cross_org_uuids == o.cross_org_uuids &&
data_source == o.data_source &&
env == o.env &&
is_upstream == o.is_upstream &&
Expand All @@ -273,7 +296,7 @@ def ==(o)
# @return [Integer] Hash code
# @!visibility private
def hash
[data_source, env, is_upstream, name, operation_name, primary_tag_name, primary_tag_value, resource_name, service, stat, additional_properties].hash
[cross_org_uuids, data_source, env, is_upstream, name, operation_name, primary_tag_name, primary_tag_value, resource_name, service, stat, additional_properties].hash
end
end
end
25 changes: 24 additions & 1 deletion lib/datadog_api_client/v2/models/apm_metrics_query.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ module DatadogAPIClient::V2
class ApmMetricsQuery
include BaseGenericModel

# Organization UUIDs to query when using [cross-organization visibility](/account_management/org_settings/cross_org_visibility/). Limited to one organization UUID.
attr_reader :cross_org_uuids

# A data source for APM metrics queries.
attr_reader :data_source

Expand Down Expand Up @@ -63,6 +66,7 @@ class ApmMetricsQuery
# @!visibility private
def self.attribute_map
{
:'cross_org_uuids' => :'cross_org_uuids',
:'data_source' => :'data_source',
:'group_by' => :'group_by',
:'name' => :'name',
Expand All @@ -82,6 +86,7 @@ def self.attribute_map
# @!visibility private
def self.openapi_types
{
:'cross_org_uuids' => :'Array<String>',
:'data_source' => :'ApmMetricsDataSource',
:'group_by' => :'Array<String>',
:'name' => :'String',
Expand Down Expand Up @@ -115,6 +120,12 @@ def initialize(attributes = {})
end
}

if attributes.key?(:'cross_org_uuids')
if (value = attributes[:'cross_org_uuids']).is_a?(Array)
self.cross_org_uuids = value
end
end

if attributes.key?(:'data_source')
self.data_source = attributes[:'data_source']
end
Expand Down Expand Up @@ -172,12 +183,23 @@ def initialize(attributes = {})
# @return true if the model is valid
# @!visibility private
def valid?
return false if !@cross_org_uuids.nil? && @cross_org_uuids.length > 1
return false if @data_source.nil?
return false if @name.nil?
return false if @stat.nil?
true
end

# Custom attribute writer method with validation
# @param cross_org_uuids [Object] Object to be assigned
# @!visibility private
def cross_org_uuids=(cross_org_uuids)
if !cross_org_uuids.nil? && cross_org_uuids.length > 1
fail ArgumentError, 'invalid value for "cross_org_uuids", number of items must be less than or equal to 1.'
end
@cross_org_uuids = cross_org_uuids
end

# Custom attribute writer method with validation
# @param data_source [Object] Object to be assigned
# @!visibility private
Expand Down Expand Up @@ -234,6 +256,7 @@ def to_hash
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
cross_org_uuids == o.cross_org_uuids &&
data_source == o.data_source &&
group_by == o.group_by &&
name == o.name &&
Expand All @@ -253,7 +276,7 @@ def ==(o)
# @return [Integer] Hash code
# @!visibility private
def hash
[data_source, group_by, name, operation_mode, operation_name, peer_tags, query_filter, resource_hash, resource_name, service, span_kind, stat, additional_properties].hash
[cross_org_uuids, data_source, group_by, name, operation_mode, operation_name, peer_tags, query_filter, resource_hash, resource_name, service, span_kind, stat, additional_properties].hash
end
end
end
25 changes: 24 additions & 1 deletion lib/datadog_api_client/v2/models/apm_resource_stats_query.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ module DatadogAPIClient::V2
class ApmResourceStatsQuery
include BaseGenericModel

# Organization UUIDs to query when using [cross-organization visibility](/account_management/org_settings/cross_org_visibility/). Limited to one organization UUID.
attr_reader :cross_org_uuids

# A data source for APM resource statistics queries.
attr_reader :data_source

Expand Down Expand Up @@ -57,6 +60,7 @@ class ApmResourceStatsQuery
# @!visibility private
def self.attribute_map
{
:'cross_org_uuids' => :'cross_org_uuids',
:'data_source' => :'data_source',
:'env' => :'env',
:'group_by' => :'group_by',
Expand All @@ -74,6 +78,7 @@ def self.attribute_map
# @!visibility private
def self.openapi_types
{
:'cross_org_uuids' => :'Array<String>',
:'data_source' => :'ApmResourceStatsDataSource',
:'env' => :'String',
:'group_by' => :'Array<String>',
Expand Down Expand Up @@ -105,6 +110,12 @@ def initialize(attributes = {})
end
}

if attributes.key?(:'cross_org_uuids')
if (value = attributes[:'cross_org_uuids']).is_a?(Array)
self.cross_org_uuids = value
end
end

if attributes.key?(:'data_source')
self.data_source = attributes[:'data_source']
end
Expand Down Expand Up @@ -152,6 +163,7 @@ def initialize(attributes = {})
# @return true if the model is valid
# @!visibility private
def valid?
return false if !@cross_org_uuids.nil? && @cross_org_uuids.length > 1
return false if @data_source.nil?
return false if @env.nil?
return false if @name.nil?
Expand All @@ -160,6 +172,16 @@ def valid?
true
end

# Custom attribute writer method with validation
# @param cross_org_uuids [Object] Object to be assigned
# @!visibility private
def cross_org_uuids=(cross_org_uuids)
if !cross_org_uuids.nil? && cross_org_uuids.length > 1
fail ArgumentError, 'invalid value for "cross_org_uuids", number of items must be less than or equal to 1.'
end
@cross_org_uuids = cross_org_uuids
end

# Custom attribute writer method with validation
# @param data_source [Object] Object to be assigned
# @!visibility private
Expand Down Expand Up @@ -236,6 +258,7 @@ def to_hash
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
cross_org_uuids == o.cross_org_uuids &&
data_source == o.data_source &&
env == o.env &&
group_by == o.group_by &&
Expand All @@ -253,7 +276,7 @@ def ==(o)
# @return [Integer] Hash code
# @!visibility private
def hash
[data_source, env, group_by, name, operation_name, primary_tag_name, primary_tag_value, resource_name, service, stat, additional_properties].hash
[cross_org_uuids, data_source, env, group_by, name, operation_name, primary_tag_name, primary_tag_value, resource_name, service, stat, additional_properties].hash
end
end
end
Loading
Loading