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
32 changes: 31 additions & 1 deletion .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5991,6 +5991,10 @@ components:
type: array
data_source:
$ref: "#/components/schemas/ListStreamSource"
env:
description: Filter by APM environment. Usable only with `apm_recommendations_stream`.
example: "staging"
type: string
event_size:
$ref: "#/components/schemas/WidgetEventSize"
group_by:
Expand All @@ -6011,13 +6015,31 @@ components:
description: Widget query.
example: "@service:app"
type: string
recommendation_types:
description: Filter by recommendation types. Usable only with `apm_recommendations_stream`.
items:
description: Recommendation type.
type: string
type: array
services:
description: Filter by service names. Usable only with `apm_recommendations_stream`.
items:
description: Service name.
type: string
type: array
sort:
$ref: "#/components/schemas/WidgetFieldSort"
states:
description: Filter by issue states. Usable only with `issue_stream`.
items:
$ref: "#/components/schemas/ListStreamIssueState"
type: array
statuses:
description: Filter by recommendation statuses. Usable only with `apm_recommendations_stream`.
items:
description: Recommendation status.
type: string
type: array
storage:
description: Option for storage location. Feature in Private Beta.
example: "indexes"
Expand All @@ -6034,6 +6056,12 @@ components:
description: Team handle.
type: string
type: array
teams:
description: Filter by team handles. Usable only with `apm_recommendations_stream`.
items:
description: Team handle.
type: string
type: array
version:
$ref: "#/components/schemas/ListStreamQueryVersion"
required:
Expand All @@ -6059,7 +6087,7 @@ components:
- EVENT_LIST
ListStreamSource:
default: logs_stream
description: Source from which to query items to display in the stream. apm_issue_stream, rum_issue_stream, and logs_issue_stream are deprecated. Use issue_stream instead.
description: Source from which to query items to display in the stream. apm_issue_stream, rum_issue_stream, and logs_issue_stream are deprecated. Use issue_stream instead. apm_recommendations_stream is used to query APM recommendations, and supports filtering by environment, services, teams, recommendation types, and status.
enum:
- logs_stream
- audit_stream
Expand All @@ -6078,6 +6106,7 @@ components:
- security_runtime_stream
- security_signals_stream
- incidents_stream
- apm_recommendations_stream
example: logs_stream
type: string
x-enum-varnames:
Expand All @@ -6098,6 +6127,7 @@ components:
- SECURITY_RUNTIME_STREAM
- SECURITY_SIGNALS_STREAM
- INCIDENTS_STREAM
- APM_RECOMMENDATIONS_STREAM
ListStreamWidgetDefinition:
description: |-
The list stream visualization displays a table of recent events in your application that
Expand Down
62 changes: 60 additions & 2 deletions lib/datadog_api_client/v1/models/list_stream_query.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@ class ListStreamQuery
# Compute configuration for the List Stream Widget. Compute can be used only with the logs_transaction_stream (from 1 to 5 items) list stream source.
attr_reader :compute

# Source from which to query items to display in the stream. apm_issue_stream, rum_issue_stream, and logs_issue_stream are deprecated. Use issue_stream instead.
# Source from which to query items to display in the stream. apm_issue_stream, rum_issue_stream, and logs_issue_stream are deprecated. Use issue_stream instead. apm_recommendations_stream is used to query APM recommendations, and supports filtering by environment, services, teams, recommendation types, and status.
attr_reader :data_source

# Filter by APM environment. Usable only with `apm_recommendations_stream`.
attr_accessor :env

# Size to use to display an event.
attr_accessor :event_size

Expand All @@ -48,12 +51,21 @@ class ListStreamQuery
# Widget query.
attr_reader :query_string

# Filter by recommendation types. Usable only with `apm_recommendations_stream`.
attr_accessor :recommendation_types

# Filter by service names. Usable only with `apm_recommendations_stream`.
attr_accessor :services

# Which column and order to sort by
attr_accessor :sort

# Filter by issue states. Usable only with `issue_stream`.
attr_accessor :states

# Filter by recommendation statuses. Usable only with `apm_recommendations_stream`.
attr_accessor :statuses

# Option for storage location. Feature in Private Beta.
attr_accessor :storage

Expand All @@ -63,6 +75,9 @@ class ListStreamQuery
# Filter by team handles. Usable only with `issue_stream`.
attr_accessor :team_handles

# Filter by team handles. Usable only with `apm_recommendations_stream`.
attr_accessor :teams

# Version of the query for the logs transaction stream widget. When omitted, v1 query behavior is
# preserved. Set to `sequential_query` to use v2 behavior. **This feature is in Preview.**
attr_accessor :version
Expand All @@ -77,16 +92,21 @@ def self.attribute_map
:'clustering_pattern_field_path' => :'clustering_pattern_field_path',
:'compute' => :'compute',
:'data_source' => :'data_source',
:'env' => :'env',
:'event_size' => :'event_size',
:'group_by' => :'group_by',
:'indexes' => :'indexes',
:'persona' => :'persona',
:'query_string' => :'query_string',
:'recommendation_types' => :'recommendation_types',
:'services' => :'services',
:'sort' => :'sort',
:'states' => :'states',
:'statuses' => :'statuses',
:'storage' => :'storage',
:'suspected_causes' => :'suspected_causes',
:'team_handles' => :'team_handles',
:'teams' => :'teams',
:'version' => :'version'
}
end
Expand All @@ -99,16 +119,21 @@ def self.openapi_types
:'clustering_pattern_field_path' => :'String',
:'compute' => :'Array<ListStreamComputeItems>',
:'data_source' => :'ListStreamSource',
:'env' => :'String',
:'event_size' => :'WidgetEventSize',
:'group_by' => :'Array<ListStreamGroupByItems>',
:'indexes' => :'Array<String>',
:'persona' => :'ListStreamIssuePersona',
:'query_string' => :'String',
:'recommendation_types' => :'Array<String>',
:'services' => :'Array<String>',
:'sort' => :'WidgetFieldSort',
:'states' => :'Array<ListStreamIssueState>',
:'statuses' => :'Array<String>',
:'storage' => :'String',
:'suspected_causes' => :'Array<String>',
:'team_handles' => :'Array<String>',
:'teams' => :'Array<String>',
:'version' => :'ListStreamQueryVersion'
}
end
Expand Down Expand Up @@ -151,6 +176,10 @@ def initialize(attributes = {})
self.data_source = attributes[:'data_source']
end

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

if attributes.key?(:'event_size')
self.event_size = attributes[:'event_size']
end
Expand All @@ -175,6 +204,18 @@ def initialize(attributes = {})
self.query_string = attributes[:'query_string']
end

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

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

if attributes.key?(:'sort')
self.sort = attributes[:'sort']
end
Expand All @@ -185,6 +226,12 @@ def initialize(attributes = {})
end
end

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

if attributes.key?(:'storage')
self.storage = attributes[:'storage']
end
Expand All @@ -201,6 +248,12 @@ def initialize(attributes = {})
end
end

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

if attributes.key?(:'version')
self.version = attributes[:'version']
end
Expand Down Expand Up @@ -291,16 +344,21 @@ def ==(o)
clustering_pattern_field_path == o.clustering_pattern_field_path &&
compute == o.compute &&
data_source == o.data_source &&
env == o.env &&
event_size == o.event_size &&
group_by == o.group_by &&
indexes == o.indexes &&
persona == o.persona &&
query_string == o.query_string &&
recommendation_types == o.recommendation_types &&
services == o.services &&
sort == o.sort &&
states == o.states &&
statuses == o.statuses &&
storage == o.storage &&
suspected_causes == o.suspected_causes &&
team_handles == o.team_handles &&
teams == o.teams &&
version == o.version &&
additional_properties == o.additional_properties
end
Expand All @@ -309,7 +367,7 @@ def ==(o)
# @return [Integer] Hash code
# @!visibility private
def hash
[assignee_uuids, clustering_pattern_field_path, compute, data_source, event_size, group_by, indexes, persona, query_string, sort, states, storage, suspected_causes, team_handles, version, additional_properties].hash
[assignee_uuids, clustering_pattern_field_path, compute, data_source, env, event_size, group_by, indexes, persona, query_string, recommendation_types, services, sort, states, statuses, storage, suspected_causes, team_handles, teams, version, additional_properties].hash
end
end
end
3 changes: 2 additions & 1 deletion lib/datadog_api_client/v1/models/list_stream_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
require 'time'

module DatadogAPIClient::V1
# Source from which to query items to display in the stream. apm_issue_stream, rum_issue_stream, and logs_issue_stream are deprecated. Use issue_stream instead.
# Source from which to query items to display in the stream. apm_issue_stream, rum_issue_stream, and logs_issue_stream are deprecated. Use issue_stream instead. apm_recommendations_stream is used to query APM recommendations, and supports filtering by environment, services, teams, recommendation types, and status.
class ListStreamSource
include BaseEnumModel

Expand All @@ -38,5 +38,6 @@ class ListStreamSource
SECURITY_RUNTIME_STREAM = "security_runtime_stream".freeze
SECURITY_SIGNALS_STREAM = "security_signals_stream".freeze
INCIDENTS_STREAM = "incidents_stream".freeze
APM_RECOMMENDATIONS_STREAM = "apm_recommendations_stream".freeze
end
end
Loading