Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AffectedEntity ¶
type Detail ¶
type Detail struct {
EventArn string `json:"eventArn"`
Service string `json:"service"`
EventTypeCode string `json:"eventTypeCode"`
EventTypeCategory EventTypeCategory `json:"eventTypeCategory"`
EventScopeCode EventScopeCode `json:"eventScopeCode"`
CommunicationID string `json:"communicationId"`
StartTime *Time `json:"startTime"`
EndTime *Time `json:"endTime"`
LastUpdatedTime *Time `json:"lastUpdatedTime"`
StatusCode StatusCode `json:"statusCode"`
EventRegion string `json:"eventRegion"`
EventDescription []*EventDescriptionRow `json:"eventDescription"`
EventMetadata map[string]string `json:"eventMetadata"`
AffectedEntities []*AffectedEntity `json:"affectedEntities"`
Page string `json:"page"`
TotalPages string `json:"totalPages"`
AffectedAccount string `json:"affectedAccount"`
}
https://docs.aws.amazon.com/health/latest/ug/cloudwatch-events-health.html#aws-health-event-schema
func ParseDetail ¶
func ParseDetail(e events.CloudWatchEvent) (*Detail, error)
type EventDescriptionRow ¶
type EventScopeCode ¶
type EventScopeCode string
const ( EventScopeCodeAccountSpecific EventScopeCode = "ACCOUNT_SPECIFIC" EventScopeCodePublic EventScopeCode = "PUBLIC" )
type EventTypeCategory ¶
type EventTypeCategory string
const ( EventTypeCategoryIssue EventTypeCategory = "issue" EventTypeCategoryAccountNotification EventTypeCategory = "accountNotification" EventTypeCategoryInvestigation EventTypeCategory = "investigation" EventTypeCategoryScheduledChange EventTypeCategory = "scheduledChange" )
type StatusCode ¶
type StatusCode string
const ( StatusCodeIssueOpen StatusCode = "open" StatusCodeIssueClosed StatusCode = "closed" StatusCodeIssueUpcoming StatusCode = "upcoming" StatusCodeScheduledChangesUpcoming StatusCode = "Upcoming" StatusCodeScheduledChangesOngoing StatusCode = "Ongoing" StatusCodeScheduledChangesCompleted StatusCode = "Completed" StatusCodeUndefined StatusCode = "-" )
Click to show internal directories.
Click to hide internal directories.