Package com.cumulocity.sdk.client.alarm
Class AlarmFilter
java.lang.Object
com.cumulocity.sdk.client.Filter
com.cumulocity.sdk.client.alarm.AlarmFilter
A filter to be used in alarm queries.
The setter (by*) methods return the filter itself to provide chaining:
AlarmFilter filter = new AlarmFilter().byStatus(st).bySource(src);
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSpecifies thefromDate
andtoDate
query parameters for query in a time range.byFromDate
(Date fromDate) Specifies thefromDate
query parameter for querying all alarms from the specified date time.byResolved
(Boolean resolved) bySeverity
(CumulocitySeverities severity) Specifies theseverity
query parameterSpecifies thesource
query parameterbySource
(ManagedObjectRepresentation source) Deprecated.byStatus
(CumulocityAlarmStatuses... statuses) Specifies thestatus
query parametergetType()
Methods inherited from class com.cumulocity.sdk.client.Filter
encode, getQueryParams
-
Constructor Details
-
AlarmFilter
public AlarmFilter()
-
-
Method Details
-
bySource
Specifies thesource
query parameter- Parameters:
source
- the managed object that generated the alarm(s)- Returns:
- the alarm filter with
source
set
-
bySource
Deprecated.Specifies thesource
query parameter- Parameters:
source
- the managed object that generated the alarm(s)- Returns:
- the alarm filter with
source
set
-
byStatus
Specifies thestatus
query parameter- Parameters:
statuses
- status array of the alarm(s)- Returns:
- the alarm filter with
statuses
set
-
getStatus
- Returns:
- the
status
parameter of the query
-
bySeverity
Specifies theseverity
query parameter- Parameters:
severity
- severity of the alarm(s)- Returns:
- the alarm filter with
severity
set
-
getSeverity
- Returns:
- the
severity
parameter of the query
-
getSource
- Returns:
- the
source
parameter of the query
-
byDate
Specifies thefromDate
andtoDate
query parameters for query in a time range.- Parameters:
fromDate
- the start date time of the rangetoDate
- the end date time of the range- Returns:
- the alarm filter with
fromDate
andtoDate
set.
-
byFromDate
Specifies thefromDate
query parameter for querying all alarms from the specified date time.- Parameters:
fromDate
- the date time from which all alarms to be returned.- Returns:
- the alarm filter with
fromDate
set
-
getFromDate
-
getToDate
-
getResolved
-
byResolved
-
getType
-
byType
-