types

package
v0.5.12-alpha.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: MPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CMDFinishedEvent

type CMDFinishedEvent struct {
	// Time represents Unix timestampt in microseconds
	Timestamp       int64  `json:"timestamp,omitempty"`
	ExecutionID     string `json:"executionID,omitempty"`
	Command         string `json:"command,omitempty"`
	Provider        string `json:"provider,omitempty"`
	ProviderVersion string `json:"providerVersion,omitempty"` //TODO: implement a way to get this value
	Success         bool   `json:"success,omitempty"`
	ProcessingTime  int    `json:"processingTime,omitempty"`
	Errors          string `json:"errors,omitempty"`
}

type CMDStartedEvent

type CMDStartedEvent struct {
	// Timestamp represents Unix timestampt in microseconds
	Timestamp       int64  `json:"timestamp,omitempty"`
	ExecutionID     string `json:"executionID,omitempty"`
	Command         string `json:"command,omitempty"`
	Provider        string `json:"provider,omitempty"`
	ProviderVersion string `json:"providerVersion,omitempty"` //TODO: implement a way to get this value
}

type Event

type Event interface{}

type EventType

type EventType string
const (
	EventCommandStarted  EventType = "cmdstarted"
	EventCommandFinished EventType = "cmdfinished"
)

type Flags

type Flags struct {
	SetFlags []string `json:"setFlags,omitempty"`
}

type InstanceProperties

type InstanceProperties struct {
	Timestamp   int64   `json:"timestamp,omitempty"`
	ExecutionID string  `json:"executionID,omitempty"`
	UID         string  `json:"uid,omitempty"`
	Arch        string  `json:"arch,omitempty"`
	OS          string  `json:"os,omitempty"`
	Version     Version `json:"version,omitempty"`
	Flags       Flags   `json:"flags,omitempty"`
	UI          bool    `json:"ui"`
}

type TelemetryRequest

type TelemetryRequest struct {
	EventType          EventType          `json:"type,omitempty"`
	Event              interface{}        `json:"event,omitempty"`
	InstanceProperties InstanceProperties `json:"instanceProperties,omitempty"`
	Token              string             `json:"token,omitempty"`
}

type Version

type Version struct {
	Major      string `json:"major,omitempty"`
	Minor      string `json:"minor,omitempty"`
	Patch      string `json:"patch,omitempty"`
	PreRelease string `json:"prerelease,omitempty"`
	Build      string `json:"build,omitempty"`
}

Uses semver spec

Jump to

Keyboard shortcuts

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