Documentation ¶
Index ¶
Constants ¶
const ( NegatePatternPrefix = "!" PatternValueSeparator = "=" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlarmCount ¶
type AlarmCount struct { ID string `json:"-"` Client *c8y.Client `json:"-"` Minimum int64 `json:"minimum,omitempty"` Maximum int64 `json:"maximum,omitempty"` FragmentType string `json:"fragmentType,omitempty"` Resolved bool `json:"resolved:omitempty"` Type string `json:"type,omitempty"` Severity string `json:"severity,omitempty"` Status string `json:"status,omitempty"` DateFrom string `json:"dateFrom,omitempty"` DateTo string `json:"dateTo,omitempty"` }
AlarmCount state checker
func (*AlarmCount) Check ¶
func (s *AlarmCount) Check(m interface{}) (done bool, err error)
Check check if inventory managed object and has specific alarm count
func (*AlarmCount) Get ¶
func (s *AlarmCount) Get() (interface{}, error)
Get get current managed object state
func (*AlarmCount) SetValue ¶
func (s *AlarmCount) SetValue(v interface{}) error
type AlarmCountParameters ¶
type EventCount ¶
type EventCount struct { ID string `json:"-"` Client *c8y.Client `json:"-"` Minimum int64 `json:"minimum,omitempty"` Maximum int64 `json:"maximum,omitempty"` FragmentType string `json:"fragmentType,omitempty"` Type string `json:"type,omitempty"` DateFrom string `json:"dateFrom,omitempty"` DateTo string `json:"dateTo,omitempty"` }
EventCount inventory state checker
func (*EventCount) Check ¶
func (s *EventCount) Check(m interface{}) (done bool, err error)
Check check if inventory managed object exists or not
func (*EventCount) Get ¶
func (s *EventCount) Get() (interface{}, error)
Get get current managed object state
func (*EventCount) SetValue ¶
func (s *EventCount) SetValue(v interface{}) error
type EventCountParameters ¶
type InventoryExistance ¶
InventoryExistance inventory existance checker
func (*InventoryExistance) Check ¶
func (s *InventoryExistance) Check(m interface{}) (done bool, err error)
Check check if inventory managed object exists or not
func (*InventoryExistance) Get ¶
func (s *InventoryExistance) Get() (interface{}, error)
Get get current managed object state
func (*InventoryExistance) SetValue ¶
func (s *InventoryExistance) SetValue(v interface{}) error
type InventoryState ¶
InventoryState inventory state checker
func (*InventoryState) Check ¶
func (s *InventoryState) Check(m interface{}) (done bool, err error)
Check check if inventory has the given fragments (or absence of fragments)
func (*InventoryState) Get ¶
func (s *InventoryState) Get() (interface{}, error)
Get get current managed object state
func (*InventoryState) ParseRawPattern ¶
func (s *InventoryState) ParseRawPattern(raw string) (pattern string, valuePattern string, negate bool)
func (*InventoryState) SetValue ¶
func (s *InventoryState) SetValue(v interface{}) error
type MeasurementCount ¶
type MeasurementCount struct { ID string `json:"-"` Client *c8y.Client `json:"-"` Minimum int64 `json:"minimum,omitempty"` Maximum int64 `json:"maximum,omitempty"` Type string `json:"type,omitempty"` ValueFragmentType string `json:"valueFragmentType,omitempty"` ValueFragmentSeries string `json:"valueFragmentSeries,omitempty"` DateFrom string `json:"dateFrom,omitempty"` DateTo string `json:"dateTo,omitempty"` }
MeasurementCount state checker
func (*MeasurementCount) Check ¶
func (s *MeasurementCount) Check(m interface{}) (done bool, err error)
Check check if inventory managed object has specific count of measurements
func (*MeasurementCount) Get ¶
func (s *MeasurementCount) Get() (interface{}, error)
Get get current managed object state
func (*MeasurementCount) SetValue ¶
func (s *MeasurementCount) SetValue(v interface{}) error
type OperationCount ¶
type OperationCount struct { ID string `json:"-"` Client *c8y.Client `json:"-"` Minimum int64 `json:"minimum,omitempty"` Maximum int64 `json:"maximum,omitempty"` FragmentType string `json:"fragmentType,omitempty"` BulkOperationId string `json:"bulkOperationId,omitempty"` Status string `json:"status,omitempty"` DateFrom string `json:"dateFrom,omitempty"` DateTo string `json:"dateTo,omitempty"` }
OperationCount inventory state checker
func (*OperationCount) Check ¶
func (s *OperationCount) Check(m interface{}) (done bool, err error)
Check check if inventory managed object exists or not
func (*OperationCount) Get ¶
func (s *OperationCount) Get() (interface{}, error)
Get get current managed object state
func (*OperationCount) SetValue ¶
func (s *OperationCount) SetValue(v interface{}) error
type OperationState ¶
OperationState operation state checker
func (*OperationState) Check ¶
func (s *OperationState) Check(m interface{}) (done bool, err error)
Check check if operation has reached its expected status
func (*OperationState) Get ¶
func (s *OperationState) Get() (interface{}, error)
Get get the current operation state
func (*OperationState) SetValue ¶
func (s *OperationState) SetValue(v interface{}) error