Class TelemetryDestinationUpdateParams.Body
-
- All Implemented Interfaces:
public final class TelemetryDestinationUpdateParams.Body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classTelemetryDestinationUpdateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final Optional<String>displayName()New human-readable name, 1 to 255 characters. final Optional<String>endpointUrl()The new base URL of the destination's OTLP/HTTP endpoint. final Optional<TelemetryDestinationUpdateParams.DestinationHeaders>headers()Headers to set or remove. final Optional<BetaTelemetryDestinationStateParams>state()Whether the destination receives deliveries after the update. final Optional<BetaTelemetryDestinationTracesParams>traces()The traces settings to change. final Optional<BetaTelemetryDestinationWorkspacesParams>workspaces()The new workspace scope, in the same form as on create. final JsonField<String>_displayName()Returns the raw JSON value of displayName. final JsonField<String>_endpointUrl()Returns the raw JSON value of endpointUrl. final JsonField<TelemetryDestinationUpdateParams.DestinationHeaders>_headers_()Returns the raw JSON value of headers. final JsonField<BetaTelemetryDestinationStateParams>_state()Returns the raw JSON value of state. final JsonField<BetaTelemetryDestinationTracesParams>_traces()Returns the raw JSON value of traces. final JsonField<BetaTelemetryDestinationWorkspacesParams>_workspaces()Returns the raw JSON value of workspaces. final Map<String, JsonValue>_additionalProperties()final TelemetryDestinationUpdateParams.Body.BuildertoBuilder()final TelemetryDestinationUpdateParams.Bodyvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static TelemetryDestinationUpdateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
displayName
final Optional<String> displayName()
New human-readable name, 1 to 255 characters. Null clears it.
-
endpointUrl
final Optional<String> endpointUrl()
The new base URL of the destination's OTLP/HTTP endpoint. The same rules as on create apply.
A change of hostname or port first removes every registered header, so send the headers for the new endpoint in the same request. When the destination has a
traces.endpoint_url, such a change must also settraces.endpoint_urlto a URL with the new hostname and port, or tonull. A change of the path alone keeps the headers.
-
headers
final Optional<TelemetryDestinationUpdateParams.DestinationHeaders> headers()
Headers to set or remove. The API merges them into the destination's headers by name.
Names compare case-insensitively. A string value sets or replaces that header. A
nullvalue removes it. Headers that you omit don't change. The field itself can't benull.A request that sets a header value must also include
endpoint_url. The current URL is accepted.The resulting set must stay within the same limits as on create. When the request sets a value, each stored value that it doesn't set counts as 4,096 bytes toward the 16,384-byte limit, because you can't read its real length. So to change one header of a destination that has four or more other headers, send the values of the others again in the same request.
-
state
final Optional<BetaTelemetryDestinationStateParams> state()
Whether the destination receives deliveries after the update. The field can't be
null.
-
traces
final Optional<BetaTelemetryDestinationTracesParams> traces()
The traces settings to change. Omitted settings keep their stored values.
nullsets every traces setting to its create default.
-
workspaces
final Optional<BetaTelemetryDestinationWorkspacesParams> workspaces()
The new workspace scope, in the same form as on create. The field can't be
null.The API refuses an update that changes the type or sends
workspace_idswhile the destination's list has more than 750 workspaces. Remove workspaces one at a time until 750 or fewer remain, then send the update again.
-
_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.
-
_headers_
final JsonField<TelemetryDestinationUpdateParams.DestinationHeaders> _headers_()
Returns the raw JSON value of headers.
Unlike headers, this method doesn't throw if the JSON field has an unexpected type.
-
_state
final JsonField<BetaTelemetryDestinationStateParams> _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<BetaTelemetryDestinationTracesParams> _traces()
Returns the raw JSON value of traces.
Unlike traces, this method doesn't throw if the JSON field has an unexpected type.
-
_workspaces
final JsonField<BetaTelemetryDestinationWorkspacesParams> _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 TelemetryDestinationUpdateParams.Body.Builder toBuilder()
-
validate
final TelemetryDestinationUpdateParams.Body 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 TelemetryDestinationUpdateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
-
-
-
-