Documentation ¶
Index ¶
- func EndpointFromMethodAndURL(method, url string) string
- func SessionsSetRequestsToEndpointsSet(ss SessionSet) map[string]Endpoints
- func SliceIntToString(s []int) []string
- func StatusPartsToFullStatus(status int, subStatus string) string
- type Endpoint
- type Endpoints
- type Request
- type RequestSet
- type Session
- type SessionSet
- type StatusInfo
- type StatusTime
- type StatusTimeSlice
- type Statuses
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SessionsSetRequestsToEndpointsSet ¶
func SessionsSetRequestsToEndpointsSet(ss SessionSet) map[string]Endpoints
func SliceIntToString ¶
func StatusPartsToFullStatus ¶
Types ¶
type Endpoints ¶
Endpoints writes a CSV with request data. Use Endpoints.Add(), Endpoints.Inflate() and then Endpoints.WriteCSV()
func NewEndpoints ¶
func NewEndpoints() Endpoints
func SessionToEndpoints ¶
func (*Endpoints) AllFullStatusCodes ¶
type Request ¶
type Request struct { Method string URL string URLPattern string StatusCode int SubStatusCode string Time time.Time OperationID string // OpenAPI spec OperationID SessionID string // native SessionID RequestID string // native RequestID, typically UID RawData any RawDataString string }
func (*Request) FullStatus ¶
type RequestSet ¶
func NewRequestSet ¶
func NewRequestSet() RequestSet
func (*RequestSet) BuildLastStatusCode ¶
func (rs *RequestSet) BuildLastStatusCode() int
func (*RequestSet) Inflate ¶
func (rs *RequestSet) Inflate()
func (*RequestSet) SortByTime ¶
func (rs *RequestSet) SortByTime()
type Session ¶
type Session struct { SessionID string RequestSet RequestSet }
func NewSession ¶
func (*Session) RequestsByEndpoint ¶
func (ses *Session) RequestsByEndpoint() map[string]RequestSet
type SessionSet ¶
func NewSessionSet ¶
func NewSessionSet() SessionSet
func (*SessionSet) AddRequest ¶
func (ss *SessionSet) AddRequest(r Request)
type StatusInfo ¶
type StatusInfo struct { Status int SubStatus string RequestCount int StatusDistribution float64 // This status vs. all statuses Times []time.Time // This is optional. Can be used by manually adding to RequestCount }
func (*StatusInfo) FullStatus ¶
func (si *StatusInfo) FullStatus() string
func (*StatusInfo) Inflate ¶
func (si *StatusInfo) Inflate()
func (*StatusInfo) StatusText ¶
func (si *StatusInfo) StatusText() string
type StatusTime ¶
func StatusMapToTimesArray ¶
func StatusMapToTimesArray(statuses map[string]StatusInfo) []StatusTime
type StatusTimeSlice ¶
type StatusTimeSlice []StatusTime
type Statuses ¶
type Statuses struct {
StatusMap map[string]StatusInfo
}
func NewStatuses ¶
func NewStatuses() Statuses
func (*Statuses) AllRequestCount ¶
Click to show internal directories.
Click to hide internal directories.