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 String
getCounterName()
Meter.Type
getCounterType()
String
getCounterUnit()
Float
getCounterVolume()
String
getMessageId()
Map<String,Object>
getMetadata()
String
getProjectId()
String
getRecordedAt()
String
getResourceId()
String
getSource()
String
getTimestamp()
String
getUserId()
void
setCounterName(String counterName)
void
setCounterType(Meter.Type meterType)
void
setCounterUnit(String counterUnit)
void
setCounterVolume(Float counterVolume)
void
setMessageId(String messageId)
void
setMetadata(Map<String,Object> metadata)
void
setProjectId(String projectId)
void
setRecordedAt(String recordedAt)
void
setResourceId(String resourceId)
void
setSource(String source)
void
setTimestamp(String timestamp)
void
setUserId(String userId)
String
toString()
-
-
-
Method Detail
-
getCounterName
public String getCounterName()
- Specified by:
getCounterName
in interfaceMeterSample
- Returns:
- the name of the meter
-
setCounterName
public void setCounterName(String counterName)
- Specified by:
setCounterName
in interfaceMeterSample
-
getCounterType
public Meter.Type getCounterType()
- Specified by:
getCounterType
in interfaceMeterSample
- Returns:
- the type of meter
-
setCounterType
public void setCounterType(Meter.Type meterType)
- Specified by:
setCounterType
in interfaceMeterSample
-
getCounterUnit
public String getCounterUnit()
- Specified by:
getCounterUnit
in interfaceMeterSample
- Returns:
- The unit of measure for the value in the counter volume
-
setCounterUnit
public void setCounterUnit(String counterUnit)
- Specified by:
setCounterUnit
in interfaceMeterSample
-
getCounterVolume
public Float getCounterVolume()
- Specified by:
getCounterVolume
in interfaceMeterSample
- Returns:
- the actual measured value
-
setCounterVolume
public void setCounterVolume(Float counterVolume)
- Specified by:
setCounterVolume
in interfaceMeterSample
-
getSource
public String getSource()
- Specified by:
getSource
in interfaceMeterSample
- Returns:
- The ID of the source that identifies where the sample comes from
-
setSource
public void setSource(String source)
- Specified by:
setSource
in interfaceMeterSample
-
getProjectId
public String getProjectId()
- Specified by:
getProjectId
in interfaceMeterSample
- Returns:
- he ID of the project or tenant that owns the resource
-
setProjectId
public void setProjectId(String projectId)
- Specified by:
setProjectId
in interfaceMeterSample
-
getUserId
public String getUserId()
- Specified by:
getUserId
in interfaceMeterSample
- Returns:
- The ID of the user who last triggered an update to the resource
-
setUserId
public void setUserId(String userId)
- Specified by:
setUserId
in interfaceMeterSample
-
getRecordedAt
public String getRecordedAt()
- Specified by:
getRecordedAt
in interfaceMeterSample
- Returns:
- UTC date and time when the sample was recorded
-
setRecordedAt
public void setRecordedAt(String recordedAt)
- Specified by:
setRecordedAt
in interfaceMeterSample
-
getResourceId
public String getResourceId()
- Specified by:
getResourceId
in interfaceMeterSample
- Returns:
- The ID of the Resource for which the measurements are taken
-
setResourceId
public void setResourceId(String resourceId)
- Specified by:
setResourceId
in interfaceMeterSample
-
getTimestamp
public String getTimestamp()
- Specified by:
getTimestamp
in interfaceMeterSample
- Returns:
- UTC date and time when the measurement was made
-
setTimestamp
public void setTimestamp(String timestamp)
- Specified by:
setTimestamp
in interfaceMeterSample
-
getMessageId
public String getMessageId()
- Specified by:
getMessageId
in interfaceMeterSample
- Returns:
- A unique identifier for the sample
-
setMessageId
public void setMessageId(String messageId)
- Specified by:
setMessageId
in interfaceMeterSample
-
getMetadata
public Map<String,Object> getMetadata()
- Specified by:
getMetadata
in interfaceMeterSample
- Returns:
- Arbitrary metadata associated with the resource
-
setMetadata
public void setMetadata(Map<String,Object> metadata)
- Specified by:
setMetadata
in interfaceMeterSample
-
-