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: 8 additions & 24 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69285,7 +69285,7 @@ components:
attributes:
$ref: "#/components/schemas/LLMObsDatasetRecordsDataAttributesRequest"
type:
$ref: "#/components/schemas/LLMObsRecordType"
$ref: "#/components/schemas/LLMObsDatasetType"
required:
- type
- attributes
Expand Down Expand Up @@ -69350,7 +69350,7 @@ components:
attributes:
$ref: "#/components/schemas/LLMObsDatasetRecordsUpdateDataAttributesRequest"
type:
$ref: "#/components/schemas/LLMObsRecordType"
$ref: "#/components/schemas/LLMObsDatasetType"
required:
- type
- attributes
Expand Down Expand Up @@ -69687,7 +69687,7 @@ components:
attributes:
$ref: "#/components/schemas/LLMObsDeleteDatasetRecordsDataAttributesRequest"
type:
$ref: "#/components/schemas/LLMObsRecordType"
$ref: "#/components/schemas/LLMObsDatasetType"
required:
- type
- attributes
Expand Down Expand Up @@ -69926,14 +69926,6 @@ components:
type: string
x-enum-varnames:
- DISPLAY_BLOCK
LLMObsEventType:
description: Resource type for Agent Observability experiment events.
enum:
- events
example: events
type: string
x-enum-varnames:
- EVENTS
LLMObsExperimentDataAttributesRequest:
description: Attributes for creating an Agent Observability experiment.
properties:
Expand Down Expand Up @@ -70189,7 +70181,7 @@ components:
attributes:
$ref: "#/components/schemas/LLMObsExperimentEventsDataAttributesRequest"
type:
$ref: "#/components/schemas/LLMObsEventType"
$ref: "#/components/schemas/LLMObsExperimentType"
required:
- type
- attributes
Expand Down Expand Up @@ -73735,14 +73727,6 @@ components:
required:
- data
type: object
LLMObsRecordType:
description: Resource type of Agent Observability dataset records.
enum:
- records
example: records
type: string
x-enum-varnames:
- RECORDS
LLMObsSearchSpansRequest:
description: Request body for searching Agent Observability spans.
properties:
Expand Down Expand Up @@ -192310,7 +192294,7 @@ paths:
start_ns: 1705314600000000000
status: ok
trace_id: abc123def456
type: events
type: experiments
schema:
$ref: "#/components/schemas/LLMObsExperimentEventsRequest"
description: Experiment events payload.
Expand Down Expand Up @@ -195577,7 +195561,7 @@ paths:
attributes:
records:
- id: rec-7c3f5a1b-9e2d-4f8a-b1c6-3d7e9f0a2b4c
type: records
type: datasets
schema:
$ref: "#/components/schemas/LLMObsDatasetRecordsUpdateRequest"
description: Update records payload.
Expand Down Expand Up @@ -195652,7 +195636,7 @@ paths:
default:
value:
data:
type: records
type: datasets
schema:
$ref: "#/components/schemas/LLMObsDatasetRecordsRequest"
description: Append records payload.
Expand Down Expand Up @@ -195751,7 +195735,7 @@ paths:
attributes:
record_ids:
- rec-7c3f5a1b-9e2d-4f8a-b1c6-3d7e9f0a2b4c
type: records
type: datasets
schema:
$ref: "#/components/schemas/LLMObsDeleteDatasetRecordsRequest"
description: Delete records payload.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import com.datadog.api.client.v2.model.LLMObsDatasetRecordsDataRequest;
import com.datadog.api.client.v2.model.LLMObsDatasetRecordsMutationResponse;
import com.datadog.api.client.v2.model.LLMObsDatasetRecordsRequest;
import com.datadog.api.client.v2.model.LLMObsRecordType;
import com.datadog.api.client.v2.model.LLMObsDatasetType;
import java.util.Collections;

public class Example {
Expand All @@ -29,7 +29,7 @@ public static void main(String[] args) {
new LLMObsDatasetRecordItem()
.expectedOutput(null)
.input(null))))
.type(LLMObsRecordType.RECORDS));
.type(LLMObsDatasetType.DATASETS));

try {
LLMObsDatasetRecordsMutationResponse result =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.AgentObservabilityApi;
import com.datadog.api.client.v2.model.LLMObsEventType;
import com.datadog.api.client.v2.model.LLMObsExperimentEventsDataAttributesRequest;
import com.datadog.api.client.v2.model.LLMObsExperimentEventsDataRequest;
import com.datadog.api.client.v2.model.LLMObsExperimentEventsRequest;
Expand All @@ -13,6 +12,7 @@
import com.datadog.api.client.v2.model.LLMObsExperimentSpanError;
import com.datadog.api.client.v2.model.LLMObsExperimentSpanMeta;
import com.datadog.api.client.v2.model.LLMObsExperimentSpanStatus;
import com.datadog.api.client.v2.model.LLMObsExperimentType;
import com.datadog.api.client.v2.model.LLMObsMetricAssessment;
import com.datadog.api.client.v2.model.LLMObsMetricScoreType;
import java.util.Collections;
Expand Down Expand Up @@ -67,7 +67,7 @@ raise TimeoutError("Model response timed out")
.startNs(1705314600000000000L)
.status(LLMObsExperimentSpanStatus.OK)
.traceId("abc123def456"))))
.type(LLMObsEventType.EVENTS));
.type(LLMObsExperimentType.EXPERIMENTS));

try {
apiInstance.createLLMObsExperimentEvents("3fd6b5e0-8910-4b1c-a7d0-5b84de329012", body);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.AgentObservabilityApi;
import com.datadog.api.client.v2.model.LLMObsDatasetType;
import com.datadog.api.client.v2.model.LLMObsDeleteDatasetRecordsDataAttributesRequest;
import com.datadog.api.client.v2.model.LLMObsDeleteDatasetRecordsDataRequest;
import com.datadog.api.client.v2.model.LLMObsDeleteDatasetRecordsRequest;
import com.datadog.api.client.v2.model.LLMObsRecordType;
import java.util.Collections;

public class Example {
Expand All @@ -25,7 +25,7 @@ public static void main(String[] args) {
.recordIds(
Collections.singletonList(
"rec-7c3f5a1b-9e2d-4f8a-b1c6-3d7e9f0a2b4c")))
.type(LLMObsRecordType.RECORDS));
.type(LLMObsDatasetType.DATASETS));

try {
apiInstance.deleteLLMObsDatasetRecords(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import com.datadog.api.client.v2.model.LLMObsDatasetRecordsUpdateDataAttributesRequest;
import com.datadog.api.client.v2.model.LLMObsDatasetRecordsUpdateDataRequest;
import com.datadog.api.client.v2.model.LLMObsDatasetRecordsUpdateRequest;
import com.datadog.api.client.v2.model.LLMObsRecordType;
import com.datadog.api.client.v2.model.LLMObsDatasetType;
import java.util.Collections;

public class Example {
Expand All @@ -30,7 +30,7 @@ public static void main(String[] args) {
.expectedOutput(null)
.id("rec-7c3f5a1b-9e2d-4f8a-b1c6-3d7e9f0a2b4c")
.input(null))))
.type(LLMObsRecordType.RECORDS));
.type(LLMObsDatasetType.DATASETS));

try {
LLMObsDatasetRecordsMutationResponse result =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ public class LLMObsDatasetRecordsDataRequest {
private LLMObsDatasetRecordsDataAttributesRequest attributes;

public static final String JSON_PROPERTY_TYPE = "type";
private LLMObsRecordType type;
private LLMObsDatasetType type;

public LLMObsDatasetRecordsDataRequest() {}

@JsonCreator
public LLMObsDatasetRecordsDataRequest(
@JsonProperty(required = true, value = JSON_PROPERTY_ATTRIBUTES)
LLMObsDatasetRecordsDataAttributesRequest attributes,
@JsonProperty(required = true, value = JSON_PROPERTY_TYPE) LLMObsRecordType type) {
@JsonProperty(required = true, value = JSON_PROPERTY_TYPE) LLMObsDatasetType type) {
this.attributes = attributes;
this.unparsed |= attributes.unparsed;
this.type = type;
Expand Down Expand Up @@ -70,24 +70,24 @@ public void setAttributes(LLMObsDatasetRecordsDataAttributesRequest attributes)
}
}

public LLMObsDatasetRecordsDataRequest type(LLMObsRecordType type) {
public LLMObsDatasetRecordsDataRequest type(LLMObsDatasetType type) {
this.type = type;
this.unparsed |= !type.isValid();
return this;
}

/**
* Resource type of Agent Observability dataset records.
* Resource type of an Agent Observability dataset.
*
* @return type
*/
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public LLMObsRecordType getType() {
public LLMObsDatasetType getType() {
return type;
}

public void setType(LLMObsRecordType type) {
public void setType(LLMObsDatasetType type) {
if (!type.isValid()) {
this.unparsed = true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ public class LLMObsDatasetRecordsUpdateDataRequest {
private LLMObsDatasetRecordsUpdateDataAttributesRequest attributes;

public static final String JSON_PROPERTY_TYPE = "type";
private LLMObsRecordType type;
private LLMObsDatasetType type;

public LLMObsDatasetRecordsUpdateDataRequest() {}

@JsonCreator
public LLMObsDatasetRecordsUpdateDataRequest(
@JsonProperty(required = true, value = JSON_PROPERTY_ATTRIBUTES)
LLMObsDatasetRecordsUpdateDataAttributesRequest attributes,
@JsonProperty(required = true, value = JSON_PROPERTY_TYPE) LLMObsRecordType type) {
@JsonProperty(required = true, value = JSON_PROPERTY_TYPE) LLMObsDatasetType type) {
this.attributes = attributes;
this.unparsed |= attributes.unparsed;
this.type = type;
Expand Down Expand Up @@ -70,24 +70,24 @@ public void setAttributes(LLMObsDatasetRecordsUpdateDataAttributesRequest attrib
}
}

public LLMObsDatasetRecordsUpdateDataRequest type(LLMObsRecordType type) {
public LLMObsDatasetRecordsUpdateDataRequest type(LLMObsDatasetType type) {
this.type = type;
this.unparsed |= !type.isValid();
return this;
}

/**
* Resource type of Agent Observability dataset records.
* Resource type of an Agent Observability dataset.
*
* @return type
*/
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public LLMObsRecordType getType() {
public LLMObsDatasetType getType() {
return type;
}

public void setType(LLMObsRecordType type) {
public void setType(LLMObsDatasetType type) {
if (!type.isValid()) {
this.unparsed = true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ public class LLMObsDeleteDatasetRecordsDataRequest {
private LLMObsDeleteDatasetRecordsDataAttributesRequest attributes;

public static final String JSON_PROPERTY_TYPE = "type";
private LLMObsRecordType type;
private LLMObsDatasetType type;

public LLMObsDeleteDatasetRecordsDataRequest() {}

@JsonCreator
public LLMObsDeleteDatasetRecordsDataRequest(
@JsonProperty(required = true, value = JSON_PROPERTY_ATTRIBUTES)
LLMObsDeleteDatasetRecordsDataAttributesRequest attributes,
@JsonProperty(required = true, value = JSON_PROPERTY_TYPE) LLMObsRecordType type) {
@JsonProperty(required = true, value = JSON_PROPERTY_TYPE) LLMObsDatasetType type) {
this.attributes = attributes;
this.unparsed |= attributes.unparsed;
this.type = type;
Expand Down Expand Up @@ -70,24 +70,24 @@ public void setAttributes(LLMObsDeleteDatasetRecordsDataAttributesRequest attrib
}
}

public LLMObsDeleteDatasetRecordsDataRequest type(LLMObsRecordType type) {
public LLMObsDeleteDatasetRecordsDataRequest type(LLMObsDatasetType type) {
this.type = type;
this.unparsed |= !type.isValid();
return this;
}

/**
* Resource type of Agent Observability dataset records.
* Resource type of an Agent Observability dataset.
*
* @return type
*/
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public LLMObsRecordType getType() {
public LLMObsDatasetType getType() {
return type;
}

public void setType(LLMObsRecordType type) {
public void setType(LLMObsDatasetType type) {
if (!type.isValid()) {
this.unparsed = true;
}
Expand Down

This file was deleted.

Loading
Loading