Overview

Namespaces

  • None
  • OpenCloud
    • Autoscale
      • Resource
    • CloudMonitoring
      • Exception
      • Resource
    • Common
      • Exceptions
      • Log
      • Request
        • Response
    • Compute
    • Database
    • DNS
    • LoadBalancer
      • Resources
    • ObjectStore
      • Resource
    • Orchestration
    • Volume
  • PHP

Classes

  • AbstractResource
  • Account
  • Agent
  • AgentConnection
  • AgentHost
  • AgentHostInfo
  • AgentTarget
  • AgentToken
  • Alarm
  • Changelog
  • Check
  • CheckType
  • Entity
  • Metric
  • Notification
  • NotificationHistory
  • NotificationPlan
  • NotificationType
  • ReadonlyResource
  • View
  • Zone

Interfaces

  • ResourceInterface
  • Overview
  • Namespace
  • Class
  • Tree
  • Download
 1: <?php
 2: 
 3: namespace OpenCloud\CloudMonitoring\Resource;
 4: 
 5: /**
 6:  * Notification class.
 7:  * 
 8:  * @extends AbstractResource
 9:  */
10: class Notification extends AbstractResource implements ResourceInterface
11: {
12:     
13:     public $label;
14:     public $type;
15:     public $details;
16:     
17:     protected static $json_name = false;
18:     protected static $json_collection_name = 'values';
19:     protected static $url_resource = 'notifications';
20:     
21:     protected static $emptyObject = array(
22:         'label',
23:         'type',
24:         'details'
25:     );
26: 
27:     protected static $requiredKeys = array(
28:         'type',
29:         'details'
30:     );
31:     
32:     protected $associatedResources = array(
33:         'NotificationType' => 'NotificationType'
34:     );
35:     
36:     public function baseUrl()
37:     {
38:         return $this->Service()->Url($this->ResourceName());
39:     }
40:     
41:     public function testUrl($debug = false)
42:     {
43:         return $this->Service()->Url('test-notification');
44:     }
45:     
46: }
PHP OpenCloud API API documentation generated by ApiGen 2.8.0