Documentation
¶
Index ¶
- Variables
- type Client
- func (c *Client) CreateMetricsEndpointScrapeJob(ctx context.Context, stackID, jobName string, jobData MetricsEndpointScrapeJob) (MetricsEndpointScrapeJob, error)
- func (c *Client) DeleteMetricsEndpointScrapeJob(ctx context.Context, stackID, jobName string) error
- func (c *Client) GetMetricsEndpointScrapeJob(ctx context.Context, stackID, jobName string) (MetricsEndpointScrapeJob, error)
- func (c *Client) UpdateMetricsEndpointScrapeJob(ctx context.Context, stackID, jobName string, jobData MetricsEndpointScrapeJob) (MetricsEndpointScrapeJob, error)
- type MetricsEndpointScrapeJob
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = fmt.Errorf("not found") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateMetricsEndpointScrapeJob ¶
func (c *Client) CreateMetricsEndpointScrapeJob(ctx context.Context, stackID, jobName string, jobData MetricsEndpointScrapeJob) (MetricsEndpointScrapeJob, error)
func (*Client) DeleteMetricsEndpointScrapeJob ¶
func (*Client) GetMetricsEndpointScrapeJob ¶
func (*Client) UpdateMetricsEndpointScrapeJob ¶
func (c *Client) UpdateMetricsEndpointScrapeJob(ctx context.Context, stackID, jobName string, jobData MetricsEndpointScrapeJob) (MetricsEndpointScrapeJob, error)
type MetricsEndpointScrapeJob ¶
type MetricsEndpointScrapeJob struct {
Enabled bool `json:"enabled"`
AuthenticationMethod string `json:"authentication_method"`
AuthenticationBearerToken string `json:"bearer_token,omitempty"`
AuthenticationBasicUsername string `json:"basic_username,omitempty"`
AuthenticationBasicPassword string `json:"basic_password,omitempty"`
URL string `json:"url"`
ScrapeIntervalSeconds int64 `json:"scrape_interval_seconds"`
}
Click to show internal directories.
Click to hide internal directories.