healthevent

package
v0.0.0-...-549b877 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AffectedEntity

type AffectedEntity struct {
	EntityValue     string `json:"entityValue"`
	LastUpdatedTime *Time  `json:"lastUpdatedtime"`
	Status          string `json:"status"`
}

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 EventDescriptionRow struct {
	Language          string `json:"language"`
	LatestDescription string `json:"latestDescription"`
}

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 = "-"
)

type Time

type Time struct {
	time.Time
}

func (*Time) UnmarshalJSON

func (t *Time) UnmarshalJSON(b []byte) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL