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 String
getId()
Map<String,Object>
getMetadata()
String
getMeter()
String
getProjectId()
String
getRecordedAt()
String
getResourceId()
String
getSource()
String
getTimestamp()
Meter.Type
getType()
String
getUnit()
String
getUserId()
Float
getVolume()
void
setMetadata(Map<String,Object> metadata)
void
setProjectId(String projectId)
void
setRecordedAt(String date)
void
setResourceId(String resourceId)
void
setSource(String source)
void
setTimestamp(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
-
-