Class TelemetrySample
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TelemetrySample.Builder,TelemetrySample>
This data type is part of Observations, which is in preview release for Amazon CloudWatch Omni and is subject to change.
One sample from a telemetry stream attached to an anomaly.
For a log anomaly this is a real log line of the matched pattern. The structure is reused for other anomaly sample
types; when a sample type records its own time it populates recordedAt, and when it does not (log lines
today) the member is absent.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic TelemetrySample.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringmessage()The sample text, as it was recorded.final InstantTime the sample was recorded.static Class<? extends TelemetrySample.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
recordedAt
Time the sample was recorded. Absent for log samples — the service does not store a per-line time, so the member is omitted. Present when a sample type records one.
- Returns:
- Time the sample was recorded. Absent for log samples — the service does not store a per-line time, so the member is omitted. Present when a sample type records one.
-
message
The sample text, as it was recorded.
- Returns:
- The sample text, as it was recorded.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<TelemetrySample.Builder,TelemetrySample> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-