Describes an observer which will control observability activity in the Toolstack
Prototyped in:
XAPI 23.14.0 (23.14.0)
Fields
Prototype
(string → string) mapattributes[RO/constructor]
Attributes that observer will add to the data they produce
Default value:
{}
Prototyped in:
XAPI 23.14.0 (23.14.0)
Prototype
string setcomponents[RO/constructor]
The list of xenserver components the observer will broadcast. An empty list means all components
Default value:
{}
Prototyped in:
XAPI 23.14.0 (23.14.0)
Prototype
boolenabled[RO/constructor]
This denotes if the observer is enabled. true if it is enabled and false if it is disabled
Default value:
false
Prototyped in:
XAPI 23.14.0 (23.14.0)
Prototype
string setendpoints[RO/constructor]
The list of endpoints where data is exported to. Each endpoint is a URL or the string 'bugtool' refering to the internal logs
Default value:
{}
Prototyped in:
XAPI 23.14.0 (23.14.0)
Prototype
host ref sethosts[RO/constructor]
The list of hosts the observer is active on. An empty list means all hosts
Default value:
{}
Prototyped in:
XAPI 23.14.0 (23.14.0)
stringname_description[RW]
a notes field containing human-readable description
Default value:
""
Published in:
XenServer 4.0 (rio)
stringname_label[RW]
a human-readable name
Default value:
""
Published in:
XenServer 4.0 (rio)
Prototype
stringuuid[RO/runtime]
Unique identifier/object reference
Prototyped in:
XAPI 23.14.0 (23.14.0)
Messages
Prototype
Observer refcreate(session ref, Observer record)
Create a new Observer instance, and return its handle.
The constructor args are: name_label, name_description, hosts, attributes, endpoints, components, enabled (* = non-optional).
Parameters:
session ref session_id
Reference to a valid session
Observer record args
All constructor arguments
Minimum role:
pool-admin
Result:
reference to the newly created object
Prototyped in:
XAPI 23.14.0 (23.14.0)
Prototype
voiddestroy(session ref, Observer ref)
Destroy the specified Observer instance.
Parameters:
session ref session_id
Reference to a valid session
Observer ref self
reference to the object
Minimum role:
pool-admin
Prototyped in:
XAPI 23.14.0 (23.14.0)
Prototype
Observer ref setget_all(session ref)
Return a list of all the Observers known to the system.