/
types.go
42 lines (32 loc) · 879 Bytes
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package exporter
import (
"time"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/service/health"
healthTypes "github.com/aws/aws-sdk-go-v2/service/health/types"
"github.com/slack-go/slack"
)
type Metrics struct {
health *health.Client
slackApi *slack.Client
slackToken string
slackChannel string
tz *time.Location
lastScrape time.Time
awsconfig aws.Config
organizationEnabled bool
regions []string
ignoreEvents []string
ignoreResources []string
ignoreResourceEvent []string
accountNames map[string]string
logEvents bool
}
type HealthEvent struct {
Arn *string
AffectedAccounts []string
EventScope healthTypes.EventScopeCode
Event *healthTypes.Event
EventDescription *healthTypes.EventDescription
AffectedResources []healthTypes.AffectedEntity
}