Documentation ¶
Index ¶
Constants ¶
View Source
const ( NodeInstallationIDKey = "installation_id" NodeInstanceIDKey = "instance_id" NodeIDKey = "node_id" NodeTypeKey = "node_type" NodeVersionKey = "node_version" )
View Source
const ( // SubmitJobEventType is the event type for a job that has been submitted to an orchestrator. SubmitJobEventType = "bacalhau.job_v1.submit" // TerminalJobEventType is the event type for a job that has reached a terminal state. TerminalJobEventType = "bacalhau.job_v1.terminal" )
View Source
const DefaultOtelCollectorEndpoint = "t.bacalhau.org:4317"
View Source
const ProviderKey = "bacalhau-analytics"
Variables ¶
This section is empty.
Functions ¶
func SetupAnalyticsProvider ¶
Types ¶
type JobTerminalEvent ¶
type JobTerminalEvent struct { ID string `json:"id"` NameSet bool `json:"name_set"` NamespaceHash string `json:"namespace_hash"` Type string `json:"type"` Count int `json:"count"` LabelsCount int `json:"labels_count"` MetaCount int `json:"meta_count"` State string `json:"state"` StateMessage string `json:"state_message"` Version uint64 `json:"version"` Revision uint64 `json:"revision"` CreateTime int64 `json:"create_time"` ModifyTime int64 `json:"modify_time"` TaskNameHash string `json:"task_name_hash"` TaskEngineType string `json:"task_engine_type"` TaskPublisherType string `json:"task_publisher_type"` TaskEnvVarCount int `json:"task_env_var_count"` TaskMetaCount int `json:"task_meta_count"` TaskInputSourceTypes []string `json:"task_input_source_types"` TaskResultPathCount int `json:"task_result_path_count"` TaskCPUUnits float64 `json:"task_cpu_units"` TaskMemoryBytes uint64 `json:"task_memory_bytes"` TaskDiskBytes uint64 `json:"task_disk_bytes"` TaskGPUCount uint64 `json:"task_gpu_count"` TaskNetworkType string `json:"task_network_type"` TaskDomainsCount int `json:"task_domains_count"` TaskExecutionTimeout int64 `json:"task_execution_timeout"` TaskQueueTimeout int64 `json:"task_queue_timeout"` TaskTotalTimeout int64 `json:"task_total_timeout"` }
type Option ¶
type Option func(*Config)
func WithEndpoint ¶
func WithInstallationID ¶
func WithInstanceID ¶
func WithNodeNodeID ¶
func WithNodeType ¶
func WithVersion ¶
func WithVersion(bv *models.BuildVersionInfo) Option
type SubmitJobEvent ¶
type SubmitJobEvent struct { ID string `json:"id"` NameSet bool `json:"name_set"` NamespaceHash string `json:"namespace_hash"` Type string `json:"type"` Count int `json:"count"` LabelsCount int `json:"labels_count"` MetaCount int `json:"meta_count"` Version uint64 `json:"version"` Revision uint64 `json:"revision"` CreateTime int64 `json:"create_time"` ModifyTime int64 `json:"modify_time"` TaskNameHash string `json:"task_name_hash"` TaskEngineType string `json:"task_engine_type"` TaskPublisherType string `json:"task_publisher_type"` TaskEnvVarCount int `json:"task_env_var_count"` TaskMetaCount int `json:"task_meta_count"` TaskInputSourceTypes []string `json:"task_input_source_types"` TaskResultPathCount int `json:"task_result_path_count"` TaskCPUUnits float64 `json:"task_cpu_units"` TaskMemoryBytes uint64 `json:"task_memory_bytes"` TaskDiskBytes uint64 `json:"task_disk_bytes"` TaskGPUCount uint64 `json:"task_gpu_count"` TaskNetworkType string `json:"task_network_type"` TaskDomainsCount int `json:"task_domains_count"` TaskExecutionTimeout int64 `json:"task_execution_timeout"` TaskQueueTimeout int64 `json:"task_queue_timeout"` TaskTotalTimeout int64 `json:"task_total_timeout"` Warnings []string `json:"warnings"` Error string `json:"error"` }
func NewSubmitJobEvent ¶
func NewSubmitJobEvent(j models.Job, warnings ...string) SubmitJobEvent
Click to show internal directories.
Click to hide internal directories.