Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
/**
* 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;

import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* An alert action.
*/
public class Action {
/**
* the id of the action group to use.
*/
@JsonProperty(value = "actionGroupId")
private String actionGroupId;

/**
* The webhookProperties property.
*/
@JsonProperty(value = "webhookProperties")
private Map<String, String> webhookProperties;

/**
* Get the actionGroupId value.
*
* @return the actionGroupId value
*/
public String actionGroupId() {
return this.actionGroupId;
}

/**
* Set the actionGroupId value.
*
* @param actionGroupId the actionGroupId value to set
* @return the Action object itself.
*/
public Action withActionGroupId(String actionGroupId) {
this.actionGroupId = actionGroupId;
return this;
}

/**
* Get the webhookProperties value.
*
* @return the webhookProperties value
*/
public Map<String, String> webhookProperties() {
return this.webhookProperties;
}

/**
* Set the webhookProperties value.
*
* @param webhookProperties the webhookProperties value to set
* @return the Action object itself.
*/
public Action withWebhookProperties(Map<String, String> webhookProperties) {
this.webhookProperties = webhookProperties;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/**
* 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;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* An alert status.
*/
public class AlertStatus {
/**
* status value.
*/
@JsonProperty(value = "value")
private String value;

/**
* UTC time when the status was checked.
*/
@JsonProperty(value = "timestamp")
private String timestamp;

/**
* Get the value value.
*
* @return the value value
*/
public String value() {
return this.value;
}

/**
* Set the value value.
*
* @param value the value value to set
* @return the AlertStatus object itself.
*/
public AlertStatus withValue(String value) {
this.value = value;
return this;
}

/**
* Get the timestamp value.
*
* @return the timestamp value
*/
public String timestamp() {
return this.timestamp;
}

/**
* Set the timestamp value.
*
* @param timestamp the timestamp value to set
* @return the AlertStatus object itself.
*/
public AlertStatus withTimestamp(String timestamp) {
this.timestamp = timestamp;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/**
* 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;

import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonSubTypes;

/**
* The rule criteria that defines the conditions of the alert rule.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "odata.type")
@JsonTypeName("MetricAlertCriteria")
@JsonSubTypes({
@JsonSubTypes.Type(name = "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria", value = MetricAlertSingleResourceMultipleMetricCriteria.class)
})
public class MetricAlertCriteria {
/**
* Unmatched properties from the message are deserialized this collection.
*/
@JsonProperty(value = "")
private Map<String, Object> additionalProperties;

/**
* Get the additionalProperties value.
*
* @return the additionalProperties value
*/
public Map<String, Object> additionalProperties() {
return this.additionalProperties;
}

/**
* Set the additionalProperties value.
*
* @param additionalProperties the additionalProperties value to set
* @return the MetricAlertCriteria object itself.
*/
public MetricAlertCriteria withAdditionalProperties(Map<String, Object> additionalProperties) {
this.additionalProperties = additionalProperties;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/**
* 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;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
* Specifies the metric alert criteria for a single resource that has multiple
* metric criteria.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "odata.type")
@JsonTypeName("Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria")
public class MetricAlertSingleResourceMultipleMetricCriteria extends MetricAlertCriteria {
/**
* The list of metric criteria for this 'all of' operation.
*/
@JsonProperty(value = "allOf")
private List<MetricCriteria> allOf;

/**
* Get the allOf value.
*
* @return the allOf value
*/
public List<MetricCriteria> allOf() {
return this.allOf;
}

/**
* Set the allOf value.
*
* @param allOf the allOf value to set
* @return the MetricAlertSingleResourceMultipleMetricCriteria object itself.
*/
public MetricAlertSingleResourceMultipleMetricCriteria withAllOf(List<MetricCriteria> allOf) {
this.allOf = allOf;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
/**
* 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;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* An alert status.
*/
public class MetricAlertStatus {
/**
* The status name.
*/
@JsonProperty(value = "name")
private String name;

/**
* The alert rule arm id.
*/
@JsonProperty(value = "id")
private String id;

/**
* The extended resource type name.
*/
@JsonProperty(value = "type")
private String type;

/**
* The alert status properties of the metric alert status.
*/
@JsonProperty(value = "properties")
private MetricAlertStatusProperties properties;

/**
* Get the name value.
*
* @return the name value
*/
public String name() {
return this.name;
}

/**
* Set the name value.
*
* @param name the name value to set
* @return the MetricAlertStatus object itself.
*/
public MetricAlertStatus withName(String name) {
this.name = name;
return this;
}

/**
* Get the id value.
*
* @return the id value
*/
public String id() {
return this.id;
}

/**
* Set the id value.
*
* @param id the id value to set
* @return the MetricAlertStatus object itself.
*/
public MetricAlertStatus withId(String id) {
this.id = id;
return this;
}

/**
* Get the type value.
*
* @return the type value
*/
public String type() {
return this.type;
}

/**
* Set the type value.
*
* @param type the type value to set
* @return the MetricAlertStatus object itself.
*/
public MetricAlertStatus withType(String type) {
this.type = type;
return this;
}

/**
* Get the properties value.
*
* @return the properties value
*/
public MetricAlertStatusProperties properties() {
return this.properties;
}

/**
* Set the properties value.
*
* @param properties the properties value to set
* @return the MetricAlertStatus object itself.
*/
public MetricAlertStatus withProperties(MetricAlertStatusProperties properties) {
this.properties = properties;
return this;
}

}
Loading