/**
* Copyright 2015 StreamSets Inc.
*
* Licensed under the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.streamsets.datacollector.client.model;
import com.streamsets.datacollector.client.StringUtil;
import io.swagger.annotations.*;
import com.fasterxml.jackson.annotation.JsonProperty;
@ApiModel(description = "")
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2015-09-11T14:51:29.367-07:00")
public class MetricsRuleDefinitionJson {
private String id = null;
private String alertText = null;
private String metricId = null;
public enum MetricTypeEnum {
GAUGE("GAUGE"), COUNTER("COUNTER"), HISTOGRAM("HISTOGRAM"), METER("METER"), TIMER("TIMER");
private String value;
MetricTypeEnum(String value) {
this.value = value;
}
@Override
public String toString() {
return value;
}
}
private MetricTypeEnum metricType = null;
public enum MetricElementEnum {
COUNTER_COUNT("COUNTER_COUNT"), HISTOGRAM_COUNT("HISTOGRAM_COUNT"), HISTOGRAM_MAX("HISTOGRAM_MAX"), HISTOGRAM_MIN("HISTOGRAM_MIN"), HISTOGRAM_MEAN("HISTOGRAM_MEAN"), HISTOGRAM_MEDIAN("HISTOGRAM_MEDIAN"), hISTOGRAMP75("HISTOGRAM_P75"), hISTOGRAMP95("HISTOGRAM_P95"), hISTOGRAMP98("HISTOGRAM_P98"), hISTOGRAMP99("HISTOGRAM_P99"), hISTOGRAMP999("HISTOGRAM_P999"), HISTOGRAM_STD_DEV("HISTOGRAM_STD_DEV"), METER_COUNT("METER_COUNT"), mETERM1RATE("METER_M1_RATE"), mETERM5RATE("METER_M5_RATE"), mETERM15RATE("METER_M15_RATE"), mETERM30RATE("METER_M30_RATE"), mETERH1RATE("METER_H1_RATE"), mETERH6RATE("METER_H6_RATE"), mETERH12RATE("METER_H12_RATE"), mETERH24RATE("METER_H24_RATE"), METER_MEAN_RATE("METER_MEAN_RATE"), TIMER_COUNT("TIMER_COUNT"), TIMER_MAX("TIMER_MAX"), TIMER_MIN("TIMER_MIN"), TIMER_MEAN("TIMER_MEAN"), tIMERP50("TIMER_P50"), tIMERP75("TIMER_P75"), tIMERP95("TIMER_P95"), tIMERP98("TIMER_P98"), tIMERP99("TIMER_P99"), tIMERP999("TIMER_P999"), TIMER_STD_DEV("TIMER_STD_DEV"), tIMERM1RATE("TIMER_M1_RATE"), tIMERM5RATE("TIMER_M5_RATE"), tIMERM15RATE("TIMER_M15_RATE"), TIMER_MEAN_RATE("TIMER_MEAN_RATE"), CURRENT_BATCH_AGE("CURRENT_BATCH_AGE"), TIME_IN_CURRENT_STAGE("TIME_IN_CURRENT_STAGE"), TIME_OF_LAST_RECEIVED_RECORD("TIME_OF_LAST_RECEIVED_RECORD");
private String value;
MetricElementEnum(String value) {
this.value = value;
}
@Override
public String toString() {
return value;
}
}
private MetricElementEnum metricElement = null;
private String condition = null;
private Boolean sendEmail = null;
private Boolean enabled = null;
private Boolean valid = null;
/**
**/
@ApiModelProperty(value = "")
@JsonProperty("id")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
/**
**/
@ApiModelProperty(value = "")
@JsonProperty("alertText")
public String getAlertText() {
return alertText;
}
public void setAlertText(String alertText) {
this.alertText = alertText;
}
/**
**/
@ApiModelProperty(value = "")
@JsonProperty("metricId")
public String getMetricId() {
return metricId;
}
public void setMetricId(String metricId) {
this.metricId = metricId;
}
/**
**/
@ApiModelProperty(value = "")
@JsonProperty("metricType")
public MetricTypeEnum getMetricType() {
return metricType;
}
public void setMetricType(MetricTypeEnum metricType) {
this.metricType = metricType;
}
/**
**/
@ApiModelProperty(value = "")
@JsonProperty("metricElement")
public MetricElementEnum getMetricElement() {
return metricElement;
}
public void setMetricElement(MetricElementEnum metricElement) {
this.metricElement = metricElement;
}
/**
**/
@ApiModelProperty(value = "")
@JsonProperty("condition")
public String getCondition() {
return condition;
}
public void setCondition(String condition) {
this.condition = condition;
}
/**
**/
@ApiModelProperty(value = "")
@JsonProperty("sendEmail")
public Boolean getSendEmail() {
return sendEmail;
}
public void setSendEmail(Boolean sendEmail) {
this.sendEmail = sendEmail;
}
/**
**/
@ApiModelProperty(value = "")
@JsonProperty("enabled")
public Boolean getEnabled() {
return enabled;
}
public void setEnabled(Boolean enabled) {
this.enabled = enabled;
}
/**
**/
@ApiModelProperty(value = "")
@JsonProperty("valid")
public Boolean getValid() {
return valid;
}
public void setValid(Boolean valid) {
this.valid = valid;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MetricsRuleDefinitionJson {\n");
sb.append(" id: ").append(StringUtil.toIndentedString(id)).append("\n");
sb.append(" alertText: ").append(StringUtil.toIndentedString(alertText)).append("\n");
sb.append(" metricId: ").append(StringUtil.toIndentedString(metricId)).append("\n");
sb.append(" metricType: ").append(StringUtil.toIndentedString(metricType)).append("\n");
sb.append(" metricElement: ").append(StringUtil.toIndentedString(metricElement)).append("\n");
sb.append(" condition: ").append(StringUtil.toIndentedString(condition)).append("\n");
sb.append(" sendEmail: ").append(StringUtil.toIndentedString(sendEmail)).append("\n");
sb.append(" enabled: ").append(StringUtil.toIndentedString(enabled)).append("\n");
sb.append(" valid: ").append(StringUtil.toIndentedString(valid)).append("\n");
sb.append("}");
return sb.toString();
}
}