@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Observation extends Object implements Serializable, Cloneable, StructuredPojo
Describes an anomaly or error with the application.
Constructor and Description |
---|
Observation() |
Modifier and Type | Method and Description |
---|---|
Observation |
clone() |
boolean |
equals(Object obj) |
Date |
getEndTime()
The time when the observation ended, in epoch seconds.
|
String |
getId()
The ID of the observation type.
|
Date |
getLineTime()
The timestamp in the CloudWatch Logs that specifies when the matched line occurred.
|
String |
getLogFilter()
The log filter of the observation.
|
String |
getLogGroup()
The log group name.
|
String |
getLogText()
The log text of the observation.
|
String |
getMetricName()
The name of the observation metric.
|
String |
getMetricNamespace()
The namespace of the observation metric.
|
String |
getSourceARN()
The source resource ARN of the observation.
|
String |
getSourceType()
The source type of the observation.
|
Date |
getStartTime()
The time when the observation was first detected, in epoch seconds.
|
String |
getUnit()
The unit of the source observation metric.
|
Double |
getValue()
The value of the source observation metric.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEndTime(Date endTime)
The time when the observation ended, in epoch seconds.
|
void |
setId(String id)
The ID of the observation type.
|
void |
setLineTime(Date lineTime)
The timestamp in the CloudWatch Logs that specifies when the matched line occurred.
|
void |
setLogFilter(String logFilter)
The log filter of the observation.
|
void |
setLogGroup(String logGroup)
The log group name.
|
void |
setLogText(String logText)
The log text of the observation.
|
void |
setMetricName(String metricName)
The name of the observation metric.
|
void |
setMetricNamespace(String metricNamespace)
The namespace of the observation metric.
|
void |
setSourceARN(String sourceARN)
The source resource ARN of the observation.
|
void |
setSourceType(String sourceType)
The source type of the observation.
|
void |
setStartTime(Date startTime)
The time when the observation was first detected, in epoch seconds.
|
void |
setUnit(String unit)
The unit of the source observation metric.
|
void |
setValue(Double value)
The value of the source observation metric.
|
String |
toString()
Returns a string representation of this object.
|
Observation |
withEndTime(Date endTime)
The time when the observation ended, in epoch seconds.
|
Observation |
withId(String id)
The ID of the observation type.
|
Observation |
withLineTime(Date lineTime)
The timestamp in the CloudWatch Logs that specifies when the matched line occurred.
|
Observation |
withLogFilter(LogFilter logFilter)
The log filter of the observation.
|
Observation |
withLogFilter(String logFilter)
The log filter of the observation.
|
Observation |
withLogGroup(String logGroup)
The log group name.
|
Observation |
withLogText(String logText)
The log text of the observation.
|
Observation |
withMetricName(String metricName)
The name of the observation metric.
|
Observation |
withMetricNamespace(String metricNamespace)
The namespace of the observation metric.
|
Observation |
withSourceARN(String sourceARN)
The source resource ARN of the observation.
|
Observation |
withSourceType(String sourceType)
The source type of the observation.
|
Observation |
withStartTime(Date startTime)
The time when the observation was first detected, in epoch seconds.
|
Observation |
withUnit(String unit)
The unit of the source observation metric.
|
Observation |
withValue(Double value)
The value of the source observation metric.
|
public void setId(String id)
The ID of the observation type.
id
- The ID of the observation type.public String getId()
The ID of the observation type.
public Observation withId(String id)
The ID of the observation type.
id
- The ID of the observation type.public void setStartTime(Date startTime)
The time when the observation was first detected, in epoch seconds.
startTime
- The time when the observation was first detected, in epoch seconds.public Date getStartTime()
The time when the observation was first detected, in epoch seconds.
public Observation withStartTime(Date startTime)
The time when the observation was first detected, in epoch seconds.
startTime
- The time when the observation was first detected, in epoch seconds.public void setEndTime(Date endTime)
The time when the observation ended, in epoch seconds.
endTime
- The time when the observation ended, in epoch seconds.public Date getEndTime()
The time when the observation ended, in epoch seconds.
public Observation withEndTime(Date endTime)
The time when the observation ended, in epoch seconds.
endTime
- The time when the observation ended, in epoch seconds.public void setSourceType(String sourceType)
The source type of the observation.
sourceType
- The source type of the observation.public String getSourceType()
The source type of the observation.
public Observation withSourceType(String sourceType)
The source type of the observation.
sourceType
- The source type of the observation.public void setSourceARN(String sourceARN)
The source resource ARN of the observation.
sourceARN
- The source resource ARN of the observation.public String getSourceARN()
The source resource ARN of the observation.
public Observation withSourceARN(String sourceARN)
The source resource ARN of the observation.
sourceARN
- The source resource ARN of the observation.public void setLogGroup(String logGroup)
The log group name.
logGroup
- The log group name.public String getLogGroup()
The log group name.
public Observation withLogGroup(String logGroup)
The log group name.
logGroup
- The log group name.public void setLineTime(Date lineTime)
The timestamp in the CloudWatch Logs that specifies when the matched line occurred.
lineTime
- The timestamp in the CloudWatch Logs that specifies when the matched line occurred.public Date getLineTime()
The timestamp in the CloudWatch Logs that specifies when the matched line occurred.
public Observation withLineTime(Date lineTime)
The timestamp in the CloudWatch Logs that specifies when the matched line occurred.
lineTime
- The timestamp in the CloudWatch Logs that specifies when the matched line occurred.public void setLogText(String logText)
The log text of the observation.
logText
- The log text of the observation.public String getLogText()
The log text of the observation.
public Observation withLogText(String logText)
The log text of the observation.
logText
- The log text of the observation.public void setLogFilter(String logFilter)
The log filter of the observation.
logFilter
- The log filter of the observation.LogFilter
public String getLogFilter()
The log filter of the observation.
LogFilter
public Observation withLogFilter(String logFilter)
The log filter of the observation.
logFilter
- The log filter of the observation.LogFilter
public Observation withLogFilter(LogFilter logFilter)
The log filter of the observation.
logFilter
- The log filter of the observation.LogFilter
public void setMetricNamespace(String metricNamespace)
The namespace of the observation metric.
metricNamespace
- The namespace of the observation metric.public String getMetricNamespace()
The namespace of the observation metric.
public Observation withMetricNamespace(String metricNamespace)
The namespace of the observation metric.
metricNamespace
- The namespace of the observation metric.public void setMetricName(String metricName)
The name of the observation metric.
metricName
- The name of the observation metric.public String getMetricName()
The name of the observation metric.
public Observation withMetricName(String metricName)
The name of the observation metric.
metricName
- The name of the observation metric.public void setUnit(String unit)
The unit of the source observation metric.
unit
- The unit of the source observation metric.public String getUnit()
The unit of the source observation metric.
public Observation withUnit(String unit)
The unit of the source observation metric.
unit
- The unit of the source observation metric.public void setValue(Double value)
The value of the source observation metric.
value
- The value of the source observation metric.public Double getValue()
The value of the source observation metric.
public Observation withValue(Double value)
The value of the source observation metric.
value
- The value of the source observation metric.public String toString()
toString
in class Object
Object.toString()
public Observation clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.