Skip to content
Open
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,122 @@
/**
* 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 azure function receiver.
*/
public class AzureFunctionReceiver {
/**
* The name of the azure function receiver. Names must be unique across all
* receivers within an action group.
*/
@JsonProperty(value = "name", required = true)
private String name;

/**
* The azure resource id of the function app.
*/
@JsonProperty(value = "functionAppResourceId", required = true)
private String functionAppResourceId;

/**
* The function name in the function app.
*/
@JsonProperty(value = "functionName", required = true)
private String functionName;

/**
* The http trigger url where http request sent to.
*/
@JsonProperty(value = "httpTriggerUrl", required = true)
private String httpTriggerUrl;

/**
* 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 AzureFunctionReceiver object itself.
*/
public AzureFunctionReceiver withName(String name) {
this.name = name;
return this;
}

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

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

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

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

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

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

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

/**
* A logic app receiver.
*/
public class LogicAppReceiver {
/**
* The name of the logic app receiver. Names must be unique across all
* receivers within an action group.
*/
@JsonProperty(value = "name", required = true)
private String name;

/**
* The azure resource id of the logic app receiver.
*/
@JsonProperty(value = "resourceId", required = true)
private String resourceId;

/**
* The callback url where http request sent to.
*/
@JsonProperty(value = "callbackUrl", required = true)
private String callbackUrl;

/**
* 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 LogicAppReceiver object itself.
*/
public LogicAppReceiver withName(String name) {
this.name = name;
return this;
}

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

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

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

/**
* Set the callbackUrl value.
*
* @param callbackUrl the callbackUrl value to set
* @return the LogicAppReceiver object itself.
*/
public LogicAppReceiver withCallbackUrl(String callbackUrl) {
this.callbackUrl = callbackUrl;
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;
}

}
Loading