@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Entity extends Object implements Serializable, Cloneable, StructuredPojo
An entity associated with metrics, to allow for finding related telemetry. An entity is typically a resource or service within your system. For example, metrics from an Amazon EC2 instance could be associated with that instance as the entity. Similarly, metrics from a service that you own could be associated with that service as the entity.
| Constructor and Description |
|---|
Entity() |
| Modifier and Type | Method and Description |
|---|---|
Entity |
addAttributesEntry(String key,
String value)
Add a single Attributes entry
|
Entity |
addKeyAttributesEntry(String key,
String value)
Add a single KeyAttributes entry
|
Entity |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
Entity |
clearKeyAttributesEntries()
Removes all the entries added into KeyAttributes.
|
Entity |
clone() |
boolean |
equals(Object obj) |
Map<String,String> |
getAttributes()
Additional attributes of the entity that are not used to specify the identity of the entity.
|
Map<String,String> |
getKeyAttributes()
The attributes of the entity which identify the specific entity, as a list of key-value pairs.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setAttributes(Map<String,String> attributes)
Additional attributes of the entity that are not used to specify the identity of the entity.
|
void |
setKeyAttributes(Map<String,String> keyAttributes)
The attributes of the entity which identify the specific entity, as a list of key-value pairs.
|
String |
toString()
Returns a string representation of this object.
|
Entity |
withAttributes(Map<String,String> attributes)
Additional attributes of the entity that are not used to specify the identity of the entity.
|
Entity |
withKeyAttributes(Map<String,String> keyAttributes)
The attributes of the entity which identify the specific entity, as a list of key-value pairs.
|
public Map<String,String> getKeyAttributes()
The attributes of the entity which identify the specific entity, as a list of key-value pairs. Entities with the
same KeyAttributes are considered to be the same entity. For an entity to be valid, the
KeyAttributes must exist and be formatted correctly.
There are five allowed attributes (key names): Type, ResourceType,
Identifier, Name, and Environment.
For details about how to use the key attributes to specify an entity, see How to add related information to telemetry in the CloudWatch User Guide.
KeyAttributes are considered to be the same entity. For an entity to be valid,
the KeyAttributes must exist and be formatted correctly.
There are five allowed attributes (key names): Type, ResourceType,
Identifier, Name, and Environment.
For details about how to use the key attributes to specify an entity, see How to add related information to telemetry in the CloudWatch User Guide.
public void setKeyAttributes(Map<String,String> keyAttributes)
The attributes of the entity which identify the specific entity, as a list of key-value pairs. Entities with the
same KeyAttributes are considered to be the same entity. For an entity to be valid, the
KeyAttributes must exist and be formatted correctly.
There are five allowed attributes (key names): Type, ResourceType,
Identifier, Name, and Environment.
For details about how to use the key attributes to specify an entity, see How to add related information to telemetry in the CloudWatch User Guide.
keyAttributes - The attributes of the entity which identify the specific entity, as a list of key-value pairs. Entities
with the same KeyAttributes are considered to be the same entity. For an entity to be valid,
the KeyAttributes must exist and be formatted correctly.
There are five allowed attributes (key names): Type, ResourceType,
Identifier, Name, and Environment.
For details about how to use the key attributes to specify an entity, see How to add related information to telemetry in the CloudWatch User Guide.
public Entity withKeyAttributes(Map<String,String> keyAttributes)
The attributes of the entity which identify the specific entity, as a list of key-value pairs. Entities with the
same KeyAttributes are considered to be the same entity. For an entity to be valid, the
KeyAttributes must exist and be formatted correctly.
There are five allowed attributes (key names): Type, ResourceType,
Identifier, Name, and Environment.
For details about how to use the key attributes to specify an entity, see How to add related information to telemetry in the CloudWatch User Guide.
keyAttributes - The attributes of the entity which identify the specific entity, as a list of key-value pairs. Entities
with the same KeyAttributes are considered to be the same entity. For an entity to be valid,
the KeyAttributes must exist and be formatted correctly.
There are five allowed attributes (key names): Type, ResourceType,
Identifier, Name, and Environment.
For details about how to use the key attributes to specify an entity, see How to add related information to telemetry in the CloudWatch User Guide.
public Entity addKeyAttributesEntry(String key, String value)
public Entity clearKeyAttributesEntries()
public Map<String,String> getAttributes()
Additional attributes of the entity that are not used to specify the identity of the entity. A list of key-value pairs.
For details about how to use the attributes, see How to add related information to telemetry in the CloudWatch User Guide.
For details about how to use the attributes, see How to add related information to telemetry in the CloudWatch User Guide.
public void setAttributes(Map<String,String> attributes)
Additional attributes of the entity that are not used to specify the identity of the entity. A list of key-value pairs.
For details about how to use the attributes, see How to add related information to telemetry in the CloudWatch User Guide.
attributes - Additional attributes of the entity that are not used to specify the identity of the entity. A list of
key-value pairs.
For details about how to use the attributes, see How to add related information to telemetry in the CloudWatch User Guide.
public Entity withAttributes(Map<String,String> attributes)
Additional attributes of the entity that are not used to specify the identity of the entity. A list of key-value pairs.
For details about how to use the attributes, see How to add related information to telemetry in the CloudWatch User Guide.
attributes - Additional attributes of the entity that are not used to specify the identity of the entity. A list of
key-value pairs.
For details about how to use the attributes, see How to add related information to telemetry in the CloudWatch User Guide.
public Entity addAttributesEntry(String key, String value)
public Entity clearAttributesEntries()
public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.