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

org.zodiac.sentinel.base.constants.SentinelDataSourceConstants Maven / Gradle / Ivy

package org.zodiac.sentinel.base.constants;

public interface SentinelDataSourceConstants {

    /**
     * 默认流控规则id。
     */
    String DEFAULT_FLOW_DATA_ID_POSTFIX = "sentinel-flow-rules";
    /**
     * 默认降级规则id。
     */
    String DEFAULT_DEGRADE_DATA_ID_POSTFIX = "sentinel-degrade-rules";
    /**
     * 默认热点规则id。
     */
    String DEFAULT_PARAM_FLOW_DATA_ID_POSTFIX = "sentinel-param-flow-rules";
    /**
     * 系默认统规则id。
     */
    String DEFAULT_SYSTEM_DATA_ID_POSTFIX = "sentinel-system-rules";
    /**
     * 默认授权规则id。
     */
    String DEFAULT_AUTHORITY_DATA_ID_POSTFIX = "sentinel-authority-rules";
    /**
     * 默认规则存储nameSpace。
     */
    String DEFAULT_NAMESPACE_NAME = "platform-application";
    String DEFAULT_SENTINEL_NAMESPACE_NAME = SentinelBaseConstants.NS_PREFIX;

    String FLOW = "flow";
    String DEGRADE = "degrade";
    String AUTHORITY = "authority";
    String SYSTEM = "system";
    String PARAM_FLOW = "param-flow";

    String FLOW_RULES_KEY = "flowRulesKey";
    String NAMESPACE = "namespaceName";
    String RULE_TYPE = "rule-type";

    String DATASOURCE_BEAN_NAME_TEMPLATE = "%s-sentinel-%s-datasource";

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy