1: <?php
2: /**
3: * PHP OpenCloud library.
4: *
5: * @copyright 2013 Rackspace Hosting, Inc. See LICENSE for information.
6: * @license https://www.apache.org/licenses/LICENSE-2.0
7: * @author Glen Campbell <glen.campbell@rackspace.com>
8: * @author Jamie Hannaford <jamie.hannaford@rackspace.com>
9: */
10:
11: namespace OpenCloud\CloudMonitoring\Resource;
12:
13: class NotificationPlan extends AbstractResource
14: {
15: /**
16: * @var string
17: */
18: private $id;
19:
20: /**
21: * @var string Friendly name for the notification plan.
22: */
23: private $label;
24:
25: /**
26: * @var array The notification list to send to when the state is CRITICAL.
27: */
28: private $critical_state;
29:
30: /**
31: * @var array The notification list to send to when the state is OK.
32: */
33: private $ok_state;
34:
35: /**
36: * @var array The notification list to send to when the state is WARNING.
37: */
38: private $warning_state;
39:
40: protected static $json_name = false;
41: protected static $json_collection_name = 'values';
42: protected static $url_resource = 'notification_plans';
43:
44: protected static $requiredKeys = array(
45: 'label'
46: );
47:
48: protected static $emptyObject = array(
49: 'label',
50: 'critical_state',
51: 'ok_state',
52: 'warning_state'
53: );
54:
55: }