Files
threshold/internal/bsr/types.go
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
1.2 KiB
Go
Raw Normal View History

2023-05-25 15:48:35 +00:00
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package bsr
import "time"
type (
// SessionSummary encapsulates data for a session, including its session id, connection count,
// and start/end time using a monotonic clock
SessionSummary struct {
Id string
ConnectionCount uint64
StartTime time.Time
EndTime time.Time
2023-05-11 15:40:46 -04:00
Errors error
2023-05-25 15:48:35 +00:00
}
// ConnectionSummary encapsulates data for a connection, including its connection id, channel count,
// start/end time using a monotonic clock, and the aggregate bytes up/ down of its channels
ConnectionSummary struct {
Id string
ChannelCount uint64
StartTime time.Time
EndTime time.Time
BytesUp uint64
BytesDown uint64
Errors error
2023-05-25 15:48:35 +00:00
}
// ChannelSummary encapsulates data for a channel, including its id, channel type,
// start/end time using a monotonic clock, and the bytes up/ down seen on this channel
ChannelSummary struct {
Id string
ConnectionRecordingId string
StartTime time.Time
EndTime time.Time
BytesUp uint64
BytesDown uint64
ChannelType string
}
)