Class Watch
- java.lang.Object
-
- com.softlayer.api.Type
-
- com.softlayer.api.service.Entity
-
- com.softlayer.api.service.scale.policy.trigger.resourceuse.Watch
-
-
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
-
Fields inherited from class com.softlayer.api.Type
unknownProperties
-
-
Constructor Summary
Constructors Constructor Description Watch()
-
Method Summary
-
Methods inherited from class com.softlayer.api.Type
getUnknownProperties, setUnknownProperties
-
-
-
-
Field Detail
-
scalePolicyTrigger
@ApiProperty protected ResourceUse scalePolicyTrigger
The trigger this watch is on.
-
algorithm
@ApiProperty(canBeNullOrNotSet=true) protected String 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
@ApiProperty(canBeNullOrNotSet=true) protected GregorianCalendar createDate
When this watch was created.
-
createDateSpecified
protected boolean createDateSpecified
-
deleteFlag
@ApiProperty(canBeNullOrNotSet=true) 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.
-
deleteFlagSpecified
protected boolean deleteFlagSpecified
-
id
@ApiProperty(canBeNullOrNotSet=true) protected Long id
A watch's internal identifier.
-
idSpecified
protected boolean idSpecified
-
metric
@ApiProperty(canBeNullOrNotSet=true) protected String 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
@ApiProperty(canBeNullOrNotSet=true) protected GregorianCalendar modifyDate
When this watch was last modified.
-
modifyDateSpecified
protected boolean modifyDateSpecified
-
operator
@ApiProperty(canBeNullOrNotSet=true) protected String operator
The operator to use for comparison. The only two valid values are ">" and "<".
-
operatorSpecified
protected boolean operatorSpecified
-
period
@ApiProperty(canBeNullOrNotSet=true) protected Long 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
@ApiProperty(canBeNullOrNotSet=true) protected Long scalePolicyTriggerId
The trigger this watch is on.
-
scalePolicyTriggerIdSpecified
protected boolean scalePolicyTriggerIdSpecified
-
value
@ApiProperty(canBeNullOrNotSet=true) protected String 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
-
-
Method Detail
-
getScalePolicyTrigger
public ResourceUse getScalePolicyTrigger()
-
setScalePolicyTrigger
public void setScalePolicyTrigger(ResourceUse scalePolicyTrigger)
-
getAlgorithm
public String getAlgorithm()
-
setAlgorithm
public void setAlgorithm(String algorithm)
-
isAlgorithmSpecified
public boolean isAlgorithmSpecified()
-
unsetAlgorithm
public void unsetAlgorithm()
-
getCreateDate
public GregorianCalendar getCreateDate()
-
setCreateDate
public void setCreateDate(GregorianCalendar createDate)
-
isCreateDateSpecified
public boolean isCreateDateSpecified()
-
unsetCreateDate
public void unsetCreateDate()
-
getDeleteFlag
public Boolean getDeleteFlag()
-
setDeleteFlag
public void setDeleteFlag(Boolean deleteFlag)
-
isDeleteFlagSpecified
public boolean isDeleteFlagSpecified()
-
unsetDeleteFlag
public void unsetDeleteFlag()
-
getId
public Long getId()
-
setId
public void setId(Long id)
-
isIdSpecified
public boolean isIdSpecified()
-
unsetId
public void unsetId()
-
getMetric
public String getMetric()
-
setMetric
public void setMetric(String metric)
-
isMetricSpecified
public boolean isMetricSpecified()
-
unsetMetric
public void unsetMetric()
-
getModifyDate
public GregorianCalendar getModifyDate()
-
setModifyDate
public void setModifyDate(GregorianCalendar modifyDate)
-
isModifyDateSpecified
public boolean isModifyDateSpecified()
-
unsetModifyDate
public void unsetModifyDate()
-
getOperator
public String getOperator()
-
setOperator
public void setOperator(String operator)
-
isOperatorSpecified
public boolean isOperatorSpecified()
-
unsetOperator
public void unsetOperator()
-
getPeriod
public Long getPeriod()
-
setPeriod
public void setPeriod(Long period)
-
isPeriodSpecified
public boolean isPeriodSpecified()
-
unsetPeriod
public void unsetPeriod()
-
getScalePolicyTriggerId
public Long getScalePolicyTriggerId()
-
setScalePolicyTriggerId
public void setScalePolicyTriggerId(Long scalePolicyTriggerId)
-
isScalePolicyTriggerIdSpecified
public boolean isScalePolicyTriggerIdSpecified()
-
unsetScalePolicyTriggerId
public void unsetScalePolicyTriggerId()
-
getValue
public String getValue()
-
setValue
public void setValue(String value)
-
isValueSpecified
public boolean isValueSpecified()
-
unsetValue
public void unsetValue()
-
asService
public Watch.Service asService(ApiClient client)
-
service
public static Watch.Service service(ApiClient client)
-
service
public static Watch.Service service(ApiClient client, Long id)
-
-