Interface BetaTelemetryDestinationState.Visitor
-
- All Implemented Interfaces:
public interface BetaTelemetryDestinationState.Visitor<T extends Object>An interface that defines how to map each variant of BetaTelemetryDestinationState to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract TvisitEnabled(BetaTelemetryDestinationStateEnabled enabled)The telemetry destination receives the spans of the workspaces that it covers. abstract TvisitDisabled(BetaTelemetryDestinationStateDisabled disabled)The API doesn't deliver anything to the telemetry destination. Tunknown(JsonValue json)Maps an unknown variant of BetaTelemetryDestinationState to a value of type T. -
-
Method Detail
-
visitEnabled
abstract T visitEnabled(BetaTelemetryDestinationStateEnabled enabled)
The telemetry destination receives the spans of the workspaces that it covers.
-
visitDisabled
abstract T visitDisabled(BetaTelemetryDestinationStateDisabled disabled)
The API doesn't deliver anything to the telemetry destination.
Spans produced while it is disabled aren't delivered later.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of BetaTelemetryDestinationState to a value of type T.
An instance of BetaTelemetryDestinationState 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.
-
-
-
-