
org.joyqueue.model.query.QMetric Maven / Gradle / Ivy
/**
* Copyright 2019 The JoyQueue Authors.
*
* Licensed 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 org.joyqueue.model.query;
import org.joyqueue.model.QKeyword;
public class QMetric extends QKeyword {
/**
* metric code, abbr.
*/
private String code;
/**
* metric value, inner used, unique
*/
private String aliasCode;
/**
* metric name
*/
private String name;
/**
* metric type, atomic or aggregator
*/
private Integer type;
/**
* only for aggregator metric, which describe metric's origin metric code
*/
private String source;
/**
* describe metric aggregate method or others
*/
private String description;
/**
* metric provider
*/
private String provider;
/**
* metric user permission
*/
private Boolean userPermission;
private int collectInterval;
private String category;
public QMetric() {}
public QMetric(Boolean userPermission) {
this.userPermission = userPermission;
return;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getAliasCode() {
return aliasCode;
}
public void setAiasCode(String aliasCode) {
this.aliasCode = aliasCode;
}
public Integer getType() {
return type;
}
public void setType(Integer type) {
this.type = type;
}
public String getSource() {
return source;
}
public void setSource(String source) {
this.source = source;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getProvider() {
return provider;
}
public void setProvider(String provider) {
this.provider = provider;
}
public void setAliasCode(String aliasCode) {
this.aliasCode = aliasCode;
}
public Boolean getUserPermission() {
return userPermission;
}
public void setUserPermission(Boolean userPermission) {
this.userPermission = userPermission;
}
public int getCollectInterval() {
return collectInterval;
}
public void setCollectInterval(int collectInterval) {
this.collectInterval = collectInterval;
}
public String getCategory() {
return category;
}
public void setCategory(String category) {
this.category = category;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy