All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alibaba.csp.sentinel.cluster.flow.statistic.ClusterMetricNode Maven / Gradle / Ivy

/*
 * Copyright 1999-2018 Alibaba Group Holding Ltd.
 *
 * 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 com.alibaba.csp.sentinel.cluster.flow.statistic;

import java.util.Map;

/**
 * @author Eric Zhao
 * @since 1.4.1
 */
public class ClusterMetricNode {

    private long timestamp;

    private String resourceName;
    private long flowId;

    private double passQps;
    private double blockQps;
    private long rt;

    private Map topParams;

    public long getTimestamp() {
        return timestamp;
    }

    public ClusterMetricNode setTimestamp(long timestamp) {
        this.timestamp = timestamp;
        return this;
    }

    public String getResourceName() {
        return resourceName;
    }

    public ClusterMetricNode setResourceName(String resourceName) {
        this.resourceName = resourceName;
        return this;
    }

    public long getFlowId() {
        return flowId;
    }

    public ClusterMetricNode setFlowId(long flowId) {
        this.flowId = flowId;
        return this;
    }

    public double getPassQps() {
        return passQps;
    }

    public ClusterMetricNode setPassQps(double passQps) {
        this.passQps = passQps;
        return this;
    }

    public double getBlockQps() {
        return blockQps;
    }

    public ClusterMetricNode setBlockQps(double blockQps) {
        this.blockQps = blockQps;
        return this;
    }

    public long getRt() {
        return rt;
    }

    public ClusterMetricNode setRt(long rt) {
        this.rt = rt;
        return this;
    }

    public Map getTopParams() {
        return topParams;
    }

    public ClusterMetricNode setTopParams(Map topParams) {
        this.topParams = topParams;
        return this;
    }

    @Override
    public String toString() {
        return "ClusterMetricNode{" +
            "timestamp=" + timestamp +
            ", resourceName='" + resourceName + '\'' +
            ", flowId=" + flowId +
            ", passQps=" + passQps +
            ", blockQps=" + blockQps +
            ", rt=" + rt +
            ", topParams=" + topParams +
            '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy