Documentation
¶
Index ¶
- Constants
- func IsValidCreds(p PagerDuty) (bool, error)
- type Config
- type PagerDuty
- func (p PagerDuty) FormatMessage(message []map[string]interface{}) string
- func (p PagerDuty) IsValidCredential(ctx context.Context) (bool, error)
- func (p PagerDuty) SendNotification(ctx context.Context, message []map[string]interface{}, ...) error
- func (p PagerDuty) SendSummaryLink() bool
- func (p PagerDuty) ValidateConfig(validate *validator.Validate) error
- type PagerDutyEvent
Constants ¶
View Source
const (
BatchSize = 100
)
Variables ¶
This section is empty.
Functions ¶
func IsValidCreds ¶
todo: implement this and make this method as part of the interface function that checks if the credential provided by the user is valid or not
Types ¶
type PagerDuty ¶
type PagerDuty struct { Config Config `json:"config"` IntegrationType string `json:"integration_type"` NotificationType string `json:"notification_type"` Filters reporters.FieldsFilters `json:"filters"` Message string `json:"message"` Resource string `json:"resource"` Severity string `json:"severity"` }
func (PagerDuty) FormatMessage ¶
func (PagerDuty) IsValidCredential ¶
todo
func (PagerDuty) SendNotification ¶
func (PagerDuty) SendSummaryLink ¶
func (PagerDuty) ValidateConfig ¶
type PagerDutyEvent ¶
Click to show internal directories.
Click to hide internal directories.