Listar workspaces de destino de telemetria
GET/v1/organizations/telemetry_destinations/{destination_id}/workspaces
Lista os workspaces na lista de workspaces de um destino, com a entrada mais recente primeiro.
Um destino cujo workspaces.type é all não tem uma lista, portanto sua página fica vazia. A lista inclui workspaces arquivados.
Consulte o guia de exportação do OpenTelemetry para saber mais sobre como escolher os workspaces de um destino.
Parameters
Returns
Listar workspaces de destino de telemetria
package com.anthropic.example;
import com.anthropic.client.AnthropicClient;
import com.anthropic.client.okhttp.AnthropicOkHttpClient;
import com.anthropic.models.beta.organization.telemetrydestinations.workspaces.WorkspaceListPage;
import com.anthropic.models.beta.organization.telemetrydestinations.workspaces.WorkspaceListParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
AnthropicClient client = AnthropicOkHttpClient.fromEnv();
WorkspaceListPage page = client.beta().organization().telemetryDestinations().workspaces().list("destination_id");
}
}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"
}