Documentation
¶
Index ¶
- func I18nStringError(err error) diag.Diagnostic
- func MetricProviderServiceInstances() map[string][]string
- func MetricProviderServiceType(service types.Object) string
- func NativeServiceDecodeError(m string, err error) diag.Diagnostic
- func ServiceDecodeError(t string, err error) diag.Diagnostic
- func TimestampError(err error) diag.Diagnostic
- func ToIssueTemplateVariables(variables hundApiV1.IssueTemplateVariables) map[string]IssueTemplateVariableModel
- func ToIssueTemplateVariablesApplicationModel(variables hundApiV1.IssueTemplateVariablesApplication, ...) (map[string]IssueTemplateVariableApplicationModel, diag.Diagnostics)
- func ToIssueTemplateVariablesForm(model map[string]IssueTemplateVariableModel) hundApiV1.IssueTemplateVariablesForm
- func UnknownNativeServiceError(m string) diag.Diagnostic
- func UnknownServiceError(m string) diag.Diagnostic
- type BuiltinServiceModel
- type ComponentModel
- type GroupComponentOrderingModel
- type GroupModel
- type IssueModel
- type IssueTemplateApplicationIssueModel
- type IssueTemplateApplicationUpdateModel
- type IssueTemplateModel
- type IssueTemplateVariableApplicationModel
- type IssueTemplateVariableModel
- type IssueTemplateVariablesApplicationModel
- type ManualServiceModel
- type MetricInstanceModel
- type MetricProviderModel
- type MetricProviderServiceModel
- func (s MetricProviderServiceModel) ApiCreateForm() (hundApiV1.FormMetricProviderCreate, error)
- func (s MetricProviderServiceModel) ApiUpdateForm() (hundApiV1.FormMetricProviderUpdate, error)
- func (s MetricProviderServiceModel) NativeApiCreateForm() (hundApiV1.NativeFormCreate, error)
- func (s MetricProviderServiceModel) NativeApiUpdateForm() (hundApiV1.NativeFormUpdate, error)
- func (s MetricProviderServiceModel) NativeService() NativeServiceModel
- func (s *MetricProviderServiceModel) ReplaceSensitiveAttributes(orig MetricProviderServiceModel)
- func (s MetricProviderServiceModel) ServiceType() string
- type NativeDnsServiceModel
- type NativeHttpHeadersModel
- type NativeHttpServiceModel
- type NativeIcmpServiceModel
- type NativeRegionModel
- type NativeServiceModel
- type NativeTcpServiceModel
- type NativeUdpServiceModel
- type PingdomMetricProviderServiceModel
- type PingdomWatchdogServiceModel
- type ScheduleModel
- type UpdateList
- type UpdateModel
- type UpdownServiceModel
- type UptimerobotMetricProviderServiceModel
- type UptimerobotWatchdogServiceModel
- type WatchdogModel
- type WatchdogServiceModel
- func (s WatchdogServiceModel) ApiCreateForm() (hundApiV1.FormWatchdogCreate, error)
- func (s WatchdogServiceModel) ApiUpdateForm() (hundApiV1.FormWatchdogUpdate, error)
- func (s WatchdogServiceModel) NativeApiCreateForm() (hundApiV1.NativeFormCreate, error)
- func (s WatchdogServiceModel) NativeApiUpdateForm() (hundApiV1.NativeFormUpdate, error)
- func (s WatchdogServiceModel) NativeService() NativeServiceModel
- func (s *WatchdogServiceModel) ReplaceSensitiveAttributes(orig WatchdogServiceModel)
- type WebhookMetricProviderServiceModel
- type WebhookWatchdogServiceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func I18nStringError ¶
func I18nStringError(err error) diag.Diagnostic
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 ToIssueTemplateVariables ¶
func ToIssueTemplateVariables(variables hundApiV1.IssueTemplateVariables) map[string]IssueTemplateVariableModel
func ToIssueTemplateVariablesApplicationModel ¶
func ToIssueTemplateVariablesApplicationModel(variables hundApiV1.IssueTemplateVariablesApplication, schema map[string]IssueTemplateVariableModel) (map[string]IssueTemplateVariableApplicationModel, diag.Diagnostics)
func ToIssueTemplateVariablesForm ¶
func ToIssueTemplateVariablesForm(model map[string]IssueTemplateVariableModel) hundApiV1.IssueTemplateVariablesForm
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 (b BuiltinServiceModel) ApiCreateForm() hundApiV1.BuiltinFormCreate
func (BuiltinServiceModel) ApiUpdateForm ¶
func (b BuiltinServiceModel) ApiUpdateForm() hundApiV1.BuiltinFormUpdate
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"` }
func ToComponentModel ¶
func ToComponentModel(ctx context.Context, comp hundApiV1.ComponentExpansionary) (ComponentModel, diag.Diagnostics)
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"` }
func ToIssueTemplateApplicationIssueModel ¶
func ToIssueTemplateApplicationIssueModel(ctx context.Context, app hundApiV1.IssueTemplateApplicationIssue) (*IssueTemplateApplicationIssueModel, diag.Diagnostics)
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"` }
func ToIssueTemplateApplicationUpdateModel ¶
func ToIssueTemplateApplicationUpdateModel(ctx context.Context, app hundApiV1.IssueTemplateApplication) (*IssueTemplateApplicationUpdateModel, diag.Diagnostics)
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 ToIssueTemplateVariableApplicationModel ¶
func ToIssueTemplateVariableApplicationModel(variable hundApiV1.IssueTemplateVariableApplication, schema IssueTemplateVariableModel) (IssueTemplateVariableApplicationModel, diag.Diagnostics)
func (IssueTemplateVariableApplicationModel) ApiValue ¶
func (m IssueTemplateVariableApplicationModel) ApiValue() (*hundApiV1.IssueTemplateVariableApplication, error)
type IssueTemplateVariableModel ¶
type IssueTemplateVariableModel struct { Type types.String `tfsdk:"type"` Required types.Bool `tfsdk:"required"` }
func ToIssueTemplateVariableModel ¶
func ToIssueTemplateVariableModel(variable hundApiV1.IssueTemplateVariable) IssueTemplateVariableModel
type IssueTemplateVariablesApplicationModel ¶
type IssueTemplateVariablesApplicationModel map[string]IssueTemplateVariableApplicationModel
func (IssueTemplateVariablesApplicationModel) ApiValue ¶
func (m IssueTemplateVariablesApplicationModel) ApiValue() (hundApiV1.IssueTemplateVariablesApplication, diag.Diagnostics)
type ManualServiceModel ¶
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 ToMetricInstanceModel ¶
func ToMetricInstanceModel(mi hundApiV1.MetricInstance) (MetricInstanceModel, diag.Diagnostics)
func (MetricInstanceModel) ApiCreateForm ¶
func (mi MetricInstanceModel) ApiCreateForm(definitionSlug string) (hundApiV1.MetricInstanceFormCreate, diag.Diagnostics)
func (MetricInstanceModel) ApiUpdateForm ¶
func (mi MetricInstanceModel) ApiUpdateForm(definitionSlug string) (hundApiV1.MetricInstanceFormEmbeddedUpdate, diag.Diagnostics)
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"` }
func ToMetricProviderModel ¶
func ToMetricProviderModel(mp hundApiV1.MetricProvider) (MetricProviderModel, diag.Diagnostics)
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 ToMetricProviderServiceModel ¶
func ToMetricProviderServiceModel(service hundApiV1.ServicesMetricProvider) (MetricProviderServiceModel, diag.Diagnostics)
func (MetricProviderServiceModel) ApiCreateForm ¶
func (s MetricProviderServiceModel) ApiCreateForm() (hundApiV1.FormMetricProviderCreate, error)
func (MetricProviderServiceModel) ApiUpdateForm ¶
func (s MetricProviderServiceModel) ApiUpdateForm() (hundApiV1.FormMetricProviderUpdate, error)
func (MetricProviderServiceModel) NativeApiCreateForm ¶
func (s MetricProviderServiceModel) NativeApiCreateForm() (hundApiV1.NativeFormCreate, error)
func (MetricProviderServiceModel) NativeApiUpdateForm ¶
func (s MetricProviderServiceModel) NativeApiUpdateForm() (hundApiV1.NativeFormUpdate, error)
func (MetricProviderServiceModel) NativeService ¶
func (s MetricProviderServiceModel) NativeService() NativeServiceModel
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 ¶
func ToNativeHttpHeadersModel ¶
func ToNativeHttpHeadersModel(headers hundApiV1.HTTPHeaders) NativeHttpHeadersModel
func (NativeHttpHeadersModel) ApiValue ¶
func (s NativeHttpHeadersModel) ApiValue() hundApiV1.HTTPHeaders
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 (s NativeHttpServiceModel) ApiCreateForm() hundApiV1.HTTPFormCreate
func (NativeHttpServiceModel) ApiUpdateForm ¶
func (s NativeHttpServiceModel) ApiUpdateForm() hundApiV1.HTTPFormUpdate
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 (s NativeIcmpServiceModel) ApiCreateForm() hundApiV1.ICMPFormCreate
func (NativeIcmpServiceModel) ApiUpdateForm ¶
func (s NativeIcmpServiceModel) ApiUpdateForm() hundApiV1.ICMPFormUpdate
func (NativeIcmpServiceModel) GetFrequency ¶
func (s NativeIcmpServiceModel) GetFrequency() types.Int64
type NativeRegionModel ¶
func ToNativeRegionModel ¶
func ToNativeRegionModel(regions []hundApiV1.NATIVEREGION) NativeRegionModel
func (NativeRegionModel) ApiValue ¶
func (s NativeRegionModel) ApiValue() []hundApiV1.NATIVEREGION
type NativeServiceModel ¶
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 (s PingdomMetricProviderServiceModel) ApiCreateForm() hundApiV1.PingdomFormCreate
func (PingdomMetricProviderServiceModel) ApiUpdateForm ¶
func (s PingdomMetricProviderServiceModel) ApiUpdateForm() hundApiV1.PingdomFormUpdate
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 (s PingdomWatchdogServiceModel) ApiCreateForm() hundApiV1.PingdomWatchdogFormCreate
func (PingdomWatchdogServiceModel) ApiUpdateForm ¶
func (s PingdomWatchdogServiceModel) ApiUpdateForm() hundApiV1.PingdomWatchdogFormUpdate
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 (s UptimerobotMetricProviderServiceModel) ApiCreateForm() hundApiV1.UptimerobotFormCreate
func (UptimerobotMetricProviderServiceModel) ApiUpdateForm ¶
func (s UptimerobotMetricProviderServiceModel) ApiUpdateForm() hundApiV1.UptimerobotFormUpdate
type UptimerobotWatchdogServiceModel ¶
type UptimerobotWatchdogServiceModel struct { MonitorApiKey types.String `tfsdk:"monitor_api_key"` UnconfirmedIsDown types.Bool `tfsdk:"unconfirmed_is_down"` }
func (UptimerobotWatchdogServiceModel) ApiCreateForm ¶
func (s UptimerobotWatchdogServiceModel) ApiCreateForm() hundApiV1.UptimerobotWatchdogFormCreate
func (UptimerobotWatchdogServiceModel) ApiUpdateForm ¶
func (s UptimerobotWatchdogServiceModel) ApiUpdateForm() hundApiV1.UptimerobotWatchdogFormUpdate
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 ToWatchdogServiceModel ¶
func ToWatchdogServiceModel(service hundApiV1.ServicesWatchdog) (WatchdogServiceModel, diag.Diagnostics)
func (WatchdogServiceModel) ApiCreateForm ¶
func (s WatchdogServiceModel) ApiCreateForm() (hundApiV1.FormWatchdogCreate, error)
func (WatchdogServiceModel) ApiUpdateForm ¶
func (s WatchdogServiceModel) ApiUpdateForm() (hundApiV1.FormWatchdogUpdate, error)
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 ¶
func (WebhookMetricProviderServiceModel) ApiCreateForm ¶
func (s WebhookMetricProviderServiceModel) ApiCreateForm() hundApiV1.WebhookFormCreate
func (WebhookMetricProviderServiceModel) ApiUpdateForm ¶
func (s WebhookMetricProviderServiceModel) ApiUpdateForm() hundApiV1.WebhookFormUpdate
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 (s WebhookWatchdogServiceModel) ApiCreateForm() hundApiV1.WebhookWatchdogFormCreate
func (WebhookWatchdogServiceModel) ApiUpdateForm ¶
func (s WebhookWatchdogServiceModel) ApiUpdateForm() hundApiV1.WebhookWatchdogFormUpdate
Click to show internal directories.
Click to hide internal directories.