Documentation ¶
Index ¶
- Variables
- type CheckTag
- type CheckTagListResult
- type CheckTagPostResult
- type ClientCredentials
- type UptimeClient
- func (c *UptimeClient) DeleteCheckTag(ctx context.Context, pk uint) error
- func (c *UptimeClient) GetCheckTag(ctx context.Context, pk uint) (*CheckTag, error)
- func (c *UptimeClient) GetCheckTags(ctx context.Context) ([]CheckTag, error)
- func (c *UptimeClient) NewCheckTag(ctx context.Context, checkTag *CheckTag) (pk uint, err error)
- func (c *UptimeClient) UpdateCheckTag(ctx context.Context, checkTag *CheckTag) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version string CommitHash string )
Functions ¶
This section is empty.
Types ¶
type CheckTag ¶
type CheckTag struct { Pk uint `json:"pk,omitempty"` Url string `json:"url,omitempty"` Name string `json:"tag"` ColorHex string `json:"color_hex"` }
https://uptime.com/api/v1/docs/#/check-tags/get_service_tag_detail
type CheckTagListResult ¶
type CheckTagListResult struct { Count uint `json:"count"` Next *uint `json:"next"` Previous *uint `json:"previous"` Results []CheckTag `json:"results"` }
https://uptime.com/api/v1/docs/#/check-tags/get_servicetaglist
type CheckTagPostResult ¶
type CheckTagPostResult struct { Count uint `json:"count"` Next *uint `json:"next"` Previous *uint `json:"previous"` Results CheckTag `json:"results"` }
https://uptime.com/api/v1/docs/#/check-tags/post_servicetaglist
type ClientCredentials ¶
type UptimeClient ¶
type UptimeClient struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(ctx context.Context, baseUrl, subaccount, token, email, password string) (*UptimeClient, error)
func (*UptimeClient) DeleteCheckTag ¶
func (c *UptimeClient) DeleteCheckTag(ctx context.Context, pk uint) error
func (*UptimeClient) GetCheckTag ¶
func (*UptimeClient) GetCheckTags ¶
func (c *UptimeClient) GetCheckTags(ctx context.Context) ([]CheckTag, error)
func (*UptimeClient) NewCheckTag ¶
func (*UptimeClient) UpdateCheckTag ¶
func (c *UptimeClient) UpdateCheckTag(ctx context.Context, checkTag *CheckTag) error
Click to show internal directories.
Click to hide internal directories.