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 #2993

Closed
wants to merge 18 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
eb6d2cd
[AutoPR monitor/resource-manager] Add two missing "by subscription" o…
AutorestCI Jun 25, 2018
eea611f
[AutoPR monitor/resource-manager] Swagger for diagnostic settings and…
AutorestCI Jul 9, 2018
abfefd6
Generated from 6110295138cbd6959df204de3830b4ada943a4fc (#2248)
AutorestCI Jul 20, 2018
9c94cb6
Generated from 1ca7f22a22e15cb8980176f25be20fd3e6f73162 (#2302)
AutorestCI Aug 6, 2018
07684b8
[AutoPR monitor/resource-manager] Adding MetricNamespacesAPI for vers…
AutorestCI Sep 6, 2018
e766aa7
[AutoPR monitor/resource-manager] Add missing enum for aggregation ty…
AutorestCI Sep 19, 2018
dd2ef30
Generated from a2ed141f095adf20aeb11d3bd796d5906fce4f6b (#2424)
AutorestCI Sep 27, 2018
7866629
[AutoPR monitor/resource-manager] Add Multi Resource Alert changes fo…
AutorestCI Oct 4, 2018
48e59cb
Generated from 5738fd21af734dc48d88f275b73a2c7fe3e504e4 (#2706)
AutorestCI Dec 3, 2018
d8674c4
Generated from 9771d96d4a2f4caa435cd59ae81736e910b8ee89 (#2826)
AutorestCI Jan 14, 2019
2a58658
Generated from e24fe07222b97077ca0f54ffc66b312be4aaeff7 (#2980)
AutorestCI Mar 1, 2019
5f9206b
Generated from 3ee75a557636de42d727d65142c74ff42b754a67 (#3103)
AutorestCI Mar 13, 2019
b2371e3
Generated from d33c2e897124c07ae2896600c2215ae3717e74ba (#3194)
AutorestCI Apr 2, 2019
c456642
[AutoPR monitor/resource-manager] Added metrics baseline API (#3251)
AutorestCI Apr 11, 2019
9b0303d
[AutoPR monitor/resource-manager] Add dynamic metric alert api (#3403)
AutorestCI Apr 30, 2019
0968e61
Generated from 1dca2b0f09bde16c8a8e1ed7a86c84a2837c0cdf (#3979)
AutorestCI Jun 18, 2019
36332ec
[AutoPR monitor/resource-manager] Adding flag to support non-dynamic …
AutorestCI Jun 26, 2019
0123e15
[AutoPR monitor/resource-manager] BUG fix: Fixing type of MetricValue…
AutorestCI Jul 8, 2019
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