Class BetaTelemetryDestinationTracesParams
-
- All Implemented Interfaces:
public final class BetaTelemetryDestinationTracesParamsThe settings for the traces that a telemetry destination receives, as a create or update request sets them. An omitted field takes its default on create and keeps its stored value on update.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaTelemetryDestinationTracesParams.BuilderA builder for BetaTelemetryDestinationTracesParams.
-
Method Summary
Modifier and Type Method Description final Optional<BetaTelemetryDestinationContentMode>contentMode()What the exported spans contain. final Optional<Boolean>enabled()Whether the destination receives traces. final Optional<String>endpointUrl()The full URL of your collector's traces endpoint, for a collector that takes traces on a path other than /v1/traces.final Optional<Integer>maxContentBytes()The most bytes of content that one exported span can contain, from 1 up to the API's maximum. final JsonField<BetaTelemetryDestinationContentMode>_contentMode()Returns the raw JSON value of contentMode. final JsonField<Boolean>_enabled()Returns the raw JSON value of enabled. final JsonField<String>_endpointUrl()Returns the raw JSON value of endpointUrl. final JsonField<Integer>_maxContentBytes()Returns the raw JSON value of maxContentBytes. final Map<String, JsonValue>_additionalProperties()final BetaTelemetryDestinationTracesParams.BuildertoBuilder()final BetaTelemetryDestinationTracesParamsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaTelemetryDestinationTracesParams.Builderbuilder()Returns a mutable builder for constructing an instance of BetaTelemetryDestinationTracesParams. -
-
Method Detail
-
contentMode
final Optional<BetaTelemetryDestinationContentMode> contentMode()
What the exported spans contain. Defaults to
metadata_onlyon create.On update,
nullsetsmetadata_only.
-
enabled
final Optional<Boolean> enabled()
Whether the destination receives traces. Defaults to true on create. It cannot be null.
-
endpointUrl
final Optional<String> endpointUrl()
The full URL of your collector's traces endpoint, for a collector that takes traces on a path other than
/v1/traces. The API posts traces to it exactly as given and appends nothing.The same rules as for
endpoint_urlapply, except that any path is allowed. It must have the same scheme, host, and port asendpoint_url. At most 2,048 characters.On create,
nullis the same as leaving it out. On update,nullremoves it. The API then posts traces toendpoint_urlwith/v1/tracesappended. A change of this URL alone keeps the registered headers.
-
maxContentBytes
final Optional<Integer> maxContentBytes()
The most bytes of content that one exported span can contain, from 1 up to the API's maximum.
nullsets no bound, so only the API's maximum applies.On create, leaving it out is the same as
null. The error for a value above the maximum states the maximum.
-
_contentMode
final JsonField<BetaTelemetryDestinationContentMode> _contentMode()
Returns the raw JSON value of contentMode.
Unlike contentMode, this method doesn't throw if the JSON field has an unexpected type.
-
_enabled
final JsonField<Boolean> _enabled()
Returns the raw JSON value of enabled.
Unlike enabled, 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.
-
_maxContentBytes
final JsonField<Integer> _maxContentBytes()
Returns the raw JSON value of maxContentBytes.
Unlike maxContentBytes, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaTelemetryDestinationTracesParams.Builder toBuilder()
-
validate
final BetaTelemetryDestinationTracesParams 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 BetaTelemetryDestinationTracesParams.Builder builder()
Returns a mutable builder for constructing an instance of BetaTelemetryDestinationTracesParams.
-
-
-
-