Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Event Keys RepoInit = "Repo Init" RepoConnect = "Repo Connect" BackupEnd = "Backup End" RestoreEnd = "Restore End" ExportEnd = "Export End" MaintenanceEnd = "Maintenance End" // Event Data Keys BackupCreateTime = "backup_creation_time" BackupID = "backup_id" DataRetrieved = "data_retrieved" DataStored = "data_stored" Duration = "duration" EndTime = "end_time" ItemsRead = "items_read" ItemsWritten = "items_written" Resources = "resources" RestoreID = "restore_id" ExportID = "export_id" Service = "service" StartTime = "start_time" Status = "status" // default values for keys RepoIDNotFound = "not_found" )
keys for ease of use
View Source
const (
APICall metricsCategory = "api_call"
)
metrics collection bucket
Variables ¶
View Source
var ( RudderStackWriteKey string RudderStackDataPlaneURL string )
Functions ¶
func NewMetrics ¶
NewMetrics embeds a metrics bus into the provided context. The bus can be utilized with calls like Inc and Since.
Types ¶
Click to show internal directories.
Click to hide internal directories.