Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
Alarm . |
Modifier and Type | Method and Description |
---|---|
Alarm |
build() |
Alarm.Builder |
setAlarmSource(java.util.List<java.lang.String> alarmSource)
If alarm_source_type = INTENT_PATH, this field will contain a list of intent
paths for the entity that the event instance applies to.
|
Alarm.Builder |
setAlarmSourceType(java.lang.String alarmSourceType)
Possible values are:
Alarm.ALARM_SOURCE_TYPE_INTENT_PATH Alarm.ALARM_SOURCE_TYPE_ENTITY_ID Alarm.ALARM_SOURCE_TYPE_SYSTEM_ID Type of alarm
source of the Event instance. |
Alarm.Builder |
setCreateTime(java.lang.Long createTime)
Timestamp of resource creation format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
Alarm.Builder |
setCreateUser(java.lang.String createUser)
ID of the user who created this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
Alarm.Builder |
setDescription(java.lang.String description)
Detailed description of Alarm.
|
Alarm.Builder |
setDisplayName(java.lang.String displayName)
Defaults to ID if not set
|
Alarm.Builder |
setEntityId(java.lang.String entityId)
The entity that the Event instance applies to.
|
Alarm.Builder |
setEntityResourceType(java.lang.String entityResourceType)
The entity type that the Event instance applies to.
|
Alarm.Builder |
setEventTags(java.util.List<java.lang.String> eventTags)
Tags applicable to event, for example, INFRASTRUCTURE or INTELLIGENCE.
|
Alarm.Builder |
setEventType(java.lang.String eventType)
Name of Event, e.g.
|
Alarm.Builder |
setEventTypeDisplayName(java.lang.String eventTypeDisplayName)
Display name of Event type.
|
Alarm.Builder |
setFeatureDisplayName(java.lang.String featureDisplayName)
Display name of feature defining this Event.
|
Alarm.Builder |
setFeatureName(java.lang.String featureName)
Feature defining this Event, e.g.
|
Alarm.Builder |
setId(java.lang.String id)
ID that uniquely identifies an Alarm.
|
Alarm.Builder |
setKbArticle(java.lang.String kbArticle)
KB article link that contains more information on this alarm and recommended
actions.
|
Alarm.Builder |
setLastModifiedTime(java.lang.Long lastModifiedTime)
Timestamp of last modification format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
Alarm.Builder |
setLastModifiedUser(java.lang.String lastModifiedUser)
ID of the user who last modified this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
Alarm.Builder |
setLastReportedTime(java.lang.Long lastReportedTime)
Indicates when the corresponding Event instance was last reported in
milliseconds since epoch.
|
Alarm.Builder |
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.
|
Alarm.Builder |
setNodeDisplayName(java.lang.String nodeDisplayName)
Display name of node that the event instance applies to.
|
Alarm.Builder |
setNodeId(java.lang.String nodeId)
The UUID of the node that the Event instance applies to.
|
Alarm.Builder |
setNodeIpAddresses(java.util.List<java.lang.String> nodeIpAddresses)
IP addresses of node that the event instance applies to.
|
Alarm.Builder |
setNodeResourceType(java.lang.String nodeResourceType)
The resource type of node that the Event instance applies to eg.
|
Alarm.Builder |
setProtection(java.lang.String protection)
Protection status is one of the following: PROTECTED - the client who retrieved
the entity is not allowed to modify it.
|
Alarm.Builder |
setRecommendedAction(java.lang.String recommendedAction)
Recommended action for Alarm.
|
Alarm.Builder |
setReoccurrencesWhileSuppressed(java.lang.Long reoccurrencesWhileSuppressed)
The number of reoccurrences since this alarm has been SUPPRESSED.
|
Alarm.Builder |
setResolvedBy(java.lang.String resolvedBy)
User ID of the user that set the status value to RESOLVED.
|
Alarm.Builder |
setResolvedTime(java.lang.Long resolvedTime)
Indicates when the Alarm was resolved in milliseconds since epoch.
|
Alarm.Builder |
setResourceType(java.lang.String resourceType)
The type of this resource.
|
Alarm.Builder |
setRevision(java.lang.Long revision)
The _revision property describes the current revision of the resource.
|
Alarm.Builder |
setRuntimeData(java.lang.String runtimeData)
Runtime data for Alarm.
|
Alarm.Builder |
setSchema(java.lang.String schema)
Schema for this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
Alarm.Builder |
setSelf(SelfResourceLink self) |
Alarm.Builder |
setSeverity(java.lang.String severity)
Possible values are:
Alarm.SEVERITY_CRITICAL Alarm.SEVERITY_HIGH Alarm.SEVERITY_MEDIUM Alarm.SEVERITY_LOW Severity of the Alarm.Can be
one of - CRITICAL, HIGH, MEDIUM, LOW. |
Alarm.Builder |
setStatus(java.lang.String status)
Possible values are:
Alarm.STATUS_OPEN Alarm.STATUS_ACKNOWLEDGED Alarm.STATUS_SUPPRESSED Alarm.STATUS_RESOLVED Indicate the status which
the Alarm is in. |
Alarm.Builder |
setSummary(java.lang.String summary)
Summary description of Alarm.
|
Alarm.Builder |
setSuppressDuration(java.lang.Long suppressDuration)
The time period between suppress_start_time and suppress_start_time +
suppress_duration (specified in hours) an Alarm is SUPPRESSED.
|
Alarm.Builder |
setSuppressedBy(java.lang.String suppressedBy)
User ID of the user that set the status value to SUPPRESSED.
|
Alarm.Builder |
setSuppressStartTime(java.lang.Long suppressStartTime)
Indicates when the Alarm was suppressed in milliseconds since epoch.
|
Alarm.Builder |
setSystemOwned(java.lang.Boolean systemOwned)
Indicates system owned resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
Alarm.Builder |
setTags(java.util.List<Tag> tags)
Opaque identifiers meaningful to the API user
|
public Builder()
Alarm
.public Alarm.Builder setLinks(java.util.List<ResourceLink> links)
links
- New value for the property.public Alarm.Builder setSchema(java.lang.String schema)
schema
- New value for the property.public Alarm.Builder setSelf(SelfResourceLink self)
self
- New value for the property.public Alarm.Builder setRevision(java.lang.Long revision)
revision
- New value for the property.public Alarm.Builder setCreateTime(java.lang.Long createTime)
createTime
- New value for the property.public Alarm.Builder setCreateUser(java.lang.String createUser)
createUser
- New value for the property.public Alarm.Builder setLastModifiedTime(java.lang.Long lastModifiedTime)
lastModifiedTime
- New value for the property.public Alarm.Builder setLastModifiedUser(java.lang.String lastModifiedUser)
lastModifiedUser
- New value for the property.public Alarm.Builder setProtection(java.lang.String protection)
protection
- New value for the property.public Alarm.Builder setSystemOwned(java.lang.Boolean systemOwned)
systemOwned
- New value for the property.public Alarm.Builder setDescription(java.lang.String description)
description
- New value for the property.public Alarm.Builder setDisplayName(java.lang.String displayName)
displayName
- New value for the property.public Alarm.Builder setId(java.lang.String id)
id
- New value for the property.public Alarm.Builder setResourceType(java.lang.String resourceType)
resourceType
- New value for the property.public Alarm.Builder setTags(java.util.List<Tag> tags)
tags
- New value for the property.public Alarm.Builder setAlarmSource(java.util.List<java.lang.String> alarmSource)
alarmSource
- New value for the property.public Alarm.Builder setAlarmSourceType(java.lang.String alarmSourceType)
alarmSourceType
- New value for the property.public Alarm.Builder setEntityId(java.lang.String entityId)
entityId
- New value for the property.public Alarm.Builder setEntityResourceType(java.lang.String entityResourceType)
entityResourceType
- New value for the property.public Alarm.Builder setEventTags(java.util.List<java.lang.String> eventTags)
eventTags
- New value for the property.public Alarm.Builder setEventType(java.lang.String eventType)
eventType
- New value for the property.public Alarm.Builder setEventTypeDisplayName(java.lang.String eventTypeDisplayName)
eventTypeDisplayName
- New value for the property.public Alarm.Builder setFeatureDisplayName(java.lang.String featureDisplayName)
featureDisplayName
- New value for the property.public Alarm.Builder setFeatureName(java.lang.String featureName)
featureName
- New value for the property.public Alarm.Builder setKbArticle(java.lang.String kbArticle)
kbArticle
- New value for the property.public Alarm.Builder setLastReportedTime(java.lang.Long lastReportedTime)
lastReportedTime
- New value for the property.public Alarm.Builder setNodeDisplayName(java.lang.String nodeDisplayName)
nodeDisplayName
- New value for the property.public Alarm.Builder setNodeId(java.lang.String nodeId)
nodeId
- New value for the property.public Alarm.Builder setNodeIpAddresses(java.util.List<java.lang.String> nodeIpAddresses)
nodeIpAddresses
- New value for the property.public Alarm.Builder setNodeResourceType(java.lang.String nodeResourceType)
nodeResourceType
- New value for the property.public Alarm.Builder setRecommendedAction(java.lang.String recommendedAction)
recommendedAction
- New value for the property.public Alarm.Builder setReoccurrencesWhileSuppressed(java.lang.Long reoccurrencesWhileSuppressed)
reoccurrencesWhileSuppressed
- New value for the property.public Alarm.Builder setResolvedBy(java.lang.String resolvedBy)
resolvedBy
- New value for the property.public Alarm.Builder setResolvedTime(java.lang.Long resolvedTime)
resolvedTime
- New value for the property.public Alarm.Builder setRuntimeData(java.lang.String runtimeData)
runtimeData
- New value for the property.public Alarm.Builder setSeverity(java.lang.String severity)
severity
- New value for the property.public Alarm.Builder setStatus(java.lang.String status)
status
- New value for the property.public Alarm.Builder setSummary(java.lang.String summary)
summary
- New value for the property.public Alarm.Builder setSuppressDuration(java.lang.Long suppressDuration)
suppressDuration
- New value for the property.public Alarm.Builder setSuppressStartTime(java.lang.Long suppressStartTime)
suppressStartTime
- New value for the property.public Alarm.Builder setSuppressedBy(java.lang.String suppressedBy)
suppressedBy
- New value for the property.public Alarm build()