/*
 * 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.dashboard.rule.nacos;

/**
 * @author Eric Zhao
 * @since 1.4.0
 */
public interface NacosConfigUtil {

    String GROUP_ID = "SENTINEL_GROUP";

    String FLOW_DATA_ID_POSTFIX = "-flow-rules";
    String PARAM_FLOW_DATA_ID_POSTFIX = "-param-rules";

    String GATEWAY_API_POSTFIX = "-gateway-api";
    String GATEWAY_API_FLOW_POSTFIX = "-gateway-flow-rules";

    String DEGRADE_POSTFIX = "-degrade-rules";

    String AUTH_POSTFIX = "-auth-rules";

    String CLUSTER_MAP_DATA_ID_POSTFIX = "-cluster-map";

    /**
     * cc for `cluster-client`
     */
    String CLIENT_CONFIG_DATA_ID_POSTFIX = "-cc-config";
    /**
     * cs for `cluster-server`
     */
    String SERVER_TRANSPORT_CONFIG_DATA_ID_POSTFIX = "-cs-transport-config";
    String SERVER_FLOW_CONFIG_DATA_ID_POSTFIX = "-cs-flow-config";
    String SERVER_NAMESPACE_SET_DATA_ID_POSTFIX = "-cs-namespace-set";
}
