Class TelemetryDestinationCreateParams.Body
-
- All Implemented Interfaces:
public final class TelemetryDestinationCreateParams.BodyThe settings of a new telemetry destination for the organization.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classTelemetryDestinationCreateParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final StringendpointUrl()The base URL of your collector's OTLP/HTTP endpoint, for example https://gateway.example.com.final BetaTelemetryDestinationWorkspacesParamsworkspaces()Which of the organization's workspaces the destination covers. final Optional<String>displayName()Human-readable name for the destination. final Optional<TelemetryDestinationCreateParams.DestinationHeaders>headers()Request headers that the API sends with every delivery, typically your collector's authentication header (for example authorization).final Optional<BetaTelemetryDestinationTracesParams>traces()The settings for the traces that the destination receives. final JsonField<String>_endpointUrl()Returns the raw JSON value of endpointUrl. final JsonField<BetaTelemetryDestinationWorkspacesParams>_workspaces()Returns the raw JSON value of workspaces. final JsonField<String>_displayName()Returns the raw JSON value of displayName. final JsonField<TelemetryDestinationCreateParams.DestinationHeaders>_headers_()Returns the raw JSON value of headers. final JsonField<BetaTelemetryDestinationTracesParams>_traces()Returns the raw JSON value of traces. final Map<String, JsonValue>_additionalProperties()final TelemetryDestinationCreateParams.Body.BuildertoBuilder()final TelemetryDestinationCreateParams.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 TelemetryDestinationCreateParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
endpointUrl
final String endpointUrl()
The base URL of your collector's OTLP/HTTP endpoint, for example
https://gateway.example.com.The URL must use
httpsand a hostname, not an IP address. The port, if given, must be 443. The URL must not contain a query string, a fragment, or a username and password. At most 2,048 characters.A path prefix, such as
/otlp, is allowed. Don't include the per-signal path (/v1/traces), because the API appends it on delivery. If your collector takes traces on another path, also settraces.endpoint_url.
-
workspaces
final BetaTelemetryDestinationWorkspacesParams workspaces()
Which of the organization's workspaces the destination covers.
-
displayName
final Optional<String> displayName()
Human-readable name for the destination. Optional. 1 to 255 characters.
-
headers
final Optional<TelemetryDestinationCreateParams.DestinationHeaders> headers()
Request headers that the API sends with every delivery, typically your collector's authentication header (for example
authorization).The API never returns the values. Reads show only
header_names.At most 20 headers. Names are at most 128 characters. Two names can't differ only in case. Values are printable ASCII, at most 4,096 characters, and can't begin or end with a space. Names and values together are at most 16,384 bytes.
Reserved names are rejected, for example
host,cookie,user-agent, and names that start withcontent-,proxy-,x-forwarded-, oranthropic-. For this check,_in a name counts as-.
-
traces
final Optional<BetaTelemetryDestinationTracesParams> traces()
The settings for the traces that the destination receives. If you leave it out, every setting takes its default.
-
_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.
-
_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.
-
_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.
-
_headers_
final JsonField<TelemetryDestinationCreateParams.DestinationHeaders> _headers_()
Returns the raw JSON value of headers.
Unlike headers, 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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final TelemetryDestinationCreateParams.Body.Builder toBuilder()
-
validate
final TelemetryDestinationCreateParams.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 TelemetryDestinationCreateParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.endpointUrl() .workspaces()
-
-
-
-