Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultScheme = "https" // API default is "http" DefaultScrapeInterval = "5m" DefaultScrapeTimeout = "2m" DefaultSampleLimit = int64(5000) 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 ¶
NewScrapeConfigResource is a helper function to simplify the provider implementation.
Types ¶
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"` SampleLimit types.Int64 `tfsdk:"sample_limit"` SAML2 types.Object `tfsdk:"saml2"` BasicAuth types.Object `tfsdk:"basic_auth"` Targets types.List `tfsdk:"targets"` }
Click to show internal directories.
Click to hide internal directories.