Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR] monitor/resource-manager #2139

Closed
wants to merge 10 commits into from
Closed
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,25 @@
/**
* 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.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonSubTypes;

/**
* Action descriptor.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "odata.type")
@JsonTypeName("Action")
@JsonSubTypes({
@JsonSubTypes.Type(name = "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", value = AlertingAction.class),
@JsonSubTypes.Type(name = "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.LogToMetricAction", value = LogToMetricAction.class)
})
public class Action {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
/**
* 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.microsoft.rest.serializer.JsonFlatten;

/**
* An action group object for the body of patch operations.
*/
@JsonFlatten
public class ActionGroupPatchBody {
/**
* Resource tags.
*/
@JsonProperty(value = "tags")
private Map<String, String> tags;

/**
* Indicates whether this action group is enabled. If an action group is
* not enabled, then none of its actions will be activated.
*/
@JsonProperty(value = "properties.enabled")
private Boolean enabled;

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

/**
* Set resource tags.
*
* @param tags the tags value to set
* @return the ActionGroupPatchBody object itself.
*/
public ActionGroupPatchBody withTags(Map<String, String> tags) {
this.tags = tags;
return this;
}

/**
* Get indicates whether this action group is enabled. If an action group is not enabled, then none of its actions will be activated.
*
* @return the enabled value
*/
public Boolean enabled() {
return this.enabled;
}

/**
* Set indicates whether this action group is enabled. If an action group is not enabled, then none of its actions will be activated.
*
* @param enabled the enabled value to set
* @return the ActionGroupPatchBody object itself.
*/
public ActionGroupPatchBody withEnabled(Boolean enabled) {
this.enabled = enabled;
return this;
}

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

/**
* A pointer to an Azure Action Group.
*/
public class ActivityLogAlertActionGroup {
/**
* The resourceId of the action group. This cannot be null or empty.
*/
@JsonProperty(value = "actionGroupId", required = true)
private String actionGroupId;

/**
* the dictionary of custom properties to include with the post operation.
* These data are appended to the webhook payload.
*/
@JsonProperty(value = "webhookProperties")
private Map<String, String> webhookProperties;

/**
* Get the resourceId of the action group. This cannot be null or empty.
*
* @return the actionGroupId value
*/
public String actionGroupId() {
return this.actionGroupId;
}

/**
* Set the resourceId of the action group. This cannot be null or empty.
*
* @param actionGroupId the actionGroupId value to set
* @return the ActivityLogAlertActionGroup object itself.
*/
public ActivityLogAlertActionGroup withActionGroupId(String actionGroupId) {
this.actionGroupId = actionGroupId;
return this;
}

/**
* Get the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
*
* @return the webhookProperties value
*/
public Map<String, String> webhookProperties() {
return this.webhookProperties;
}

/**
* Set the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload.
*
* @param webhookProperties the webhookProperties value to set
* @return the ActivityLogAlertActionGroup object itself.
*/
public ActivityLogAlertActionGroup withWebhookProperties(Map<String, String> webhookProperties) {
this.webhookProperties = webhookProperties;
return this;
}

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

/**
* A list of activity log alert actions.
*/
public class ActivityLogAlertActionList {
/**
* The list of activity log alerts.
*/
@JsonProperty(value = "actionGroups")
private List<ActivityLogAlertActionGroup> actionGroups;

/**
* Get the list of activity log alerts.
*
* @return the actionGroups value
*/
public List<ActivityLogAlertActionGroup> actionGroups() {
return this.actionGroups;
}

/**
* Set the list of activity log alerts.
*
* @param actionGroups the actionGroups value to set
* @return the ActivityLogAlertActionList object itself.
*/
public ActivityLogAlertActionList withActionGroups(List<ActivityLogAlertActionGroup> actionGroups) {
this.actionGroups = actionGroups;
return this;
}

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

/**
* An Activity Log alert condition that is met when all its member conditions
* are met.
*/
public class ActivityLogAlertAllOfCondition {
/**
* The list of activity log alert conditions.
*/
@JsonProperty(value = "allOf", required = true)
private List<ActivityLogAlertLeafCondition> allOf;

/**
* Get the list of activity log alert conditions.
*
* @return the allOf value
*/
public List<ActivityLogAlertLeafCondition> allOf() {
return this.allOf;
}

/**
* Set the list of activity log alert conditions.
*
* @param allOf the allOf value to set
* @return the ActivityLogAlertAllOfCondition object itself.
*/
public ActivityLogAlertAllOfCondition withAllOf(List<ActivityLogAlertLeafCondition> allOf) {
this.allOf = allOf;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
/**
* 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 Activity Log alert condition that is met by comparing an activity log
* field and value.
*/
public class ActivityLogAlertLeafCondition {
/**
* The name of the field that this condition will examine. The possible
* values for this field are (case-insensitive): 'resourceId', 'category',
* 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider',
* 'status', 'subStatus', 'resourceType', or anything beginning with
* 'properties.'.
*/
@JsonProperty(value = "field", required = true)
private String field;

/**
* The field value will be compared to this value (case-insensitive) to
* determine if the condition is met.
*/
@JsonProperty(value = "equals", required = true)
private String equals;

/**
* Get the name of the field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties.'.
*
* @return the field value
*/
public String field() {
return this.field;
}

/**
* Set the name of the field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties.'.
*
* @param field the field value to set
* @return the ActivityLogAlertLeafCondition object itself.
*/
public ActivityLogAlertLeafCondition withField(String field) {
this.field = field;
return this;
}

/**
* Get the field value will be compared to this value (case-insensitive) to determine if the condition is met.
*
* @return the equals value
*/
public String equals() {
return this.equals;
}

/**
* Set the field value will be compared to this value (case-insensitive) to determine if the condition is met.
*
* @param equals the equals value to set
* @return the ActivityLogAlertLeafCondition object itself.
*/
public ActivityLogAlertLeafCondition withEquals(String equals) {
this.equals = equals;
return this;
}

}
Loading