Documentation ¶
Index ¶
- Variables
- type Manager
- func (m Manager) AcknowledgeAlarm(ctx context.Context, alarm types.ManagedObjectReference, ...) error
- func (m Manager) CreateAlarm(ctx context.Context, entity object.Reference, spec types.BaseAlarmSpec) (*types.ManagedObjectReference, error)
- func (m Manager) GetAlarm(ctx context.Context, entity object.Reference) ([]mo.Alarm, error)
- func (m Manager) GetStateInfo(ctx context.Context, entity object.Reference, opts StateInfoOptions) ([]StateInfo, error)
- type StateInfo
- type StateInfoOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var Severity = map[types.ManagedEntityStatus]string{ types.ManagedEntityStatusGray: "Unknown", types.ManagedEntityStatusGreen: "Normal", types.ManagedEntityStatusYellow: "Warning", types.ManagedEntityStatusRed: "Alert", }
Functions ¶
This section is empty.
Types ¶
type Manager ¶
func GetManager ¶
GetManager wraps NewManager, returning ErrNotSupported when the client is not connected to a vCenter instance.
func NewManager ¶
func (Manager) AcknowledgeAlarm ¶
func (Manager) CreateAlarm ¶
func (m Manager) CreateAlarm(ctx context.Context, entity object.Reference, spec types.BaseAlarmSpec) (*types.ManagedObjectReference, error)
func (Manager) GetStateInfo ¶
func (m Manager) GetStateInfo(ctx context.Context, entity object.Reference, opts StateInfoOptions) ([]StateInfo, error)
GetStateInfo combines AlarmState with Alarm.Info
type StateInfo ¶
type StateInfo struct { types.AlarmState Info *types.AlarmInfo `json:"name,omitempty"` Path string `json:"path,omitempty"` Event types.BaseEvent `json:"event,omitempty"` }
StateInfo combines AlarmState with Alarm.Info
type StateInfoOptions ¶
StateInfoOptions for the GetStateInfo method
Click to show internal directories.
Click to hide internal directories.