Skip to content

Commit a43d669

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit ba41dfb of spec repo
1 parent 25ce205 commit a43d669

47 files changed

Lines changed: 1477 additions & 429 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.generator/schemas/v1/openapi.yaml

Lines changed: 183 additions & 54 deletions
Large diffs are not rendered by default.

.generator/schemas/v2/openapi.yaml

Lines changed: 31 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -38202,7 +38202,7 @@ components:
3820238202
$ref: "#/components/schemas/LLMObsAnnotationItem"
3820338203
type: array
3820438204
content_id:
38205-
description: Identifier of the content (trace ID or session ID) for this interaction.
38205+
description: Identifier of the content for this interaction.
3820638206
example: "trace-abc-123"
3820738207
type: string
3820838208
id:
@@ -38405,7 +38405,7 @@ components:
3840538405
description: A single interaction to add to an annotation queue.
3840638406
properties:
3840738407
content_id:
38408-
description: Identifier of the content (trace ID or session ID) for this interaction.
38408+
description: Identifier of the content (such as trace ID) for this interaction.
3840938409
example: "trace-abc-123"
3841038410
type: string
3841138411
type:
@@ -38422,7 +38422,7 @@ components:
3842238422
example: false
3842338423
type: boolean
3842438424
content_id:
38425-
description: Identifier of the content (trace ID or session ID) for this interaction.
38425+
description: Identifier of the content for this interaction.
3842638426
example: "trace-abc-123"
3842738427
type: string
3842838428
id:
@@ -39941,13 +39941,11 @@ components:
3994139941
enum:
3994239942
- trace
3994339943
- experiment_trace
39944-
- session
3994539944
example: trace
3994639945
type: string
3994739946
x-enum-varnames:
3994839947
- TRACE
3994939948
- EXPERIMENT_TRACE
39950-
- SESSION
3995139949
LLMObsLabelSchema:
3995239950
description: Schema definition for a single label in an annotation queue.
3995339951
properties:
@@ -41617,8 +41615,6 @@ components:
4161741615
LogsArchiveAttributes:
4161841616
description: The attributes associated with the archive.
4161941617
properties:
41620-
compression_method:
41621-
$ref: "#/components/schemas/LogsArchiveAttributesCompressionMethod"
4162241618
destination:
4162341619
$ref: "#/components/schemas/LogsArchiveDestination"
4162441620
include_tags:
@@ -41656,17 +41652,6 @@ components:
4165641652
- query
4165741653
- destination
4165841654
type: object
41659-
LogsArchiveAttributesCompressionMethod:
41660-
default: GZIP
41661-
description: The type of compression for the archive.
41662-
enum:
41663-
- GZIP
41664-
- ZSTD
41665-
example: GZIP
41666-
type: string
41667-
x-enum-varnames:
41668-
- GZIP
41669-
- ZSTD
4167041655
LogsArchiveCreateRequest:
4167141656
description: The logs archive.
4167241657
properties:
@@ -41676,8 +41661,6 @@ components:
4167641661
LogsArchiveCreateRequestAttributes:
4167741662
description: The attributes associated with the archive.
4167841663
properties:
41679-
compression_method:
41680-
$ref: "#/components/schemas/LogsArchiveAttributesCompressionMethod"
4168141664
destination:
4168241665
$ref: "#/components/schemas/LogsArchiveCreateRequestDestination"
4168341666
include_tags:
@@ -59668,7 +59651,6 @@ components:
5966859651
oneOf:
5966959652
- $ref: "#/components/schemas/SendSlackMessageAction"
5967059653
- $ref: "#/components/schemas/SendTeamsMessageAction"
59671-
- $ref: "#/components/schemas/TriggerWorkflowAutomationAction"
5967259654
RoutingRuleAttributes:
5967359655
description: Defines the configurable attributes of a routing rule, such as actions, query, time restriction, and urgency.
5967459656
properties:
@@ -64578,17 +64560,35 @@ components:
6457864560
type: object
6457964561
SecurityMonitoringRuleNewValueOptionsForgetAfter:
6458064562
description: The duration in days after which a learned value is forgotten.
64563+
enum:
64564+
- 1
64565+
- 2
64566+
- 7
64567+
- 14
64568+
- 21
64569+
- 28
6458164570
format: int32
64582-
maximum: 30
64583-
minimum: 1
6458464571
type: integer
64572+
x-enum-varnames:
64573+
- ONE_DAY
64574+
- TWO_DAYS
64575+
- ONE_WEEK
64576+
- TWO_WEEKS
64577+
- THREE_WEEKS
64578+
- FOUR_WEEKS
6458564579
SecurityMonitoringRuleNewValueOptionsLearningDuration:
6458664580
default: 0
6458764581
description: "The duration in days during which values are learned, and after which signals will be generated for values that\nweren't learned. If set to 0, a signal will be generated for all new values after the first value is learned."
64582+
enum:
64583+
- 0
64584+
- 1
64585+
- 7
6458864586
format: int32
64589-
maximum: 30
64590-
minimum: 0
6459164587
type: integer
64588+
x-enum-varnames:
64589+
- ZERO_DAYS
64590+
- ONE_DAY
64591+
- SEVEN_DAYS
6459264592
SecurityMonitoringRuleNewValueOptionsLearningMethod:
6459364593
default: duration
6459464594
description: The learning method used to determine when signals should be generated for values that weren't learned.
@@ -79447,28 +79447,6 @@ components:
7944779447
type: string
7944879448
x-enum-varnames:
7944979449
- MONITOR_ALERT_TRIGGER
79450-
TriggerWorkflowAutomationAction:
79451-
description: "Triggers a Workflow Automation."
79452-
properties:
79453-
handle:
79454-
description: "The handle of the Workflow Automation to trigger."
79455-
example: my-workflow-handle
79456-
type: string
79457-
type:
79458-
$ref: "#/components/schemas/TriggerWorkflowAutomationActionType"
79459-
required:
79460-
- type
79461-
- handle
79462-
type: object
79463-
TriggerWorkflowAutomationActionType:
79464-
default: workflow
79465-
description: "Indicates that the action triggers a Workflow Automation."
79466-
enum:
79467-
- workflow
79468-
example: workflow
79469-
type: string
79470-
x-enum-varnames:
79471-
- TRIGGER_WORKFLOW_AUTOMATION
7947279450
UCConfigPair:
7947379451
description: The definition of `UCConfigPair` object.
7947479452
example:
@@ -82792,12 +82770,7 @@ components:
8279282770
definition:
8279382771
$ref: "#/components/schemas/WidgetDefinition"
8279482772
is_favorited:
82795-
description: |-
82796-
Whether the current user has favorited this widget. Populated on get,
82797-
batch_get, update, and search responses; create responses always return
82798-
`false` because a widget can only be favorited after it exists.
82799-
Favoriting itself is performed through the shared favorites API, not
82800-
this service.
82773+
description: "Will be implemented soon. Currently always returns false."
8280182774
example: false
8280282775
type: boolean
8280382776
modified_at:
@@ -109633,7 +109606,7 @@ paths:
109633109606
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
109634109607
/api/v2/llm-obs/v1/annotation-queues/{queue_id}/annotated-interactions:
109635109608
get:
109636-
description: Retrieve all interactions (traces and sessions) and their annotations for a given annotation queue.
109609+
description: Retrieve all interactions and their annotations for a given annotation queue.
109637109610
operationId: GetLLMObsAnnotatedInteractions
109638109611
parameters:
109639109612
- $ref: "#/components/parameters/LLMObsAnnotationQueueIDPathParameter"
@@ -109694,7 +109667,7 @@ paths:
109694109667
/api/v2/llm-obs/v1/annotation-queues/{queue_id}/interactions:
109695109668
post:
109696109669
description: |-
109697-
Add one or more interactions (traces or sessions) to an annotation queue.
109670+
Add one or more interactions (traces) to an annotation queue.
109698109671
At least one interaction must be provided.
109699109672
operationId: CreateLLMObsAnnotationQueueInteractions
109700109673
parameters:
@@ -111772,7 +111745,6 @@ paths:
111772111745
value:
111773111746
data:
111774111747
attributes:
111775-
compression_method: GZIP
111776111748
destination:
111777111749
container: container-name
111778111750
storage_account: account-name
@@ -111946,7 +111918,6 @@ paths:
111946111918
value:
111947111919
data:
111948111920
attributes:
111949-
compression_method: GZIP
111950111921
destination:
111951111922
container: container-name
111952111923
storage_account: account-name
@@ -144494,17 +144465,7 @@ paths:
144494144465
- teams_read
144495144466
/api/v2/widgets/{experience_type}:
144496144467
get:
144497-
description: |-
144498-
Search and list widgets for a given experience type, with filtering, sorting, and pagination.
144499-
144500-
**Response meta** carries totals scoped to the current filter:
144501-
- `filtered_total` — widgets matching the filter.
144502-
- `created_by_you_total` — among the matches, how many the current user created.
144503-
- `favorited_by_you_total` — among the matches, how many the current user has favorited.
144504-
- `created_by_anyone_total` — total widgets in the experience type, ignoring filters.
144505-
144506-
Each returned widget includes `is_favorited` reflecting the current user's favorite status.
144507-
Favoriting itself is performed through the shared favorites API, not this endpoint.
144468+
description: Search and list widgets for a given experience type. Supports filtering by widget type, creator, title, and tags, as well as sorting and pagination.
144508144469
operationId: SearchWidgets
144509144470
parameters:
144510144471
- description: The experience type for the widget.
@@ -144540,14 +144501,8 @@ paths:
144540144501
schema:
144541144502
type: string
144542144503
- description: |-
144543-
Sort field for the results.
144544-
144545-
**`title`, `created_at`, `modified_at`** — both ascending and descending are
144546-
supported. Use the bare field name for ascending (e.g. `sort=title`) or prefix
144547-
with `-` for descending (e.g. `sort=-modified_at`).
144548-
144549-
**`is_favorited`** — returns favorites-first ordering (favorited widgets first,
144550-
then the rest). Direction is fixed; the `-` prefix is ignored for this field.
144504+
Sort field for the results. Prefix with `-` for descending order.
144505+
Allowed values: `title`, `created_at`, `modified_at`.
144551144506
in: query
144552144507
name: sort
144553144508
schema:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2026-04-30T15:58:43.378Z

cassettes/features/v1/dashboards/Create-a-new-dashboard-with-point-plot-widget.yml

Lines changed: 43 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Create a new dashboard with point_plot widget
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V1::DashboardsAPI.new
5+
6+
body = DatadogAPIClient::V1::Dashboard.new({
7+
title: "Example-Dashboard",
8+
layout_type: DatadogAPIClient::V1::DashboardLayoutType::ORDERED,
9+
widgets: [
10+
DatadogAPIClient::V1::Widget.new({
11+
definition: DatadogAPIClient::V1::PointPlotWidgetDefinition.new({
12+
title: "",
13+
title_size: "16",
14+
title_align: DatadogAPIClient::V1::WidgetTextAlign::LEFT,
15+
type: DatadogAPIClient::V1::PointPlotWidgetDefinitionType::POINT_PLOT,
16+
requests: [
17+
DatadogAPIClient::V1::PointPlotWidgetRequest.new({
18+
request_type: DatadogAPIClient::V1::DataProjectionRequestType::DATA_PROJECTION,
19+
query: DatadogAPIClient::V1::DataProjectionQuery.new({
20+
query_string: "service:web-store",
21+
data_source: "logs",
22+
}),
23+
projection: DatadogAPIClient::V1::PointPlotProjection.new({
24+
type: DatadogAPIClient::V1::PointPlotProjectionType::POINT_PLOT,
25+
dimensions: [
26+
DatadogAPIClient::V1::PointPlotProjectionDimension.new({
27+
column: "host",
28+
dimension: DatadogAPIClient::V1::PointPlotDimension::GROUP,
29+
}),
30+
DatadogAPIClient::V1::PointPlotProjectionDimension.new({
31+
column: "@duration",
32+
dimension: DatadogAPIClient::V1::PointPlotDimension::Y,
33+
}),
34+
],
35+
}),
36+
}),
37+
],
38+
}),
39+
}),
40+
],
41+
})
42+
p api_instance.create_dashboard(body)

examples/v2/logs-archives/CreateLogsArchive.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
body = DatadogAPIClient::V2::LogsArchiveCreateRequest.new({
77
data: DatadogAPIClient::V2::LogsArchiveCreateRequestDefinition.new({
88
attributes: DatadogAPIClient::V2::LogsArchiveCreateRequestAttributes.new({
9-
compression_method: DatadogAPIClient::V2::LogsArchiveAttributesCompressionMethod::GZIP,
109
destination: DatadogAPIClient::V2::LogsArchiveDestinationAzure.new({
1110
container: "container-name",
1211
integration: DatadogAPIClient::V2::LogsArchiveIntegrationAzure.new({

examples/v2/logs-archives/UpdateLogsArchive.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
body = DatadogAPIClient::V2::LogsArchiveCreateRequest.new({
77
data: DatadogAPIClient::V2::LogsArchiveCreateRequestDefinition.new({
88
attributes: DatadogAPIClient::V2::LogsArchiveCreateRequestAttributes.new({
9-
compression_method: DatadogAPIClient::V2::LogsArchiveAttributesCompressionMethod::GZIP,
109
destination: DatadogAPIClient::V2::LogsArchiveDestinationAzure.new({
1110
container: "container-name",
1211
integration: DatadogAPIClient::V2::LogsArchiveIntegrationAzure.new({

examples/v2/security-monitoring/ValidateSecurityMonitoringRule_2609327779.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
max_signal_duration: DatadogAPIClient::V2::SecurityMonitoringRuleMaxSignalDuration::TEN_MINUTES,
2323
detection_method: DatadogAPIClient::V2::SecurityMonitoringRuleDetectionMethod::NEW_VALUE,
2424
new_value_options: DatadogAPIClient::V2::SecurityMonitoringRuleNewValueOptions.new({
25-
forget_after: 7,
25+
forget_after: DatadogAPIClient::V2::SecurityMonitoringRuleNewValueOptionsForgetAfter::ONE_WEEK,
2626
instantaneous_baseline: true,
27-
learning_duration: 1,
27+
learning_duration: DatadogAPIClient::V2::SecurityMonitoringRuleNewValueOptionsLearningDuration::ONE_DAY,
2828
learning_threshold: DatadogAPIClient::V2::SecurityMonitoringRuleNewValueOptionsLearningThreshold::ZERO_OCCURRENCES,
2929
learning_method: DatadogAPIClient::V2::SecurityMonitoringRuleNewValueOptionsLearningMethod::DURATION,
3030
}),

features/v1/dashboards.feature

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,18 @@ Feature: Dashboards
739739
And the response "widgets[0].definition.type" is equal to "note"
740740
And the response "widgets[0].definition.content" is equal to "# Example Note"
741741

742+
@team:DataDog/dashboards-backend
743+
Scenario: Create a new dashboard with point_plot widget
744+
Given new "CreateDashboard" request
745+
And body from file "dashboards_json_payload/point_plot_widget.json"
746+
When the request is sent
747+
Then the response status is 200 OK
748+
And the response "widgets[0].definition.type" is equal to "point_plot"
749+
And the response "widgets[0].definition.requests[0].request_type" is equal to "data_projection"
750+
And the response "widgets[0].definition.requests[0].projection.type" is equal to "point_plot"
751+
And the response "widgets[0].definition.requests[0].projection.dimensions[0].dimension" is equal to "group"
752+
And the response "widgets[0].definition.requests[0].projection.dimensions[1].dimension" is equal to "y"
753+
742754
@team:DataDog/dashboards-backend
743755
Scenario: Create a new dashboard with powerpack widget
744756
Given new "CreateDashboard" request

0 commit comments

Comments
 (0)