instance

package
v1.15.7 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() resource.Resource

New returns a new configured resource

Types

type Grafana

type Grafana struct {
	EnablePublicAccess types.Bool `tfsdk:"enable_public_access"`
}

type Instance

type Instance struct {
	ID                          types.String `tfsdk:"id"`
	Name                        types.String `tfsdk:"name"`
	ProjectID                   types.String `tfsdk:"project_id"`
	Plan                        types.String `tfsdk:"plan"`
	Grafana                     *Grafana     `tfsdk:"grafana"`
	Metrics                     *Metrics     `tfsdk:"metrics"`
	PlanID                      types.String `tfsdk:"plan_id"`
	DashboardURL                types.String `tfsdk:"dashboard_url"`
	IsUpdatable                 types.Bool   `tfsdk:"is_updatable"`
	GrafanaURL                  types.String `tfsdk:"grafana_url"`
	GrafanaInitialAdminPassword types.String `tfsdk:"grafana_initial_admin_password"`
	GrafanaInitialAdminUser     types.String `tfsdk:"grafana_initial_admin_user"`
	MetricsURL                  types.String `tfsdk:"metrics_url"`
	MetricsPushURL              types.String `tfsdk:"metrics_push_url"`
	TargetsURL                  types.String `tfsdk:"targets_url"`
	AlertingURL                 types.String `tfsdk:"alerting_url"`
	LogsURL                     types.String `tfsdk:"logs_url"`
	LogsPushURL                 types.String `tfsdk:"logs_push_url"`
	JaegerTracesURL             types.String `tfsdk:"jaeger_traces_url"`
	JaegerUIURL                 types.String `tfsdk:"jaeger_ui_url"`
	OtlpTracesURL               types.String `tfsdk:"otlp_traces_url"`
	ZipkinSpansURL              types.String `tfsdk:"zipkin_spans_url"`
}

Instance is the schema model

type Metrics

type Metrics struct {
	RetentionDays               types.Int64 `tfsdk:"retention_days"`
	RetentionDays5mDownsampling types.Int64 `tfsdk:"retention_days_5m_downsampling"`
	RetentionDays1hDownsampling types.Int64 `tfsdk:"retention_days_1h_downsampling"`
}

type Resource

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

Resource is the exported resource

func (*Resource) Configure added in v1.0.0

Configure the resource client

func (Resource) Create

Create - lifecycle function

func (Resource) Delete

Delete - lifecycle function

func (*Resource) ImportState

ImportState handles terraform import

func (*Resource) Metadata

Metadata returns data resource metadata

func (Resource) Read

Read - lifecycle function

func (*Resource) Schema added in v1.9.0

Schema returns the terraform schema structure

func (Resource) Update

Update - lifecycle function

Jump to

Keyboard shortcuts

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