Documentation
¶
Index ¶
Constants ¶
View Source
const (
// PluginName is the name of the Keptn Botkube plugin.
PluginName = "keptn"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// API refers to Keptn client. https://github.com/keptn/go-utils
API *api.APISet
}
Client Keptn client
type Config ¶
type Config struct {
URL string `yaml:"url,omitempty"`
Token string `yaml:"token,omitempty"`
Project string `yaml:"project,omitempty"`
Service string `yaml:"service,omitempty"`
Log config.Logger `yaml:"log,omitempty"`
}
Config prometheus configuration
type Data ¶
type Data struct {
Message string
Project string
Service string
Status string
Stage string
Result string
}
Data represents a Keptn event data which is used by plugin internally.
type Event ¶
Event represents a Keptn event returned from Keptn API.
func (*Event) ToAnonymizedEventDetails ¶
ToAnonymizedEventDetails returns a map of event details which is used for telemetry purposes.
type GetEventsRequest ¶
GetEventsRequest represents a request to get events from Keptn.
type Source ¶
type Source struct {
source.HandleExternalRequestUnimplemented
// contains filtered or unexported fields
}
Source prometheus source plugin data structure
func (*Source) Stream ¶
func (p *Source) Stream(ctx context.Context, input source.StreamInput) (source.StreamOutput, error)
Stream streams Keptn events
Click to show internal directories.
Click to hide internal directories.