types

package
v0.0.0-...-536d3ef Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AcknowledgeTimestamp string = "acknowledgement_timestamp"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertEventMessage

type AlertEventMessage struct {
	IncidentEventId int64  `json:"incident_event_id,omitempty"`
	Comment         string `json:"comment,omitempty"`
	UserName        string `json:"username,omitempty"`
}

type Ancestors

type Ancestors struct {
	Type  string   `json:"type,omitempty"`
	Names []string `json:"names,omitempty"`
}

type Context

type Context struct {
	// kubernetes client
	KubeClient              clientset.Interface
	AppsCodeExtensionClient acs.AppsCodeExtensionInterface

	IcingaClient *icinga.IcingaClient
	IcingaData   map[string]*IcingaData

	Resource   *aci.Alert
	ObjectType string
	ObjectName string

	Storage *stash.Storage
	sync.Mutex
}

type EventReason

type EventReason string
const (
	// Icinga objects create event list
	CreatingIcingaObjects       EventReason = "Creating"
	FailedToCreateIcingaObjects EventReason = "FailedToCreate"
	NoIcingaObjectCreated       EventReason = "NoIcingaObjectCreated"
	CreatedIcingaObjects        EventReason = "Created"

	// Icinga objects update event list
	UpdatingIcingaObjects       EventReason = "Updating"
	FailedToUpdateIcingaObjects EventReason = "FailedToUpdate"
	UpdatedIcingaObjects        EventReason = "Updated"

	// Icinga objects delete event list
	DeletingIcingaObjects       EventReason = "Deleting"
	FailedToDeleteIcingaObjects EventReason = "FailedToDelete"
	DeletedIcingaObjects        EventReason = "Deleted"

	// Icinga objects sync event list
	SyncIcingaObjects         EventReason = "Sync"
	FailedToSyncIcingaObjects EventReason = "FailedToSync"
	SyncedIcingaObjects       EventReason = "Synced"
)

func (EventReason) String

func (r EventReason) String() string

type IcingaData

type IcingaData struct {
	HostType map[string]string
	VarInfo  map[string]data.CommandVar
}

type KubeOptions

type KubeOptions struct {
	ObjectType string
	ObjectName string
}

Jump to

Keyboard shortcuts

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