org.zodiac.sentinel.base.constants.SentinelBaseSystemPropertiesConstants Maven / Gradle / Ivy
package org.zodiac.sentinel.base.constants;
public interface SentinelBaseSystemPropertiesConstants {
// public static interface Spring {
//
// //String SPRING_CLOUD_SENTINEL_PREFIX = "spring.cloud.sentinel";
// String SPRING_CLOUD_SENTINEL_PREFIX = "sentinel";
// String SPRING_CLOUD_SENTINEL_EAGER = String.format("%s.eager", SPRING_CLOUD_SENTINEL_PREFIX);
// String SPRING_CLOUD_SENTINEL_TRANSPORT_DASHBOARD = String.format("%s.transport.dashboard", SPRING_CLOUD_SENTINEL_PREFIX);
// String SPRING_CLOUD_SENTINEL_FILTER_PREFIX = String.format("%s.spring.cloud.sentinel.filter", SPRING_CLOUD_SENTINEL_PREFIX);
// String SPRING_CLOUD_SENTINEL_FILTER_ENABLED = String.format("%s.enabled", SPRING_CLOUD_SENTINEL_FILTER_PREFIX);
// String SPRING_CLOUD_SENTINEL_FILTER_URL_PATTERNS = String.format("%s.url-patterns", SPRING_CLOUD_SENTINEL_FILTER_PREFIX);
//
// String SPRING_CLOUD_SENTINEL_DATASOURCE_PREFIX = String.format("%s.datasource", SPRING_CLOUD_SENTINEL_PREFIX);
// /**
// * 格式:spring.cloud.sentinel.datasource.数据源名称.数据源类型.数据源配置项。
// *
// * @see {@link com.alibaba.cloud.sentinel.SentinelProperties#getDatasource()}
// * @see {@link com.alibaba.cloud.sentinel.datasource.config.DataSourcePropertiesConfiguration}
// */
// String SPRING_CLOUD_SENTINEL_DATASOURCE_FORMAT = SPRING_CLOUD_SENTINEL_DATASOURCE_PREFIX + ".%s.%s.%s";
//
// String MANAGEMENT_ENDPOINT_SENTINEL_ENABLED = "management.endpoint.sentinel.enabled";
// }
public static interface Sentinel {
String PROJECT_NAME = "project.name";
String BLOCK_PAGE_URL_CONF_KEY = "csp.sentinel.web.servlet.block.page";
}
public static interface Zodiac {
/**
* @deprecated 使用{@link #SENTINEL_DASHBOARD_HOST} 代替。
*/
String PLATFORM_SENTINEL_DASHBOARD_HOST = "platform.sentinel.dashboard.host";
String SENTINEL_PREFIX = "sentinel";
String SENTINEL_ENABLED = SENTINEL_PREFIX + ".enabled";
String SENTINEL_DATASOURCE_PREFIX = SENTINEL_PREFIX + ".datasource";
String SENTINEL_DASHBOARD_HOST = SENTINEL_PREFIX + ".dashboard.host";
String SENTINEL_HTTP_FILTER_PREFIX = SENTINEL_PREFIX + ".http.filter";
String SENTINEL_HTTP_FILTER_ENABLED = SENTINEL_HTTP_FILTER_PREFIX + ".enabled";
String MANAGEMENT_ENDPOINT_SENTINEL_MONITOR_ENABLED = "management.endpoint.sentinel-monitor.enabled";
}
}