1: <?php
2:
3: namespace OpenCloud\CloudMonitoring\Resource;
4:
5: use OpenCloud\CloudMonitoring\Exception;
6:
7: class NotificationPlan extends AbstractResource implements ResourceInterface
8: {
9: public $label;
10: public $critical_state;
11: public $ok_state;
12: public $warning_state;
13:
14: protected static $json_name = false;
15: protected static $json_collection_name = 'values';
16: protected static $url_resource = 'notification_plans';
17:
18: protected static $requiredKeys = array(
19: 'label'
20: );
21:
22: protected static $emptyObject = array(
23: 'label',
24: 'critical_state',
25: 'ok_state',
26: 'warning_state'
27: );
28:
29: public function baseUrl()
30: {
31: return $this->Service()->Url($this->ResourceName());
32: }
33:
34: }