-
Notifications
You must be signed in to change notification settings - Fork 139
Expand file tree
/
Copy pathgen_reporter.go
More file actions
89 lines (78 loc) · 2.02 KB
/
Copy pathgen_reporter.go
File metadata and controls
89 lines (78 loc) · 2.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
// Code generated by cloud-observability; DO NOT EDIT.
package sipcallobs
import (
"time"
)
const Version_OUSNKC0 = true
type KeyResolver interface {
Resolve(string)
Reset()
}
type Reporter interface {
WithProject(id string) ProjectReporter
WithDeferredProject() (ProjectReporter, KeyResolver)
}
type projectReporter interface {
}
type ProjectTx interface {
projectReporter
}
type ProjectReporter interface {
RegisterFunc(func(ts time.Time, tx ProjectTx) bool)
Tx(func(tx ProjectTx))
TxAt(time.Time, func(tx ProjectTx))
WithCall(id string) CallReporter
WithDeferredCall() (CallReporter, KeyResolver)
projectReporter
}
type callReporter interface {
ReportStartTime(v time.Time)
ReportEndTime(v time.Time)
ReportDuration(v uint64)
ReportDurationSeconds(v uint64)
ReportDurationMinutes(v uint16)
ReportTrunkID(v string)
ReportTrunkType(v CallTrunkType)
ReportDispatchID(v string)
ReportToNumber(v string)
ReportToHost(v string)
ReportFromNumber(v string)
ReportFromHost(v string)
ReportNumberType(v CallNumberType)
ReportCountryCode(v string)
ReportDirection(v CallDirection)
ReportTransport(v CallTransport)
ReportProviderCallID(v string)
ReportProviderName(v string)
ReportSIPCallID(v string)
ReportRoomID(v string)
ReportRoomName(v string)
ReportParticipantIdentity(v string)
ReportError(v string)
ReportStatus(v CallStatus)
ReportResponseCode(v uint16)
ReportDisconnectReason(v string)
ReportTransferID(v string)
ReportTransferTo(v string)
ReportTransferDuration(v uint32)
ReportTransferStatus(v CallTransferStatus)
ReportTransferStatusCode(v uint16)
ReportTransferError(v string)
ReportCodec(v string)
ReportRegion(v string)
ReportPcapLink(v string)
ReportAttributes(v string)
ReportFeatures(v uint16)
ReportMediaEncryptionSettings(v CallMediaEncryptionSettings)
ReportMediaEncryption(v string)
}
type CallTx interface {
Project() ProjectTx
callReporter
}
type CallReporter interface {
RegisterFunc(func(ts time.Time, tx CallTx) bool)
Tx(func(tx CallTx))
TxAt(time.Time, func(tx CallTx))
callReporter
}