Help us shape the future of Go! Take the 2026 Go Developer Survey

argus

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultScheme                   = "https" // API default is "http"
	DefaultScrapeInterval           = "5m"
	DefaultScrapeTimeout            = "2m"
	DefaultSAML2EnableURLParameters = true
)

Variables

This section is empty.

Functions

func NewScrapeConfigDataSource

func NewScrapeConfigDataSource() datasource.DataSource

NewScrapeConfigDataSource is a helper function to simplify the provider implementation.

func NewScrapeConfigResource

func NewScrapeConfigResource() resource.Resource

NewScrapeConfigResource is a helper function to simplify the provider implementation.

Types

type BasicAuth

type BasicAuth struct {
	Username types.String `tfsdk:"username"`
	Password types.String `tfsdk:"password"`
}

type Model

type Model struct {
	Id             types.String `tfsdk:"id"` // needed by TF
	ProjectId      types.String `tfsdk:"project_id"`
	InstanceId     types.String `tfsdk:"instance_id"`
	Name           types.String `tfsdk:"name"`
	MetricsPath    types.String `tfsdk:"metrics_path"`
	Scheme         types.String `tfsdk:"scheme"`
	ScrapeInterval types.String `tfsdk:"scrape_interval"`
	ScrapeTimeout  types.String `tfsdk:"scrape_timeout"`
	SAML2          *SAML2       `tfsdk:"saml2"`
	BasicAuth      *BasicAuth   `tfsdk:"basic_auth"`
	Targets        []Target     `tfsdk:"targets"`
}

type SAML2

type SAML2 struct {
	EnableURLParameters types.Bool `tfsdk:"enable_url_parameters"`
}

type Target

type Target struct {
	URLs   []types.String `tfsdk:"urls"`
	Labels types.Map      `tfsdk:"labels"`
}

Jump to

Keyboard shortcuts

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