Workspaces eines Telemetrieziels auflisten
GET/v1/organizations/telemetry_destinations/{destination_id}/workspaces
Listet die Workspaces auf der Workspace-Liste eines Ziels auf, den neuesten Eintrag zuerst.
Ein Ziel, dessen workspaces.type den Wert all hat, besitzt keine Liste, daher ist seine Seite leer. Die Liste enthält auch archivierte Workspaces.
Im OpenTelemetry-Exportleitfaden erfährst du mehr darüber, wie du die Workspaces eines Ziels auswählst.
Parameters
Returns
Workspaces eines Telemetrieziels auflisten
require "anthropic"
anthropic = Anthropic::Client.new(api_key: "my-anthropic-api-key")
page = anthropic.beta.organization.telemetry_destinations.workspaces.list("destination_id")
puts(page)Response 200
{
"data": [
{
"created_at": "2019-12-27T18:11:19.117Z",
"telemetry_destination_id": "telemetry_destination_id",
"type": "telemetry_destination_workspace",
"workspace_id": "workspace_id"
}
],
"next_page": "next_page"
}Returns Examples
Response 200
{
"data": [
{
"created_at": "2019-12-27T18:11:19.117Z",
"telemetry_destination_id": "telemetry_destination_id",
"type": "telemetry_destination_workspace",
"workspace_id": "workspace_id"
}
],
"next_page": "next_page"
}