MCPcopy Index your code
hub / github.com/coder/coder / ConnectionLog

Struct ConnectionLog

coderd/database/models.go:4776–4800  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4774}
4775
4776type ConnectionLog struct {
4777 ID uuid.UUID `db:"id" json:"id"`
4778 ConnectTime time.Time `db:"connect_time" json:"connect_time"`
4779 OrganizationID uuid.UUID `db:"organization_id" json:"organization_id"`
4780 WorkspaceOwnerID uuid.UUID `db:"workspace_owner_id" json:"workspace_owner_id"`
4781 WorkspaceID uuid.UUID `db:"workspace_id" json:"workspace_id"`
4782 WorkspaceName string `db:"workspace_name" json:"workspace_name"`
4783 AgentName string `db:"agent_name" json:"agent_name"`
4784 Type ConnectionType `db:"type" json:"type"`
4785 Ip pqtype.Inet `db:"ip" json:"ip"`
4786 // Either the HTTP status code of the web request, or the exit code of an SSH connection. For non-web connections, this is Null until we receive a disconnect event for the same connection_id.
4787 Code sql.NullInt32 `db:"code" json:"code"`
4788 // Null for SSH events. For web connections, this is the User-Agent header from the request.
4789 UserAgent sql.NullString `db:"user_agent" json:"user_agent"`
4790 // Null for SSH events. For web connections, this is the ID of the user that made the request.
4791 UserID uuid.NullUUID `db:"user_id" json:"user_id"`
4792 // Null for SSH events. For web connections, this is the slug of the app or the port number being forwarded.
4793 SlugOrPort sql.NullString `db:"slug_or_port" json:"slug_or_port"`
4794 // The SSH connection ID. Used to correlate connections and disconnections. As it originates from the agent, it is not guaranteed to be unique.
4795 ConnectionID uuid.NullUUID `db:"connection_id" json:"connection_id"`
4796 // The time the connection was closed. Null for web connections. For other connections, this is null until we receive a disconnect event for the same connection_id.
4797 DisconnectTime sql.NullTime `db:"disconnect_time" json:"disconnect_time"`
4798 // The reason the connection was closed. Null for web connections. For other connections, this is null until we receive a disconnect event for the same connection_id.
4799 DisconnectReason sql.NullString `db:"disconnect_reason" json:"disconnect_reason"`
4800}
4801
4802type CryptoKey struct {
4803 Feature CryptoKeyFeature `db:"feature" json:"feature"`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected