Documentation
¶
Index ¶
Constants ¶
View Source
const ( BuildExecutionID = "build_execution_id" WorkflowExecutionID = "workflow_execution_id" StepExecutionID = "step_execution_id" ToolSnapshotEndOfWorkflowValue = "end_of_workflow" StepExecutionIDEnvKey = "BITRISE_STEP_EXECUTION_ID" )
View Source
const (
DisabledEnvKey = "BITRISE_ANALYTICS_DISABLED"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Input ¶
type Input struct {
Value interface{} `json:"value"`
OriginalValue string `json:"original_value,omitempty"`
}
type StateChecker ¶
type StateChecker interface {
Enabled() bool
}
func NewStateChecker ¶
func NewStateChecker(repository env.Repository) StateChecker
type StepResult ¶
type Tracker ¶
type Tracker interface {
SendWorkflowStarted(properties analytics.Properties, name string, title string)
SendWorkflowFinished(properties analytics.Properties, failed bool)
SendStepStartedEvent(properties analytics.Properties, info StepInfo, activateDuration time.Duration, expandedInputs map[string]interface{}, originalInputs map[string]string)
SendStepFinishedEvent(properties analytics.Properties, result StepResult)
SendCLIWarning(message string)
SendCommandInfo(command, subcommand string, flags []string)
SendToolSetupEvent(provider string, request provider.ToolRequest, result provider.ToolInstallResult, is_successful bool, setupTime time.Duration)
SendStepActivationEvent(activationType activator.ActivationType, ref string, isSuccessful bool, duration time.Duration, didSteplibUpdate bool)
SendToolkitPrepareEvent(stepExecutionID string, toolkitName string, stepID string, stepVersion string, result toolkits.PrepareForStepRunResult, err error)
IsTracking() bool
Wait()
}
func NewDefaultTracker ¶
func NewDefaultTracker() Tracker
func NewTracker ¶
func NewTracker(analyticsTracker analytics.Tracker, envRepository env.Repository, stateChecker StateChecker, logger utilslog.Logger) Tracker
Click to show internal directories.
Click to hide internal directories.