resource_monitor

package
v0.0.0-...-5e9724a Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MonitorResourceSchema

func MonitorResourceSchema(ctx context.Context) schema.Schema

Types

type AssertionsType

type AssertionsType struct {
	basetypes.ObjectType
}

func (AssertionsType) Equal

func (t AssertionsType) Equal(o attr.Type) bool

func (AssertionsType) String

func (t AssertionsType) String() string

func (AssertionsType) ValueFromObject

func (AssertionsType) ValueFromTerraform

func (t AssertionsType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (AssertionsType) ValueType

func (t AssertionsType) ValueType(ctx context.Context) attr.Value

type AssertionsValue

type AssertionsValue struct {
	Compare        basetypes.StringValue `tfsdk:"compare"`
	Target         basetypes.StringValue `tfsdk:"target"`
	Key            basetypes.StringValue `tfsdk:"key"`
	AssertionsType basetypes.StringValue `tfsdk:"type"`
	// contains filtered or unexported fields
}

func NewAssertionsValue

func NewAssertionsValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (AssertionsValue, diag.Diagnostics)

func NewAssertionsValueMust

func NewAssertionsValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) AssertionsValue

func NewAssertionsValueNull

func NewAssertionsValueNull() AssertionsValue

func NewAssertionsValueUnknown

func NewAssertionsValueUnknown() AssertionsValue

func (AssertionsValue) AttributeTypes

func (v AssertionsValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (AssertionsValue) Equal

func (v AssertionsValue) Equal(o attr.Value) bool

func (AssertionsValue) IsNull

func (v AssertionsValue) IsNull() bool

func (AssertionsValue) IsUnknown

func (v AssertionsValue) IsUnknown() bool

func (AssertionsValue) String

func (v AssertionsValue) String() string

func (AssertionsValue) ToObjectValue

func (AssertionsValue) ToTerraformValue

func (v AssertionsValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (AssertionsValue) Type

func (v AssertionsValue) Type(ctx context.Context) attr.Type

type HeadersType

type HeadersType struct {
	basetypes.ObjectType
}

func (HeadersType) Equal

func (t HeadersType) Equal(o attr.Type) bool

func (HeadersType) String

func (t HeadersType) String() string

func (HeadersType) ValueFromObject

func (HeadersType) ValueFromTerraform

func (t HeadersType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (HeadersType) ValueType

func (t HeadersType) ValueType(ctx context.Context) attr.Value

type HeadersValue

type HeadersValue struct {
	Key   basetypes.StringValue `tfsdk:"key"`
	Value basetypes.StringValue `tfsdk:"value"`
	// contains filtered or unexported fields
}

func NewHeadersValue

func NewHeadersValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (HeadersValue, diag.Diagnostics)

func NewHeadersValueMust

func NewHeadersValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) HeadersValue

func NewHeadersValueNull

func NewHeadersValueNull() HeadersValue

func NewHeadersValueUnknown

func NewHeadersValueUnknown() HeadersValue

func (HeadersValue) AttributeTypes

func (v HeadersValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (HeadersValue) Equal

func (v HeadersValue) Equal(o attr.Value) bool

func (HeadersValue) IsNull

func (v HeadersValue) IsNull() bool

func (HeadersValue) IsUnknown

func (v HeadersValue) IsUnknown() bool

func (HeadersValue) String

func (v HeadersValue) String() string

func (HeadersValue) ToObjectValue

func (HeadersValue) ToTerraformValue

func (v HeadersValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (HeadersValue) Type

func (v HeadersValue) Type(ctx context.Context) attr.Type

type MonitorModel

type MonitorModel struct {
	Active        types.Bool   `tfsdk:"active"`
	Assertions    types.List   `tfsdk:"assertions"`
	Body          types.String `tfsdk:"body"`
	DegradedAfter types.Number `tfsdk:"degraded_after"`
	Description   types.String `tfsdk:"description"`
	Headers       types.List   `tfsdk:"headers"`
	Id            types.Number `tfsdk:"id"`
	Method        types.String `tfsdk:"method"`
	Name          types.String `tfsdk:"name"`
	Periodicity   types.String `tfsdk:"periodicity"`
	Public        types.Bool   `tfsdk:"public"`
	Regions       types.List   `tfsdk:"regions"`
	Timeout       types.Number `tfsdk:"timeout"`
	Url           types.String `tfsdk:"url"`
}

Jump to

Keyboard shortcuts

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