/**
* Creates an empty metric
*
- * @deprecated in 1.12
+ * @deprecated in 1.12. Use the {@link Builder} factory.
*/
@Deprecated
public Metric() {
* Creates a metric based on its key. Shortcut to Metric(key, ValueType.INT)
*
* @param key the metric key
- * @deprecated since 2.7 use the Builder factory.
+ * @deprecated since 2.7 use the {@link Builder} factory.
*/
@Deprecated
public Metric(String key) {
*
* @param key the key
* @param type the type
- * @deprecated since 2.7 use the Builder factory.
+ * @deprecated since 2.7 use the {@link Builder} factory.
*/
@Deprecated
public Metric(String key, ValueType type) {
}
/**
- * @deprecated since 2.7 use the Builder factory.
+ * @deprecated since 2.7 use the {@link Builder} factory.
*/
@Deprecated
public Metric(String key, String name, String description, ValueType type, Integer direction, Boolean qualitative, String domain) {
* @param qualitative whether the metric is qualitative
* @param domain the metric domain
* @param userManaged whether the metric is user managed
- * @deprecated since 2.7 use the Builder factory.
+ * @deprecated since 2.7 use the {@link Builder} factory.
*/
@Deprecated
public Metric(String key, String name, String description, ValueType type, Integer direction, Boolean qualitative, String domain, boolean userManaged) {
* @param qualitative whether the metric is qualitative
* @param domain the metric domain
* @param formula the metric formula
- * @deprecated since 2.7 use the Builder factory.
+ * @deprecated since 2.7 use the {@link Builder} factory.
*/
@Deprecated
public Metric(String key, String name, ValueType type, Integer direction, Boolean qualitative, String domain, Formula formula) {
return this;
}
+ /**
+ * @since 2.7
+ */
public static final class Builder {
private String key;
private Metric.ValueType type;