Class Watch
java.lang.Object
com.softlayer.api.Type
com.softlayer.api.service.Entity
com.softlayer.api.service.scale.policy.trigger.resourceuse.Watch
@ApiType("SoftLayer_Scale_Policy_Trigger_ResourceUse_Watch") public class Watch extends Entity
This is a specific watch for a resource use policy trigger.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Watch.Mask
static interface
Watch.Service
This is a specific watch for a resource use policy trigger.static interface
Watch.ServiceAsync
-
Field Summary
Fields Modifier and Type Field Description protected String
algorithm
The algorithm to use when aggregating and comparing.protected boolean
algorithmSpecified
protected GregorianCalendar
createDate
When this watch was created.protected boolean
createDateSpecified
protected Boolean
deleteFlag
When set and true any edit that happens on this object, be it calling edit on this directly or setting as a child while editing a parent object, will end up being a deletion.protected boolean
deleteFlagSpecified
protected Long
id
A watch's internal identifier.protected boolean
idSpecified
protected String
metric
The metric to watch.protected boolean
metricSpecified
protected GregorianCalendar
modifyDate
When this watch was last modified.protected boolean
modifyDateSpecified
protected String
operator
The operator to use for comparison.protected boolean
operatorSpecified
protected Long
period
The number of seconds the values are aggregated for when compared to value.protected boolean
periodSpecified
protected ResourceUse
scalePolicyTrigger
The trigger this watch is on.protected Long
scalePolicyTriggerId
The trigger this watch is on.protected boolean
scalePolicyTriggerIdSpecified
protected String
value
The value to compare against.protected boolean
valueSpecified
-
Constructor Summary
Constructors Constructor Description Watch()
-
Method Summary
-
Field Details
-
scalePolicyTrigger
The trigger this watch is on. -
algorithm
The algorithm to use when aggregating and comparing. Currently, the only value that is accepted is EWMA (Exponential Weighted Moving Average). EWMA is the default value if no value is given. -
algorithmSpecified
protected boolean algorithmSpecified -
createDate
When this watch was created. -
createDateSpecified
protected boolean createDateSpecified -
deleteFlag
When set and true any edit that happens on this object, be it calling edit on this directly or setting as a child while editing a parent object, will end up being a deletion. -
deleteFlagSpecified
protected boolean deleteFlagSpecified -
id
A watch's internal identifier. -
idSpecified
protected boolean idSpecified -
metric
The metric to watch. Possible values:
* host.cpu.percent - On a scale of 0 to 100, the percent CPU a guest is using.
* host.network.backend.in and host.network.frontend.in - The network bytes-per-second incoming on the interface
of either the frontend or backend network.
* host.network.backend.out and host.network.frontend.out - The network bytes-per-second incoming on the interface
of either the frontend or backend network. -
metricSpecified
protected boolean metricSpecified -
modifyDate
When this watch was last modified. -
modifyDateSpecified
protected boolean modifyDateSpecified -
operator
The operator to use for comparison. The only two valid values are ">" and "<". -
operatorSpecified
protected boolean operatorSpecified -
period
The number of seconds the values are aggregated for when compared to value. If values are not retrieved steadily and consecutively for the length of this period, nothing is compared. -
periodSpecified
protected boolean periodSpecified -
scalePolicyTriggerId
The trigger this watch is on. -
scalePolicyTriggerIdSpecified
protected boolean scalePolicyTriggerIdSpecified -
value
The value to compare against. Although the value is a string, validation will be done on the value for restrictions (such as numeric-only) based on the metric. -
valueSpecified
protected boolean valueSpecified
-
-
Constructor Details
-
Watch
public Watch()
-
-
Method Details
-
getScalePolicyTrigger
-
setScalePolicyTrigger
-
getAlgorithm
-
setAlgorithm
-
isAlgorithmSpecified
public boolean isAlgorithmSpecified() -
unsetAlgorithm
public void unsetAlgorithm() -
getCreateDate
-
setCreateDate
-
isCreateDateSpecified
public boolean isCreateDateSpecified() -
unsetCreateDate
public void unsetCreateDate() -
getDeleteFlag
-
setDeleteFlag
-
isDeleteFlagSpecified
public boolean isDeleteFlagSpecified() -
unsetDeleteFlag
public void unsetDeleteFlag() -
getId
-
setId
-
isIdSpecified
public boolean isIdSpecified() -
unsetId
public void unsetId() -
getMetric
-
setMetric
-
isMetricSpecified
public boolean isMetricSpecified() -
unsetMetric
public void unsetMetric() -
getModifyDate
-
setModifyDate
-
isModifyDateSpecified
public boolean isModifyDateSpecified() -
unsetModifyDate
public void unsetModifyDate() -
getOperator
-
setOperator
-
isOperatorSpecified
public boolean isOperatorSpecified() -
unsetOperator
public void unsetOperator() -
getPeriod
-
setPeriod
-
isPeriodSpecified
public boolean isPeriodSpecified() -
unsetPeriod
public void unsetPeriod() -
getScalePolicyTriggerId
-
setScalePolicyTriggerId
-
isScalePolicyTriggerIdSpecified
public boolean isScalePolicyTriggerIdSpecified() -
unsetScalePolicyTriggerId
public void unsetScalePolicyTriggerId() -
getValue
-
setValue
-
isValueSpecified
public boolean isValueSpecified() -
unsetValue
public void unsetValue() -
asService
-
service
-
service
-