刪除遙測目的地
DELETE/v1/organizations/telemetry_destinations/{destination_id}
刪除目的地及其工作區清單。
API 會停止將 span 傳送至該目的地。其所涵蓋工作區的 span 仍會傳送至涵蓋這些工作區的其他目的地。已刪除的目的地無法讀取、列出或還原。
請參閱 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"
}