Documentation
¶
Index ¶
- type AccountResponse
- type Client
- func (c Client) CreateGroup(ctx context.Context, req Group) (int, error)
- func (c Client) CreateNotificationAddress(ctx context.Context, req NotificationAddress) (int, error)
- func (c Client) CreateService(ctx context.Context, req Service) (int, error)
- func (c Client) DeleteGroup(ctx context.Context, id int) error
- func (c Client) DeleteNotificationAddress(ctx context.Context, id int) error
- func (c Client) DeleteService(ctx context.Context, id int) error
- func (c Client) OwnerID() int
- func (c Client) ReadGroup(ctx context.Context, id int) (Group, error)
- func (c Client) ReadNotificationAddress(ctx context.Context, id int) (NotificationAddress, error)
- func (c Client) ReadService(ctx context.Context, id int) (Service, error)
- func (c Client) UpdateGroup(ctx context.Context, id int, req Group) error
- func (c Client) UpdateNotificationAddress(ctx context.Context, id int, req NotificationAddress) error
- func (c Client) UpdateService(ctx context.Context, id int, req Service) error
- type CreateGroupResponse
- type CreateNotificationAddressResponse
- type CreateServiceResponse
- type Group
- type NotificationAddress
- type ResourceNotFound
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountResponse ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewBasicAuthClient ¶
func (Client) CreateGroup ¶
func (Client) CreateNotificationAddress ¶
func (Client) CreateService ¶
func (Client) DeleteNotificationAddress ¶
func (Client) ReadNotificationAddress ¶
func (Client) ReadService ¶
func (Client) UpdateGroup ¶
func (Client) UpdateNotificationAddress ¶
type CreateGroupResponse ¶
type CreateGroupResponse struct {
ID int `json:"id"`
}
type CreateNotificationAddressResponse ¶
type CreateNotificationAddressResponse struct {
ID int `json:"id"`
}
type CreateServiceResponse ¶
type CreateServiceResponse struct {
ID int `json:"id"`
}
type NotificationAddress ¶
type ResourceNotFound ¶ added in v0.1.4
type ResourceNotFound struct {
// contains filtered or unexported fields
}
func (ResourceNotFound) Error ¶ added in v0.1.4
func (r ResourceNotFound) Error() string
type Service ¶
type Service struct { TypeID string `json:"type_id"` Name string `json:"name"` Address string `json:"address"` GroupID int `json:"group_id,omitempty"` Interval int `json:"interval"` Description *string `json:"description,omitempty"` IsActive *bool `json:"is_active,omitempty"` NotificationChannelIDs *[]string `json:"notification_channel_ids,omitempty"` NotificationConditionIDs *[]string `json:"notification_condition_ids,omitempty"` NotificationModeID *string `json:"notification_mode_id,omitempty"` RecoveryNotificationModeID *string `json:"recovery_notification_mode_id,omitempty"` ExtendedSettings *map[string]interface{} `json:"extended_settings,omitempty"` OwnerID int `json:"owner_id"` }
Click to show internal directories.
Click to hide internal directories.