Class TelemetryDestinationCreateParams.Body.Builder
-
- All Implemented Interfaces:
public final class TelemetryDestinationCreateParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
endpointUrl
final TelemetryDestinationCreateParams.Body.Builder endpointUrl(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.
-
endpointUrl
final TelemetryDestinationCreateParams.Body.Builder endpointUrl(JsonField<String> endpointUrl)
Sets Builder.endpointUrl to an arbitrary JSON value.
You should usually call Builder.endpointUrl with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
workspaces
final TelemetryDestinationCreateParams.Body.Builder workspaces(BetaTelemetryDestinationWorkspacesParams workspaces)
Which of the organization's workspaces the destination covers.
-
workspaces
final TelemetryDestinationCreateParams.Body.Builder workspaces(JsonField<BetaTelemetryDestinationWorkspacesParams> workspaces)
Sets Builder.workspaces to an arbitrary JSON value.
You should usually call Builder.workspaces with a well-typed BetaTelemetryDestinationWorkspacesParams value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
workspaces
final TelemetryDestinationCreateParams.Body.Builder workspaces(BetaTelemetryDestinationWorkspacesAllParams all)
Alias for calling workspaces with
BetaTelemetryDestinationWorkspacesParams.ofAll(all).
-
workspaces
final TelemetryDestinationCreateParams.Body.Builder workspaces(BetaTelemetryDestinationWorkspacesIncludeParams include)
Alias for calling workspaces with
BetaTelemetryDestinationWorkspacesParams.ofInclude(include).
-
workspaces
final TelemetryDestinationCreateParams.Body.Builder workspaces(BetaTelemetryDestinationWorkspacesExcludeParams exclude)
Alias for calling workspaces with
BetaTelemetryDestinationWorkspacesParams.ofExclude(exclude).
-
displayName
final TelemetryDestinationCreateParams.Body.Builder displayName(String displayName)
Human-readable name for the destination. Optional. 1 to 255 characters.
-
displayName
final TelemetryDestinationCreateParams.Body.Builder displayName(Optional<String> displayName)
Alias for calling Builder.displayName with
displayName.orElse(null).
-
displayName
final TelemetryDestinationCreateParams.Body.Builder displayName(JsonField<String> displayName)
Sets Builder.displayName to an arbitrary JSON value.
You should usually call Builder.displayName with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
headers
final TelemetryDestinationCreateParams.Body.Builder headers(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-.
-
headers
final TelemetryDestinationCreateParams.Body.Builder headers(JsonField<TelemetryDestinationCreateParams.DestinationHeaders> headers)
Sets Builder.headers to an arbitrary JSON value.
You should usually call Builder.headers with a well-typed DestinationHeaders value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
traces
final TelemetryDestinationCreateParams.Body.Builder traces(BetaTelemetryDestinationTracesParams traces)
The settings for the traces that the destination receives. If you leave it out, every setting takes its default.
-
traces
final TelemetryDestinationCreateParams.Body.Builder traces(JsonField<BetaTelemetryDestinationTracesParams> traces)
Sets Builder.traces to an arbitrary JSON value.
You should usually call Builder.traces with a well-typed BetaTelemetryDestinationTracesParams value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final TelemetryDestinationCreateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final TelemetryDestinationCreateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final TelemetryDestinationCreateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final TelemetryDestinationCreateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final TelemetryDestinationCreateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final TelemetryDestinationCreateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.endpointUrl() .workspaces()
-
-
-
-