public class ControlMetricsRequest extends Object
Constructor and Description |
---|
ControlMetricsRequest(ControlMetricType type,
int duration,
TimeUnit unit,
Optional<DeviceId> deviceId)
Instantiates a new control metric request of the control metric type and
device identifier with the given projected time range.
|
ControlMetricsRequest(ControlMetricType type,
int duration,
TimeUnit unit,
String resourceName)
Instantiates a new control metric request of the control metric type and
resource name with the given projected time range.
|
ControlMetricsRequest(ControlMetricType type,
Optional<DeviceId> deviceId)
Instantiates a new control metric request of the control metric type and
device identifier.
|
ControlMetricsRequest(ControlMetricType type,
String resourceName)
Instantiates a new control metric request of the control metric type and
resource name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Optional<DeviceId> |
getDeviceId()
Obtains device identifier.
|
int |
getDuration()
Obtains projected time duration.
|
String |
getResourceName()
Obtains resource name.
|
ControlMetricType |
getType()
Obtains control metric type.
|
TimeUnit |
getUnit()
Obtains projected time unit.
|
int |
hashCode() |
String |
toString() |
public ControlMetricsRequest(ControlMetricType type, Optional<DeviceId> deviceId)
type
- control metric typedeviceId
- device identifierpublic ControlMetricsRequest(ControlMetricType type, int duration, TimeUnit unit, Optional<DeviceId> deviceId)
type
- control metric typeduration
- projected time durationunit
- projected time unitdeviceId
- device dientiferpublic ControlMetricsRequest(ControlMetricType type, String resourceName)
type
- control metric typeresourceName
- resource namepublic ControlMetricsRequest(ControlMetricType type, int duration, TimeUnit unit, String resourceName)
type
- control metric typeduration
- projected time durationunit
- projected time unitresourceName
- resource namepublic ControlMetricType getType()
public String getResourceName()
public Optional<DeviceId> getDeviceId()
public int getDuration()
public TimeUnit getUnit()