Documentation ¶
Overview ¶
Package jobs defines a few cron jobs that can be scheduled to run.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RegionUsage ¶
RegionUsage represents the various resource usage of a region.
type SlackAttachment ¶
type SlackAttachment struct { Fallback string `json:"fallback,omitempty"` Color string `json:"color,omitempty"` PreText string `json:"pretext,omitempty"` AuthorName string `json:"author_name,omitempty"` AuthorLink string `json:"author_link,omitempty"` AuthorIcon string `json:"author_icon,omitempty"` Title string `json:"title,omitempty"` TitleLink string `json:"title_link,omitempty"` Text string `json:"text,omitempty"` Fields []SlackAttachmentField `json:"fields,omitempty"` ImageURL string `json:"image_url,omitempty"` ThumbURL string `json:"thumb_url,omitempty"` TS int64 `json:"ts,omitempty"` }
SlackAttachment defines a slack attachment
type SlackAttachmentField ¶
type SlackAttachmentField struct { Title string `json:"title"` Value string `json:"value"` Short bool `json:"short"` }
SlackAttachmentField defines a slack attachment field
type SlackAttachments ¶
type SlackAttachments struct {
Attacments []SlackAttachment `json:"attachments"`
}
SlackAttachments defines slack attachments
type SlackJob ¶
type SlackJob struct {
// contains filtered or unexported fields
}
SlackJob defines a slack cron job
func NewSlackJob ¶
NewSlackJob creates a new slack cron job.
Click to show internal directories.
Click to hide internal directories.