@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Metric extends Object implements Serializable, Cloneable, StructuredPojo
Details about the metric that the analysis used when it detected the anomaly. The metric what is analyzed to create recommendations. It includes the name of the frame that was analyzed and the type and thread states used to derive the metric value for that frame.
Constructor and Description |
---|
Metric() |
Modifier and Type | Method and Description |
---|---|
Metric |
clone() |
boolean |
equals(Object obj) |
String |
getFrameName()
The name of the method that appears as a frame in any stack in a profile.
|
List<String> |
getThreadStates()
The list of application runtime thread states that is used to calculate the metric value for the frame.
|
String |
getType()
A type that specifies how a metric for a frame is analyzed.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFrameName(String frameName)
The name of the method that appears as a frame in any stack in a profile.
|
void |
setThreadStates(Collection<String> threadStates)
The list of application runtime thread states that is used to calculate the metric value for the frame.
|
void |
setType(String type)
A type that specifies how a metric for a frame is analyzed.
|
String |
toString()
Returns a string representation of this object.
|
Metric |
withFrameName(String frameName)
The name of the method that appears as a frame in any stack in a profile.
|
Metric |
withThreadStates(Collection<String> threadStates)
The list of application runtime thread states that is used to calculate the metric value for the frame.
|
Metric |
withThreadStates(String... threadStates)
The list of application runtime thread states that is used to calculate the metric value for the frame.
|
Metric |
withType(MetricType type)
A type that specifies how a metric for a frame is analyzed.
|
Metric |
withType(String type)
A type that specifies how a metric for a frame is analyzed.
|
public void setFrameName(String frameName)
The name of the method that appears as a frame in any stack in a profile.
frameName
- The name of the method that appears as a frame in any stack in a profile.public String getFrameName()
The name of the method that appears as a frame in any stack in a profile.
public Metric withFrameName(String frameName)
The name of the method that appears as a frame in any stack in a profile.
frameName
- The name of the method that appears as a frame in any stack in a profile.public List<String> getThreadStates()
The list of application runtime thread states that is used to calculate the metric value for the frame.
public void setThreadStates(Collection<String> threadStates)
The list of application runtime thread states that is used to calculate the metric value for the frame.
threadStates
- The list of application runtime thread states that is used to calculate the metric value for the frame.public Metric withThreadStates(String... threadStates)
The list of application runtime thread states that is used to calculate the metric value for the frame.
NOTE: This method appends the values to the existing list (if any). Use
setThreadStates(java.util.Collection)
or withThreadStates(java.util.Collection)
if you want to
override the existing values.
threadStates
- The list of application runtime thread states that is used to calculate the metric value for the frame.public Metric withThreadStates(Collection<String> threadStates)
The list of application runtime thread states that is used to calculate the metric value for the frame.
threadStates
- The list of application runtime thread states that is used to calculate the metric value for the frame.public void setType(String type)
A type that specifies how a metric for a frame is analyzed. The supported value
AggregatedRelativeTotalTime
is an aggregation of the metric value for one frame that is calculated
across the occurences of all frames in a profile.
type
- A type that specifies how a metric for a frame is analyzed. The supported value
AggregatedRelativeTotalTime
is an aggregation of the metric value for one frame that is
calculated across the occurences of all frames in a profile.MetricType
public String getType()
A type that specifies how a metric for a frame is analyzed. The supported value
AggregatedRelativeTotalTime
is an aggregation of the metric value for one frame that is calculated
across the occurences of all frames in a profile.
AggregatedRelativeTotalTime
is an aggregation of the metric value for one frame that is
calculated across the occurences of all frames in a profile.MetricType
public Metric withType(String type)
A type that specifies how a metric for a frame is analyzed. The supported value
AggregatedRelativeTotalTime
is an aggregation of the metric value for one frame that is calculated
across the occurences of all frames in a profile.
type
- A type that specifies how a metric for a frame is analyzed. The supported value
AggregatedRelativeTotalTime
is an aggregation of the metric value for one frame that is
calculated across the occurences of all frames in a profile.MetricType
public Metric withType(MetricType type)
A type that specifies how a metric for a frame is analyzed. The supported value
AggregatedRelativeTotalTime
is an aggregation of the metric value for one frame that is calculated
across the occurences of all frames in a profile.
type
- A type that specifies how a metric for a frame is analyzed. The supported value
AggregatedRelativeTotalTime
is an aggregation of the metric value for one frame that is
calculated across the occurences of all frames in a profile.MetricType
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.