Documentation ¶
Index ¶
- Variables
- func GetInstanceName(ctx context.Context, apiClient ArgusClient, instanceId, projectId string) (string, error)
- func GetPartialUpdateGrafanaConfigsPayload(ctx context.Context, apiClient ArgusClient, instanceId, projectId string, ...) (*argus.UpdateGrafanaConfigsPayload, error)
- func LoadPlanId(planName string, resp *argus.PlansResponse) (*string, error)
- func MapToUpdateScrapeConfigPayload(resp *argus.GetScrapeConfigResponse) (*argus.UpdateScrapeConfigPayload, error)
- func ToPayloadGenericOAuth(respOAuth *argus.GrafanaOauth) *argus.UpdateGrafanaConfigsPayloadGenericOauth
- func ValidatePlanId(planId string, resp *argus.PlansResponse) error
- type ArgusClient
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultCreateScrapeConfigPayload = argus.CreateScrapeConfigPayload{ JobName: utils.Ptr("default-name"), MetricsPath: utils.Ptr("/metrics"), Scheme: utils.Ptr("https"), ScrapeInterval: utils.Ptr("5m"), ScrapeTimeout: utils.Ptr("2m"), StaticConfigs: utils.Ptr(defaultStaticConfigs), } )
Functions ¶
func GetInstanceName ¶
func GetPartialUpdateGrafanaConfigsPayload ¶ added in v0.2.3
func GetPartialUpdateGrafanaConfigsPayload(ctx context.Context, apiClient ArgusClient, instanceId, projectId string, singleSignOn, publicReadAccess *bool) (*argus.UpdateGrafanaConfigsPayload, error)
func LoadPlanId ¶
func LoadPlanId(planName string, resp *argus.PlansResponse) (*string, error)
func MapToUpdateScrapeConfigPayload ¶ added in v0.2.3
func MapToUpdateScrapeConfigPayload(resp *argus.GetScrapeConfigResponse) (*argus.UpdateScrapeConfigPayload, error)
func ToPayloadGenericOAuth ¶ added in v0.2.3
func ToPayloadGenericOAuth(respOAuth *argus.GrafanaOauth) *argus.UpdateGrafanaConfigsPayloadGenericOauth
func ValidatePlanId ¶
func ValidatePlanId(planId string, resp *argus.PlansResponse) error
Types ¶
type ArgusClient ¶
type ArgusClient interface { GetInstanceExecute(ctx context.Context, instanceId, projectId string) (*argus.GetInstanceResponse, error) GetGrafanaConfigsExecute(ctx context.Context, instanceId, projectId string) (*argus.GrafanaConfigs, error) UpdateGrafanaConfigs(ctx context.Context, instanceId string, projectId string) argus.ApiUpdateGrafanaConfigsRequest }
Click to show internal directories.
Click to hide internal directories.