Documentation
¶
Index ¶
- Variables
- func ReadAndValidate(r *http.Request, f Form) error
- type ApplicationCategoryForm
- type ApplicationSettingsLogsForm
- type ApplicationSettingsPyroscopeForm
- type ApplicationSettingsTracingForm
- type CheckConfigForm
- type CheckConfigSLOAvailabilityForm
- type CheckConfigSLOLatencyForm
- type Form
- type IntegrationForm
- type IntegrationFormClickhouse
- func (f *IntegrationFormClickhouse) Get(project *db.Project, masked bool)
- func (f *IntegrationFormClickhouse) Test(ctx context.Context, project *db.Project) error
- func (f *IntegrationFormClickhouse) Update(ctx context.Context, project *db.Project, clear bool) error
- func (f *IntegrationFormClickhouse) Valid() bool
- type IntegrationFormOpsgenie
- func (f *IntegrationFormOpsgenie) Get(project *db.Project, masked bool)
- func (f *IntegrationFormOpsgenie) Test(ctx context.Context, project *db.Project) error
- func (f *IntegrationFormOpsgenie) Update(ctx context.Context, project *db.Project, clear bool) error
- func (f *IntegrationFormOpsgenie) Valid() bool
- type IntegrationFormPagerduty
- func (f *IntegrationFormPagerduty) Get(project *db.Project, masked bool)
- func (f *IntegrationFormPagerduty) Test(ctx context.Context, project *db.Project) error
- func (f *IntegrationFormPagerduty) Update(ctx context.Context, project *db.Project, clear bool) error
- func (f *IntegrationFormPagerduty) Valid() bool
- type IntegrationFormPrometheus
- func (f *IntegrationFormPrometheus) Get(project *db.Project, masked bool)
- func (f *IntegrationFormPrometheus) Test(ctx context.Context, project *db.Project) error
- func (f *IntegrationFormPrometheus) Update(ctx context.Context, project *db.Project, clear bool) error
- func (f *IntegrationFormPrometheus) Valid() bool
- type IntegrationFormPyroscope
- func (f *IntegrationFormPyroscope) Get(project *db.Project, masked bool)
- func (f *IntegrationFormPyroscope) Test(ctx context.Context, project *db.Project) error
- func (f *IntegrationFormPyroscope) Update(ctx context.Context, project *db.Project, clear bool) error
- func (f *IntegrationFormPyroscope) Valid() bool
- type IntegrationFormSlack
- type IntegrationFormTeams
- type IntegrationsForm
- type ProjectForm
- type ProjectStatusForm
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidForm = errors.New("invalid form")
)
Functions ¶
Types ¶
type ApplicationCategoryForm ¶
type ApplicationCategoryForm struct {
Name model.ApplicationCategory `json:"name"`
NewName model.ApplicationCategory `json:"new_name"`
CustomPatternsStr string `json:"custom_patterns"`
CustomPatterns []string
NotifyOfDeployments bool `json:"notify_of_deployments"`
}
func (*ApplicationCategoryForm) Valid ¶
func (f *ApplicationCategoryForm) Valid() bool
type ApplicationSettingsLogsForm ¶ added in v0.20.0
type ApplicationSettingsLogsForm struct {
db.ApplicationSettingsLogs
}
func (*ApplicationSettingsLogsForm) Valid ¶ added in v0.20.0
func (f *ApplicationSettingsLogsForm) Valid() bool
type ApplicationSettingsPyroscopeForm ¶
type ApplicationSettingsPyroscopeForm struct {
db.ApplicationSettingsPyroscope
}
func (*ApplicationSettingsPyroscopeForm) Valid ¶
func (f *ApplicationSettingsPyroscopeForm) Valid() bool
type ApplicationSettingsTracingForm ¶
type ApplicationSettingsTracingForm struct {
db.ApplicationSettingsTracing
}
func (*ApplicationSettingsTracingForm) Valid ¶
func (f *ApplicationSettingsTracingForm) Valid() bool
type CheckConfigForm ¶
type CheckConfigForm struct {
Configs []*model.CheckConfigSimple `json:"configs"`
}
func (*CheckConfigForm) Valid ¶
func (f *CheckConfigForm) Valid() bool
type CheckConfigSLOAvailabilityForm ¶
type CheckConfigSLOAvailabilityForm struct {
Configs []model.CheckConfigSLOAvailability `json:"configs"`
Default bool `json:"default"`
}
func (*CheckConfigSLOAvailabilityForm) Valid ¶
func (f *CheckConfigSLOAvailabilityForm) Valid() bool
type CheckConfigSLOLatencyForm ¶
type CheckConfigSLOLatencyForm struct {
Configs []model.CheckConfigSLOLatency `json:"configs"`
Default bool `json:"default"`
}
func (*CheckConfigSLOLatencyForm) Valid ¶
func (f *CheckConfigSLOLatencyForm) Valid() bool
type IntegrationForm ¶
type IntegrationForm interface {
Form
Get(project *db.Project, masked bool)
Update(ctx context.Context, project *db.Project, clear bool) error
Test(ctx context.Context, project *db.Project) error
}
func NewIntegrationForm ¶
func NewIntegrationForm(t db.IntegrationType) IntegrationForm
type IntegrationFormClickhouse ¶
type IntegrationFormClickhouse struct {
db.IntegrationClickhouse
}
func (*IntegrationFormClickhouse) Get ¶
func (f *IntegrationFormClickhouse) Get(project *db.Project, masked bool)
func (*IntegrationFormClickhouse) Valid ¶
func (f *IntegrationFormClickhouse) Valid() bool
type IntegrationFormOpsgenie ¶
type IntegrationFormOpsgenie struct {
db.IntegrationOpsgenie
}
func (*IntegrationFormOpsgenie) Get ¶
func (f *IntegrationFormOpsgenie) Get(project *db.Project, masked bool)
func (*IntegrationFormOpsgenie) Valid ¶
func (f *IntegrationFormOpsgenie) Valid() bool
type IntegrationFormPagerduty ¶
type IntegrationFormPagerduty struct {
db.IntegrationPagerduty
}
func (*IntegrationFormPagerduty) Get ¶
func (f *IntegrationFormPagerduty) Get(project *db.Project, masked bool)
func (*IntegrationFormPagerduty) Valid ¶
func (f *IntegrationFormPagerduty) Valid() bool
type IntegrationFormPrometheus ¶
type IntegrationFormPrometheus struct {
db.IntegrationsPrometheus
}
func (*IntegrationFormPrometheus) Get ¶
func (f *IntegrationFormPrometheus) Get(project *db.Project, masked bool)
func (*IntegrationFormPrometheus) Valid ¶
func (f *IntegrationFormPrometheus) Valid() bool
type IntegrationFormPyroscope ¶
type IntegrationFormPyroscope struct {
db.IntegrationPyroscope
}
func (*IntegrationFormPyroscope) Get ¶
func (f *IntegrationFormPyroscope) Get(project *db.Project, masked bool)
func (*IntegrationFormPyroscope) Valid ¶
func (f *IntegrationFormPyroscope) Valid() bool
type IntegrationFormSlack ¶
type IntegrationFormSlack struct {
db.IntegrationSlack
}
func (*IntegrationFormSlack) Get ¶
func (f *IntegrationFormSlack) Get(project *db.Project, masked bool)
func (*IntegrationFormSlack) Valid ¶
func (f *IntegrationFormSlack) Valid() bool
type IntegrationFormTeams ¶
type IntegrationFormTeams struct {
db.IntegrationTeams
}
func (*IntegrationFormTeams) Get ¶
func (f *IntegrationFormTeams) Get(project *db.Project, masked bool)
func (*IntegrationFormTeams) Valid ¶
func (f *IntegrationFormTeams) Valid() bool
type IntegrationsForm ¶
type IntegrationsForm struct {
BaseUrl string `json:"base_url"`
}
func (*IntegrationsForm) Valid ¶
func (f *IntegrationsForm) Valid() bool
type ProjectForm ¶
type ProjectForm struct {
Name string `json:"name"`
}
func (*ProjectForm) Valid ¶
func (f *ProjectForm) Valid() bool
type ProjectStatusForm ¶
type ProjectStatusForm struct {
Mute *model.ApplicationType `json:"mute"`
UnMute *model.ApplicationType `json:"unmute"`
}
func (*ProjectStatusForm) Valid ¶
func (f *ProjectStatusForm) Valid() bool
Click to show internal directories.
Click to hide internal directories.