Class CeilometerMeterSample
- java.lang.Object
-
- org.openstack4j.openstack.telemetry.domain.CeilometerMeterSample
-
- All Implemented Interfaces:
Serializable,ModelEntity,MeterSample
public class CeilometerMeterSample extends Object implements MeterSample
A single measurement for a given meter and resource.- Author:
- Jeremy Unruh
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CeilometerMeterSample()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCounterName()Meter.TypegetCounterType()StringgetCounterUnit()FloatgetCounterVolume()StringgetMessageId()Map<String,Object>getMetadata()StringgetProjectId()StringgetRecordedAt()StringgetResourceId()StringgetSource()StringgetTimestamp()StringgetUserId()voidsetCounterName(String counterName)voidsetCounterType(Meter.Type meterType)voidsetCounterUnit(String counterUnit)voidsetCounterVolume(Float counterVolume)voidsetMessageId(String messageId)voidsetMetadata(Map<String,Object> metadata)voidsetProjectId(String projectId)voidsetRecordedAt(String recordedAt)voidsetResourceId(String resourceId)voidsetSource(String source)voidsetTimestamp(String timestamp)voidsetUserId(String userId)StringtoString()
-
-
-
Method Detail
-
getCounterName
public String getCounterName()
- Specified by:
getCounterNamein interfaceMeterSample- Returns:
- the name of the meter
-
setCounterName
public void setCounterName(String counterName)
- Specified by:
setCounterNamein interfaceMeterSample
-
getCounterType
public Meter.Type getCounterType()
- Specified by:
getCounterTypein interfaceMeterSample- Returns:
- the type of meter
-
setCounterType
public void setCounterType(Meter.Type meterType)
- Specified by:
setCounterTypein interfaceMeterSample
-
getCounterUnit
public String getCounterUnit()
- Specified by:
getCounterUnitin interfaceMeterSample- Returns:
- The unit of measure for the value in the counter volume
-
setCounterUnit
public void setCounterUnit(String counterUnit)
- Specified by:
setCounterUnitin interfaceMeterSample
-
getCounterVolume
public Float getCounterVolume()
- Specified by:
getCounterVolumein interfaceMeterSample- Returns:
- the actual measured value
-
setCounterVolume
public void setCounterVolume(Float counterVolume)
- Specified by:
setCounterVolumein interfaceMeterSample
-
getSource
public String getSource()
- Specified by:
getSourcein interfaceMeterSample- Returns:
- The ID of the source that identifies where the sample comes from
-
setSource
public void setSource(String source)
- Specified by:
setSourcein interfaceMeterSample
-
getProjectId
public String getProjectId()
- Specified by:
getProjectIdin interfaceMeterSample- Returns:
- he ID of the project or tenant that owns the resource
-
setProjectId
public void setProjectId(String projectId)
- Specified by:
setProjectIdin interfaceMeterSample
-
getUserId
public String getUserId()
- Specified by:
getUserIdin interfaceMeterSample- Returns:
- The ID of the user who last triggered an update to the resource
-
setUserId
public void setUserId(String userId)
- Specified by:
setUserIdin interfaceMeterSample
-
getRecordedAt
public String getRecordedAt()
- Specified by:
getRecordedAtin interfaceMeterSample- Returns:
- UTC date and time when the sample was recorded
-
setRecordedAt
public void setRecordedAt(String recordedAt)
- Specified by:
setRecordedAtin interfaceMeterSample
-
getResourceId
public String getResourceId()
- Specified by:
getResourceIdin interfaceMeterSample- Returns:
- The ID of the Resource for which the measurements are taken
-
setResourceId
public void setResourceId(String resourceId)
- Specified by:
setResourceIdin interfaceMeterSample
-
getTimestamp
public String getTimestamp()
- Specified by:
getTimestampin interfaceMeterSample- Returns:
- UTC date and time when the measurement was made
-
setTimestamp
public void setTimestamp(String timestamp)
- Specified by:
setTimestampin interfaceMeterSample
-
getMessageId
public String getMessageId()
- Specified by:
getMessageIdin interfaceMeterSample- Returns:
- A unique identifier for the sample
-
setMessageId
public void setMessageId(String messageId)
- Specified by:
setMessageIdin interfaceMeterSample
-
getMetadata
public Map<String,Object> getMetadata()
- Specified by:
getMetadatain interfaceMeterSample- Returns:
- Arbitrary metadata associated with the resource
-
setMetadata
public void setMetadata(Map<String,Object> metadata)
- Specified by:
setMetadatain interfaceMeterSample
-
-