SmartGroupInner Class

public final class SmartGroupInner
extends ProxyResource

Set of related alerts grouped together smartly by AMS.

Constructor Summary

Constructor Description
SmartGroupInner()

Creates an instance of SmartGroupInner class.

Method Summary

Modifier and Type Method and Description
Long alertsCount()

Get the alertsCount property: Total number of alerts in smart group.

List<SmartGroupAggregatedProperty> alertSeverities()

Get the alertSeverities property: Summary of alertSeverities in the smart group.

List<SmartGroupAggregatedProperty> alertStates()

Get the alertStates property: Summary of alertStates in the smart group.

static SmartGroupInner fromJson(JsonReader jsonReader)

Reads an instance of SmartGroupInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

OffsetDateTime lastModifiedDateTime()

Get the lastModifiedDateTime property: Last updated time of smart group.

String lastModifiedUsername()

Get the lastModifiedUsername property: Last modified by user name.

List<SmartGroupAggregatedProperty> monitorConditions()

Get the monitorConditions property: Summary of monitorConditions in the smart group.

List<SmartGroupAggregatedProperty> monitorServices()

Get the monitorServices property: Summary of monitorServices in the smart group.

String name()

Get the name property: The name of the resource.

String nextLink()

Get the nextLink property: The URI to fetch the next page of alerts.

List<SmartGroupAggregatedProperty> resourceGroups()

Get the resourceGroups property: Summary of target resource groups in the smart group.

List<SmartGroupAggregatedProperty> resources()

Get the resources property: Summary of target resources in the smart group.

List<SmartGroupAggregatedProperty> resourceTypes()

Get the resourceTypes property: Summary of target resource types in the smart group.

Severity severity()

Get the severity property: Severity of smart group is the highest(Sev0 >...

State smartGroupState()

Get the smartGroupState property: Smart group state.

OffsetDateTime startDateTime()

Get the startDateTime property: Creation time of smart group.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

SmartGroupInner withAlertsCount(Long alertsCount)

Set the alertsCount property: Total number of alerts in smart group.

SmartGroupInner withAlertSeverities(List<SmartGroupAggregatedProperty> alertSeverities)

Set the alertSeverities property: Summary of alertSeverities in the smart group.

SmartGroupInner withAlertStates(List<SmartGroupAggregatedProperty> alertStates)

Set the alertStates property: Summary of alertStates in the smart group.

SmartGroupInner withMonitorConditions(List<SmartGroupAggregatedProperty> monitorConditions)

Set the monitorConditions property: Summary of monitorConditions in the smart group.

SmartGroupInner withMonitorServices(List<SmartGroupAggregatedProperty> monitorServices)

Set the monitorServices property: Summary of monitorServices in the smart group.

SmartGroupInner withNextLink(String nextLink)

Set the nextLink property: The URI to fetch the next page of alerts.

SmartGroupInner withResourceGroups(List<SmartGroupAggregatedProperty> resourceGroups)

Set the resourceGroups property: Summary of target resource groups in the smart group.

SmartGroupInner withResources(List<SmartGroupAggregatedProperty> resources)

Set the resources property: Summary of target resources in the smart group.

SmartGroupInner withResourceTypes(List<SmartGroupAggregatedProperty> resourceTypes)

Set the resourceTypes property: Summary of target resource types in the smart group.

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:

the alertsCount value.

alertSeverities

public List<SmartGroupAggregatedProperty> alertSeverities()

Get the alertSeverities property: Summary of alertSeverities in the smart group.

Returns:

the alertSeverities value.

alertStates

public List<SmartGroupAggregatedProperty> alertStates()

Get the alertStates property: Summary of alertStates in the smart group.

Returns:

the alertStates value.

fromJson

public static SmartGroupInner fromJson(JsonReader jsonReader)

Reads an instance of SmartGroupInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SmartGroupInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

SmartGroupInner.id()

Returns:

the id value.

lastModifiedDateTime

public OffsetDateTime lastModifiedDateTime()

Get the lastModifiedDateTime property: Last updated time of smart group. Date-Time in ISO-8601 format.

Returns:

the lastModifiedDateTime value.

lastModifiedUsername

public String lastModifiedUsername()

Get the lastModifiedUsername property: Last modified by user name.

Returns:

the lastModifiedUsername value.

monitorConditions

public List<SmartGroupAggregatedProperty> monitorConditions()

Get the monitorConditions property: Summary of monitorConditions in the smart group.

Returns:

the monitorConditions value.

monitorServices

public List<SmartGroupAggregatedProperty> monitorServices()

Get the monitorServices property: Summary of monitorServices in the smart group.

Returns:

the monitorServices value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

SmartGroupInner.name()

Returns:

the name value.

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:

the nextLink value.

resourceGroups

public List<SmartGroupAggregatedProperty> resourceGroups()

Get the resourceGroups property: Summary of target resource groups in the smart group.

Returns:

the resourceGroups value.

resources

public List<SmartGroupAggregatedProperty> resources()

Get the resources property: Summary of target resources in the smart group.

Returns:

the resources value.

resourceTypes

public List<SmartGroupAggregatedProperty> resourceTypes()

Get the resourceTypes property: Summary of target resource types in the smart group.

Returns:

the resourceTypes value.

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:

the severity value.

smartGroupState

public State smartGroupState()

Get the smartGroupState property: Smart group state.

Returns:

the smartGroupState value.

startDateTime

public OffsetDateTime startDateTime()

Get the startDateTime property: Creation time of smart group. Date-Time in ISO-8601 format.

Returns:

the startDateTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

SmartGroupInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

SmartGroupInner.type()

Returns:

the type value.

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:

alertsCount - the alertsCount value to set.

Returns:

the SmartGroupInner object itself.

withAlertSeverities

public SmartGroupInner withAlertSeverities(List<SmartGroupAggregatedProperty> alertSeverities)

Set the alertSeverities property: Summary of alertSeverities in the smart group.

Parameters:

alertSeverities - the alertSeverities value to set.

Returns:

the SmartGroupInner object itself.

withAlertStates

public SmartGroupInner withAlertStates(List<SmartGroupAggregatedProperty> alertStates)

Set the alertStates property: Summary of alertStates in the smart group.

Parameters:

alertStates - the alertStates value to set.

Returns:

the SmartGroupInner object itself.

withMonitorConditions

public SmartGroupInner withMonitorConditions(List<SmartGroupAggregatedProperty> monitorConditions)

Set the monitorConditions property: Summary of monitorConditions in the smart group.

Parameters:

monitorConditions - the monitorConditions value to set.

Returns:

the SmartGroupInner object itself.

withMonitorServices

public SmartGroupInner withMonitorServices(List<SmartGroupAggregatedProperty> monitorServices)

Set the monitorServices property: Summary of monitorServices in the smart group.

Parameters:

monitorServices - the monitorServices value to set.

Returns:

the SmartGroupInner object itself.

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:

nextLink - the nextLink value to set.

Returns:

the SmartGroupInner object itself.

withResourceGroups

public SmartGroupInner withResourceGroups(List<SmartGroupAggregatedProperty> resourceGroups)

Set the resourceGroups property: Summary of target resource groups in the smart group.

Parameters:

resourceGroups - the resourceGroups value to set.

Returns:

the SmartGroupInner object itself.

withResources

public SmartGroupInner withResources(List<SmartGroupAggregatedProperty> resources)

Set the resources property: Summary of target resources in the smart group.

Parameters:

resources - the resources value to set.

Returns:

the SmartGroupInner object itself.

withResourceTypes

public SmartGroupInner withResourceTypes(List<SmartGroupAggregatedProperty> resourceTypes)

Set the resourceTypes property: Summary of target resource types in the smart group.

Parameters:

resourceTypes - the resourceTypes value to set.

Returns:

the SmartGroupInner object itself.

Applies to