Documentation
¶
Index ¶
- func GetModule() common.Module
- type GetScheduleResponse
- type ListOnCallResponse
- type ListScheduleResponse
- type OpsGenie
- func (m *OpsGenie) GetDescription() string
- func (m *OpsGenie) GetLastRun() string
- func (m *OpsGenie) GetName() string
- func (m *OpsGenie) GetRunInterval() int64
- func (m *OpsGenie) GetRunIntervalOnBattery() int64
- func (m *OpsGenie) GetSlug() string
- func (m *OpsGenie) GetWaybarOutput() (*common.WaybarOutput, error)
- func (m *OpsGenie) IsEnabled() bool
- func (m *OpsGenie) Run() error
- func (m *OpsGenie) RunCommand(name string, args []string) error
- func (m *OpsGenie) SaveLastRun()
- func (m *OpsGenie) SuspendOnBattery() bool
- func (m *OpsGenie) WriteOutput() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GetScheduleResponse ¶
type GetScheduleResponse struct { Data struct { Description string `json:"description"` Enabled bool `json:"enabled"` ID string `json:"id"` Name string `json:"name"` OwnerTeam struct { ID string `json:"id"` Name string `json:"name"` } `json:"ownerTeam"` Rotations []struct { ID string `json:"id"` Length int `json:"length"` Name string `json:"name"` Participants []struct { ID string `json:"id"` Type string `json:"type"` Username string `json:"username"` } `json:"participants"` StartDate time.Time `json:"startDate"` TimeRestriction struct { Restrictions []struct { EndDay string `json:"endDay"` EndHour int `json:"endHour"` EndMin int `json:"endMin"` StartDay string `json:"startDay"` StartHour int `json:"startHour"` StartMin int `json:"startMin"` } `json:"restrictions"` Type string `json:"type"` } `json:"timeRestriction"` Type string `json:"type"` } `json:"rotations"` Timezone string `json:"timezone"` } `json:"data"` RequestId string `json:"requestId"` Took float64 `json:"took"` }
type ListOnCallResponse ¶
type ListScheduleResponse ¶
type ListScheduleResponse struct { Data []struct { Description string `json:"description"` Enabled bool `json:"enabled"` ID string `json:"id"` Name string `json:"name"` OwnerTeam struct { ID string `json:"id"` Name string `json:"name"` } `json:"ownerTeam"` Rotations []interface{} `json:"rotations"` Timezone string `json:"timezone"` } `json:"data"` Expandable []string `json:"expandable"` RequestId string `json:"requestId"` Took float64 `json:"took"` }
type OpsGenie ¶
type OpsGenie struct { Name string Description string Slug string // contains filtered or unexported fields }
func (*OpsGenie) GetDescription ¶
func (*OpsGenie) GetLastRun ¶
func (*OpsGenie) GetRunInterval ¶
func (*OpsGenie) GetRunIntervalOnBattery ¶
func (*OpsGenie) GetWaybarOutput ¶
func (m *OpsGenie) GetWaybarOutput() (*common.WaybarOutput, error)
func (*OpsGenie) SaveLastRun ¶
func (m *OpsGenie) SaveLastRun()
func (*OpsGenie) SuspendOnBattery ¶
func (*OpsGenie) WriteOutput ¶
Click to show internal directories.
Click to hide internal directories.