Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.monitor.implementation; import org.joda.time.DateTime; import com.fasterxml.jackson.annotation.JsonProperty;
An alert incident indicates the activation status of an alert rule.
/** * An alert incident indicates the activation status of an alert rule. */
public class IncidentInner {
Incident name.
/** * Incident name. */
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) private String name;
Rule name that is associated with the incident.
/** * Rule name that is associated with the incident. */
@JsonProperty(value = "ruleName", access = JsonProperty.Access.WRITE_ONLY) private String ruleName;
A boolean to indicate whether the incident is active or resolved.
/** * A boolean to indicate whether the incident is active or resolved. */
@JsonProperty(value = "isActive", access = JsonProperty.Access.WRITE_ONLY) private Boolean isActive;
The time at which the incident was activated in ISO8601 format.
/** * The time at which the incident was activated in ISO8601 format. */
@JsonProperty(value = "activatedTime", access = JsonProperty.Access.WRITE_ONLY) private DateTime activatedTime;
The time at which the incident was resolved in ISO8601 format. If null, it means the incident is still active.
/** * The time at which the incident was resolved in ISO8601 format. If null, * it means the incident is still active. */
@JsonProperty(value = "resolvedTime", access = JsonProperty.Access.WRITE_ONLY) private DateTime resolvedTime;
Get incident name.
Returns:the name value
/** * Get incident name. * * @return the name value */
public String name() { return this.name; }
Get rule name that is associated with the incident.
Returns:the ruleName value
/** * Get rule name that is associated with the incident. * * @return the ruleName value */
public String ruleName() { return this.ruleName; }
Get a boolean to indicate whether the incident is active or resolved.
Returns:the isActive value
/** * Get a boolean to indicate whether the incident is active or resolved. * * @return the isActive value */
public Boolean isActive() { return this.isActive; }
Get the time at which the incident was activated in ISO8601 format.
Returns:the activatedTime value
/** * Get the time at which the incident was activated in ISO8601 format. * * @return the activatedTime value */
public DateTime activatedTime() { return this.activatedTime; }
Get the time at which the incident was resolved in ISO8601 format. If null, it means the incident is still active.
Returns:the resolvedTime value
/** * Get the time at which the incident was resolved in ISO8601 format. If null, it means the incident is still active. * * @return the resolvedTime value */
public DateTime resolvedTime() { return this.resolvedTime; } }