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

com.aliyun.openservices.log.request.ListDashboardRequest Maven / Gradle / Ivy

There is a newer version: 0.6.3
Show newest version
package com.aliyun.openservices.log.request;

import com.aliyun.openservices.log.common.Consts;

public class ListDashboardRequest extends Request {

    private static final long serialVersionUID = -2229371777283193940L;

    public ListDashboardRequest(String project) {
        super(project);
        setDashboardName("");
        setDisplayName("");
        setOffset(Consts.DEFAULT_REQUEST_PARAM_OFFSET);
        setSize(Consts.DEFAULT_REQUEST_PARAM_SIZE);
    }

    public ListDashboardRequest(String project, String dashboardName, String displayName, int offset, int size) {
        super(project);
        setDashboardName(dashboardName);
        setDisplayName(displayName);
        setOffset(offset);
        setSize(size);
    }

    public String getDashboardName() {
        return GetParam(Consts.DASHBOARD_NAME_KEY);
    }

    public void setDashboardName(String savedSearchName) {
        SetParam(Consts.DASHBOARD_NAME_KEY, savedSearchName);
    }

    public String getDisplayName() {
        return GetParam(Consts.CONST_DISPLAY_NAME);
    }

    public void setDisplayName(String displayName) {
        SetParam(Consts.CONST_DISPLAY_NAME, displayName);
    }

    public int getOffset() {
        return Integer.parseInt(GetParam(Consts.CONST_OFFSET));
    }

    public void setOffset(int offset) {
        SetParam(Consts.CONST_OFFSET, String.valueOf(offset));
    }

    public int getSize() {
        return Integer.parseInt(GetParam(Consts.CONST_SIZE));
    }

    public void setSize(int size) {
        SetParam(Consts.CONST_SIZE, String.valueOf(size));
    }

    public void setLogstore(final String logstore) {
        SetParam(Consts.LOGSTORE_KEY, logstore);
    }

    public String getLogstore() {
        return GetParam(Consts.LOGSTORE_KEY);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy