watchtower

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscordConfig

type DiscordConfig struct {
	WebhookURL string `pulumi:"webhookUrl"`
}

type InstallCommand

type InstallCommand struct {
	Watchtower
}

func (*InstallCommand) AddToPayload

func (cmd *InstallCommand) AddToPayload(p *runner.Payload) error

func (*InstallCommand) Check

func (cmd *InstallCommand) Check() error

func (*InstallCommand) Env

func (cmd *InstallCommand) Env() *runner.EnvBuilder

type NotificationConfig

type NotificationConfig struct {
	Slack     *SlackConfig     `pulumi:"slack,optional"`
	Discord   *DiscordConfig   `pulumi:"discord,optional"`
	Telegram  *TelegramConfig  `pulumi:"telegram,optional"`
	PagerDuty *PagerDutyConfig `pulumi:"pagerDuty,optional"`
	Twilio    *TwilioConfig    `pulumi:"twilio,optional"`
}

type PagerDutyConfig

type PagerDutyConfig struct {
	IntegrationKey string `pulumi:"integrationKey"`
}

type SlackConfig

type SlackConfig struct {
	WebhookURL string `pulumi:"webhookUrl"`
}

type TelegramConfig

type TelegramConfig struct {
	BotToken string `pulumi:"botToken"`
	ChatID   string `pulumi:"chatId"`
}

type TwilioConfig

type TwilioConfig struct {
	AccountSID string `pulumi:"accountSid"`
	AuthToken  string `pulumi:"authToken"`
	ToNumber   string `pulumi:"toNumber"`
	FromNumber string `pulumi:"fromNumber"`
}

func (*TwilioConfig) String

func (t *TwilioConfig) String() string

type Watchtower

type Watchtower struct {
	runner.RunnerCommand

	Environment   solana.Environment `pulumi:"environment"`
	Flags         WatchtowerFlags    `pulumi:"flags"`
	Notifications NotificationConfig `pulumi:"notifications"`
}

func (*Watchtower) Args

func (w *Watchtower) Args() []string

func (*Watchtower) Install

func (w *Watchtower) Install() runner.Command

type WatchtowerFlags

type WatchtowerFlags struct {
	IgnoreHttpBadGateway             *bool    `pulumi:"ignoreHttpBadGateway,optional"`
	MonitorActiveStake               *bool    `pulumi:"monitorActiveStake,optional"`
	ActiveStakeAlertThreshold        *int     `pulumi:"activeStakeAlertThreshold,optional"`
	Interval                         *int     `pulumi:"interval,optional"`
	MiniumumValidatorIdentityBalance *int     `pulumi:"minimumValidatorIdentityBalance,optional"`
	NameSuffix                       *string  `pulumi:"nameSuffix,optional"`
	RpcTimeout                       *int     `pulumi:"rpcTimeout,optional"`
	UnhealthyThreshold               *int     `pulumi:"unhealthyThreshold,optional"`
	ValidatorIdentity                []string `pulumi:"validatorIdentity"`
}

func (*WatchtowerFlags) Args

func (f *WatchtowerFlags) Args(rpcURL *string) []string

Jump to

Keyboard shortcuts

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