Skip to content

[AutoPR monitor/resource-manager] Adding patch support for SQR API #178

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

Open
wants to merge 5 commits into
base: restapi_auto_monitor/resource-manager
Choose a base branch
from
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
Expand Up @@ -36,7 +36,7 @@ public class Action {
private Map<String, String> webhookProperties;

/**
* Get the actionGroupId value.
* Get the id of the action group to use.
*
* @return the actionGroupId value
*/
Expand All @@ -45,7 +45,7 @@ public String actionGroupId() {
}

/**
* Set the actionGroupId value.
* Set the id of the action group to use.
*
* @param actionGroupId the actionGroupId value to set
* @return the Action object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class ActionGroupPatchBody {
private Boolean enabled;

/**
* Get the tags value.
* Get resource tags.
*
* @return the tags value
*/
Expand All @@ -40,7 +40,7 @@ public Map<String, String> tags() {
}

/**
* Set the tags value.
* Set resource tags.
*
* @param tags the tags value to set
* @return the ActionGroupPatchBody object itself.
Expand All @@ -51,7 +51,7 @@ public ActionGroupPatchBody withTags(Map<String, String> tags) {
}

/**
* Get the enabled value.
* 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
*/
Expand All @@ -60,7 +60,7 @@ public Boolean enabled() {
}

/**
* Set the enabled value.
* 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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class ActivityLogAlertActionGroup {
private Map<String, String> webhookProperties;

/**
* Get the actionGroupId value.
* Get the resourceId of the action group. This cannot be null or empty.
*
* @return the actionGroupId value
*/
Expand All @@ -38,7 +38,7 @@ public String actionGroupId() {
}

/**
* Set the actionGroupId value.
* 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.
Expand All @@ -49,7 +49,7 @@ public ActivityLogAlertActionGroup withActionGroupId(String actionGroupId) {
}

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

/**
* Set the webhookProperties value.
* 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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class ActivityLogAlertActionList {
private List<ActivityLogAlertActionGroup> actionGroups;

/**
* Get the actionGroups value.
* Get the list of activity log alerts.
*
* @return the actionGroups value
*/
Expand All @@ -31,7 +31,7 @@ public List<ActivityLogAlertActionGroup> actionGroups() {
}

/**
* Set the actionGroups value.
* Set the list of activity log alerts.
*
* @param actionGroups the actionGroups value to set
* @return the ActivityLogAlertActionList object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class ActivityLogAlertAllOfCondition {
private List<ActivityLogAlertLeafCondition> allOf;

/**
* Get the allOf value.
* Get the list of activity log alert conditions.
*
* @return the allOf value
*/
Expand All @@ -32,7 +32,7 @@ public List<ActivityLogAlertLeafCondition> allOf() {
}

/**
* Set the allOf value.
* Set the list of activity log alert conditions.
*
* @param allOf the allOf value to set
* @return the ActivityLogAlertAllOfCondition object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class ActivityLogAlertLeafCondition {
private String equals;

/**
* Get the field value.
* 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
*/
Expand All @@ -42,7 +42,7 @@ public String field() {
}

/**
* Set the field value.
* 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.
Expand All @@ -53,7 +53,7 @@ public ActivityLogAlertLeafCondition withField(String field) {
}

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

/**
* Set the equals value.
* 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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class ActivityLogAlertPatchBody {
private Boolean enabled;

/**
* Get the tags value.
* Get resource tags.
*
* @return the tags value
*/
Expand All @@ -40,7 +40,7 @@ public Map<String, String> tags() {
}

/**
* Set the tags value.
* Set resource tags.
*
* @param tags the tags value to set
* @return the ActivityLogAlertPatchBody object itself.
Expand All @@ -51,7 +51,7 @@ public ActivityLogAlertPatchBody withTags(Map<String, String> tags) {
}

/**
* Get the enabled value.
* Get indicates whether this activity log alert is enabled. If an activity log alert is not enabled, then none of its actions will be activated.
*
* @return the enabled value
*/
Expand All @@ -60,7 +60,7 @@ public Boolean enabled() {
}

/**
* Set the enabled value.
* Set indicates whether this activity log alert is enabled. If an activity log alert is not enabled, then none of its actions will be activated.
*
* @param enabled the enabled value to set
* @return the ActivityLogAlertPatchBody object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public class AlertRuleResourcePatch {
private DateTime lastUpdatedTime;

/**
* Get the tags value.
* Get resource tags.
*
* @return the tags value
*/
Expand All @@ -73,7 +73,7 @@ public Map<String, String> tags() {
}

/**
* Set the tags value.
* Set resource tags.
*
* @param tags the tags value to set
* @return the AlertRuleResourcePatch object itself.
Expand All @@ -84,7 +84,7 @@ public AlertRuleResourcePatch withTags(Map<String, String> tags) {
}

/**
* Get the name value.
* Get the name of the alert rule.
*
* @return the name value
*/
Expand All @@ -93,7 +93,7 @@ public String name() {
}

/**
* Set the name value.
* Set the name of the alert rule.
*
* @param name the name value to set
* @return the AlertRuleResourcePatch object itself.
Expand All @@ -104,7 +104,7 @@ public AlertRuleResourcePatch withName(String name) {
}

/**
* Get the description value.
* Get the description of the alert rule that will be included in the alert email.
*
* @return the description value
*/
Expand All @@ -113,7 +113,7 @@ public String description() {
}

/**
* Set the description value.
* Set the description of the alert rule that will be included in the alert email.
*
* @param description the description value to set
* @return the AlertRuleResourcePatch object itself.
Expand All @@ -124,7 +124,7 @@ public AlertRuleResourcePatch withDescription(String description) {
}

/**
* Get the isEnabled value.
* Get the flag that indicates whether the alert rule is enabled.
*
* @return the isEnabled value
*/
Expand All @@ -133,7 +133,7 @@ public boolean isEnabled() {
}

/**
* Set the isEnabled value.
* Set the flag that indicates whether the alert rule is enabled.
*
* @param isEnabled the isEnabled value to set
* @return the AlertRuleResourcePatch object itself.
Expand All @@ -144,7 +144,7 @@ public AlertRuleResourcePatch withIsEnabled(boolean isEnabled) {
}

/**
* Get the condition value.
* Get the condition that results in the alert rule being activated.
*
* @return the condition value
*/
Expand All @@ -153,7 +153,7 @@ public RuleCondition condition() {
}

/**
* Set the condition value.
* Set the condition that results in the alert rule being activated.
*
* @param condition the condition value to set
* @return the AlertRuleResourcePatch object itself.
Expand All @@ -164,7 +164,7 @@ public AlertRuleResourcePatch withCondition(RuleCondition condition) {
}

/**
* Get the actions value.
* Get the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.
*
* @return the actions value
*/
Expand All @@ -173,7 +173,7 @@ public List<RuleAction> actions() {
}

/**
* Set the actions value.
* Set the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.
*
* @param actions the actions value to set
* @return the AlertRuleResourcePatch object itself.
Expand All @@ -184,7 +184,7 @@ public AlertRuleResourcePatch withActions(List<RuleAction> actions) {
}

/**
* Get the lastUpdatedTime value.
* Get last time the rule was updated in ISO8601 format.
*
* @return the lastUpdatedTime value
*/
Expand Down
Loading