Documentation ¶
Overview ¶
Package http implements the remote.http component.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultArguments = Arguments{ PollFrequency: 1 * time.Minute, PollTimeout: 10 * time.Second, Client: common_config.DefaultHTTPClientConfig, Method: http.MethodGet, }
DefaultArguments holds default settings for Arguments.
Functions ¶
This section is empty.
Types ¶
type Arguments ¶
type Arguments struct { URL string `alloy:"url,attr"` PollFrequency time.Duration `alloy:"poll_frequency,attr,optional"` PollTimeout time.Duration `alloy:"poll_timeout,attr,optional"` IsSecret bool `alloy:"is_secret,attr,optional"` Method string `alloy:"method,attr,optional"` Headers map[string]string `alloy:"headers,attr,optional"` Body string `alloy:"body,attr,optional"` Client common_config.HTTPClientConfig `alloy:"client,block,optional"` }
Arguments control the remote.http component.
func (*Arguments) SetToDefault ¶
func (args *Arguments) SetToDefault()
SetToDefault implements syntax.Defaulter.
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
Component implements the remote.http component.
func (*Component) CurrentHealth ¶
CurrentHealth returns the current health of the component.
type Exports ¶
type Exports struct {
Content alloytypes.OptionalSecret `alloy:"content,attr"`
}
Exports holds settings exported by remote.http.
Click to show internal directories.
Click to hide internal directories.