Add module holms-actions code
[holmes/common.git] / holmes-actions / src / main / java / org / openo / holmes / common / constant / AlarmConst.java
1 /**\r
2  * Copyright 2017 ZTE Corporation.\r
3  *\r
4  * Licensed under the Apache License, Version 2.0 (the "License");\r
5  * you may not use this file except in compliance with the License.\r
6  * You may obtain a copy of the License at\r
7  *\r
8  *     http://www.apache.org/licenses/LICENSE-2.0\r
9  *\r
10  * Unless required by applicable law or agreed to in writing, software\r
11  * distributed under the License is distributed on an "AS IS" BASIS,\r
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
13  * See the License for the specific language governing permissions and\r
14  * limitations under the License.\r
15  */\r
16 package org.openo.holmes.common.constant;\r
17 \r
18 public interface AlarmConst {\r
19 \r
20     public static final String MQ_QUEUE_NAME_EMF_UP = "queue://zenap/fm/emf_up";\r
21 \r
22     public static final String MQ_TOPIC_NAME_EMF_DOWN = "topic://zenap/fm/emf_down";\r
23 \r
24     public static final String MQ_TOPIC_NAME_NORTH_UP = "topic://zenap/fm/north_up";\r
25 \r
26     public static final String MQ_TOPIC_NAME_ALARM_RULE = "topic://zenap/fm/alarm_rule";\r
27 \r
28     public static final String INTERNAL_MQ_QUEUE_NAME_HISTORY_ALARM_2_DB = "queue://zenap/fm/historyalarm2DB";\r
29 \r
30     public static final String MQ_SELECTOR_KEY = "nf";\r
31 \r
32     public static final String MQ_EMF_DOWN_MSG_FILTER_KEY = "type";\r
33 \r
34     public static final String MQ_EMF_UP_MSG_FILTER_KEY = "type";\r
35 \r
36     public static final String INTERNAL_MQ_EMF_UP_ACKALARM_MSG_FILTER_VALUE = "ACK";\r
37 \r
38     public static final String MQ_EMF_DOWN_CLEARALARM_MSG_FILTER_VALUE = "CLEAR";\r
39 \r
40     public static final String MQ_EMF_UP_CLEARALARM_MSG_FILTER_VALUE = "CLEAR";\r
41 \r
42     public static final String MQ_EMF_UP_CHANGEALARM_MSG_FILTER_VALUE = "CHANGE";\r
43 \r
44     public static final String MQ_EMF_UP_RAISEALARM_MSG_FILTER_VALUE = "RAISE";\r
45 \r
46     public static final String INTERNAL_MQ_CLEARALARM_2_DB_FILTER_VALUE = "CLEAR";\r
47 \r
48     public static final String COMETD_MESSAGE_TOPIC = "cometd2Client";\r
49 \r
50     public static final String COMETD_MESSAGE_CHANEL = "/broadcast_channel/alarm_cometd_chanel";\r
51 \r
52     public static final String COMETD_NF_COUNTER_CHANEL = "/nf_counter_cometd_chanel";\r
53 \r
54     public static final String COMETD_PROMPTING_RULE_CHANEL = "/prompting_rule_cometd_chanel";\r
55 \r
56     public static final String COMETD_MASK_RULE_MESSAGE_FILTER_KEY = "mask_rule";\r
57 \r
58     public static final String COMETD_CLEAR_ALARM_MESSAGE_FILTER_KEY = "clear_alarm";\r
59 \r
60     public static final String COMETD_ACK_ALARM_MESSAGE_FILTER_KEY = "ack_alarm";\r
61 \r
62     public static final String COMETD_HISTORY_ALARM_ACK_STATE_MESSAGE_FILTER_KEY = "history_alarm_ack";\r
63 \r
64     public static final String CACHE_ACTIVE_ALARM_KEY = "TAG_ACTIVE_ALARM";\r
65 \r
66     public static final String CACHE_ALARM_CODE_KEY = "TAG_ALARM_CODE";\r
67 \r
68     public static final String CACHE_ALARM_RESTYPE_AND_RESVERSION_KEY = "TAG_ALARM_RESTYPE_AND_RESVERSION";\r
69 \r
70     public static final String CACHE_ALARM_REASON_KEY = "TAG_ALARM_REASON";\r
71 \r
72     public static final String CACHE_ALARM_MAIN_KEY = "TAG_ALARM_MAIN";\r
73 \r
74     public static final short STATUS_ENABLE = 0;\r
75 \r
76     public static final short STATUS_DISABLE = 1;\r
77 \r
78     public static final short STATUS_DELETED = 2;\r
79 \r
80     public static final short UNDEFINE_LEVEL = 0;\r
81 \r
82     public static final short CRITICA_LEVEL = 1;\r
83 \r
84     public static final short MAJOR_LEVEL = 2;\r
85 \r
86     public static final short MINOR_LEVEL = 3;\r
87 \r
88     public static final short WARNING_LEVEL = 4;\r
89 \r
90     public static final String I18N_EN = "en";\r
91 \r
92     public static final String I18N_ZH = "zh";\r
93 \r
94     public static final String ZH_CN = "zh_CN";\r
95 \r
96     public static final String EN_US = "en_US";\r
97 \r
98     public static final String EXECUTE_TIMER = "0 0 0 */1 * ? ";\r
99 \r
100     public static final String COMMON_EM_RESTYPE = "common_em";\r
101 \r
102     public static final String EM_LOCATION = "em";\r
103 \r
104     public static final String BASE_MOC = "em";\r
105 \r
106     public static final String SYSTEM_ID = "SystemId";\r
107 \r
108     public static final String ADMIN = "admin";\r
109 \r
110     public static final long UNDEFINE_ALARM_CODE = -1;\r
111 \r
112     // for rule code\r
113     public static final long FORWARD_FAILED_ALARM_CODE = 1028L;\r
114 \r
115     public static long ACTIVE_PERSISTING_RULE_CODE = 1017L;\r
116     public static long UNACKNOWLEDGED_PERSISTING_RULE_CODE = 1018L;\r
117 }\r