services

package
v1.48.6 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const LogMetricApiEndpoint = "api/v1/backoffice/metrics/log"

Variables

This section is empty.

Functions

This section is empty.

Types

type JfConnectService

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

func NewJfConnectService

func NewJfConnectService(serviceDetails auth.ServiceDetails, client *jfroghttpclient.JfrogHttpClient) *JfConnectService

func (*JfConnectService) GetJfConnectDetails

func (jcs *JfConnectService) GetJfConnectDetails() auth.ServiceDetails

func (*JfConnectService) PostVisibilityMetric added in v1.48.5

func (jcs *JfConnectService) PostVisibilityMetric(metric VisibilityMetric) error

type Labels added in v1.48.5

type Labels struct {
	ProductID                            string `json:"product_id"`
	ProductVersion                       string `json:"product_version"`
	FeatureID                            string `json:"feature_id"`
	OIDCUsed                             string `json:"oidc_used"`
	JobID                                string `json:"job_id"`
	RunID                                string `json:"run_id"`
	GitRepo                              string `json:"git_repo"`
	GhTokenForCodeScanningAlertsProvided string `json:"gh_token_for_code_scanning_alerts_provided"`
}

type VisibilityMetric added in v1.48.5

type VisibilityMetric struct {
	Value       int    `json:"value"`
	MetricsName string `json:"metrics_name"`
	Labels      Labels `json:"labels"`
}

Jump to

Keyboard shortcuts

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