Class BetaTelemetryDestinationDeliveryHealth.Builder
-
- All Implemented Interfaces:
public final class BetaTelemetryDestinationDeliveryHealth.BuilderA builder for BetaTelemetryDestinationDeliveryHealth.
-
-
Method Summary
-
-
Method Detail
-
lastError
final BetaTelemetryDestinationDeliveryHealth.Builder lastError(String lastError)
A message that describes the most recent failed delivery to the destination, or
nullif no delivery has failed yet.Examples are
temporary DNS failure,TLS failure,timeout,connection failure,invalid address,HTTP error (status 503), andredirect (status 301). The message isinvalid addressboth for a hostname that doesn't exist and for an address that isn't publicly routable. It never contains the endpoint's response body, a header value, a network address, or TLS details.last_errorandlast_error_atalways change together. A later successful delivery doesn't clear them. Iflast_success_atis later thanlast_error_at, a delivery has succeeded since this failure.See the OpenTelemetry export guide to learn the likely cause of each error.
-
lastError
final BetaTelemetryDestinationDeliveryHealth.Builder lastError(Optional<String> lastError)
Alias for calling Builder.lastError with
lastError.orElse(null).
-
lastError
final BetaTelemetryDestinationDeliveryHealth.Builder lastError(JsonField<String> lastError)
Sets Builder.lastError to an arbitrary JSON value.
You should usually call Builder.lastError with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
lastErrorAt
final BetaTelemetryDestinationDeliveryHealth.Builder lastErrorAt(OffsetDateTime lastErrorAt)
Time of the failure that
last_errordescribes. Changes together withlast_error. Null until a delivery first fails.
-
lastErrorAt
final BetaTelemetryDestinationDeliveryHealth.Builder lastErrorAt(Optional<OffsetDateTime> lastErrorAt)
Alias for calling Builder.lastErrorAt with
lastErrorAt.orElse(null).
-
lastErrorAt
final BetaTelemetryDestinationDeliveryHealth.Builder lastErrorAt(JsonField<OffsetDateTime> lastErrorAt)
Sets Builder.lastErrorAt to an arbitrary JSON value.
You should usually call Builder.lastErrorAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
lastSuccessAt
final BetaTelemetryDestinationDeliveryHealth.Builder lastSuccessAt(OffsetDateTime lastSuccessAt)
Time of the most recent successful delivery to the destination, or
nullif no delivery has succeeded yet.
-
lastSuccessAt
final BetaTelemetryDestinationDeliveryHealth.Builder lastSuccessAt(Optional<OffsetDateTime> lastSuccessAt)
Alias for calling Builder.lastSuccessAt with
lastSuccessAt.orElse(null).
-
lastSuccessAt
final BetaTelemetryDestinationDeliveryHealth.Builder lastSuccessAt(JsonField<OffsetDateTime> lastSuccessAt)
Sets Builder.lastSuccessAt to an arbitrary JSON value.
You should usually call Builder.lastSuccessAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaTelemetryDestinationDeliveryHealth.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaTelemetryDestinationDeliveryHealth.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaTelemetryDestinationDeliveryHealth.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaTelemetryDestinationDeliveryHealth.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaTelemetryDestinationDeliveryHealth.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaTelemetryDestinationDeliveryHealth build()
Returns an immutable instance of BetaTelemetryDestinationDeliveryHealth.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.lastError() .lastErrorAt() .lastSuccessAt()
-
-
-
-