1 karl 1.4 //%2005////////////////////////////////////////////////////////////////////////
|
2 kumpf 1.1 //
|
3 karl 1.3 // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
4 // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
5 // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
|
6 kumpf 1.1 // IBM Corp.; EMC Corporation, The Open Group.
|
7 karl 1.3 // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
8 // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
|
9 karl 1.4 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
10 // EMC Corporation; VERITAS Software Corporation; The Open Group.
|
11 kumpf 1.1 //
12 // Permission is hereby granted, free of charge, to any person obtaining a copy
13 // of this software and associated documentation files (the "Software"), to
14 // deal in the Software without restriction, including without limitation the
15 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
16 // sell copies of the Software, and to permit persons to whom the Software is
17 // furnished to do so, subject to the following conditions:
18 //
19 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
20 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
21 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
22 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
23 // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
24 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
25 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 //
28 //==============================================================================
29 //
30 // Author: Carol Ann Krug Graves, Hewlett-Packard Company
31 // (carolann_graves@hp.com)
32 kumpf 1.1 //
|
33 yi.zhou 1.5 // Modified By: Yi Zhou, Hewlett-Packard Company (yi.zhou@hp.com)
|
34 kumpf 1.1 //
35 //%/////////////////////////////////////////////////////////////////////////////
36
37 #ifndef Pegasus_IndicationConstants_h
38 #define Pegasus_IndicationConstants_h
39
40 #include <Pegasus/Common/Config.h>
41 #include <Pegasus/Common/CIMName.h>
42
43 PEGASUS_NAMESPACE_BEGIN
44
45 /**
46 Values for the Subscription State property of the Subscription class,
47 as defined in the CIM Events MOF
48 */
49 enum SubscriptionState {_STATE_UNKNOWN = 0, _STATE_OTHER = 1,
50 _STATE_ENABLED = 2, _STATE_ENABLEDDEGRADED = 3, _STATE_DISABLED = 4};
51
52 /**
53 Values for the Repeat Notification Policy property of the Subscription
54 class, as defined in the CIM Events MOF
55 kumpf 1.1 */
56 enum RepeatNotificationPolicy {_POLICY_UNKNOWN = 0, _POLICY_OTHER = 1,
57 _POLICY_NONE = 2, _POLICY_SUPPRESS = 3, _POLICY_DELAY = 4};
58
59 /**
60 Values for the On Fatal Error Policy property of the Subscription
61 class, as defined in the CIM Events MOF
62 */
63 enum OnFatalErrorPolicy {_ERRORPOLICY_OTHER = 1, _ERRORPOLICY_IGNORE = 2,
64 _ERRORPOLICY_DISABLE = 3, _ERRORPOLICY_REMOVE = 4};
65
66 /**
67 Values for the Persistence Type property of the Handler class,
68 as defined in the CIM Events MOF
69 */
70 enum PersistenceType {_PERSISTENCE_OTHER = 1, _PERSISTENCE_PERMANENT = 2,
71 _PERSISTENCE_TRANSIENT = 3};
72
73 /**
74 Values for the Perceived Severity property of the Alert Indication
75 class, as defined in the CIM Events MOF
76 kumpf 1.1 */
77 enum PerceivedSeverity {_SEVERITY_UNKNOWN = 0, _SEVERITY_OTHER = 1,
78 _SEVERITY_INFORMATION = 2, _SEVERITY_WARNING = 3, _SEVERITY_MINOR = 4,
79 _SEVERITY_MAJOR = 5, _SEVERITY_CRITICAL = 6, _SEVERITY_FATAL = 7};
80
81 /**
82 Values for the Probable Cause property of the Alert Indication
83 class, as defined in the CIM Events MOF
84 Note: not all possible values have been included
85 */
86 enum ProbableCause {_CAUSE_UNKNOWN = 0, _CAUSE_OTHER = 1};
87
88 /**
89 Values for the Alert Type property of the Alert Indication class,
90 as defined in the CIM Events MOF
91 */
92 enum AlertType {_TYPE_OTHER = 1, _TYPE_COMMUNICATIONS = 2, _TYPE_QOS = 3,
93 _TYPE_PROCESSING = 4, _TYPE_DEVICE = 5, _TYPE_ENVIRONMENTAL = 6,
94 _TYPE_MODELCHANGE = 7, _TYPE_SECURITY = 8};
95
96 //
97 kumpf 1.1 // Class names
98 //
99
100 /**
101 The name of the CIMOM Shutdown alert indication class
102 */
103 //
104 // ATTN: Update once CimomShutdownAlertIndication has been defined
105 //
106 static const CIMName _CLASS_CIMOM_SHUTDOWN_ALERT =
107 CIMName ("CIM_AlertIndication");
108
109 /**
110 The name of the No Provider alert indication class
111 */
112 //
113 // ATTN: Update once NoProviderAlertIndication has been defined
114 //
115 static const CIMName _CLASS_NO_PROVIDER_ALERT = CIMName ("CIM_AlertIndication");
116
117 /**
118 kumpf 1.1 The name of the CIMOM shutdown alert indication class
119 */
120 //
121 // ATTN: Update once ProviderTerminatedAlertIndication has been defined
122 //
123 static const CIMName _CLASS_PROVIDER_TERMINATED_ALERT =
124 CIMName ("CIM_AlertIndication");
125
126
127 //
128 // Property names
129 //
130
131 /**
|
132 kumpf 1.2 The name of the Filter reference property for indication subscription class
|
133 kumpf 1.1 */
134 static const CIMName _PROPERTY_FILTER = CIMName ("Filter");
135
136 /**
|
137 kumpf 1.2 The name of the Handler reference property for indication subscription class
|
138 kumpf 1.1 */
139 static const CIMName _PROPERTY_HANDLER = CIMName ("Handler");
140
141 /**
|
142 kumpf 1.2 The name of the Subscription State property for indication subscription
|
143 kumpf 1.1 class
144 */
145 static const CIMName _PROPERTY_STATE = CIMName ("SubscriptionState");
146
147 /**
148 The name of the Other Subscription State property for Indication
149 Subscription class
150 */
151 static const CIMName _PROPERTY_OTHERSTATE = CIMName ("OtherSubscriptionState");
152
153 /**
|
154 kumpf 1.2 The name of the Repeat Notification Policy property for indication
|
155 kumpf 1.1 subscription class
156 */
157 static const CIMName _PROPERTY_REPEATNOTIFICATIONPOLICY =
158 CIMName ("RepeatNotificationPolicy");
159
160 /**
|
161 kumpf 1.2 The name of the Other Repeat Notification Policy property for
|
162 kumpf 1.1 indication subscription class
163 */
164 static const CIMName _PROPERTY_OTHERREPEATNOTIFICATIONPOLICY =
165 CIMName ("OtherRepeatNotificationPolicy");
166
167 /**
168 The name of the On Fatal Error Policy property for Indication Subscription
169 class
170 */
171 static const CIMName _PROPERTY_ONFATALERRORPOLICY =
172 CIMName ("OnFatalErrorPolicy");
173
174 /**
175 The name of the Other On Fatal Error Policy property for Indication
176 Subscription class
177 */
178 static const CIMName _PROPERTY_OTHERONFATALERRORPOLICY =
179 CIMName ("OtherOnFatalErrorPolicy");
180
181 /**
|
182 kumpf 1.2 The name of the Failure Trigger Time Interval property for Indication
183 Subscription class
184 */
185 static const CIMName _PROPERTY_FAILURETRIGGERTIMEINTERVAL =
186 CIMName ("FailureTriggerTimeInterval");
187
188 /**
|
189 kumpf 1.1 The name of the Time Of Last State Change property for Indication
190 Subscription class
191 */
192 static const CIMName _PROPERTY_LASTCHANGE = CIMName ("TimeOfLastStateChange");
193
194 /**
195 The name of the Subscription Start Time property for Indication
196 Subscription class
197 */
198 static const CIMName _PROPERTY_STARTTIME = CIMName ("SubscriptionStartTime");
199
200 /**
201 The name of the Subscription Duration property for Indication
202 Subscription class
203 */
204 static const CIMName _PROPERTY_DURATION = CIMName ("SubscriptionDuration");
205
206 /**
207 The name of the Subscription Time Remaining property for Indication
208 Subscription class
209 */
210 kumpf 1.1 static const CIMName _PROPERTY_TIMEREMAINING =
211 CIMName ("SubscriptionTimeRemaining");
212
213 /**
|
214 kumpf 1.2 The name of the Repeat Notification Interval property for indication
215 subscription class
216 */
217 static const CIMName _PROPERTY_REPEATNOTIFICATIONINTERVAL =
218 CIMName ("RepeatNotificationInterval");
219
220 /**
221 The name of the Repeat Notification Gap property for indication
222 subscription class
223 */
224 static const CIMName _PROPERTY_REPEATNOTIFICATIONGAP =
225 CIMName ("RepeatNotificationGap");
226
227 /**
228 The name of the Repeat Notification Count property for indication
229 subscription class
230 */
231 static const CIMName _PROPERTY_REPEATNOTIFICATIONCOUNT =
232 CIMName ("RepeatNotificationCount");
233
234 /**
235 kumpf 1.2 The name of the Query property for indication filter class
|
236 kumpf 1.1 */
237 static const CIMName _PROPERTY_QUERY = CIMName ("Query");
238
239 /**
|
240 kumpf 1.2 The name of the Query Language property for indication filter class
|
241 kumpf 1.1 */
242 static const CIMName _PROPERTY_QUERYLANGUAGE = CIMName ("QueryLanguage");
243
244 /**
245 The name of the Source Namespace property for indication filter class
246 */
247 static const CIMName _PROPERTY_SOURCENAMESPACE = CIMName ("SourceNamespace");
248
249 /**
|
250 kumpf 1.2 The name of the Name property for indication filter and indications handler classes
|
251 kumpf 1.1 */
252 static const CIMName _PROPERTY_NAME = CIMName ("Name");
253
254 /**
|
255 kumpf 1.2 The name of the Creation Class Name property for indication filter and
|
256 kumpf 1.1 indications handler classes
257 */
258 static const CIMName _PROPERTY_CREATIONCLASSNAME =
259 CIMName ("CreationClassName");
260
261 /**
|
262 kumpf 1.2 The name of the System Name property for indication filter and indications
|
263 kumpf 1.1 handler classes
264 */
265 static const CIMName _PROPERTY_SYSTEMNAME = CIMName ("SystemName");
266
267 /**
|
268 kumpf 1.2 The name of the System Creation Class Name property for indication filter
|
269 kumpf 1.1 and indications handler classes
270 */
271 static const CIMName _PROPERTY_SYSTEMCREATIONCLASSNAME =
272 CIMName ("SystemCreationClassName");
273
274 /**
275 The name of the Persistence Type property for Indication Handler class
276 */
277 static const CIMName _PROPERTY_PERSISTENCETYPE = CIMName ("PersistenceType");
278
279 /**
280 The name of the Other Persistence Type property for Indication Handler
281 class
282 */
283 static const CIMName _PROPERTY_OTHERPERSISTENCETYPE =
284 CIMName ("OtherPersistenceType");
285
286 /**
|
287 kumpf 1.2 The name of the Owner property for Indication Handler class
288 */
289 static const CIMName _PROPERTY_OWNER = CIMName ("Owner");
290
291 /**
292 The name of the TargetHostFormat property for SNMP Mapper Indication
293 Handler subclass
|
294 kumpf 1.1 */
295 static const CIMName _PROPERTY_TARGETHOSTFORMAT = CIMName ("TargetHostFormat");
296
297 /**
|
298 kumpf 1.2 The name of the SNMP Version property for SNMP Mapper Indication Handler
299 subclass
|
300 kumpf 1.1 */
301 static const CIMName _PROPERTY_SNMPVERSION = CIMName ("SNMPVersion");
|
302 kumpf 1.2
303 /**
304 The name of the Port Number property for SNMP Mapper Indication Handler
305 subclass
306 */
307 static const CIMName _PROPERTY_PORTNUMBER = CIMName ("PortNumber");
308
309 /**
310 The name of the SNMP Security Name property for SNMP Mapper Indication
311 Handler subclass
312 */
313 static const CIMName _PROPERTY_SNMPSECURITYNAME = CIMName ("SNMPSecurityName");
314
315 /**
316 The name of the SNMP Engine ID property for SNMP Mapper Indication Handler
317 subclass
318 */
319 static const CIMName _PROPERTY_SNMPENGINEID = CIMName ("SNMPEngineID");
|
320 kumpf 1.1
321 /**
|
322 yi.zhou 1.6 The name of the MailTo property for Email Handler subclass
323 */
324 static const CIMName PEGASUS_PROPERTYNAME_LSTNRDST_MAILTO =
325 CIMName ("MailTo");
326
327 /**
328 The name of the MailSubject property for Email Handler subclass
329 */
330 static const CIMName PEGASUS_PROPERTYNAME_LSTNRDST_MAILSUBJECT =
331 CIMName ("MailSubject");
332
333 /**
334 The name of the MailCc property for Email Handler subclass
335 */
336 static const CIMName PEGASUS_PROPERTYNAME_LSTNRDST_MAILCC =
337 CIMName ("MailCc");
338
339 /**
|
340 kumpf 1.1 The name of the Alert Type property for Alert Indication class
341 */
342 static const CIMName _PROPERTY_ALERTTYPE = CIMName ("AlertType");
343
344 /**
345 The name of the Other Alert Type property for Alert Indication class
346 */
347 static const CIMName _PROPERTY_OTHERALERTTYPE = CIMName ("OtherAlertType");
348
349 /**
350 The name of the Perceived Severity property for Alert Indication class
351 */
352 static const CIMName _PROPERTY_PERCEIVEDSEVERITY =
353 CIMName ("PerceivedSeverity");
354
355 /**
356 The name of the Probable Cause property for Alert Indication class
357 */
358 static const CIMName _PROPERTY_PROBABLECAUSE = CIMName ("ProbableCause");
359
360 //
361 kumpf 1.1 // Qualifier names
362 //
363
364 /**
365 The name of the Indication qualifier for classes
366 */
367 static const CIMName _QUALIFIER_INDICATION = CIMName ("INDICATION");
368
369
370 //
371 // Other literal values
372 //
373
374 /**
375 The WHERE keyword in WQL
376 */
377 static const char _QUERY_WHERE [] = "WHERE";
378
379 /**
380 A zero value CIMDateTime interval
381 */
382 kumpf 1.1 static const char _ZERO_INTERVAL_STRING [] = "00000000000000.000000:000";
383
384 PEGASUS_NAMESPACE_END
385
386 #endif /* Pegasus_IndicationConstants_h */
|