Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Check ¶
type Check struct { Template string Name string `json:"name"` IsUp bool `json:"isUp"` ResponseTimeInMS int64 `json:"responseTime"` Scheme string `json:"scheme"` IPResolves []string `json:"ipResolves"` SSL CheckSSL `json:"ssl"` ICMP CheckICMP `json:"icmp"` }
func (Check) ToMarkdown ¶
func (m Check) ToMarkdown(ctx *appcontext.AppContext) string
type CheckSSL ¶
type CheckSSL struct { ExpireAt *TimeResponse `json:"expireAt"` Issuer string `json:"issuer"` }
type Monitor ¶
type Monitor struct { Code string `json:"code"` Type string `json:"type"` Target string `json:"target"` Interval int `json:"interval"` CreatedAt *TimeResponse `json:"createdAt"` }
type Stats ¶
type Stats struct { Monitor Monitor `json:"monitor"` ResponseTime *HealthCheckRecordResponseTimeMetrics `json:"responseTime"` Chart []HealthCheckRecordResponseTimeChartData `json:"chart"` ChartImageName string `json:"-"` }
func (Stats) ToMarkdown ¶
func (m Stats) ToMarkdown(ctx *appcontext.AppContext) string
type TimeResponse ¶
func NewTimeResponse ¶
func NewTimeResponse(t time.Time) *TimeResponse
func (*TimeResponse) FormatISODate ¶
func (t *TimeResponse) FormatISODate() string
func (*TimeResponse) FormatYYYYMMDD ¶
func (t *TimeResponse) FormatYYYYMMDD() string
func (*TimeResponse) MarshalJSON ¶
func (t *TimeResponse) MarshalJSON() ([]byte, error)
func (*TimeResponse) UnmarshalJSON ¶
func (t *TimeResponse) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.