Class BetaTelemetryDestination
-
- All Implemented Interfaces:
public final class BetaTelemetryDestinationAn OpenTelemetry destination: an OTLP/HTTP endpoint, the request headers sent with every delivery to it, what the exported spans contain, and which workspaces it covers. A destination belongs to an organization. A workspace's spans go to every enabled destination that covers it.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaTelemetryDestination.BuilderA builder for BetaTelemetryDestination.
-
Method Summary
Modifier and Type Method Description final Stringid()The unique ID of the destination ( tdst_...).final OffsetDateTimecreatedAt()Time the destination was created. final BetaTelemetryDestinationDeliveryHealthdeliveryHealth()The most recent delivery results for this destination. final Optional<String>displayName()Human-readable name for the destination. final StringendpointUrl()The base URL of the destination's OTLP/HTTP endpoint, exactly as registered. final List<String>headerNames()Names of the registered request headers. final BetaTelemetryDestinationStatestate()Whether the destination receives deliveries. final BetaTelemetryDestinationTracestraces()The destination's settings for the traces it receives. final OffsetDateTimeupdatedAt()Time of the last change to the destination's configuration or state. final BetaTelemetryDestinationWorkspacesworkspaces()Which of the organization's workspaces the destination covers. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("telemetry_destination")final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<OffsetDateTime>_createdAt()Returns the raw JSON value of createdAt. final JsonField<BetaTelemetryDestinationDeliveryHealth>_deliveryHealth()Returns the raw JSON value of deliveryHealth. final JsonField<String>_displayName()Returns the raw JSON value of displayName. final JsonField<String>_endpointUrl()Returns the raw JSON value of endpointUrl. final JsonField<List<String>>_headerNames()Returns the raw JSON value of headerNames. final JsonField<BetaTelemetryDestinationState>_state()Returns the raw JSON value of state. final JsonField<BetaTelemetryDestinationTraces>_traces()Returns the raw JSON value of traces. final JsonField<OffsetDateTime>_updatedAt()Returns the raw JSON value of updatedAt. final JsonField<BetaTelemetryDestinationWorkspaces>_workspaces()Returns the raw JSON value of workspaces. final Map<String, JsonValue>_additionalProperties()final BetaTelemetryDestination.BuildertoBuilder()final BetaTelemetryDestinationvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaTelemetryDestination.Builderbuilder()Returns a mutable builder for constructing an instance of BetaTelemetryDestination. -
-
Method Detail
-
createdAt
final OffsetDateTime createdAt()
Time the destination was created.
-
deliveryHealth
final BetaTelemetryDestinationDeliveryHealth deliveryHealth()
The most recent delivery results for this destination.
-
displayName
final Optional<String> displayName()
Human-readable name for the destination. Null when none was set.
-
endpointUrl
final String endpointUrl()
The base URL of the destination's OTLP/HTTP endpoint, exactly as registered.
The API appends the per-signal path, such as
/v1/traces, on delivery, unlesstraces.endpoint_urlis set.
-
headerNames
final List<String> headerNames()
Names of the registered request headers. Header values are write-only and are never returned.
-
state
final BetaTelemetryDestinationState state()
Whether the destination receives deliveries.
-
traces
final BetaTelemetryDestinationTraces traces()
The destination's settings for the traces it receives.
-
updatedAt
final OffsetDateTime updatedAt()
Time of the last change to the destination's configuration or state. Changes to
delivery_healthdon't change it.An update that sets a header value always changes it, even when the value is the same as before. Adding or removing a single workspace on the destination's list doesn't change it. An update that changes the list does.
-
workspaces
final BetaTelemetryDestinationWorkspaces workspaces()
Which of the organization's workspaces the destination covers.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("telemetry_destination")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_createdAt
final JsonField<OffsetDateTime> _createdAt()
Returns the raw JSON value of createdAt.
Unlike createdAt, this method doesn't throw if the JSON field has an unexpected type.
-
_deliveryHealth
final JsonField<BetaTelemetryDestinationDeliveryHealth> _deliveryHealth()
Returns the raw JSON value of deliveryHealth.
Unlike deliveryHealth, this method doesn't throw if the JSON field has an unexpected type.
-
_displayName
final JsonField<String> _displayName()
Returns the raw JSON value of displayName.
Unlike displayName, this method doesn't throw if the JSON field has an unexpected type.
-
_endpointUrl
final JsonField<String> _endpointUrl()
Returns the raw JSON value of endpointUrl.
Unlike endpointUrl, this method doesn't throw if the JSON field has an unexpected type.
-
_headerNames
final JsonField<List<String>> _headerNames()
Returns the raw JSON value of headerNames.
Unlike headerNames, this method doesn't throw if the JSON field has an unexpected type.
-
_state
final JsonField<BetaTelemetryDestinationState> _state()
Returns the raw JSON value of state.
Unlike state, this method doesn't throw if the JSON field has an unexpected type.
-
_traces
final JsonField<BetaTelemetryDestinationTraces> _traces()
Returns the raw JSON value of traces.
Unlike traces, this method doesn't throw if the JSON field has an unexpected type.
-
_updatedAt
final JsonField<OffsetDateTime> _updatedAt()
Returns the raw JSON value of updatedAt.
Unlike updatedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_workspaces
final JsonField<BetaTelemetryDestinationWorkspaces> _workspaces()
Returns the raw JSON value of workspaces.
Unlike workspaces, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaTelemetryDestination.Builder toBuilder()
-
validate
final BetaTelemetryDestination validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaTelemetryDestination.Builder builder()
Returns a mutable builder for constructing an instance of BetaTelemetryDestination.
The following fields are required:
.id() .createdAt() .deliveryHealth() .displayName() .endpointUrl() .headerNames() .state() .traces() .updatedAt() .workspaces()
-
-
-
-