Interface BetaTelemetryDestinationDisabledReason.Visitor
-
- All Implemented Interfaces:
public interface BetaTelemetryDestinationDisabledReason.Visitor<T extends Object>An interface that defines how to map each variant of BetaTelemetryDestinationDisabledReason to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract TvisitCaller(BetaTelemetryDestinationDisabledReasonCaller caller)A caller disabled the destination with an update that set statetodisabled.abstract TvisitSustainedFailure(BetaTelemetryDestinationDisabledReasonSustainedFailure sustainedFailure)The API disabled the destination because deliveries to it failed, with no successful delivery in between, for longer than a threshold that Anthropic configures and that is not part of this contract. abstract TvisitInvalidAddress(BetaTelemetryDestinationDisabledReasonInvalidAddress invalidAddress)The API disabled the destination because deliveries to it failed for longer than the same threshold as for sustained_failure, and the most recent failed delivery failed with an invalid address: the DNS answer says that the endpoint's hostname doesn't exist or doesn't have an address, or the address that the API would connect to isn't publicly routable or is reserved, for example a loopback, link-local, private-network, or cloud-metadata address.abstract TvisitRedirect(BetaTelemetryDestinationDisabledReasonRedirect redirect)The API disabled the destination because the endpoint answered a delivery with a 3xx status. Tunknown(JsonValue json)Maps an unknown variant of BetaTelemetryDestinationDisabledReason to a value of type T. -
-
Method Detail
-
visitCaller
abstract T visitCaller(BetaTelemetryDestinationDisabledReasonCaller caller)
A caller disabled the destination with an update that set
statetodisabled.
-
visitSustainedFailure
abstract T visitSustainedFailure(BetaTelemetryDestinationDisabledReasonSustainedFailure sustainedFailure)
The API disabled the destination because deliveries to it failed, with no successful delivery in between, for longer than a threshold that Anthropic configures and that is not part of this contract. The reason is
invalid_addressinstead when the most recent failed delivery failed with an invalid address.
-
visitInvalidAddress
abstract T visitInvalidAddress(BetaTelemetryDestinationDisabledReasonInvalidAddress invalidAddress)
The API disabled the destination because deliveries to it failed for longer than the same threshold as for
sustained_failure, and the most recent failed delivery failed with an invalid address: the DNS answer says that the endpoint's hostname doesn't exist or doesn't have an address, or the address that the API would connect to isn't publicly routable or is reserved, for example a loopback, link-local, private-network, or cloud-metadata address. The API doesn't connect to such an address, and retries the delivery a bounded number of times as it does after a timeout. A timeout or a server failure of the DNS lookup is a temporary DNS failure instead, not an invalid address.
-
visitRedirect
abstract T visitRedirect(BetaTelemetryDestinationDisabledReasonRedirect redirect)
The API disabled the destination because the endpoint answered a delivery with a 3xx status. Redirects are never followed, and one such answer disables the destination at once.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of BetaTelemetryDestinationDisabledReason to a value of type T.
An instance of BetaTelemetryDestinationDisabledReason can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-