/
types.go
41 lines (37 loc) · 1.81 KB
/
types.go
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
// Code generated by cdpgen. DO NOT EDIT.
package log
import (
"github.com/mafredri/cdp/protocol/network"
"github.com/mafredri/cdp/protocol/runtime"
)
// Entry Log entry.
type Entry struct {
// Source Log entry source.
//
// Values: "xml", "javascript", "network", "storage", "appcache", "rendering", "security", "deprecation", "worker", "violation", "intervention", "recommendation", "other".
Source string `json:"source"`
// Level Log entry severity.
//
// Values: "verbose", "info", "warning", "error".
Level string `json:"level"`
Text string `json:"text"` // Logged text.
// Category
//
// Values: "cors".
Category *string `json:"category,omitempty"`
Timestamp runtime.Timestamp `json:"timestamp"` // Timestamp when this entry was added.
URL *string `json:"url,omitempty"` // URL of the resource if known.
LineNumber *int `json:"lineNumber,omitempty"` // Line number in the resource.
StackTrace *runtime.StackTrace `json:"stackTrace,omitempty"` // JavaScript stack trace.
NetworkRequestID *network.RequestID `json:"networkRequestId,omitempty"` // Identifier of the network request associated with this entry.
WorkerID *string `json:"workerId,omitempty"` // Identifier of the worker associated with this entry.
Args []runtime.RemoteObject `json:"args,omitempty"` // Call arguments.
}
// ViolationSetting Violation configuration setting.
type ViolationSetting struct {
// Name Violation type.
//
// Values: "longTask", "longLayout", "blockedEvent", "blockedParser", "discouragedAPIUse", "handler", "recurringHandler".
Name string `json:"name"`
Threshold float64 `json:"threshold"` // Time threshold to trigger upon.
}