change(tracker/backend): regenerate messages
This commit is contained in:
parent
a34d557f7f
commit
fbab981614
7 changed files with 28 additions and 28 deletions
|
|
@ -79,7 +79,7 @@ const (
|
|||
MsgInputChange = 112
|
||||
MsgSelectionChange = 113
|
||||
MsgMouseThrashing = 114
|
||||
MsgRemovedNodesCount = 115
|
||||
MsgUnbindNodes = 115
|
||||
MsgIssueEvent = 125
|
||||
MsgSessionEnd = 126
|
||||
MsgSessionSearch = 127
|
||||
|
|
@ -2102,24 +2102,24 @@ func (msg *MouseThrashing) TypeID() int {
|
|||
return 114
|
||||
}
|
||||
|
||||
type RemovedNodesCount struct {
|
||||
type UnbindNodes struct {
|
||||
message
|
||||
NodesCount uint64
|
||||
TotalRemovedPercent uint64
|
||||
}
|
||||
|
||||
func (msg *RemovedNodesCount) Encode() []byte {
|
||||
func (msg *UnbindNodes) Encode() []byte {
|
||||
buf := make([]byte, 11)
|
||||
buf[0] = 115
|
||||
p := 1
|
||||
p = WriteUint(msg.NodesCount, buf, p)
|
||||
p = WriteUint(msg.TotalRemovedPercent, buf, p)
|
||||
return buf[:p]
|
||||
}
|
||||
|
||||
func (msg *RemovedNodesCount) Decode() Message {
|
||||
func (msg *UnbindNodes) Decode() Message {
|
||||
return msg
|
||||
}
|
||||
|
||||
func (msg *RemovedNodesCount) TypeID() int {
|
||||
func (msg *UnbindNodes) TypeID() int {
|
||||
return 115
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1269,10 +1269,10 @@ func DecodeMouseThrashing(reader BytesReader) (Message, error) {
|
|||
return msg, err
|
||||
}
|
||||
|
||||
func DecodeRemovedNodesCount(reader BytesReader) (Message, error) {
|
||||
func DecodeUnbindNodes(reader BytesReader) (Message, error) {
|
||||
var err error = nil
|
||||
msg := &RemovedNodesCount{}
|
||||
if msg.NodesCount, err = reader.ReadUint(); err != nil {
|
||||
msg := &UnbindNodes{}
|
||||
if msg.TotalRemovedPercent, err = reader.ReadUint(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return msg, err
|
||||
|
|
@ -1888,7 +1888,7 @@ func ReadMessage(t uint64, reader BytesReader) (Message, error) {
|
|||
case 114:
|
||||
return DecodeMouseThrashing(reader)
|
||||
case 115:
|
||||
return DecodeRemovedNodesCount(reader)
|
||||
return DecodeUnbindNodes(reader)
|
||||
case 125:
|
||||
return DecodeIssueEvent(reader)
|
||||
case 126:
|
||||
|
|
|
|||
|
|
@ -736,11 +736,11 @@ class MouseThrashing(Message):
|
|||
self.timestamp = timestamp
|
||||
|
||||
|
||||
class RemovedNodesCount(Message):
|
||||
class UnbindNodes(Message):
|
||||
__id__ = 115
|
||||
|
||||
def __init__(self, nodes_count):
|
||||
self.nodes_count = nodes_count
|
||||
def __init__(self, total_removed_percent):
|
||||
self.total_removed_percent = total_removed_percent
|
||||
|
||||
|
||||
class IssueEvent(Message):
|
||||
|
|
|
|||
|
|
@ -451,13 +451,13 @@ type TrMouseThrashing = [
|
|||
timestamp: number,
|
||||
]
|
||||
|
||||
type TrRemovedNodesCount = [
|
||||
type TrUnbindNodes = [
|
||||
type: 115,
|
||||
nodesCount: number,
|
||||
totalRemovedPercent: number,
|
||||
]
|
||||
|
||||
|
||||
export type TrackerMessage = TrTimestamp | TrSetPageLocation | TrSetViewportSize | TrSetViewportScroll | TrCreateDocument | TrCreateElementNode | TrCreateTextNode | TrMoveNode | TrRemoveNode | TrSetNodeAttribute | TrRemoveNodeAttribute | TrSetNodeData | TrSetNodeScroll | TrSetInputTarget | TrSetInputValue | TrSetInputChecked | TrMouseMove | TrNetworkRequest | TrConsoleLog | TrPageLoadTiming | TrPageRenderTiming | TrCustomEvent | TrUserID | TrUserAnonymousID | TrMetadata | TrCSSInsertRule | TrCSSDeleteRule | TrFetch | TrProfiler | TrOTable | TrStateAction | TrRedux | TrVuex | TrMobX | TrNgRx | TrGraphQL | TrPerformanceTrack | TrStringDict | TrSetNodeAttributeDict | TrResourceTiming | TrConnectionInformation | TrSetPageVisibility | TrLoadFontFace | TrSetNodeFocus | TrLongTask | TrSetNodeAttributeURLBased | TrSetCSSDataURLBased | TrTechnicalInfo | TrCustomIssue | TrCSSInsertRuleURLBased | TrMouseClick | TrCreateIFrameDocument | TrAdoptedSSReplaceURLBased | TrAdoptedSSInsertRuleURLBased | TrAdoptedSSDeleteRule | TrAdoptedSSAddOwner | TrAdoptedSSRemoveOwner | TrJSException | TrZustand | TrBatchMetadata | TrPartitionedMessage | TrInputChange | TrSelectionChange | TrMouseThrashing | TrRemovedNodesCount
|
||||
export type TrackerMessage = TrTimestamp | TrSetPageLocation | TrSetViewportSize | TrSetViewportScroll | TrCreateDocument | TrCreateElementNode | TrCreateTextNode | TrMoveNode | TrRemoveNode | TrSetNodeAttribute | TrRemoveNodeAttribute | TrSetNodeData | TrSetNodeScroll | TrSetInputTarget | TrSetInputValue | TrSetInputChecked | TrMouseMove | TrNetworkRequest | TrConsoleLog | TrPageLoadTiming | TrPageRenderTiming | TrCustomEvent | TrUserID | TrUserAnonymousID | TrMetadata | TrCSSInsertRule | TrCSSDeleteRule | TrFetch | TrProfiler | TrOTable | TrStateAction | TrRedux | TrVuex | TrMobX | TrNgRx | TrGraphQL | TrPerformanceTrack | TrStringDict | TrSetNodeAttributeDict | TrResourceTiming | TrConnectionInformation | TrSetPageVisibility | TrLoadFontFace | TrSetNodeFocus | TrLongTask | TrSetNodeAttributeURLBased | TrSetCSSDataURLBased | TrTechnicalInfo | TrCustomIssue | TrCSSInsertRuleURLBased | TrMouseClick | TrCreateIFrameDocument | TrAdoptedSSReplaceURLBased | TrAdoptedSSInsertRuleURLBased | TrAdoptedSSDeleteRule | TrAdoptedSSAddOwner | TrAdoptedSSRemoveOwner | TrJSException | TrZustand | TrBatchMetadata | TrPartitionedMessage | TrInputChange | TrSelectionChange | TrMouseThrashing | TrUnbindNodes
|
||||
|
||||
export default function translate(tMsg: TrackerMessage): RawMessage | null {
|
||||
switch(tMsg[0]) {
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ export declare const enum Type {
|
|||
InputChange = 112,
|
||||
SelectionChange = 113,
|
||||
MouseThrashing = 114,
|
||||
RemovedNodesCount = 115,
|
||||
UnbindNodes = 115,
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -516,11 +516,11 @@ export type MouseThrashing = [
|
|||
/*timestamp:*/ number,
|
||||
]
|
||||
|
||||
export type RemovedNodesCount = [
|
||||
/*type:*/ Type.RemovedNodesCount,
|
||||
/*nodesCount:*/ number,
|
||||
export type UnbindNodes = [
|
||||
/*type:*/ Type.UnbindNodes,
|
||||
/*totalRemovedPercent:*/ number,
|
||||
]
|
||||
|
||||
|
||||
type Message = Timestamp | SetPageLocation | SetViewportSize | SetViewportScroll | CreateDocument | CreateElementNode | CreateTextNode | MoveNode | RemoveNode | SetNodeAttribute | RemoveNodeAttribute | SetNodeData | SetNodeScroll | SetInputTarget | SetInputValue | SetInputChecked | MouseMove | NetworkRequest | ConsoleLog | PageLoadTiming | PageRenderTiming | CustomEvent | UserID | UserAnonymousID | Metadata | CSSInsertRule | CSSDeleteRule | Fetch | Profiler | OTable | StateAction | Redux | Vuex | MobX | NgRx | GraphQL | PerformanceTrack | StringDict | SetNodeAttributeDict | ResourceTiming | ConnectionInformation | SetPageVisibility | LoadFontFace | SetNodeFocus | LongTask | SetNodeAttributeURLBased | SetCSSDataURLBased | TechnicalInfo | CustomIssue | CSSInsertRuleURLBased | MouseClick | CreateIFrameDocument | AdoptedSSReplaceURLBased | AdoptedSSInsertRuleURLBased | AdoptedSSDeleteRule | AdoptedSSAddOwner | AdoptedSSRemoveOwner | JSException | Zustand | BatchMetadata | PartitionedMessage | InputChange | SelectionChange | MouseThrashing | RemovedNodesCount
|
||||
type Message = Timestamp | SetPageLocation | SetViewportSize | SetViewportScroll | CreateDocument | CreateElementNode | CreateTextNode | MoveNode | RemoveNode | SetNodeAttribute | RemoveNodeAttribute | SetNodeData | SetNodeScroll | SetInputTarget | SetInputValue | SetInputChecked | MouseMove | NetworkRequest | ConsoleLog | PageLoadTiming | PageRenderTiming | CustomEvent | UserID | UserAnonymousID | Metadata | CSSInsertRule | CSSDeleteRule | Fetch | Profiler | OTable | StateAction | Redux | Vuex | MobX | NgRx | GraphQL | PerformanceTrack | StringDict | SetNodeAttributeDict | ResourceTiming | ConnectionInformation | SetPageVisibility | LoadFontFace | SetNodeFocus | LongTask | SetNodeAttributeURLBased | SetCSSDataURLBased | TechnicalInfo | CustomIssue | CSSInsertRuleURLBased | MouseClick | CreateIFrameDocument | AdoptedSSReplaceURLBased | AdoptedSSInsertRuleURLBased | AdoptedSSDeleteRule | AdoptedSSAddOwner | AdoptedSSRemoveOwner | JSException | Zustand | BatchMetadata | PartitionedMessage | InputChange | SelectionChange | MouseThrashing | UnbindNodes
|
||||
export default Message
|
||||
|
|
|
|||
|
|
@ -833,12 +833,12 @@ export function MouseThrashing(
|
|||
]
|
||||
}
|
||||
|
||||
export function RemovedNodesCount(
|
||||
nodesCount: number,
|
||||
): Messages.RemovedNodesCount {
|
||||
export function UnbindNodes(
|
||||
totalRemovedPercent: number,
|
||||
): Messages.UnbindNodes {
|
||||
return [
|
||||
Messages.Type.RemovedNodesCount,
|
||||
nodesCount,
|
||||
Messages.Type.UnbindNodes,
|
||||
totalRemovedPercent,
|
||||
]
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -266,7 +266,7 @@ export default class MessageEncoder extends PrimitiveEncoder {
|
|||
return this.uint(msg[1])
|
||||
break
|
||||
|
||||
case Messages.Type.RemovedNodesCount:
|
||||
case Messages.Type.UnbindNodes:
|
||||
return this.uint(msg[1])
|
||||
break
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue