テレメトリ送信先を削除
DELETE/v1/organizations/telemetry_destinations/{destination_id}
送信先とそのワークスペースリストを削除します。
API は送信先へのスパンの送信を停止します。対象だったワークスペースのスパンは、それらを対象とする他の送信先には引き続き送信されます。削除された送信先は、読み取り、一覧表示、復元のいずれもできません。
送信先の管理について詳しくは、OpenTelemetry エクスポートガイドを参照してください。
Parameters
Returns
テレメトリ送信先を削除
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"),
)
betaDeletedTelemetryDestination, err := client.Beta.Organization.TelemetryDestinations.Delete(
context.TODO(),
"destination_id",
anthropic.BetaOrganizationTelemetryDestinationDeleteParams{},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", betaDeletedTelemetryDestination.ID)
}Response 200
{
"id": "id",
"type": "telemetry_destination_deleted"
}Returns Examples
Response 200
{
"id": "id",
"type": "telemetry_destination_deleted"
}