public static final class MonitoringEvent.Builder
extends java.lang.Object
MonitoringEvent
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
MonitoringEvent . |
Modifier and Type | Method and Description |
---|---|
MonitoringEvent |
build() |
MonitoringEvent.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.
|
MonitoringEvent.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.
|
MonitoringEvent.Builder |
setDescription(java.lang.String description)
Detailed description of the event.
|
MonitoringEvent.Builder |
setDescriptionOnClear(java.lang.String descriptionOnClear)
Description of Event when an Event instance transitions from True to False.
|
MonitoringEvent.Builder |
setDisplayName(java.lang.String displayName)
Defaults to ID if not set
|
MonitoringEvent.Builder |
setEntityResourceType(java.lang.String entityResourceType)
Resource Type of entity where this event is applicable eg.
|
MonitoringEvent.Builder |
setEventFalseSnmpOid(java.lang.String eventFalseSnmpOid)
Optional field containing OID for SNMP trap sent when Event instance is False.
|
MonitoringEvent.Builder |
setEventTags(java.util.List<java.lang.String> eventTags)
Tags applicable to event, for example, INFRASTRUCTURE or INTELLIGENCE.
|
MonitoringEvent.Builder |
setEventTrueSnmpOid(java.lang.String eventTrueSnmpOid)
Optional field containing OID for SNMP trap sent when Event instance is True.
|
MonitoringEvent.Builder |
setEventType(java.lang.String eventType)
Name of Event, e.g.
|
MonitoringEvent.Builder |
setEventTypeDisplayName(java.lang.String eventTypeDisplayName)
Display name of Event type.
|
MonitoringEvent.Builder |
setFeatureDisplayName(java.lang.String featureDisplayName)
Display name of feature defining this Event.
|
MonitoringEvent.Builder |
setFeatureName(java.lang.String featureName)
Feature defining this Event, e.g.
|
MonitoringEvent.Builder |
setId(java.lang.String id)
Unique identifier in the form of feature_name.event_type.
|
MonitoringEvent.Builder |
setIsDisabled(java.lang.Boolean isDisabled)
Flag to indicate whether sampling for this Event is off or on.
|
MonitoringEvent.Builder |
setIsSensitivityFixed(java.lang.Boolean isSensitivityFixed)
Indicates if the sensitivity property is configurable via the API.
|
MonitoringEvent.Builder |
setIsThresholdFixed(java.lang.Boolean isThresholdFixed)
Indicates if the threshold property is configurable via the API.
|
MonitoringEvent.Builder |
setIsThresholdFloatingPoint(java.lang.Boolean isThresholdFloatingPoint)
Flag to indicate if the threshold for this Event is a floating point number.
|
MonitoringEvent.Builder |
setKbArticle(java.lang.String kbArticle)
KB article link that contains more information on this event and recommended
actions.
|
MonitoringEvent.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.
|
MonitoringEvent.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.
|
MonitoringEvent.Builder |
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.
|
MonitoringEvent.Builder |
setMaxThreshold(java.lang.Long maxThreshold)
Maximum allowed threshold value if the threshold is configurable and a maximum
value is applicable.
|
MonitoringEvent.Builder |
setMaxThresholdFloatingPoint(java.lang.Double maxThresholdFloatingPoint)
Maximum allowed floating point threshold value if the threshold_floating_point
is configurable and a maximum value is applicable.
|
MonitoringEvent.Builder |
setMinThreshold(java.lang.Long minThreshold)
Minimum allowed threshold value if the threshold is configurable and a minimum
value is applicable.
|
MonitoringEvent.Builder |
setMinThresholdFloatingPoint(java.lang.Double minThresholdFloatingPoint)
Minimum allowed floating point threshold value if the threshold_floating_point
is configurable and a minimum value is applicable.
|
MonitoringEvent.Builder |
setNodeTypes(java.util.List<java.lang.String> nodeTypes)
Possible values are:
MonitoringEvent.NODE_TYPES_AUTONOMOUS_EDGE
MonitoringEvent.NODE_TYPES_BMS MonitoringEvent.NODE_TYPES_EDGE MonitoringEvent.NODE_TYPES_ESX MonitoringEvent.NODE_TYPES_GLOBAL_MANAGER MonitoringEvent.NODE_TYPES_INTELLIGENCE MonitoringEvent.NODE_TYPES_KVM MonitoringEvent.NODE_TYPES_MANAGER MonitoringEvent.NODE_TYPES_PUBLIC_CLOUD_GATEWAY
MonitoringEvent.NODE_TYPES_DPU MonitoringEvent.NODE_TYPES_AAS Array
identifying the nodes on which this Event is applicable. |
MonitoringEvent.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.
|
MonitoringEvent.Builder |
setRecommendedAction(java.lang.String recommendedAction)
Recommended action for the alarm condition.
|
MonitoringEvent.Builder |
setResourceType(java.lang.String resourceType)
The type of this resource.
|
MonitoringEvent.Builder |
setRevision(java.lang.Long revision)
The _revision property describes the current revision of the resource.
|
MonitoringEvent.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.
|
MonitoringEvent.Builder |
setSelf(SelfResourceLink self) |
MonitoringEvent.Builder |
setSensitivity(java.lang.Long sensitivity)
Percentage of samples to consider and used in combination with threshold when
determining whether an Event instance status is True or False.
|
MonitoringEvent.Builder |
setSeverity(java.lang.String severity)
Possible values are:
MonitoringEvent.SEVERITY_CRITICAL MonitoringEvent.SEVERITY_HIGH MonitoringEvent.SEVERITY_MEDIUM MonitoringEvent.SEVERITY_LOW Severity of the
Event.Can be one of - CRITICAL, HIGH, MEDIUM, LOW. |
MonitoringEvent.Builder |
setSummary(java.lang.String summary)
Summary description of the event.
|
MonitoringEvent.Builder |
setSuppressAlarm(java.lang.Boolean suppressAlarm)
Flag to suppress Alarm generation.
|
MonitoringEvent.Builder |
setSuppressSnmpTrap(java.lang.Boolean suppressSnmpTrap)
Flag to suppress SNMP trap generation.
|
MonitoringEvent.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.
|
MonitoringEvent.Builder |
setTags(java.util.List<Tag> tags)
Opaque identifiers meaningful to the API user
|
MonitoringEvent.Builder |
setThreshold(java.lang.Long threshold)
Threshold to determine if a single sample is True.
|
MonitoringEvent.Builder |
setThresholdFloatingPoint(java.lang.Double thresholdFloatingPoint)
Floating point threshold to determine if a single sample is True.
|
MonitoringEvent.Builder |
setThresholdUnitType(java.lang.String thresholdUnitType)
Possible values are:
MonitoringEvent.THRESHOLD_UNIT_TYPE_DAYS MonitoringEvent.THRESHOLD_UNIT_TYPE_PERCENT
MonitoringEvent.THRESHOLD_UNIT_TYPE_SECONDS
Identifies the unit type of the threshold value. |
MonitoringEvent.Builder |
setVisibility(java.lang.String visibility)
Possible values are:
MonitoringEvent.VISIBILITY_NONE MonitoringEvent.VISIBILITY_READ The visibility
property enables enterprise_admin and site_reliability_engineer users to specify
whether an event’s corresponding alarm is visible to users assigned tenant roles
in a multi-tenant deployment. |
MonitoringEvent.Builder |
setVisibilityPaths(java.util.List<java.lang.String> visibilityPaths)
The visiblity_paths property must be set if visibility is set to TENANT_READ and
must not be set if visibility is set to TENANT_NONE or not set.
|
public Builder()
MonitoringEvent
.public MonitoringEvent.Builder setLinks(java.util.List<ResourceLink> links)
links
- New value for the property.public MonitoringEvent.Builder setSchema(java.lang.String schema)
schema
- New value for the property.public MonitoringEvent.Builder setSelf(SelfResourceLink self)
self
- New value for the property.public MonitoringEvent.Builder setRevision(java.lang.Long revision)
revision
- New value for the property.public MonitoringEvent.Builder setCreateTime(java.lang.Long createTime)
createTime
- New value for the property.public MonitoringEvent.Builder setCreateUser(java.lang.String createUser)
createUser
- New value for the property.public MonitoringEvent.Builder setLastModifiedTime(java.lang.Long lastModifiedTime)
lastModifiedTime
- New value for the property.public MonitoringEvent.Builder setLastModifiedUser(java.lang.String lastModifiedUser)
lastModifiedUser
- New value for the property.public MonitoringEvent.Builder setProtection(java.lang.String protection)
protection
- New value for the property.public MonitoringEvent.Builder setSystemOwned(java.lang.Boolean systemOwned)
systemOwned
- New value for the property.public MonitoringEvent.Builder setDescription(java.lang.String description)
description
- New value for the property.public MonitoringEvent.Builder setDisplayName(java.lang.String displayName)
displayName
- New value for the property.public MonitoringEvent.Builder setId(java.lang.String id)
id
- New value for the property.public MonitoringEvent.Builder setResourceType(java.lang.String resourceType)
resourceType
- New value for the property.public MonitoringEvent.Builder setTags(java.util.List<Tag> tags)
tags
- New value for the property.public MonitoringEvent.Builder setDescriptionOnClear(java.lang.String descriptionOnClear)
descriptionOnClear
- New value for the property.public MonitoringEvent.Builder setEntityResourceType(java.lang.String entityResourceType)
entityResourceType
- New value for the property.public MonitoringEvent.Builder setEventFalseSnmpOid(java.lang.String eventFalseSnmpOid)
eventFalseSnmpOid
- New value for the property.public MonitoringEvent.Builder setEventTags(java.util.List<java.lang.String> eventTags)
eventTags
- New value for the property.public MonitoringEvent.Builder setEventTrueSnmpOid(java.lang.String eventTrueSnmpOid)
eventTrueSnmpOid
- New value for the property.public MonitoringEvent.Builder setEventType(java.lang.String eventType)
eventType
- New value for the property.public MonitoringEvent.Builder setEventTypeDisplayName(java.lang.String eventTypeDisplayName)
eventTypeDisplayName
- New value for the property.public MonitoringEvent.Builder setFeatureDisplayName(java.lang.String featureDisplayName)
featureDisplayName
- New value for the property.public MonitoringEvent.Builder setFeatureName(java.lang.String featureName)
featureName
- New value for the property.public MonitoringEvent.Builder setIsDisabled(java.lang.Boolean isDisabled)
isDisabled
- New value for the property.public MonitoringEvent.Builder setIsSensitivityFixed(java.lang.Boolean isSensitivityFixed)
isSensitivityFixed
- New value for the property.public MonitoringEvent.Builder setIsThresholdFixed(java.lang.Boolean isThresholdFixed)
isThresholdFixed
- New value for the property.public MonitoringEvent.Builder setIsThresholdFloatingPoint(java.lang.Boolean isThresholdFloatingPoint)
isThresholdFloatingPoint
- New value for the property.public MonitoringEvent.Builder setKbArticle(java.lang.String kbArticle)
kbArticle
- New value for the property.public MonitoringEvent.Builder setMaxThreshold(java.lang.Long maxThreshold)
maxThreshold
- New value for the property.public MonitoringEvent.Builder setMaxThresholdFloatingPoint(java.lang.Double maxThresholdFloatingPoint)
maxThresholdFloatingPoint
- New value for the property.public MonitoringEvent.Builder setMinThreshold(java.lang.Long minThreshold)
minThreshold
- New value for the property.public MonitoringEvent.Builder setMinThresholdFloatingPoint(java.lang.Double minThresholdFloatingPoint)
minThresholdFloatingPoint
- New value for the property.public MonitoringEvent.Builder setNodeTypes(java.util.List<java.lang.String> nodeTypes)
MonitoringEvent.NODE_TYPES_AUTONOMOUS_EDGE
MonitoringEvent.NODE_TYPES_BMS
MonitoringEvent.NODE_TYPES_EDGE
MonitoringEvent.NODE_TYPES_ESX
MonitoringEvent.NODE_TYPES_GLOBAL_MANAGER
MonitoringEvent.NODE_TYPES_INTELLIGENCE
MonitoringEvent.NODE_TYPES_KVM
MonitoringEvent.NODE_TYPES_MANAGER
MonitoringEvent.NODE_TYPES_PUBLIC_CLOUD_GATEWAY
MonitoringEvent.NODE_TYPES_DPU
MonitoringEvent.NODE_TYPES_AAS
nodeTypes
- New value for the property.public MonitoringEvent.Builder setRecommendedAction(java.lang.String recommendedAction)
recommendedAction
- New value for the property.public MonitoringEvent.Builder setSensitivity(java.lang.Long sensitivity)
sensitivity
- New value for the property.public MonitoringEvent.Builder setSeverity(java.lang.String severity)
severity
- New value for the property.public MonitoringEvent.Builder setSummary(java.lang.String summary)
summary
- New value for the property.public MonitoringEvent.Builder setSuppressAlarm(java.lang.Boolean suppressAlarm)
suppressAlarm
- New value for the property.public MonitoringEvent.Builder setSuppressSnmpTrap(java.lang.Boolean suppressSnmpTrap)
suppressSnmpTrap
- New value for the property.public MonitoringEvent.Builder setThreshold(java.lang.Long threshold)
threshold
- New value for the property.public MonitoringEvent.Builder setThresholdFloatingPoint(java.lang.Double thresholdFloatingPoint)
thresholdFloatingPoint
- New value for the property.public MonitoringEvent.Builder setThresholdUnitType(java.lang.String thresholdUnitType)
thresholdUnitType
- New value for the property.public MonitoringEvent.Builder setVisibility(java.lang.String visibility)
visibility
- New value for the property.public MonitoringEvent.Builder setVisibilityPaths(java.util.List<java.lang.String> visibilityPaths)
visibilityPaths
- New value for the property.public MonitoringEvent build()