TelemetryDestinations
List TelemetryDestinations
List OpenTelemetry destinationsfrom orq_ai_sdk import Orq
import os
with Orq(
api_key=os.getenv("ORQ_API_KEY"),
) as orq:
res = orq.telemetry_destinations.list()
# Handle response
print(res)
import { Orq } from "@orq-ai/node";
const orq = new Orq({
apiKey: process.env["ORQ_API_KEY"] ?? "",
});
async function run() {
const result = await orq.telemetryDestinations.list();
console.log(result);
}
run();
Show Parameters
Show Parameters
{
"limit": Optional[int],
"starting_after": Optional[str],
}
// orq.telemetryDestinations.list(request?)
Show Response
Show Response
{
"destinations": [{ # optional
"id": Optional[str],
"display_name": Optional[str],
"provider": Optional[str],
"endpoint_url": Optional[str],
"request_headers": Dict[str, str], # optional
"settings": Dict[str, str], # optional
"content_mode": Optional[Literal["TELEMETRY_CONTENT_MODE_METADATA_ONLY", "TELEMETRY_CONTENT_MODE_FULL_CONTENT"]],
"project_scope": Optional[Literal["TELEMETRY_PROJECT_SCOPE_ALL", "TELEMETRY_PROJECT_SCOPE_SELECTED", "TELEMETRY_PROJECT_SCOPE_ALL_EXCEPT"]],
"project_ids": List[str], # optional
"enabled": Optional[bool],
"created_at": str, # optional
"updated_at": str, # optional
"failure_count": Optional[int],
"last_error": Optional[str],
"last_status_code": Optional[int],
"last_attempt_at": str, # optional
"disabled_reason": Optional[str],
}],
"has_more": Optional[bool],
}
{
destinations?: {
id?: string;
displayName?: string;
provider?: string;
endpointUrl?: string;
requestHeaders?: Record<string, string>;
settings?: Record<string, string>;
contentMode?: "TELEMETRY_CONTENT_MODE_METADATA_ONLY" | "TELEMETRY_CONTENT_MODE_FULL_CONTENT";
projectScope?: "TELEMETRY_PROJECT_SCOPE_ALL" | "TELEMETRY_PROJECT_SCOPE_SELECTED" | "TELEMETRY_PROJECT_SCOPE_ALL_EXCEPT";
projectIds?: string[];
enabled?: boolean;
createdAt?: Date;
updatedAt?: Date;
failureCount?: number;
lastError?: string;
lastStatusCode?: number;
lastAttemptAt?: Date;
disabledReason?: string;
}[];
hasMore?: boolean;
}
Create a TelemetryDestination
Create an OpenTelemetry destinationfrom orq_ai_sdk import Orq
import os
with Orq(
api_key=os.getenv("ORQ_API_KEY"),
) as orq:
res = orq.telemetry_destinations.create()
# Handle response
print(res)
import { Orq } from "@orq-ai/node";
const orq = new Orq({
apiKey: process.env["ORQ_API_KEY"] ?? "",
});
async function run() {
const result = await orq.telemetryDestinations.create({});
console.log(result);
}
run();
Show Parameters
Show Parameters
{
"destination": { # optional
"display_name": Optional[str],
"provider": Optional[str],
"endpoint_url": Optional[str],
"request_headers": Dict[str, str], # optional
"settings": Dict[str, str], # optional
"content_mode": Optional[Literal["TELEMETRY_CONTENT_MODE_METADATA_ONLY", "TELEMETRY_CONTENT_MODE_FULL_CONTENT"]],
"project_scope": Optional[Literal["TELEMETRY_PROJECT_SCOPE_ALL", "TELEMETRY_PROJECT_SCOPE_SELECTED", "TELEMETRY_PROJECT_SCOPE_ALL_EXCEPT"]],
"project_ids": List[str], # optional
"enabled": Optional[bool],
},
}
{
destination?: {
displayName?: string;
provider?: string;
endpointUrl?: string;
requestHeaders?: Record<string, string>;
settings?: Record<string, string>;
contentMode?: "TELEMETRY_CONTENT_MODE_METADATA_ONLY" | "TELEMETRY_CONTENT_MODE_FULL_CONTENT";
projectScope?: "TELEMETRY_PROJECT_SCOPE_ALL" | "TELEMETRY_PROJECT_SCOPE_SELECTED" | "TELEMETRY_PROJECT_SCOPE_ALL_EXCEPT";
projectIds?: string[];
enabled?: boolean;
};
}
Show Response
Show Response
{
"destination": { # optional
"id": Optional[str],
"display_name": Optional[str],
"provider": Optional[str],
"endpoint_url": Optional[str],
"request_headers": Dict[str, str], # optional
"settings": Dict[str, str], # optional
"content_mode": Optional[Literal["TELEMETRY_CONTENT_MODE_METADATA_ONLY", "TELEMETRY_CONTENT_MODE_FULL_CONTENT"]],
"project_scope": Optional[Literal["TELEMETRY_PROJECT_SCOPE_ALL", "TELEMETRY_PROJECT_SCOPE_SELECTED", "TELEMETRY_PROJECT_SCOPE_ALL_EXCEPT"]],
"project_ids": List[str], # optional
"enabled": Optional[bool],
"created_at": str, # optional
"updated_at": str, # optional
"failure_count": Optional[int],
"last_error": Optional[str],
"last_status_code": Optional[int],
"last_attempt_at": str, # optional
"disabled_reason": Optional[str],
},
}
{
destination?: {
id?: string;
displayName?: string;
provider?: string;
endpointUrl?: string;
requestHeaders?: Record<string, string>;
settings?: Record<string, string>;
contentMode?: "TELEMETRY_CONTENT_MODE_METADATA_ONLY" | "TELEMETRY_CONTENT_MODE_FULL_CONTENT";
projectScope?: "TELEMETRY_PROJECT_SCOPE_ALL" | "TELEMETRY_PROJECT_SCOPE_SELECTED" | "TELEMETRY_PROJECT_SCOPE_ALL_EXCEPT";
projectIds?: string[];
enabled?: boolean;
createdAt?: Date;
updatedAt?: Date;
failureCount?: number;
lastError?: string;
lastStatusCode?: number;
lastAttemptAt?: Date;
disabledReason?: string;
};
}
Retrieve a TelemetryDestination
Retrieve an OpenTelemetry destinationfrom orq_ai_sdk import Orq
import os
with Orq(
api_key=os.getenv("ORQ_API_KEY"),
) as orq:
res = orq.telemetry_destinations.get(destination_id="<id>")
# Handle response
print(res)
import { Orq } from "@orq-ai/node";
const orq = new Orq({
apiKey: process.env["ORQ_API_KEY"] ?? "",
});
async function run() {
const result = await orq.telemetryDestinations.get({
destinationId: "<id>",
});
console.log(result);
}
run();
Show Parameters
Show Parameters
{
"destination_id": str, # required
}
{
destinationId: string; // required
}
Show Response
Show Response
{
"destination": { # optional
"id": Optional[str],
"display_name": Optional[str],
"provider": Optional[str],
"endpoint_url": Optional[str],
"request_headers": Dict[str, str], # optional
"settings": Dict[str, str], # optional
"content_mode": Optional[Literal["TELEMETRY_CONTENT_MODE_METADATA_ONLY", "TELEMETRY_CONTENT_MODE_FULL_CONTENT"]],
"project_scope": Optional[Literal["TELEMETRY_PROJECT_SCOPE_ALL", "TELEMETRY_PROJECT_SCOPE_SELECTED", "TELEMETRY_PROJECT_SCOPE_ALL_EXCEPT"]],
"project_ids": List[str], # optional
"enabled": Optional[bool],
"created_at": str, # optional
"updated_at": str, # optional
"failure_count": Optional[int],
"last_error": Optional[str],
"last_status_code": Optional[int],
"last_attempt_at": str, # optional
"disabled_reason": Optional[str],
},
}
{
destination?: {
id?: string;
displayName?: string;
provider?: string;
endpointUrl?: string;
requestHeaders?: Record<string, string>;
settings?: Record<string, string>;
contentMode?: "TELEMETRY_CONTENT_MODE_METADATA_ONLY" | "TELEMETRY_CONTENT_MODE_FULL_CONTENT";
projectScope?: "TELEMETRY_PROJECT_SCOPE_ALL" | "TELEMETRY_PROJECT_SCOPE_SELECTED" | "TELEMETRY_PROJECT_SCOPE_ALL_EXCEPT";
projectIds?: string[];
enabled?: boolean;
createdAt?: Date;
updatedAt?: Date;
failureCount?: number;
lastError?: string;
lastStatusCode?: number;
lastAttemptAt?: Date;
disabledReason?: string;
};
}
Update a TelemetryDestination
Update an OpenTelemetry destinationfrom orq_ai_sdk import Orq
import os
with Orq(
api_key=os.getenv("ORQ_API_KEY"),
) as orq:
res = orq.telemetry_destinations.update(destination_id="<id>")
# Handle response
print(res)
import { Orq } from "@orq-ai/node";
const orq = new Orq({
apiKey: process.env["ORQ_API_KEY"] ?? "",
});
async function run() {
const result = await orq.telemetryDestinations.update({
destinationId: "<id>",
updateTelemetryDestinationRequest: {},
});
console.log(result);
}
run();
Show Parameters
Show Parameters
{
"destination_id": str, # required
"destination": { # optional
"display_name": Optional[str],
"provider": Optional[str],
"endpoint_url": Optional[str],
"request_headers": Dict[str, str], # optional
"settings": Dict[str, str], # optional
"content_mode": Optional[Literal["TELEMETRY_CONTENT_MODE_METADATA_ONLY", "TELEMETRY_CONTENT_MODE_FULL_CONTENT"]],
"project_scope": Optional[Literal["TELEMETRY_PROJECT_SCOPE_ALL", "TELEMETRY_PROJECT_SCOPE_SELECTED", "TELEMETRY_PROJECT_SCOPE_ALL_EXCEPT"]],
"project_ids": List[str], # optional
"enabled": Optional[bool],
},
}
{
destinationId: string; // required
updateTelemetryDestinationRequest: { // required
destination?: {
displayName?: string;
provider?: string;
endpointUrl?: string;
requestHeaders?: Record<string, string>;
settings?: Record<string, string>;
contentMode?: "TELEMETRY_CONTENT_MODE_METADATA_ONLY" | "TELEMETRY_CONTENT_MODE_FULL_CONTENT";
projectScope?: "TELEMETRY_PROJECT_SCOPE_ALL" | "TELEMETRY_PROJECT_SCOPE_SELECTED" | "TELEMETRY_PROJECT_SCOPE_ALL_EXCEPT";
projectIds?: string[];
enabled?: boolean;
};
};
}
Show Response
Show Response
{
"destination": { # optional
"id": Optional[str],
"display_name": Optional[str],
"provider": Optional[str],
"endpoint_url": Optional[str],
"request_headers": Dict[str, str], # optional
"settings": Dict[str, str], # optional
"content_mode": Optional[Literal["TELEMETRY_CONTENT_MODE_METADATA_ONLY", "TELEMETRY_CONTENT_MODE_FULL_CONTENT"]],
"project_scope": Optional[Literal["TELEMETRY_PROJECT_SCOPE_ALL", "TELEMETRY_PROJECT_SCOPE_SELECTED", "TELEMETRY_PROJECT_SCOPE_ALL_EXCEPT"]],
"project_ids": List[str], # optional
"enabled": Optional[bool],
"created_at": str, # optional
"updated_at": str, # optional
"failure_count": Optional[int],
"last_error": Optional[str],
"last_status_code": Optional[int],
"last_attempt_at": str, # optional
"disabled_reason": Optional[str],
},
}
{
destination?: {
id?: string;
displayName?: string;
provider?: string;
endpointUrl?: string;
requestHeaders?: Record<string, string>;
settings?: Record<string, string>;
contentMode?: "TELEMETRY_CONTENT_MODE_METADATA_ONLY" | "TELEMETRY_CONTENT_MODE_FULL_CONTENT";
projectScope?: "TELEMETRY_PROJECT_SCOPE_ALL" | "TELEMETRY_PROJECT_SCOPE_SELECTED" | "TELEMETRY_PROJECT_SCOPE_ALL_EXCEPT";
projectIds?: string[];
enabled?: boolean;
createdAt?: Date;
updatedAt?: Date;
failureCount?: number;
lastError?: string;
lastStatusCode?: number;
lastAttemptAt?: Date;
disabledReason?: string;
};
}
Delete a TelemetryDestination
Delete an OpenTelemetry destinationfrom orq_ai_sdk import Orq
import os
with Orq(
api_key=os.getenv("ORQ_API_KEY"),
) as orq:
res = orq.telemetry_destinations.delete(destination_id="<id>")
# Handle response
print(res)
import { Orq } from "@orq-ai/node";
const orq = new Orq({
apiKey: process.env["ORQ_API_KEY"] ?? "",
});
async function run() {
const result = await orq.telemetryDestinations.delete({
destinationId: "<id>",
});
console.log(result);
}
run();
Show Parameters
Show Parameters
{
"destination_id": str, # required
}
{
destinationId: string; // required
}