usage

package
v1.47.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetExpectedXrayEventName

func GetExpectedXrayEventName(productId, commandName string) string

func SendXrayUsageEvents

func SendXrayUsageEvents(serviceManager xray.XrayServicesManager, events ...ReportXrayEventData) error

Types

type ReportUsageAttribute

type ReportUsageAttribute struct {
	AttributeName  string
	AttributeValue string
}

type ReportXrayEventData

type ReportXrayEventData struct {
	Attributes map[string]string `json:"data,omitempty"`
	ProductId  string            `json:"product_name"`
	EventId    string            `json:"event_name"`
	Origin     string            `json:"origin,omitempty"`
}

func CreateUsageEvent

func CreateUsageEvent(productId, featureId string, additionalAttributes ...ReportUsageAttribute) (event ReportXrayEventData)

Jump to

Keyboard shortcuts

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