{"modulePath":"github.com/devopsext/events","version":"v0.6.20","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package processor\n\n## Variables\n\n```go\nvar ErrorEventDefinitelySkip = errPkg.New(\"vcenter event for trash only\")\n```\n\n```go\nvar ErrorEventNotImpemented = errPkg.New(\"vcenter event not implemented yet\")\n```\n\n## Functions\n\n```go\nfunc AWSProcessorType() string\n```\n\n```go\nfunc AlertmanagerProcessorType() string\n```\n\n```go\nfunc CloudflareProcessorType() string\n```\n\n```go\nfunc CustomJsonProcessorType() string\n```\n\n```go\nfunc DataDogProcessorType() string\n```\n\n```go\nfunc GitlabProcessorType() string\n```\n\n```go\nfunc GoogleProcessorType() string\n```\n\n```go\nfunc K8sProcessorType() string\n```\n\n```go\nfunc KubeProcessorType() string\n```\n\n```go\nfunc NomadProcessorType() string\n```\n\n```go\nfunc ObserviumEventProcessorType() string\n```\n\n```go\nfunc RancherProcessorType() string\n```\n\n```go\nfunc Site24x7ProcessorType() string\n```\n\n```go\nfunc TeamcityProcessorType() string\n```\n\n```go\nfunc VCenterProcessorType() string\n```\n\n```go\nfunc WinEventProcessorType() string\n```\n\n```go\nfunc ZabbixProcessorType() string\n```\n\n## Types\n\n```go\ntype AWSProcessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewAWSProcessor(outputs *common.Outputs, observability *common.Observability) *AWSProcessor\n```\n\n```go\nfunc (p *AWSProcessor) EventType() string\n```\n\n```go\nfunc (p *AWSProcessor) HandleEvent(e *common.Event) error\n```\n\n```go\nfunc (p *AWSProcessor) HandleHttpRequest(w http.ResponseWriter, r *http.Request) error\n```\n\n```go\ntype AWSRequest struct {\n\tVersion    string      `json:\"version\"`\n\tSource     string      `json:\"source\"`\n\tAccount    string      `json:\"account\"`\n\tTime       time.Time   `json:\"time\"`\n\tRegion     string      `json:\"region\"`\n\tDetailType string      `json:\"detail-type,omitempty\"`\n\tDetail     interface{} `json:\"detail,omitempty\"`\n}\n```\n\n```go\ntype AWSResponse struct {\n\tMessage string\n}\n```\n\n```go\ntype AlertmanagerProcessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewAlertmanagerProcessor(outputs *common.Outputs, observability *common.Observability) *AlertmanagerProcessor\n```\n\n```go\nfunc (p *AlertmanagerProcessor) EventType() string\n```\n\n```go\nfunc (p *AlertmanagerProcessor) HandleEvent(e *common.Event) error\n```\n\n```go\nfunc (p *AlertmanagerProcessor) HandleHttpRequest(w http.ResponseWriter, r *http.Request) error\n```\n\n```go\ntype AlertmanagerResponse struct {\n\tMessage string\n}\n```\n\n```go\ntype CloudflareProcessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCloudflareProcessor(outputs *common.Outputs, observability *common.Observability) *CloudflareProcessor\n```\n\n```go\nfunc (p *CloudflareProcessor) EventType() string\n```\n\n```go\nfunc (p *CloudflareProcessor) HandleEvent(e *common.Event) error\n```\n\n```go\nfunc (p *CloudflareProcessor) HandleHttpRequest(w http.ResponseWriter, r *http.Request) error\n```\n\n```go\ntype CloudflareRequest struct {\n\tText string `json:\"text\"`\n}\n```\n\n```go\ntype CloudflareResponse struct {\n\tMessage string\n}\n```\n\n```go\ntype CustomJsonProcessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewCustomJsonProcessor(outputs *common.Outputs, observability *common.Observability) *CustomJsonProcessor\n```\n\n```go\nfunc (p *CustomJsonProcessor) EventType() string\n```\n\n```go\nfunc (p *CustomJsonProcessor) HandleEvent(e *common.Event) error\n```\n\n```go\nfunc (p *CustomJsonProcessor) HandleHttpRequest(w http.ResponseWriter, r *http.Request) error\n```\n\n```go\ntype CustomJsonResponse struct {\n\tMessage string\n}\n```\n\n```go\ntype DataDogAlert struct {\n\tID         string `json:\"id\"`\n\tMetric     string `json:\"metric\"`\n\tPriority   string `json:\"priority\"`\n\tQuery      string `json:\"query\"`\n\tScope      string `json:\"scope,omitempty\"`\n\tStatus     string `json:\"status\"`\n\tTitle      string `json:\"title\"`\n\tTransition string `json:\"transition\"`\n\tType       string `json:\"type\"`\n}\n```\n\n```go\ntype DataDogEvent struct {\n\tType  string `json:\"type\"`\n\tMsg   string `json:\"msg\"`\n\tTitle string `json:\"title\"`\n}\n```\n\n```go\ntype DataDogIncident struct {\n\tTitle string `json:\"title\"`\n}\n```\n\n```go\ntype DataDogMetric struct {\n\tNamespace string `json:\"namespace\"`\n}\n```\n\n```go\ntype DataDogOrg struct {\n\tID   string `json:\"id\"`\n\tName string `json:\"name\"`\n}\n```\n\n```go\ntype DataDogProcessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewDataDogProcessor(outputs *common.Outputs, observability *common.Observability) *DataDogProcessor\n```\n\n```go\nfunc (p *DataDogProcessor) EventType() string\n```\n\n```go\nfunc (p *DataDogProcessor) HandleEvent(e *common.Event) error\n```\n\n```go\nfunc (p *DataDogProcessor) HandleHttpRequest(w http.ResponseWriter, r *http.Request) error\n```\n\n```go\ntype DataDogRequest struct {\n\tID          string           `json:\"id\"`\n\tDate        int64            `json:\"date\"`\n\tLastUpdated int64            `json:\"last_updated\"`\n\tLink        string           `json:\"link\"`\n\tPriority    string           `json:\"priority\"`\n\tSnapshot    string           `json:\"snapshot\"`\n\tEvent       *DataDogEvent    `json:\"event\"`\n\tAlert       *DataDogAlert    `json:\"alert,omitempty\"`\n\tIncident    *DataDogIncident `json:\"incident,omitempty\"`\n\tMetric      *DataDogMetric   `json:\"metric,omitempty\"`\n\tSecurity    *DataDogSecurity `json:\"security,omitempty\"`\n\tOrg         *DataDogOrg      `json:\"org,omitempty\"`\n\tTags        string           `json:\"tags,omitempty\"`\n\tTextOnlyMsg string           `json:\"text_only_msg,omitempty\"`\n\tUser        string           `json:\"user,omitempty\"`\n\tUserName    string           `json:\"username,omitempty\"`\n}\n```\n\n```go\ntype DataDogResponse struct {\n\tMessage string\n}\n```\n\n```go\ntype DataDogSecurity struct {\n\tRuleName string `json:\"rule_name\"`\n}\n```\n\n```go\ntype EnhancedEvent struct {\n\tv1.Event       `json:\",inline\"`\n\tInvolvedObject EnhancedObjectReference `json:\"involvedObject\"`\n}\n```\nEnhancedEvent Original file [https://github.com/opsgenie/kubernetes-event-exporter/blob/master/pkg/kube/event.go](https://github.com/opsgenie/kubernetes-event-exporter/blob/master/pkg/kube/event.go)\n\n```go\nfunc (e EnhancedEvent) DeDot() EnhancedEvent\n```\nDeDot replaces all dots in the labels and annotations with underscores. This is required for example in the elasticsearch sink. The dynamic mapping generation interprets dots in JSON keys as path in an object. For reference see this logstash filter: [https://www.elastic.co/guide/en/logstash/current/plugins-filters-de\\_dot.html](https://www.elastic.co/guide/en/logstash/current/plugins-filters-de_dot.html)\n\n```go\nfunc (e EnhancedEvent) GetTimestampISO8601() string\n```\n\n```go\nfunc (e EnhancedEvent) GetTimestampMs() int64\n```\n\n```go\nfunc (e EnhancedEvent) ToJSON() []byte\n```\nToJSON does not return an error because we are %99 confident it is JSON serializable.\n\n```go\ntype EnhancedObjectReference struct {\n\tv1.ObjectReference `json:\",inline\"`\n\tLabels             map[string]string `json:\"labels,omitempty\"`\n\tAnnotations        map[string]string `json:\"annotations,omitempty\"`\n}\n```\n\n```go\ntype GitlabProcessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewGitlabProcessor(outputs *common.Outputs, observability *common.Observability) *GitlabProcessor\n```\n\n```go\nfunc (p *GitlabProcessor) EventType() string\n```\n\n```go\nfunc (p *GitlabProcessor) HandleEvent(e *common.Event) error\n```\n\n```go\nfunc (p *GitlabProcessor) HandleHttpRequest(w http.ResponseWriter, r *http.Request) error\n```\n\n```go\ntype GitlabResponse struct {\n\tMessage string\n}\n```\n\n```go\ntype GoogleCondition struct {\n\tName               string                    `json:\"name\"`\n\tDisplayName        string                    `json:\"displayName\"`\n\tConditionThreshold *GoogleConditionThreshold `json:\"conditionThreshold\"`\n}\n```\n\n```go\ntype GoogleConditionThreshold struct {\n\tFilter         string      `json:\"filter\"`\n\tComparison     string      `json:\"comparison\"`\n\tThresholdValue float32     `json:\"thresholdValue\"`\n\tDuration       string      `json:\"duration\"`\n\tTrigger        interface{} `json:\"trigger\"`\n}\n```\n\n```go\ntype GoogleIncident struct {\n\tIncidentID              string            `json:\"incident_id\"`\n\tScopingProjectID        string            `json:\"scoping_project_id\"`\n\tScopingProjectNumber    string            `json:\"scoping_project_number\"`\n\tURL                     string            `json:\"url\"`\n\tStartedAt               int64             `json:\"started_at\"`\n\tEndedAt                 int64             `json:\"ended_at,omitempty\"`\n\tState                   string            `json:\"state\"`\n\tSummary                 string            `json:\"summary\"`\n\tApigeeURL               string            `json:\"apigee_url\"`\n\tObservedValue           string            `json:\"observed_value\"`\n\tResource                *GoogleResource   `json:\"resource\"`\n\tResourceTypeDisplayName string            `json:\"resource_type_display_name\"`\n\tResourceID              string            `json:\"resource_id\"`\n\tResourceDisplayName     string            `json:\"resource_display_name\"`\n\tResourceName            string            `json:\"resource_name\"`\n\tMetric                  *GoogleMetric     `json:\"metric\"`\n\tMetadata                *GoogleMetadata   `json:\"metadata\"`\n\tPolicyName              string            `json:\"policy_name\"`\n\tPolicyUserLabels        map[string]string `json:\"policy_user_labels\"`\n\tDocumentation           string            `json:\"documentation\"`\n\tCondition               *GoogleCondition  `json:\"condition\"`\n\tConditionName           string            `json:\"condition_name\"`\n\tThresholdValue          string            `json:\"threshold_value\"`\n}\n```\n\n```go\ntype GoogleMetadata struct {\n\tSystemLabels map[string]string `json:\"system_labels\"`\n\tUserLabels   map[string]string `json:\"user_labels\"`\n}\n```\n\n```go\ntype GoogleMetric struct {\n\tType        string            `json:\"type\"`\n\tDisplayName string            `json:\"displayName\"`\n\tLabels      map[string]string `json:\"labels\"`\n}\n```\n\n```go\ntype GoogleProcessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewGoogleProcessor(outputs *common.Outputs, observability *common.Observability) *GoogleProcessor\n```\n\n```go\nfunc (p *GoogleProcessor) EventType() string\n```\n\n```go\nfunc (p *GoogleProcessor) HandleEvent(e *common.Event) error\n```\n\n```go\nfunc (p *GoogleProcessor) HandleHttpRequest(w http.ResponseWriter, r *http.Request) error\n```\n\n```go\ntype GoogleRequest struct {\n\tVersion  string          `json:\"version\"`\n\tIncident *GoogleIncident `json:\"incident\"`\n}\n```\n\n```go\ntype GoogleResource struct {\n\tType   string            `json:\"type\"`\n\tLabels map[string]string `json:\"labels\"`\n}\n```\n\n```go\ntype GoogleResponse struct {\n\tMessage string\n}\n```\n\n```go\ntype K8sData struct {\n\tKind      string      `json:\"kind\"`\n\tLocation  string      `json:\"location\"`\n\tOperation string      `json:\"operation\"`\n\tNamespace string      `json:\"namespace\"`\n\tObject    interface{} `json:\"object,omitempty\"`\n\tPatch     interface{} `json:\"patch,omitempty\"`\n\tUser      *K8sUser    `json:\"user\"`\n}\n```\n\n```go\ntype K8sProcessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewK8sProcessor(outputs *common.Outputs, observability *common.Observability) *K8sProcessor\n```\n\n```go\nfunc (p *K8sProcessor) EventType() string\n```\n\n```go\nfunc (p *K8sProcessor) HandleEvent(e *common.Event) error\n```\n\n```go\nfunc (p *K8sProcessor) HandleHttpRequest(w http.ResponseWriter, r *http.Request) error\n```\n\n```go\ntype K8sUser struct {\n\tID   string `json:\"id\"`\n\tName string `json:\"name\"`\n}\n```\n\n```go\ntype KubeData struct {\n\tType     string      `json:\"type\"`\n\tSource   string      `json:\"source\"`\n\tReason   string      `json:\"reason\"`\n\tLocation string      `json:\"location\"`\n\tMessage  string      `json:\"message\"`\n\tObject   interface{} `json:\"object,omitempty\"`\n}\n```\n\n```go\ntype KubeProcessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewKubeProcessor(outputs *common.Outputs, observability *common.Observability) *KubeProcessor\n```\n\n```go\nfunc (p *KubeProcessor) EventType() string\n```\n\n```go\nfunc (p *KubeProcessor) HandleEvent(e *common.Event) error\n```\n\n```go\nfunc (p *KubeProcessor) HandleHttpRequest(w http.ResponseWriter, r *http.Request) error\n```\n\n```go\ntype NomadProcessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewNomadProcessor(outputs *common.Outputs, observability *common.Observability) *NomadProcessor\n```\n\n```go\nfunc (p *NomadProcessor) EventType() string\n```\n\n```go\nfunc (p *NomadProcessor) HandleEvent(e *common.Event) error\n```\n\n```go\nfunc (p *NomadProcessor) ProcessEvent(ne nomad.Event) error\n```\n\n```go\ntype ObserviumEventProcessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewObserviumEventProcessor(outputs *common.Outputs, observability *common.Observability) *ObserviumEventProcessor\n```\n\n```go\nfunc (p *ObserviumEventProcessor) EventType() string\n```\n\n```go\nfunc (p *ObserviumEventProcessor) HandleEvent(e *common.Event) error\n```\n\n```go\nfunc (p *ObserviumEventProcessor) HandleHttpRequest(w http.ResponseWriter, r *http.Request) error\n```\n\n```go\ntype ObserviumRequest struct {\n\tTitle          string `json:\"TITLE\"`\n\tAlertState     string `json:\"ALERT_STATE\"`\n\tAlertURL       string `json:\"ALERT_URL\"`\n\tAlertUnixTime  int64  `json:\"ALERT_UNIXTIME\"`\n\tDeviceHostname string `json:\"DEVICE_HOSTNAME\"`\n\tDeviceLocation string `json:\"DEVICE_LOCATION\"`\n\tMetrics        string `json:\"METRICS\"`\n}\n```\n\n```go\ntype ObserviumResponse struct {\n\tMessage string\n}\n```\n\n```go\ntype RancherProcessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewRancherProcessor(outputs *common.Outputs, observability *common.Observability) *RancherProcessor\n```\n\n```go\nfunc (p *RancherProcessor) EventType() string\n```\n\n```go\nfunc (p *RancherProcessor) HandleEvent(e *common.Event) error\n```\n\n```go\nfunc (p *RancherProcessor) HandleHttpRequest(w http.ResponseWriter, r *http.Request) error\n```\n\n```go\ntype Site24x7Processor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewSite24x7Processor(outputs *common.Outputs, observability *common.Observability) *Site24x7Processor\n```\n\n```go\nfunc (p *Site24x7Processor) EventType() string\n```\n\n```go\nfunc (p *Site24x7Processor) HandleEvent(e *common.Event) error\n```\n\n```go\nfunc (p *Site24x7Processor) HandleHttpRequest(w http.ResponseWriter, r *http.Request) error\n```\n\n```go\ntype Site24x7Request struct {\n\tMonitorID            int64  `json:\"MONITOR_ID\"`\n\tMonitorDashboardLink string `json:\"MONITOR_DASHBOARD_LINK\"`\n\tMonitorType          string `json:\"MONITORTYPE\"`\n\tMonitorName          string `json:\"MONITORNAME\"`\n\tMonitorURL           string `json:\"MONITORURL\"`\n\tMonitorGroupName     string `json:\"MONITOR_GROUPNAME\"`\n\n\tIncidentReason  string `json:\"INCIDENT_REASON\"`\n\tIncidentTime    string `json:\"INCIDENT_TIME\"`\n\tIncidentTimeISO string `json:\"INCIDENT_TIME_ISO\"`\n\n\tPollFrequency   int      `json:\"POLLFREQUENCY\"`\n\tStatus          string   `json:\"STATUS\"`\n\tFailedLocations string   `json:\"FAILED_LOCATIONS\"`\n\tGroupTags       []string `json:\"GROUP_TAGS,omitempty\"`\n\tTags            []string `json:\"TAGS,omitempty\"`\n}\n```\n\n```go\ntype Site24x7Response struct {\n\tMessage string\n}\n```\n\n```go\ntype TeamcityEvent struct {\n\tTimestamp      time.Time `json:\"timestamp\"`\n\tBuildEvent     string    `json:\"build_event\"`\n\tBuildName      string    `json:\"build_name\"`\n\tBuildStatusUrl string    `json:\"build_status_url,omitempty\"`\n\tTriggeredBy    string    `json:\"triggered_by,omitempty\"`\n\tBuildResult    string    `json:\"build_result,omitempty\"`\n\tTarget         string    `json:\"target,omitempty\"`\n}\n```\n\n```go\ntype TeamcityProcessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewTeamcityProcessor(outputs *common.Outputs, observability *common.Observability) *TeamcityProcessor\n```\n\n```go\nfunc (p TeamcityProcessor) EventType() string\n```\n\n```go\nfunc (p TeamcityProcessor) HandleEvent(e *common.Event) error\n```\n\n```go\nfunc (p TeamcityProcessor) HandleHttpRequest(w http.ResponseWriter, r *http.Request) error\n```\n\n```go\ntype TeamcityResponse struct {\n\tMessage string\n}\n```\n\n```go\ntype VCenterProcessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewVCenterProcessor(outputs *common.Outputs, observability *common.Observability) *VCenterProcessor\n```\n\n```go\nfunc (p *VCenterProcessor) EventType() string\n```\n\n```go\nfunc (p *VCenterProcessor) HandleEvent(e *common.Event) error\n```\n\n```go\ntype VCenterResponse struct {\n\tMessage string\n}\n```\n\n```go\ntype WinEvent struct {\n\tName      string        `json:\"name\"`\n\tTags      *WinEventTags `json:\"tags\"`\n\tTimestamp int64         `json:\"timestamp\"`\n}\n```\n\n```go\ntype WinEventOriginalRequest struct {\n\tEvents []WinEvent `json:\"metrics\"`\n}\n```\n\n```go\ntype WinEventProcessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewWinEventProcessor(outputs *common.Outputs, observability *common.Observability) *WinEventProcessor\n```\n\n```go\nfunc (p *WinEventProcessor) EventType() string\n```\n\n```go\nfunc (p *WinEventProcessor) HandleEvent(e *common.Event) error\n```\n\n```go\nfunc (p *WinEventProcessor) HandleHttpRequest(w http.ResponseWriter, r *http.Request) error\n```\n\n```go\ntype WinEventPubsubRequest struct {\n\tTime     string                   `json:\"time\"`\n\tChannel  string                   `json:\"channel\"`\n\tOriginal *WinEventOriginalRequest `json:\"data\"`\n}\n```\n\n```go\ntype WinEventResponse struct {\n\tMessage string\n}\n```\n\n```go\ntype WinEventTags struct {\n\tMessage      string `json:\"Message\"`\n\tMessageLevel string `json:\"LevelText\"`\n\tKeywords     string `json:\"Keywords\"`\n\tEventID      string `json:\"EventRecordID\"`\n\tProvider     string `json:\"provider\"`\n\tCity         string `json:\"city\"`\n\tCountry      string `json:\"country,omitempty\"`\n\tMT           string `json:\"mt\"`\n\tHost         string `json:\"host\"`\n}\n```\n\n```go\ntype ZabbixEvent struct {\n\tAlertURL           string `json:\"AlertURL,omitempty\"`\n\tEnvironment        string `json:\"Environment,omitempty\"`\n\tEventDate          string `json:\"EventDate,omitempty\"`\n\tEventID            string `json:\"EventID,omitempty\"`\n\tEventName          string `json:\"EventName,omitempty\"`\n\tEventNSeverity     string `json:\"EventNSeverity,omitempty\"`\n\tEventOpData        string `json:\"EventOpData,omitempty\"`\n\tStatus             string `json:\"Status,omitempty\"`\n\tEventTags          string `json:\"EventTags,omitempty\"`\n\tEventTime          string `json:\"EventTime,omitempty\"`\n\tEventType          string `json:\"EventType,omitempty\"`\n\tHostName           string `json:\"HostName,omitempty\"`\n\tItemID             string `json:\"ItemID,omitempty\"`\n\tItemLastValue      string `json:\"ItemLastValue,omitempty\"`\n\tTriggerDescription string `json:\"TriggerDescription,omitempty\"`\n\tTriggerExpression  string `json:\"TriggerExpression,omitempty\"`\n\tTriggerName        string `json:\"TriggerName,omitempty\"`\n}\n```\n\n```go\ntype ZabbixProcessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewZabbixProcessor(outputs *common.Outputs, observability *common.Observability) *ZabbixProcessor\n```\n\n```go\nfunc (p *ZabbixProcessor) EventType() string\n```\n\n```go\nfunc (p *ZabbixProcessor) HandleEvent(e *common.Event) error\n```\n\n```go\nfunc (p *ZabbixProcessor) HandleHttpRequest(w http.ResponseWriter, r *http.Request) error\n```\n\n","path":"github.com/devopsext/events/processor","name":"processor","synopsis":"","isRedistributable":true}
