usage

package
v0.0.0-...-acd5dfc Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

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