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: use OpenCloud\CloudMonitoring\Exception;
 6: 
 7: /**
 8:  * Entity class.
 9:  * 
10:  * @extends AbstractResource
11:  */
12: class Entity extends AbstractResource
13: {
14:     public $id;
15:     public $label;
16:     public $agent_id;
17:     public $ip_addresses;
18:     public $metadata;
19: 
20:     protected static $json_name = false;
21:     protected static $url_resource = 'entities';
22:     protected static $json_collection_name = 'values';
23: 
24:     protected static $emptyObject = array(
25:         'label',
26:         'agent_id',
27:         'ip_addresses',
28:         'metadata'
29:     );
30: 
31:     protected static $requiredKeys = array(
32:         'label'
33:     );
34: 
35:     public function baseUrl()
36:     {
37:         return $this->Parent()->Url($this->ResourceName());
38:     }
39: 
40: }
PHP OpenCloud API API documentation generated by ApiGen 2.8.0