SmartGroupInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. alertsmanagement. fluent. models. SmartGroupInner
- com.
- com.
public final class SmartGroupInner
extends ProxyResource
Set of related alerts grouped together smartly by AMS.
Constructor Summary
| Constructor | Description |
|---|---|
| SmartGroupInner() |
Creates an instance of Smart |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Long |
alertsCount()
Get the alerts |
|
List<Smart |
alertSeverities()
Get the alert |
|
List<Smart |
alertStates()
Get the alert |
|
static
Smart |
fromJson(JsonReader jsonReader)
Reads an instance of Smart |
| String |
id()
Get the id property: Fully qualified resource Id for the resource. |
|
Offset |
lastModifiedDateTime()
Get the last |
| String |
lastModifiedUsername()
Get the last |
|
List<Smart |
monitorConditions()
Get the monitor |
|
List<Smart |
monitorServices()
Get the monitor |
| String |
name()
Get the name property: The name of the resource. |
| String |
nextLink()
Get the next |
|
List<Smart |
resourceGroups()
Get the resource |
|
List<Smart |
resources()
Get the resources property: Summary of target resources in the smart group. |
|
List<Smart |
resourceTypes()
Get the resource |
| Severity |
severity()
Get the severity property: Severity of smart group is the highest(Sev0 >... |
| State |
smartGroupState()
Get the smart |
|
Offset |
startDateTime()
Get the start |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| void |
validate()
Validates the instance. |
|
Smart |
withAlertsCount(Long alertsCount)
Set the alerts |
|
Smart |
withAlertSeverities(List<SmartGroupAggregatedProperty> alertSeverities)
Set the alert |
|
Smart |
withAlertStates(List<SmartGroupAggregatedProperty> alertStates)
Set the alert |
|
Smart |
withMonitorConditions(List<SmartGroupAggregatedProperty> monitorConditions)
Set the monitor |
|
Smart |
withMonitorServices(List<SmartGroupAggregatedProperty> monitorServices)
Set the monitor |
|
Smart |
withNextLink(String nextLink)
Set the next |
|
Smart |
withResourceGroups(List<SmartGroupAggregatedProperty> resourceGroups)
Set the resource |
|
Smart |
withResources(List<SmartGroupAggregatedProperty> resources)
Set the resources property: Summary of target resources in the smart group. |
|
Smart |
withResourceTypes(List<SmartGroupAggregatedProperty> resourceTypes)
Set the resource |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
SmartGroupInner
public SmartGroupInner()
Creates an instance of SmartGroupInner class.
Method Details
alertsCount
public Long alertsCount()
Get the alertsCount property: Total number of alerts in smart group.
Returns:
alertSeverities
public List<SmartGroupAggregatedProperty> alertSeverities()
Get the alertSeverities property: Summary of alertSeverities in the smart group.
Returns:
alertStates
public List<SmartGroupAggregatedProperty> alertStates()
Get the alertStates property: Summary of alertStates in the smart group.
Returns:
fromJson
public static SmartGroupInner fromJson(JsonReader jsonReader)
Reads an instance of SmartGroupInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
SmartGroupInner.id()Returns:
lastModifiedDateTime
public OffsetDateTime lastModifiedDateTime()
Get the lastModifiedDateTime property: Last updated time of smart group. Date-Time in ISO-8601 format.
Returns:
lastModifiedUsername
public String lastModifiedUsername()
Get the lastModifiedUsername property: Last modified by user name.
Returns:
monitorConditions
public List<SmartGroupAggregatedProperty> monitorConditions()
Get the monitorConditions property: Summary of monitorConditions in the smart group.
Returns:
monitorServices
public List<SmartGroupAggregatedProperty> monitorServices()
Get the monitorServices property: Summary of monitorServices in the smart group.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
SmartGroupInner.name()Returns:
nextLink
public String nextLink()
Get the nextLink property: The URI to fetch the next page of alerts. Call ListNext() with this URI to fetch the next page alerts.
Returns:
resourceGroups
public List<SmartGroupAggregatedProperty> resourceGroups()
Get the resourceGroups property: Summary of target resource groups in the smart group.
Returns:
resources
public List<SmartGroupAggregatedProperty> resources()
Get the resources property: Summary of target resources in the smart group.
Returns:
resourceTypes
public List<SmartGroupAggregatedProperty> resourceTypes()
Get the resourceTypes property: Summary of target resource types in the smart group.
Returns:
severity
public Severity severity()
Get the severity property: Severity of smart group is the highest(Sev0 >... > Sev4) severity of all the alerts in the group.
Returns:
smartGroupState
public State smartGroupState()
Get the smartGroupState property: Smart group state.
Returns:
startDateTime
public OffsetDateTime startDateTime()
Get the startDateTime property: Creation time of smart group. Date-Time in ISO-8601 format.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
SmartGroupInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
SmartGroupInner.type()Returns:
validate
public void validate()
Validates the instance.
withAlertsCount
public SmartGroupInner withAlertsCount(Long alertsCount)
Set the alertsCount property: Total number of alerts in smart group.
Parameters:
Returns:
withAlertSeverities
public SmartGroupInner withAlertSeverities(List<SmartGroupAggregatedProperty> alertSeverities)
Set the alertSeverities property: Summary of alertSeverities in the smart group.
Parameters:
Returns:
withAlertStates
public SmartGroupInner withAlertStates(List<SmartGroupAggregatedProperty> alertStates)
Set the alertStates property: Summary of alertStates in the smart group.
Parameters:
Returns:
withMonitorConditions
public SmartGroupInner withMonitorConditions(List<SmartGroupAggregatedProperty> monitorConditions)
Set the monitorConditions property: Summary of monitorConditions in the smart group.
Parameters:
Returns:
withMonitorServices
public SmartGroupInner withMonitorServices(List<SmartGroupAggregatedProperty> monitorServices)
Set the monitorServices property: Summary of monitorServices in the smart group.
Parameters:
Returns:
withNextLink
public SmartGroupInner withNextLink(String nextLink)
Set the nextLink property: The URI to fetch the next page of alerts. Call ListNext() with this URI to fetch the next page alerts.
Parameters:
Returns:
withResourceGroups
public SmartGroupInner withResourceGroups(List<SmartGroupAggregatedProperty> resourceGroups)
Set the resourceGroups property: Summary of target resource groups in the smart group.
Parameters:
Returns:
withResources
public SmartGroupInner withResources(List<SmartGroupAggregatedProperty> resources)
Set the resources property: Summary of target resources in the smart group.
Parameters:
Returns:
withResourceTypes
public SmartGroupInner withResourceTypes(List<SmartGroupAggregatedProperty> resourceTypes)
Set the resourceTypes property: Summary of target resource types in the smart group.
Parameters:
Returns: