Class BetaTelemetryDestinationTestResponse
-
- All Implemented Interfaces:
public final class BetaTelemetryDestinationTestResponseThe result of one test span sent to a destination.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaTelemetryDestinationTestResponse.BuilderA builder for BetaTelemetryDestinationTestResponse.
-
Method Summary
Modifier and Type Method Description final BetaTelemetryDestinationTestResultresult()How the test went: successwhen the destination answered with a 2xx status, elsefailurewith the reason.final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("telemetry_destination_test")final JsonField<BetaTelemetryDestinationTestResult>_result()Returns the raw JSON value of result. final Map<String, JsonValue>_additionalProperties()final BetaTelemetryDestinationTestResponse.BuildertoBuilder()final BetaTelemetryDestinationTestResponsevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaTelemetryDestinationTestResponse.Builderbuilder()Returns a mutable builder for constructing an instance of BetaTelemetryDestinationTestResponse. final static BetaTelemetryDestinationTestResponseof(BetaTelemetryDestinationTestResult result)Returns an immutable instance of BetaTelemetryDestinationTestResponse with the required result set to the given value. final static BetaTelemetryDestinationTestResponseof(BetaTelemetryDestinationTestSuccess success)Alias for calling of with BetaTelemetryDestinationTestResult.ofSuccess(success).final static BetaTelemetryDestinationTestResponseof(BetaTelemetryDestinationTestFailure failure)Alias for calling of with BetaTelemetryDestinationTestResult.ofFailure(failure).-
-
Method Detail
-
result
final BetaTelemetryDestinationTestResult result()
How the test went:
successwhen the destination answered with a 2xx status, elsefailurewith the reason.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("telemetry_destination_test")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_result
final JsonField<BetaTelemetryDestinationTestResult> _result()
Returns the raw JSON value of result.
Unlike result, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaTelemetryDestinationTestResponse.Builder toBuilder()
-
validate
final BetaTelemetryDestinationTestResponse 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 BetaTelemetryDestinationTestResponse.Builder builder()
Returns a mutable builder for constructing an instance of BetaTelemetryDestinationTestResponse.
The following fields are required:
.result()
-
of
final static BetaTelemetryDestinationTestResponse of(BetaTelemetryDestinationTestResult result)
Returns an immutable instance of BetaTelemetryDestinationTestResponse with the required result set to the given value.
-
of
final static BetaTelemetryDestinationTestResponse of(BetaTelemetryDestinationTestSuccess success)
Alias for calling of with
BetaTelemetryDestinationTestResult.ofSuccess(success).
-
of
final static BetaTelemetryDestinationTestResponse of(BetaTelemetryDestinationTestFailure failure)
Alias for calling of with
BetaTelemetryDestinationTestResult.ofFailure(failure).
-
-
-
-