Documentation
¶
Index ¶
Constants ¶
View Source
const Version = "0.0.1"
Variables ¶
View Source
var ( DefaultMetricNamePrefix = "horenso.report" MetricNameNoramlizeRegexp = regexp.MustCompile(`[^0-9a-zA-Z_-]`) MetricNameTruncateRegexp = regexp.MustCompile(`_{2,}`) )
View Source
var CommandTimeout = 60 * time.Second
View Source
var MaxOutputLength = 1000
View Source
var Revision = "HEAD"
Functions ¶
Types ¶
type Attachment ¶
type Config ¶
type Config struct {
Slack *SlackConfig
Mackerel *MackerelConfig
}
func BuildConfig ¶
func BuildConfig() *Config
type ECSContainerMetadata ¶
type ECSContainerMetadata struct {
DockerID string `json:"DockerId"`
Name string `json:"Name"`
DockerName string `json:"DockerName"`
Image string `json:"Image"`
ImageID string `json:"ImageID"`
Labels map[string]string `json:"Labels"`
DesiredStatus string `json:"DesiredStatus"`
KnownStatus string `json:"KnownStatus"`
Limits struct {
CPU int `json:"CPU"`
Memory int `json:"Memory"`
} `json:"Limits"`
CreatedAt time.Time `json:"CreatedAt"`
StartedAt time.Time `json:"StartedAt"`
Type string `json:"Type"`
Networks []struct {
NetworkMode string `json:"NetworkMode"`
IPv4Addresses []string `json:"IPv4Addresses"`
} `json:"Networks"`
}
type ECSMetadata ¶
type ECSTaskMetadata ¶
type ECSTaskMetadata struct {
Cluster string `json:"Cluster"`
TaskARN string `json:"TaskARN"`
Family string `json:"Family"`
Revision string `json:"Revision"`
DesiredStatus string `json:"DesiredStatus"`
KnownStatus string `json:"KnownStatus"`
Containers []struct {
DockerID string `json:"DockerId"`
Name string `json:"Name"`
DockerName string `json:"DockerName"`
Image string `json:"Image"`
ImageID string `json:"ImageID"`
Labels map[string]string `json:"Labels"`
DesiredStatus string `json:"DesiredStatus"`
KnownStatus string `json:"KnownStatus"`
Limits struct {
CPU int `json:"CPU"`
Memory int `json:"Memory"`
} `json:"Limits"`
CreatedAt time.Time `json:"CreatedAt"`
StartedAt time.Time `json:"StartedAt"`
Type string `json:"Type"`
Networks []struct {
NetworkMode string `json:"NetworkMode"`
IPv4Addresses []string `json:"IPv4Addresses"`
} `json:"Networks"`
} `json:"Containers"`
PullStartedAt time.Time `json:"PullStartedAt"`
PullStoppedAt time.Time `json:"PullStoppedAt"`
}
type MackerelConfig ¶
Click to show internal directories.
Click to hide internal directories.
