clientset

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionsClient

type ActionsClient struct {
	// contains filtered or unexported fields
}

func NewActionsClient

func NewActionsClient(c *CallPropertiesCreator) *ActionsClient

func (ActionsClient) CreateAction

func (ActionsClient) DeleteAction

func (ActionsClient) GetAction

func (ActionsClient) UpdateAction

type AlertsClient

type AlertsClient struct {
	// contains filtered or unexported fields
}

func NewAlertsClient

func NewAlertsClient(c *CallPropertiesCreator) *AlertsClient

func (AlertsClient) CreateAlert

type CallProperties

type CallProperties struct {
	Ctx         context.Context
	Connection  *grpc.ClientConn
	CallOptions []grpc.CallOption
}

type CallPropertiesCreator

type CallPropertiesCreator struct {
	// contains filtered or unexported fields
}

func NewCallPropertiesCreator

func NewCallPropertiesCreator(targetUrl, apiKey string) *CallPropertiesCreator

func (CallPropertiesCreator) GetCallProperties

func (c CallPropertiesCreator) GetCallProperties(ctx context.Context) (*CallProperties, error)

type ClientSet

type ClientSet struct {
	// contains filtered or unexported fields
}

func NewClientSet

func NewClientSet(targetUrl, apiKey string) *ClientSet

func (*ClientSet) Actions

func (c *ClientSet) Actions() *ActionsClient

func (*ClientSet) Alerts

func (c *ClientSet) Alerts() *AlertsClient

func (*ClientSet) Dashboards

func (c *ClientSet) Dashboards() *DashboardsClient

func (*ClientSet) DataSet

func (c *ClientSet) DataSet() *DataSetClient

func (*ClientSet) Enrichments

func (c *ClientSet) Enrichments() *EnrichmentsClient

func (*ClientSet) GrafanaDashboards

func (c *ClientSet) GrafanaDashboards() *GrafanaDashboardClient

func (*ClientSet) Logs2Metrics

func (c *ClientSet) Logs2Metrics() *Logs2MetricsClient

func (*ClientSet) RecordingRuleGroups

func (c *ClientSet) RecordingRuleGroups() *RecordingRulesGroupsClient

func (*ClientSet) RuleGroups

func (c *ClientSet) RuleGroups() *RuleGroupsClient

func (*ClientSet) TCOPolicies

func (c *ClientSet) TCOPolicies() *TCOPolicies

func (*ClientSet) Webhooks

func (c *ClientSet) Webhooks() *WebhooksClient

type DashboardsClient

type DashboardsClient struct {
	// contains filtered or unexported fields
}

func NewDashboardsClient

func NewDashboardsClient(c *CallPropertiesCreator) *DashboardsClient

func (DashboardsClient) GetDashboard

type DataSetClient

type DataSetClient struct {
	// contains filtered or unexported fields
}

func NewDataSetClient

func NewDataSetClient(c *CallPropertiesCreator) *DataSetClient

type EnrichmentsClient

type EnrichmentsClient struct {
	// contains filtered or unexported fields
}

func NewEnrichmentClient

func NewEnrichmentClient(c *CallPropertiesCreator) *EnrichmentsClient

func (EnrichmentsClient) CreateEnrichments

func (EnrichmentsClient) DeleteEnrichments

func (e EnrichmentsClient) DeleteEnrichments(ctx context.Context, ids []uint32) error

func (EnrichmentsClient) DeleteEnrichmentsByType

func (e EnrichmentsClient) DeleteEnrichmentsByType(ctx context.Context, enrichmentType string) error

func (EnrichmentsClient) GetCustomEnrichments

func (e EnrichmentsClient) GetCustomEnrichments(ctx context.Context, customEnrichmentId uint32) ([]*enrichment.Enrichment, error)

func (EnrichmentsClient) GetEnrichmentsByType

func (e EnrichmentsClient) GetEnrichmentsByType(ctx context.Context, enrichmentType string) ([]*enrichment.Enrichment, error)

func (EnrichmentsClient) UpdateEnrichments

func (e EnrichmentsClient) UpdateEnrichments(ctx context.Context, ids []uint32, req []*enrichment.EnrichmentRequestModel) ([]*enrichment.Enrichment, error)

type GrafanaDashboardClient

type GrafanaDashboardClient struct {
	// contains filtered or unexported fields
}

func (GrafanaDashboardClient) CreateGrafanaDashboard

func (g GrafanaDashboardClient) CreateGrafanaDashboard(ctx context.Context, dashboard gapi.Dashboard) (*gapi.DashboardSaveResponse, error)

func (GrafanaDashboardClient) DeleteGrafanaDashboard

func (g GrafanaDashboardClient) DeleteGrafanaDashboard(ctx context.Context, uid string) error

func (GrafanaDashboardClient) GetGrafanaDashboard

func (g GrafanaDashboardClient) GetGrafanaDashboard(ctx context.Context, uid string) (*gapi.Dashboard, error)

func (GrafanaDashboardClient) GetTargetURL

func (g GrafanaDashboardClient) GetTargetURL() string

func (GrafanaDashboardClient) UpdateGrafanaDashboard

func (g GrafanaDashboardClient) UpdateGrafanaDashboard(ctx context.Context, dashboard gapi.Dashboard) (*gapi.DashboardSaveResponse, error)

type Logs2MetricsClient

type Logs2MetricsClient struct {
	// contains filtered or unexported fields
}

func NewLogs2MetricsClient

func NewLogs2MetricsClient(c *CallPropertiesCreator) *Logs2MetricsClient

func (Logs2MetricsClient) CreateLogs2Metric

func (Logs2MetricsClient) DeleteLogs2Metric

func (Logs2MetricsClient) GetLogs2Metric

func (Logs2MetricsClient) UpdateLogs2Metric

type RecordingRulesGroupsClient

type RecordingRulesGroupsClient struct {
	// contains filtered or unexported fields
}

func (RecordingRulesGroupsClient) CreateRecordingRuleGroupSet

func (RecordingRulesGroupsClient) DeleteRecordingRuleGroupSet

func (r RecordingRulesGroupsClient) DeleteRecordingRuleGroupSet(ctx context.Context, req *rrg.DeleteRuleGroupSet) (*emptypb.Empty, error)

func (RecordingRulesGroupsClient) GetRecordingRuleGroupSet

func (r RecordingRulesGroupsClient) GetRecordingRuleGroupSet(ctx context.Context, req *rrg.FetchRuleGroupSet) (*rrg.OutRuleGroupSet, error)

func (RecordingRulesGroupsClient) ListRecordingRuleGroup

func (r RecordingRulesGroupsClient) ListRecordingRuleGroup(ctx context.Context) (*rrg.RuleGroupSetListing, error)

func (RecordingRulesGroupsClient) UpdateRecordingRuleGroupSet

func (r RecordingRulesGroupsClient) UpdateRecordingRuleGroupSet(ctx context.Context, req *rrg.UpdateRuleGroupSet) (*emptypb.Empty, error)

type RuleGroupsClient

type RuleGroupsClient struct {
	// contains filtered or unexported fields
}

func NewRuleGroupsClient

func NewRuleGroupsClient(c *CallPropertiesCreator) *RuleGroupsClient

type TCOPolicies

type TCOPolicies struct {
	// contains filtered or unexported fields
}

func NewTCOPoliciesClient

func NewTCOPoliciesClient(c *CallPropertiesCreator) *TCOPolicies

func (TCOPolicies) CreateTCOPolicy

func (t TCOPolicies) CreateTCOPolicy(ctx context.Context, jsonContent string) (string, error)

func (TCOPolicies) DeleteTCOPolicy

func (t TCOPolicies) DeleteTCOPolicy(ctx context.Context, id string) error

func (TCOPolicies) GetTCOPolicy

func (t TCOPolicies) GetTCOPolicy(ctx context.Context, id string) (string, error)

func (TCOPolicies) UpdateTCOPolicy

func (t TCOPolicies) UpdateTCOPolicy(ctx context.Context, id string, jsonContent string) (string, error)

type WebhooksClient

type WebhooksClient struct {
	// contains filtered or unexported fields
}

func NewWebhooksClient

func NewWebhooksClient(c *CallPropertiesCreator) *WebhooksClient

func (WebhooksClient) CreateWebhook

func (w WebhooksClient) CreateWebhook(ctx context.Context, body string) (string, error)

func (WebhooksClient) DeleteWebhook

func (w WebhooksClient) DeleteWebhook(ctx context.Context, webhookId string) (string, error)

func (WebhooksClient) GetWebhook

func (w WebhooksClient) GetWebhook(ctx context.Context, webhookId string) (string, error)

func (WebhooksClient) UpdateWebhook

func (w WebhooksClient) UpdateWebhook(ctx context.Context, body string) (string, error)

Jump to

Keyboard shortcuts

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