Package org.openstack4j.model.telemetry
Interface Sample
-
- All Superinterfaces:
ModelEntity,Serializable
- All Known Implementing Classes:
CeiloMeterSample
public interface Sample extends ModelEntity
A single measurement for Sample.- Author:
- Shital Patil
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetId()Map<String,Object>getMetadata()StringgetMeter()StringgetProjectId()StringgetRecordedAt()StringgetResourceId()StringgetSource()StringgetTimestamp()Meter.TypegetType()StringgetUnit()StringgetUserId()FloatgetVolume()voidsetMetadata(Map<String,Object> metadata)voidsetProjectId(String projectId)voidsetRecordedAt(String date)voidsetResourceId(String resourceId)voidsetSource(String source)voidsetTimestamp(String timestamp)
-
-
-
Method Detail
-
getId
String getId()
- Returns:
- the idof the meter
-
getMetadata
Map<String,Object> getMetadata()
- Returns:
- Arbitrary metadata associated with the resource
-
getMeter
String getMeter()
- Returns:
- the meter
-
getVolume
Float getVolume()
- Returns:
- the actual measured value
-
getSource
String getSource()
- Returns:
- The ID of the source that identifies where the sample comes from
-
setSource
void setSource(String source)
-
getResourceId
String getResourceId()
- Returns:
- The ID of the Resource for which the measurements are taken
-
setResourceId
void setResourceId(String resourceId)
-
getTimestamp
String getTimestamp()
- Returns:
- UTC date and time when the measurement was made
-
setTimestamp
void setTimestamp(String timestamp)
-
getRecordedAt
String getRecordedAt()
- Returns:
- UTC date and time when the sample was recorded
-
setRecordedAt
void setRecordedAt(String date)
-
getProjectId
String getProjectId()
- Returns:
- he ID of the project or tenant that owns the resource
-
setProjectId
void setProjectId(String projectId)
-
getType
Meter.Type getType()
- Returns:
- the type of meter
-
getUserId
String getUserId()
- Returns:
- The ID of the user who last triggered an update to the resource
-
getUnit
String getUnit()
- Returns:
- Returns unit
-
-