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
59 changes: 56 additions & 3 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5716,9 +5716,41 @@ components:
required:
- facet
type: object
ListStreamIssuePersona:
description: Persona filter for the `issue_stream` data source.
enum:
- all
- browser
- mobile
- backend
type: string
x-enum-varnames:
- ALL
- BROWSER
- MOBILE
- BACKEND
ListStreamIssueState:
description: Issue state filter for the `issue_stream` data source.
enum:
- OPEN
- IGNORED
- ACKNOWLEDGED
- RESOLVED
type: string
x-enum-varnames:
- OPEN
- IGNORED
- ACKNOWLEDGED
- RESOLVED
ListStreamQuery:
description: Updated list stream widget.
properties:
assignee_uuids:
description: Filter by assignee UUIDs. Usable only with `issue_stream`.
items:
description: Assignee UUID.
type: string
type: array
clustering_pattern_field_path:
description: Specifies the field for logs pattern clustering. Usable only with logs_pattern_stream.
example: "message"
Expand Down Expand Up @@ -5746,16 +5778,35 @@ components:
description: Index.
type: string
type: array
persona:
$ref: "#/components/schemas/ListStreamIssuePersona"
query_string:
description: Widget query.
example: "@service:app"
type: string
sort:
$ref: "#/components/schemas/WidgetFieldSort"
states:
description: Filter by issue states. Usable only with `issue_stream`.
items:
$ref: "#/components/schemas/ListStreamIssueState"
type: array
storage:
description: Option for storage location. Feature in Private Beta.
example: "indexes"
type: string
suspected_causes:
description: Filter by suspected causes. Usable only with `issue_stream`.
items:
description: Suspected cause.
type: string
type: array
team_handles:
description: Filter by team handles. Usable only with `issue_stream`.
items:
description: Team handle.
type: string
type: array
required:
- query_string
- data_source
Expand All @@ -5769,8 +5820,8 @@ components:
x-enum-varnames:
- EVENT_LIST
ListStreamSource:
default: apm_issue_stream
description: Source from which to query items to display in the stream.
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.
enum:
- logs_stream
- audit_stream
Expand All @@ -5785,7 +5836,8 @@ components:
- event_stream
- rum_stream
- llm_observability_stream
example: apm_issue_stream
- issue_stream
example: logs_stream
type: string
x-enum-varnames:
- LOGS_STREAM
Expand All @@ -5801,6 +5853,7 @@ components:
- EVENT_STREAM
- RUM_STREAM
- LLM_OBSERVABILITY_STREAM
- ISSUE_STREAM
ListStreamWidgetDefinition:
description: |-
The list stream visualization displays a table of recent events in your application that
Expand Down
2 changes: 2 additions & 0 deletions lib/datadog_api_client/inflector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ def overrides
"v1.list_stream_compute_aggregation" => "ListStreamComputeAggregation",
"v1.list_stream_compute_items" => "ListStreamComputeItems",
"v1.list_stream_group_by_items" => "ListStreamGroupByItems",
"v1.list_stream_issue_persona" => "ListStreamIssuePersona",
"v1.list_stream_issue_state" => "ListStreamIssueState",
"v1.list_stream_query" => "ListStreamQuery",
"v1.list_stream_response_format" => "ListStreamResponseFormat",
"v1.list_stream_source" => "ListStreamSource",
Expand Down
29 changes: 29 additions & 0 deletions lib/datadog_api_client/v1/models/list_stream_issue_persona.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
=begin
#Datadog API V1 Collection

#Collection of all Datadog Public endpoints.

The version of the OpenAPI document: 1.0
Contact: support@datadoghq.com
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator

Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
This product includes software developed at Datadog (https://www.datadoghq.com/).
Copyright 2020-Present Datadog, Inc.

=end

require 'date'
require 'time'

module DatadogAPIClient::V1
# Persona filter for the `issue_stream` data source.
class ListStreamIssuePersona
include BaseEnumModel

ALL = "all".freeze
BROWSER = "browser".freeze
MOBILE = "mobile".freeze
BACKEND = "backend".freeze
end
end
29 changes: 29 additions & 0 deletions lib/datadog_api_client/v1/models/list_stream_issue_state.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
=begin
#Datadog API V1 Collection

#Collection of all Datadog Public endpoints.

The version of the OpenAPI document: 1.0
Contact: support@datadoghq.com
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator

Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
This product includes software developed at Datadog (https://www.datadoghq.com/).
Copyright 2020-Present Datadog, Inc.

=end

require 'date'
require 'time'

module DatadogAPIClient::V1
# Issue state filter for the `issue_stream` data source.
class ListStreamIssueState
include BaseEnumModel

OPEN = "OPEN".freeze
IGNORED = "IGNORED".freeze
ACKNOWLEDGED = "ACKNOWLEDGED".freeze
RESOLVED = "RESOLVED".freeze
end
end
66 changes: 62 additions & 4 deletions lib/datadog_api_client/v1/models/list_stream_query.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,16 @@ module DatadogAPIClient::V1
class ListStreamQuery
include BaseGenericModel

# Filter by assignee UUIDs. Usable only with `issue_stream`.
attr_accessor :assignee_uuids

# Specifies the field for logs pattern clustering. Usable only with logs_pattern_stream.
attr_accessor :clustering_pattern_field_path

# 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.
# 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.
attr_reader :data_source

# Size to use to display an event.
Expand All @@ -39,46 +42,68 @@ class ListStreamQuery
# List of indexes.
attr_accessor :indexes

# Persona filter for the `issue_stream` data source.
attr_accessor :persona

# Widget query.
attr_reader :query_string

# Which column and order to sort by
attr_accessor :sort

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

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

# Filter by suspected causes. Usable only with `issue_stream`.
attr_accessor :suspected_causes

# Filter by team handles. Usable only with `issue_stream`.
attr_accessor :team_handles

attr_accessor :additional_properties

# Attribute mapping from ruby-style variable name to JSON key.
# @!visibility private
def self.attribute_map
{
:'assignee_uuids' => :'assignee_uuids',
:'clustering_pattern_field_path' => :'clustering_pattern_field_path',
:'compute' => :'compute',
:'data_source' => :'data_source',
:'event_size' => :'event_size',
:'group_by' => :'group_by',
:'indexes' => :'indexes',
:'persona' => :'persona',
:'query_string' => :'query_string',
:'sort' => :'sort',
:'storage' => :'storage'
:'states' => :'states',
:'storage' => :'storage',
:'suspected_causes' => :'suspected_causes',
:'team_handles' => :'team_handles'
}
end

# Attribute type mapping.
# @!visibility private
def self.openapi_types
{
:'assignee_uuids' => :'Array<String>',
:'clustering_pattern_field_path' => :'String',
:'compute' => :'Array<ListStreamComputeItems>',
:'data_source' => :'ListStreamSource',
:'event_size' => :'WidgetEventSize',
:'group_by' => :'Array<ListStreamGroupByItems>',
:'indexes' => :'Array<String>',
:'persona' => :'ListStreamIssuePersona',
:'query_string' => :'String',
:'sort' => :'WidgetFieldSort',
:'storage' => :'String'
:'states' => :'Array<ListStreamIssueState>',
:'storage' => :'String',
:'suspected_causes' => :'Array<String>',
:'team_handles' => :'Array<String>'
}
end

Expand All @@ -100,6 +125,12 @@ def initialize(attributes = {})
end
}

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

if attributes.key?(:'clustering_pattern_field_path')
self.clustering_pattern_field_path = attributes[:'clustering_pattern_field_path']
end
Expand Down Expand Up @@ -130,6 +161,10 @@ def initialize(attributes = {})
end
end

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

if attributes.key?(:'query_string')
self.query_string = attributes[:'query_string']
end
Expand All @@ -138,9 +173,27 @@ def initialize(attributes = {})
self.sort = attributes[:'sort']
end

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

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

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

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

# Check to see if the all the properties in the model are valid
Expand Down Expand Up @@ -224,23 +277,28 @@ def to_hash
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
assignee_uuids == o.assignee_uuids &&
clustering_pattern_field_path == o.clustering_pattern_field_path &&
compute == o.compute &&
data_source == o.data_source &&
event_size == o.event_size &&
group_by == o.group_by &&
indexes == o.indexes &&
persona == o.persona &&
query_string == o.query_string &&
sort == o.sort &&
states == o.states &&
storage == o.storage &&
suspected_causes == o.suspected_causes &&
team_handles == o.team_handles &&
additional_properties == o.additional_properties
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[clustering_pattern_field_path, compute, data_source, event_size, group_by, indexes, query_string, sort, storage, additional_properties].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, 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.
# 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.
class ListStreamSource
include BaseEnumModel

Expand All @@ -34,5 +34,6 @@ class ListStreamSource
EVENT_STREAM = "event_stream".freeze
RUM_STREAM = "rum_stream".freeze
LLM_OBSERVABILITY_STREAM = "llm_observability_stream".freeze
ISSUE_STREAM = "issue_stream".freeze
end
end
Loading