monitor

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewComparisonMonitorResource

func NewComparisonMonitorResource() resource.Resource

To simplify provider implementations, a named function can be created with the resource implementation.

Types

type Comparison

type Comparison struct {
	Operator            types.String  `tfsdk:"operator"`
	ThresholdValue      types.Float64 `tfsdk:"threshold_value"`
	ComparisonType      types.String  `tfsdk:"comparison_type"`
	IsThresholdRelative types.Bool    `tfsdk:"is_threshold_relative"`
}

type ComparisonMonitorResource

type ComparisonMonitorResource struct {
	// contains filtered or unexported fields
}

ComparisonMonitorResource defines the resource implementation.

func (*ComparisonMonitorResource) Configure

func (*ComparisonMonitorResource) Create

func (*ComparisonMonitorResource) Delete

func (*ComparisonMonitorResource) ImportState

func (*ComparisonMonitorResource) Metadata

func (*ComparisonMonitorResource) Read

func (*ComparisonMonitorResource) Schema

func (*ComparisonMonitorResource) Update

type ComparisonMonitorResourceModel

type ComparisonMonitorResourceModel struct {
	Uuid            types.String   `tfsdk:"uuid"`
	Description     types.String   `tfsdk:"description"`
	Comparisons     Comparison     `tfsdk:"comparisons"`
	QueryResultType types.String   `tfsdk:"query_result_type"`
	Source          Source         `tfsdk:"source"`
	Target          Target         `tfsdk:"target"`
	ScheduleConfig  ScheduleConfig `tfsdk:"schedule_config"`
}

ComparisonMonitorResourceModel describes the resource data model according to its Schema.

type CustomRuleComparisonInput

type CustomRuleComparisonInput struct {
	Operator            string  `json:"operator"`
	Threshold           float64 `json:"threshold"`
	ComparisonType      string  `json:"comparisonType"`
	IsThresholdRelative bool    `json:"isThresholdRelative"`
}

type QueryResultType

type QueryResultType string

type ScheduleConfig

type ScheduleConfig struct {
	ScheduleType types.String `tfsdk:"schedule_type"`
}

type ScheduleConfigInput

type ScheduleConfigInput struct {
	ScheduleType string `json:"scheduleType"`
}

type Source

type Source struct {
	WarehouseUuid types.String `tfsdk:"warehouse_uuid"`
	SqlQuery      types.String `tfsdk:"sql_query"`
}

type Target

type Target struct {
	WarehouseUuid types.String `tfsdk:"warehouse_uuid"`
	SqlQuery      types.String `tfsdk:"sql_query"`
}

Jump to

Keyboard shortcuts

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