Documentation
¶
Index ¶
- func GenerateUsageEvents(ctx context.Context, conn driver.Conn, logger *zap.SugaredLogger)
- func RunAlertsMigrations(ctx context.Context, dsn string) error
- func RunAnalyticsMigrations(ctx context.Context, dsn string) error
- func RunErrorTrackingMigrations(ctx context.Context, dsn string) error
- func RunGooseMigrations(ctx context.Context, dsn string, migrations []*goose.Migration) error
- func RunLoggingMigrations(ctx context.Context, dsn string) error
- func RunMetricsMigrations(ctx context.Context, dsn string) error
- func RunSnowplowMigrations(ctx context.Context, dsn string) error
- func RunTestingMigrations(ctx context.Context, dsn string) error
- func RunTracingMigrations(ctx context.Context, dsn string) error
- type JSONData
- type LLMOperations
- type MetadataContent
- type ResourceConsumption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateUsageEvents ¶
func RunGooseMigrations ¶
Types ¶
type JSONData ¶
type JSONData struct { EventType string `json:"event_type"` // New field from your example InstanceID string `json:"instance_id"` UniqueInstanceID string `json:"unique_instance_id"` HostName string `json:"host_name"` FeatureID *string `json:"feature_id,omitempty"` // Specific format: "2024-05-20T14:30:45.123Z" ContextGeneratedAt string `json:"context_generated_at"` DurationSeconds *float64 `json:"duration_seconds"` Realm string `json:"realm"` ProjectID *int64 `json:"project_id"` NamespaceID int64 `json:"namespace_id"` GlobalUserID string `json:"global_user_id"` UltimateParentNamespaceID int64 `json:"ultimate_parent_namespace_id"` Metadata MetadataContent `json:"metadata"` UnitOfMeasure *string `json:"unit_of_measure,omitempty"` EventID string `json:"event_id,omitempty"` }
type LLMOperations ¶
type MetadataContent ¶
type MetadataContent struct { WorkflowID string `json:"workflow_id"` ExecutionEnvironment string `json:"execution_environment"` ResourceConsumption ResourceConsumption `json:"resource_consumption"` LLMOperations LLMOperations `json:"llm_operations"` CommandsExecuted int `json:"commands_executed"` }
MetadataContent matches the structure of the "metadata" object in your example.
type ResourceConsumption ¶
Click to show internal directories.
Click to hide internal directories.