models

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func I18nStringError

func I18nStringError(err error) diag.Diagnostic

func MetricProviderServiceInstances

func MetricProviderServiceInstances() map[string][]string

func MetricProviderServiceType

func MetricProviderServiceType(service types.Object) string

func NativeServiceDecodeError

func NativeServiceDecodeError(m string, err error) diag.Diagnostic

func ServiceDecodeError

func ServiceDecodeError(t string, err error) diag.Diagnostic

func TimestampError

func TimestampError(err error) diag.Diagnostic

func UnknownNativeServiceError

func UnknownNativeServiceError(m string) diag.Diagnostic

func UnknownServiceError

func UnknownServiceError(m string) diag.Diagnostic

Types

type BuiltinServiceModel

type BuiltinServiceModel struct{}

func (BuiltinServiceModel) ApiCreateForm

func (BuiltinServiceModel) ApiUpdateForm

type ComponentModel

type ComponentModel struct {
	Id                          types.String   `tfsdk:"id"`
	CreatedAt                   types.String   `tfsdk:"created_at"`
	UpdatedAt                   types.String   `tfsdk:"updated_at"`
	Name                        types.String   `tfsdk:"name"`
	NameTranslations            types.Map      `tfsdk:"name_translations"`
	Description                 types.String   `tfsdk:"description"`
	DescriptionTranslations     types.Map      `tfsdk:"description_translations"`
	DescriptionHtml             types.String   `tfsdk:"description_html"`
	DescriptionHtmlTranslations types.Map      `tfsdk:"description_html_translations"`
	ExcludeFromGlobalHistory    types.Bool     `tfsdk:"exclude_from_global_history"`
	ExcludeFromGlobalUptime     types.Bool     `tfsdk:"exclude_from_global_uptime"`
	Group                       types.String   `tfsdk:"group"`
	LastEventAt                 types.String   `tfsdk:"last_event_at"`
	PercentUptime               types.Float64  `tfsdk:"percent_uptime"`
	Watchdog                    *WatchdogModel `tfsdk:"watchdog"`
}

type GroupComponentOrderingModel

type GroupComponentOrderingModel struct {
	Id    types.String `tfsdk:"id"`
	Group types.String `tfsdk:"group"`

	Components []types.String `tfsdk:"components"`
}

func ToGroupComponentOrderingModel

func ToGroupComponentOrderingModel(group hundApiV1.Group) (GroupComponentOrderingModel, diag.Diagnostics)

type GroupModel

type GroupModel struct {
	Id                          types.String `tfsdk:"id"`
	CreatedAt                   types.String `tfsdk:"created_at"`
	UpdatedAt                   types.String `tfsdk:"updated_at"`
	Name                        types.String `tfsdk:"name"`
	NameTranslations            types.Map    `tfsdk:"name_translations"`
	Description                 types.String `tfsdk:"description"`
	DescriptionTranslations     types.Map    `tfsdk:"description_translations"`
	DescriptionHtml             types.String `tfsdk:"description_html"`
	DescriptionHtmlTranslations types.Map    `tfsdk:"description_html_translations"`
	Collapsed                   types.Bool   `tfsdk:"collapsed"`
	Position                    types.Int64  `tfsdk:"position"`
	Components                  types.List   `tfsdk:"components"`
}

func ToGroupModel

func ToGroupModel(group hundApiV1.Group) (GroupModel, diag.Diagnostics)

type IssueModel

type IssueModel struct {
	Id                   types.String   `tfsdk:"id"`
	CreatedAt            types.String   `tfsdk:"created_at"`
	UpdatedAt            types.String   `tfsdk:"updated_at"`
	BeganAt              types.String   `tfsdk:"began_at"`
	EndedAt              types.String   `tfsdk:"ended_at"`
	CancelledAt          types.String   `tfsdk:"cancelled_at"`
	Title                types.String   `tfsdk:"title"`
	Body                 types.String   `tfsdk:"body"`
	BodyHtml             types.String   `tfsdk:"body_html"`
	TitleTranslations    types.Map      `tfsdk:"title_translations"`
	BodyTranslations     types.Map      `tfsdk:"body_translations"`
	BodyHtmlTranslations types.Map      `tfsdk:"body_html_translations"`
	Label                types.String   `tfsdk:"label"`
	ComponentIds         []types.String `tfsdk:"component_ids"`
	Updates              []UpdateModel  `tfsdk:"updates"`
	Schedule             *ScheduleModel `tfsdk:"schedule"`
	Duration             types.Int64    `tfsdk:"duration"`
	OpenGraphImageUrl    types.String   `tfsdk:"open_graph_image_url"`
	Priority             types.Int64    `tfsdk:"priority"`
	Resolved             types.Bool     `tfsdk:"resolved"`
	Retrospective        types.Bool     `tfsdk:"retrospective"`
	Scheduled            types.Bool     `tfsdk:"scheduled"`
	Specialization       types.String   `tfsdk:"specialization"`
	Standing             types.Bool     `tfsdk:"standing"`
	StateOverride        types.Int64    `tfsdk:"state_override"`

	Template *IssueTemplateApplicationIssueModel `tfsdk:"template"`

	ArchiveOnDestroy types.Bool `tfsdk:"archive_on_destroy"`
}

IssueModel describes the data source data model.

func ToIssueModel

func ToIssueModel(ctx context.Context, issue hundApiV1.Issue) (IssueModel, diag.Diagnostics)

type IssueTemplateApplicationIssueModel

type IssueTemplateApplicationIssueModel struct {
	Id               types.String                           `tfsdk:"id"`
	IssueTemplateId  types.String                           `tfsdk:"issue_template_id"`
	Body             types.String                           `tfsdk:"body"`
	BodyTranslations types.Map                              `tfsdk:"body_translations"`
	Label            types.String                           `tfsdk:"label"`
	Schema           types.Map                              `tfsdk:"schema"`
	Variables        IssueTemplateVariablesApplicationModel `tfsdk:"variables"`

	Title             types.String `tfsdk:"title"`
	TitleTranslations types.Map    `tfsdk:"title_translations"`
}

type IssueTemplateApplicationUpdateModel

type IssueTemplateApplicationUpdateModel struct {
	Id               types.String                           `tfsdk:"id"`
	IssueTemplateId  types.String                           `tfsdk:"issue_template_id"`
	Body             types.String                           `tfsdk:"body"`
	BodyTranslations types.Map                              `tfsdk:"body_translations"`
	Label            types.String                           `tfsdk:"label"`
	Schema           types.Map                              `tfsdk:"schema"`
	Variables        IssueTemplateVariablesApplicationModel `tfsdk:"variables"`
}

type IssueTemplateModel

type IssueTemplateModel struct {
	Id                types.String                          `tfsdk:"id"`
	CreatedAt         types.String                          `tfsdk:"created_at"`
	UpdatedAt         types.String                          `tfsdk:"updated_at"`
	Name              types.String                          `tfsdk:"name"`
	Title             types.String                          `tfsdk:"title"`
	Body              types.String                          `tfsdk:"body"`
	TitleTranslations types.Map                             `tfsdk:"title_translations"`
	BodyTranslations  types.Map                             `tfsdk:"body_translations"`
	Kind              types.String                          `tfsdk:"kind"`
	Label             types.String                          `tfsdk:"label"`
	Variables         map[string]IssueTemplateVariableModel `tfsdk:"variables"`
}

IssueTemplateModel describes the data source data model.

func ToIssueTemplateModel

func ToIssueTemplateModel(template hundApiV1.IssueTemplate) (IssueTemplateModel, diag.Diagnostics)

type IssueTemplateVariableApplicationModel

type IssueTemplateVariableApplicationModel struct {
	String     types.String `tfsdk:"string"`
	I18nString types.Map    `tfsdk:"i18n_string"`
	Datetime   types.String `tfsdk:"datetime"`
	Number     types.Number `tfsdk:"number"`
}

func (IssueTemplateVariableApplicationModel) ApiValue

type IssueTemplateVariableModel

type IssueTemplateVariableModel struct {
	Type     types.String `tfsdk:"type"`
	Required types.Bool   `tfsdk:"required"`
}

type IssueTemplateVariablesApplicationModel

type IssueTemplateVariablesApplicationModel map[string]IssueTemplateVariableApplicationModel

func (IssueTemplateVariablesApplicationModel) ApiValue

type ManualServiceModel

type ManualServiceModel struct {
	State types.Int64 `tfsdk:"state"`
}

func (ManualServiceModel) ApiCreateForm

func (s ManualServiceModel) ApiCreateForm() hundApiV1.ManualFormCreate

func (ManualServiceModel) ApiUpdateForm

func (s ManualServiceModel) ApiUpdateForm() hundApiV1.ManualFormUpdate

type MetricInstanceModel

type MetricInstanceModel struct {
	Id                 types.String  `tfsdk:"id"`
	Slug               types.String  `tfsdk:"slug"`
	DefinitionSlug     types.String  `tfsdk:"definition_slug"`
	Enabled            types.Bool    `tfsdk:"enabled"`
	TopLevelEnabled    types.Bool    `tfsdk:"top_level_enabled"`
	Title              types.String  `tfsdk:"title"`
	TitleTranslations  types.Map     `tfsdk:"title_translations"`
	XTitle             types.String  `tfsdk:"x_title"`
	XTitleTranslations types.Map     `tfsdk:"x_title_translations"`
	YTitle             types.String  `tfsdk:"y_title"`
	YTitleTranslations types.Map     `tfsdk:"y_title_translations"`
	XType              types.String  `tfsdk:"x_type"`
	YType              types.String  `tfsdk:"y_type"`
	YSupremum          types.Float64 `tfsdk:"y_supremum"`
	PlotType           types.String  `tfsdk:"plot_type"`
	Aggregation        types.String  `tfsdk:"aggregation"`
	Interpolation      types.String  `tfsdk:"interpolation"`
}

func MetricInstanceModelUnknown

func MetricInstanceModelUnknown() MetricInstanceModel

func (MetricInstanceModel) ApiCreateForm

func (mi MetricInstanceModel) ApiCreateForm(definitionSlug string) (hundApiV1.MetricInstanceFormCreate, diag.Diagnostics)

func (MetricInstanceModel) ApiUpdateForm

type MetricProviderModel

type MetricProviderModel struct {
	Id        types.String                   `tfsdk:"id"`
	Watchdog  types.String                   `tfsdk:"watchdog"`
	Default   types.Bool                     `tfsdk:"default"`
	Instances map[string]MetricInstanceModel `tfsdk:"instances"`
	Service   *MetricProviderServiceModel    `tfsdk:"service"`
}

type MetricProviderServiceModel

type MetricProviderServiceModel struct {
	Builtin     *BuiltinServiceModel                   `tfsdk:"builtin"`
	Updown      *UpdownServiceModel                    `tfsdk:"updown"`
	Pingdom     *PingdomMetricProviderServiceModel     `tfsdk:"pingdom"`
	Uptimerobot *UptimerobotMetricProviderServiceModel `tfsdk:"uptimerobot"`
	Webhook     *WebhookMetricProviderServiceModel     `tfsdk:"webhook"`

	NativeIcmp *NativeIcmpServiceModel `tfsdk:"icmp"`
	NativeHttp *NativeHttpServiceModel `tfsdk:"http"`
	NativeDns  *NativeDnsServiceModel  `tfsdk:"dns"`
	NativeTcp  *NativeTcpServiceModel  `tfsdk:"tcp"`
	NativeUdp  *NativeUdpServiceModel  `tfsdk:"udp"`
}

func (MetricProviderServiceModel) ApiCreateForm

func (MetricProviderServiceModel) ApiUpdateForm

func (MetricProviderServiceModel) NativeApiCreateForm

func (s MetricProviderServiceModel) NativeApiCreateForm() (hundApiV1.NativeFormCreate, error)

func (MetricProviderServiceModel) NativeApiUpdateForm

func (s MetricProviderServiceModel) NativeApiUpdateForm() (hundApiV1.NativeFormUpdate, error)

func (MetricProviderServiceModel) NativeService

func (*MetricProviderServiceModel) ReplaceSensitiveAttributes

func (s *MetricProviderServiceModel) ReplaceSensitiveAttributes(orig MetricProviderServiceModel)

func (MetricProviderServiceModel) ServiceType

func (s MetricProviderServiceModel) ServiceType() string

type NativeDnsServiceModel

type NativeDnsServiceModel struct {
	RecordType           types.String `tfsdk:"record_type"`
	Nameservers          types.List   `tfsdk:"nameservers"`
	ResponseContainment  types.String `tfsdk:"response_containment"`
	ResponsesMustContain types.Set    `tfsdk:"responses_must_contain"`

	Target                            types.String      `tfsdk:"target"`
	ConsecutiveCheckDegradedThreshold types.Int64       `tfsdk:"consecutive_check_degraded_threshold"`
	ConsecutiveCheckOutageThreshold   types.Int64       `tfsdk:"consecutive_check_outage_threshold"`
	Frequency                         types.Int64       `tfsdk:"frequency"`
	PercentageRegionsFailedThreshold  types.Float64     `tfsdk:"percentage_regions_failed_threshold"`
	Regions                           NativeRegionModel `tfsdk:"regions"`
	Timeout                           types.Int64       `tfsdk:"timeout"`
}

func (NativeDnsServiceModel) ApiCreateForm

func (s NativeDnsServiceModel) ApiCreateForm() hundApiV1.DNSFormCreate

func (NativeDnsServiceModel) ApiUpdateForm

func (s NativeDnsServiceModel) ApiUpdateForm() hundApiV1.DNSFormUpdate

func (NativeDnsServiceModel) GetFrequency

func (s NativeDnsServiceModel) GetFrequency() types.Int64

type NativeHttpHeadersModel

type NativeHttpHeadersModel map[string]types.String

func ToNativeHttpHeadersModel

func ToNativeHttpHeadersModel(headers hundApiV1.HTTPHeaders) NativeHttpHeadersModel

func (NativeHttpHeadersModel) ApiValue

type NativeHttpServiceModel

type NativeHttpServiceModel struct {
	Headers                     NativeHttpHeadersModel `tfsdk:"headers"`
	ResponseBodyMustContain     types.String           `tfsdk:"response_body_must_contain"`
	ResponseBodyMustContainMode types.String           `tfsdk:"response_body_must_contain_mode"`
	ResponseCodeMustBe          types.Int64            `tfsdk:"response_code_must_be"`
	SslVerifyPeer               types.Bool             `tfsdk:"ssl_verify_peer"`
	FollowRedirects             types.Bool             `tfsdk:"follow_redirects"`
	Username                    types.String           `tfsdk:"username"`
	Password                    types.String           `tfsdk:"password"`

	Target                            types.String      `tfsdk:"target"`
	ConsecutiveCheckDegradedThreshold types.Int64       `tfsdk:"consecutive_check_degraded_threshold"`
	ConsecutiveCheckOutageThreshold   types.Int64       `tfsdk:"consecutive_check_outage_threshold"`
	Frequency                         types.Int64       `tfsdk:"frequency"`
	PercentageRegionsFailedThreshold  types.Float64     `tfsdk:"percentage_regions_failed_threshold"`
	Regions                           NativeRegionModel `tfsdk:"regions"`
	Timeout                           types.Int64       `tfsdk:"timeout"`
}

func (NativeHttpServiceModel) ApiCreateForm

func (NativeHttpServiceModel) ApiUpdateForm

func (NativeHttpServiceModel) GetFrequency

func (s NativeHttpServiceModel) GetFrequency() types.Int64

type NativeIcmpServiceModel

type NativeIcmpServiceModel struct {
	IpVersion                 types.String  `tfsdk:"ip_version"`
	PercentageFailedThreshold types.Float64 `tfsdk:"percentage_failed_threshold"`

	Target                            types.String      `tfsdk:"target"`
	ConsecutiveCheckDegradedThreshold types.Int64       `tfsdk:"consecutive_check_degraded_threshold"`
	ConsecutiveCheckOutageThreshold   types.Int64       `tfsdk:"consecutive_check_outage_threshold"`
	Frequency                         types.Int64       `tfsdk:"frequency"`
	PercentageRegionsFailedThreshold  types.Float64     `tfsdk:"percentage_regions_failed_threshold"`
	Regions                           NativeRegionModel `tfsdk:"regions"`
	Timeout                           types.Int64       `tfsdk:"timeout"`
}

func (NativeIcmpServiceModel) ApiCreateForm

func (NativeIcmpServiceModel) ApiUpdateForm

func (NativeIcmpServiceModel) GetFrequency

func (s NativeIcmpServiceModel) GetFrequency() types.Int64

type NativeRegionModel

type NativeRegionModel []types.String

func ToNativeRegionModel

func ToNativeRegionModel(regions []hundApiV1.NATIVEREGION) NativeRegionModel

func (NativeRegionModel) ApiValue

func (s NativeRegionModel) ApiValue() []hundApiV1.NATIVEREGION

type NativeServiceModel

type NativeServiceModel interface {
	GetFrequency() types.Int64
}

func ToNativeServiceModel

func ToNativeServiceModel(native hundApiV1.Native) (NativeServiceModel, diag.Diagnostics)

type NativeTcpServiceModel

type NativeTcpServiceModel struct {
	IpVersion               types.String `tfsdk:"ip_version"`
	Port                    types.Int64  `tfsdk:"port"`
	ResponseMustContain     types.String `tfsdk:"response_must_contain"`
	ResponseMustContainMode types.String `tfsdk:"response_must_contain_mode"`
	SendData                types.String `tfsdk:"send_data"`
	WaitForInitialResponse  types.Bool   `tfsdk:"wait_for_initial_response"`

	Target                            types.String      `tfsdk:"target"`
	ConsecutiveCheckDegradedThreshold types.Int64       `tfsdk:"consecutive_check_degraded_threshold"`
	ConsecutiveCheckOutageThreshold   types.Int64       `tfsdk:"consecutive_check_outage_threshold"`
	Frequency                         types.Int64       `tfsdk:"frequency"`
	PercentageRegionsFailedThreshold  types.Float64     `tfsdk:"percentage_regions_failed_threshold"`
	Regions                           NativeRegionModel `tfsdk:"regions"`
	Timeout                           types.Int64       `tfsdk:"timeout"`
}

func (NativeTcpServiceModel) ApiCreateForm

func (s NativeTcpServiceModel) ApiCreateForm() hundApiV1.TCPFormCreate

func (NativeTcpServiceModel) ApiUpdateForm

func (s NativeTcpServiceModel) ApiUpdateForm() hundApiV1.TCPFormUpdate

func (NativeTcpServiceModel) GetFrequency

func (s NativeTcpServiceModel) GetFrequency() types.Int64

type NativeUdpServiceModel

type NativeUdpServiceModel struct {
	IpVersion               types.String `tfsdk:"ip_version"`
	Port                    types.Int64  `tfsdk:"port"`
	ResponseMustContain     types.String `tfsdk:"response_must_contain"`
	ResponseMustContainMode types.String `tfsdk:"response_must_contain_mode"`
	SendData                types.String `tfsdk:"send_data"`

	Target                            types.String      `tfsdk:"target"`
	ConsecutiveCheckDegradedThreshold types.Int64       `tfsdk:"consecutive_check_degraded_threshold"`
	ConsecutiveCheckOutageThreshold   types.Int64       `tfsdk:"consecutive_check_outage_threshold"`
	Frequency                         types.Int64       `tfsdk:"frequency"`
	PercentageRegionsFailedThreshold  types.Float64     `tfsdk:"percentage_regions_failed_threshold"`
	Regions                           NativeRegionModel `tfsdk:"regions"`
	Timeout                           types.Int64       `tfsdk:"timeout"`
}

func (NativeUdpServiceModel) ApiCreateForm

func (s NativeUdpServiceModel) ApiCreateForm() hundApiV1.UDPFormCreate

func (NativeUdpServiceModel) ApiUpdateForm

func (s NativeUdpServiceModel) ApiUpdateForm() hundApiV1.UDPFormUpdate

func (NativeUdpServiceModel) GetFrequency

func (s NativeUdpServiceModel) GetFrequency() types.Int64

type PingdomMetricProviderServiceModel

type PingdomMetricProviderServiceModel struct {
	ApiToken  types.String `tfsdk:"api_token"`
	CheckId   types.String `tfsdk:"check_id"`
	CheckType types.String `tfsdk:"check_type"`
}

func (PingdomMetricProviderServiceModel) ApiCreateForm

func (PingdomMetricProviderServiceModel) ApiUpdateForm

type PingdomWatchdogServiceModel

type PingdomWatchdogServiceModel struct {
	ApiToken          types.String `tfsdk:"api_token"`
	CheckId           types.String `tfsdk:"check_id"`
	CheckType         types.String `tfsdk:"check_type"`
	UnconfirmedIsDown types.Bool   `tfsdk:"unconfirmed_is_down"`
}

func (PingdomWatchdogServiceModel) ApiCreateForm

func (PingdomWatchdogServiceModel) ApiUpdateForm

type ScheduleModel

type ScheduleModel struct {
	Id                  types.String `tfsdk:"id"`
	Started             types.Bool   `tfsdk:"started"`
	Ended               types.Bool   `tfsdk:"ended"`
	Notified            types.Bool   `tfsdk:"notified"`
	StartsAt            types.String `tfsdk:"starts_at"`
	EndsAt              types.String `tfsdk:"ends_at"`
	NotifySubscribersAt types.String `tfsdk:"notify_subscribers_at"`
}

type UpdateList

type UpdateList struct{}

func (UpdateList) Description

func (u UpdateList) Description(ctx context.Context) string

func (UpdateList) MarkdownDescription

func (u UpdateList) MarkdownDescription(ctx context.Context) string

func (UpdateList) PlanModifyList

func (u UpdateList) PlanModifyList(ctx context.Context, req planmodifier.ListRequest, resp *planmodifier.ListResponse)

type UpdateModel

type UpdateModel struct {
	Id                   types.String `tfsdk:"id"`
	IssueId              types.String `tfsdk:"issue_id"`
	CreatedAt            types.String `tfsdk:"created_at"`
	UpdatedAt            types.String `tfsdk:"updated_at"`
	Effective            types.Bool   `tfsdk:"effective"`
	Reopening            types.Bool   `tfsdk:"reopening"`
	EffectiveAfter       types.String `tfsdk:"effective_after"`
	Body                 types.String `tfsdk:"body"`
	BodyHtml             types.String `tfsdk:"body_html"`
	BodyTranslations     types.Map    `tfsdk:"body_translations"`
	BodyHtmlTranslations types.Map    `tfsdk:"body_html_translations"`
	Label                types.String `tfsdk:"label"`
	StateOverride        types.Int64  `tfsdk:"state_override"`

	Template *IssueTemplateApplicationUpdateModel `tfsdk:"template"`

	ArchiveOnDestroy types.Bool `tfsdk:"archive_on_destroy"`
}

func ToUpdateModel

func ToUpdateModel(ctx context.Context, update hundApiV1.Update) (UpdateModel, diag.Diagnostics)

type UpdownServiceModel

type UpdownServiceModel struct {
	MonitorToken  types.String `tfsdk:"monitor_token"`
	MonitorApiKey types.String `tfsdk:"monitor_api_key"`
}

func (UpdownServiceModel) ApiCreateForm

func (s UpdownServiceModel) ApiCreateForm() hundApiV1.UpdownFormCreate

func (UpdownServiceModel) ApiUpdateForm

func (s UpdownServiceModel) ApiUpdateForm() hundApiV1.UpdownFormUpdate

type UptimerobotMetricProviderServiceModel

type UptimerobotMetricProviderServiceModel struct {
	MonitorApiKey types.String `tfsdk:"monitor_api_key"`
}

func (UptimerobotMetricProviderServiceModel) ApiCreateForm

func (UptimerobotMetricProviderServiceModel) ApiUpdateForm

type UptimerobotWatchdogServiceModel

type UptimerobotWatchdogServiceModel struct {
	MonitorApiKey     types.String `tfsdk:"monitor_api_key"`
	UnconfirmedIsDown types.Bool   `tfsdk:"unconfirmed_is_down"`
}

func (UptimerobotWatchdogServiceModel) ApiCreateForm

func (UptimerobotWatchdogServiceModel) ApiUpdateForm

type WatchdogModel

type WatchdogModel struct {
	Id            types.String         `tfsdk:"id"`
	HighFrequency types.Bool           `tfsdk:"high_frequency"`
	LatestStatus  types.String         `tfsdk:"latest_status"`
	Service       WatchdogServiceModel `tfsdk:"service"`
}

func ToWatchdogModel

func ToWatchdogModel(watchdog hundApiV1.Watchdog) (WatchdogModel, diag.Diagnostics)

type WatchdogServiceModel

type WatchdogServiceModel struct {
	Manual      *ManualServiceModel              `tfsdk:"manual"`
	Updown      *UpdownServiceModel              `tfsdk:"updown"`
	Pingdom     *PingdomWatchdogServiceModel     `tfsdk:"pingdom"`
	Uptimerobot *UptimerobotWatchdogServiceModel `tfsdk:"uptimerobot"`
	Webhook     *WebhookWatchdogServiceModel     `tfsdk:"webhook"`

	NativeIcmp *NativeIcmpServiceModel `tfsdk:"icmp"`
	NativeHttp *NativeHttpServiceModel `tfsdk:"http"`
	NativeDns  *NativeDnsServiceModel  `tfsdk:"dns"`
	NativeTcp  *NativeTcpServiceModel  `tfsdk:"tcp"`
	NativeUdp  *NativeUdpServiceModel  `tfsdk:"udp"`
}

func (WatchdogServiceModel) ApiCreateForm

func (WatchdogServiceModel) ApiUpdateForm

func (WatchdogServiceModel) NativeApiCreateForm

func (s WatchdogServiceModel) NativeApiCreateForm() (hundApiV1.NativeFormCreate, error)

func (WatchdogServiceModel) NativeApiUpdateForm

func (s WatchdogServiceModel) NativeApiUpdateForm() (hundApiV1.NativeFormUpdate, error)

func (WatchdogServiceModel) NativeService

func (s WatchdogServiceModel) NativeService() NativeServiceModel

func (*WatchdogServiceModel) ReplaceSensitiveAttributes

func (s *WatchdogServiceModel) ReplaceSensitiveAttributes(orig WatchdogServiceModel)

type WebhookMetricProviderServiceModel

type WebhookMetricProviderServiceModel struct {
	WebhookKey types.String `tfsdk:"webhook_key"`
}

func (WebhookMetricProviderServiceModel) ApiCreateForm

func (WebhookMetricProviderServiceModel) ApiUpdateForm

type WebhookWatchdogServiceModel

type WebhookWatchdogServiceModel struct {
	WebhookKey        types.String `tfsdk:"webhook_key"`
	Deadman           types.Bool   `tfsdk:"deadman"`
	ConsecutiveChecks types.Int64  `tfsdk:"consecutive_checks"`
	ReportingInterval types.Int64  `tfsdk:"reporting_interval"`
}

func (WebhookWatchdogServiceModel) ApiCreateForm

func (WebhookWatchdogServiceModel) ApiUpdateForm

Jump to

Keyboard shortcuts

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