Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateMaintenance(ctx context.Context, m *Maintenance) error
- func (c *Client) DeleteMaintenancesByIDs(ctx context.Context, ids []string) (deletedIDs []string, err error)
- func (c *Client) GetHostGroupsByNamesFullMatch(ctx context.Context, names []string) ([]HostGroup, error)
- func (c *Client) GetHostsByGroupIDs(ctx context.Context, groupIDs []string) ([]Host, error)
- func (c *Client) GetHostsByHostIDs(ctx context.Context, hostIDs []string) ([]Host, error)
- func (c *Client) GetHostsByNamesFullMatch(ctx context.Context, names []string) ([]Host, error)
- func (c *Client) GetMaintenanceByID(ctx context.Context, maintenanceID string) (*Maintenance, error)
- func (c *Client) GetMaintenanceByNameFullMatch(ctx context.Context, name string) (*Maintenance, error)
- func (c *Client) GetMaintenanceIDsByIDs(ctx context.Context, maintenanceIDs []string) ([]string, error)
- func (c *Client) GetMaintenanceIDsByNamesFullMatch(ctx context.Context, names []string) ([]string, error)
- func (c *Client) GetMaintenances(ctx context.Context) ([]Maintenance, error)
- func (c *Client) GetNestedHostGroupsByAncestorNames(ctx context.Context, names []string) ([]HostGroup, error)
- func (c *Client) UpdateMaintenance(ctx context.Context, m *Maintenance) error
- type Host
- type HostGroup
- type Maintenance
- type TimePeriod
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
*zabbix.Client
}
func (*Client) CreateMaintenance ¶
func (c *Client) CreateMaintenance(ctx context.Context, m *Maintenance) error
func (*Client) DeleteMaintenancesByIDs ¶
func (*Client) GetHostGroupsByNamesFullMatch ¶
func (*Client) GetHostsByGroupIDs ¶
func (*Client) GetHostsByHostIDs ¶
func (*Client) GetHostsByNamesFullMatch ¶
func (*Client) GetMaintenanceByID ¶
func (*Client) GetMaintenanceByNameFullMatch ¶
func (*Client) GetMaintenanceIDsByIDs ¶
func (*Client) GetMaintenanceIDsByNamesFullMatch ¶
func (*Client) GetMaintenances ¶
func (c *Client) GetMaintenances(ctx context.Context) ([]Maintenance, error)
func (*Client) GetNestedHostGroupsByAncestorNames ¶ added in v0.8.0
func (*Client) UpdateMaintenance ¶
func (c *Client) UpdateMaintenance(ctx context.Context, m *Maintenance) error
type Host ¶
type Host struct { HostID string `json:"hostid"` Name string `json:"name,omitempty"` MaintenanceFrom string `json:"maintenance_from,omitempty"` MaintenanceStatus string `json:"maintenance_status,omitempty"` MaintenanceType string `json:"maintenance_type,omitempty"` MaintenanceID string `json:"maintenanceid,omitempty"` }
type Maintenance ¶
type Maintenance struct { MaintenaceID string `json:"maintenanceid,omitempty"` Name string `json:"name,omitempty"` ActiveSince string `json:"active_since,omitempty"` ActiveTill string `json:"active_till,omitempty"` Description string `json:"description,omitempty"` MaintenaceType string `json:"maintenance_type,omitempty"` TagsEvalType string `json:"tags_evaltype,omitempty"` Groups []HostGroup `json:"groups"` Hosts []Host `json:"hosts"` TimePeriods []TimePeriod `json:"timeperiods,omitempty"` }
Click to show internal directories.
Click to hide internal directories.