Skip to content

Commit

Permalink
[AutoPR monitor/resource-manager] Added metrics baseline API (#3251)
Browse files Browse the repository at this point in the history
* Generated from b12b3ca38498ff10b3e71239dc65f22b6df8e7da

Renamed operation of older baseline apis

* Generated from c0b3744bf0287e8b37cae1a334da68795189e8ae

Updated operation

* Generated from a1ffa46de27615eaf1f2e06637c834fab28584db

Changed the name of the enum
  • Loading branch information
AutorestCI authored Apr 11, 2019
1 parent b2371e3 commit c456642
Show file tree
Hide file tree
Showing 13 changed files with 1,260 additions and 8 deletions.
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;

/**
* Represents a baseline metadata value.
*/
public class BaselineMetadata {
/**
* Name of the baseline metadata.
*/
@JsonProperty(value = "name", required = true)
private String name;

/**
* Value of the baseline metadata.
*/
@JsonProperty(value = "value", required = true)
private String value;

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

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

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

/**
* Set value of the baseline metadata.
*
* @param value the value value to set
* @return the BaselineMetadata object itself.
*/
public BaselineMetadata withValue(String value) {
this.value = value;
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.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for BaselineSensitivity.
*/
public final class BaselineSensitivity extends ExpandableStringEnum<BaselineSensitivity> {
/** Static value Low for BaselineSensitivity. */
public static final BaselineSensitivity LOW = fromString("Low");

/** Static value Medium for BaselineSensitivity. */
public static final BaselineSensitivity MEDIUM = fromString("Medium");

/** Static value High for BaselineSensitivity. */
public static final BaselineSensitivity HIGH = fromString("High");

/**
* Creates or finds a BaselineSensitivity from its string representation.
* @param name a name to look for
* @return the corresponding BaselineSensitivity
*/
@JsonCreator
public static BaselineSensitivity fromString(String name) {
return fromString(name, BaselineSensitivity.class);
}

/**
* @return known BaselineSensitivity values
*/
public static Collection<BaselineSensitivity> values() {
return values(BaselineSensitivity.class);
}
}
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;

/**
* The metric dimension name and value.
*/
public class MetricSingleDimension {
/**
* Name of the dimension.
*/
@JsonProperty(value = "name", required = true)
private String name;

/**
* Value of the dimension.
*/
@JsonProperty(value = "value", required = true)
private String value;

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

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

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

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

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

/**
* The baseline values for a single sensitivity value.
*/
public class SingleBaseline {
/**
* the sensitivity of the baseline. Possible values include: 'Low',
* 'Medium', 'High'.
*/
@JsonProperty(value = "sensitivity", required = true)
private BaselineSensitivity sensitivity;

/**
* The low thresholds of the baseline.
*/
@JsonProperty(value = "lowThresholds", required = true)
private List<Double> lowThresholds;

/**
* The high thresholds of the baseline.
*/
@JsonProperty(value = "highThresholds", required = true)
private List<Double> highThresholds;

/**
* Get the sensitivity of the baseline. Possible values include: 'Low', 'Medium', 'High'.
*
* @return the sensitivity value
*/
public BaselineSensitivity sensitivity() {
return this.sensitivity;
}

/**
* Set the sensitivity of the baseline. Possible values include: 'Low', 'Medium', 'High'.
*
* @param sensitivity the sensitivity value to set
* @return the SingleBaseline object itself.
*/
public SingleBaseline withSensitivity(BaselineSensitivity sensitivity) {
this.sensitivity = sensitivity;
return this;
}

/**
* Get the low thresholds of the baseline.
*
* @return the lowThresholds value
*/
public List<Double> lowThresholds() {
return this.lowThresholds;
}

/**
* Set the low thresholds of the baseline.
*
* @param lowThresholds the lowThresholds value to set
* @return the SingleBaseline object itself.
*/
public SingleBaseline withLowThresholds(List<Double> lowThresholds) {
this.lowThresholds = lowThresholds;
return this;
}

/**
* Get the high thresholds of the baseline.
*
* @return the highThresholds value
*/
public List<Double> highThresholds() {
return this.highThresholds;
}

/**
* Set the high thresholds of the baseline.
*
* @param highThresholds the highThresholds value to set
* @return the SingleBaseline object itself.
*/
public SingleBaseline withHighThresholds(List<Double> highThresholds) {
this.highThresholds = highThresholds;
return this;
}

}
Loading

0 comments on commit c456642

Please sign in to comment.