Daftar Workspace Tujuan Telemetri
GET/v1/organizations/telemetry_destinations/{destination_id}/workspaces
Daftar workspace yang ada di daftar workspace suatu tujuan, dimulai dari entri terbaru.
Tujuan yang workspaces.type-nya bernilai all tidak memiliki daftar, sehingga halamannya kosong. Daftar ini mencakup workspace yang diarsipkan.
Lihat panduan ekspor OpenTelemetry untuk mempelajari lebih lanjut tentang cara memilih workspace untuk suatu tujuan.
Parameters
Returns
Daftar Workspace Tujuan Telemetri
package main
import (
"context"
"fmt"
"github.com/anthropics/anthropic-sdk-go"
"github.com/anthropics/anthropic-sdk-go/option"
)
func main() {
client := anthropic.NewClient(
option.WithAPIKey("my-anthropic-api-key"),
)
page, err := client.Beta.Organization.TelemetryDestinations.Workspaces.List(
context.TODO(),
"destination_id",
anthropic.BetaOrganizationTelemetryDestinationWorkspaceListParams{},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", 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"
}