-
Notifications
You must be signed in to change notification settings - Fork 392
/
Copy pathTraceControl.json
125 lines (125 loc) · 4.39 KB
/
TraceControl.json
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
{
"$schema": "https://raw.githubusercontent.com/rdkcentral/Thunder/master/Tools/JsonGenerator/schemas/interface.schema.json",
"jsonrpc": "2.0",
"info": {
"title": "TraceControl API",
"class": "TraceControl",
"description": "The `TraceControl` plugin provides ability to disable/enable trace output an set its verbosity level."
},
"common": {
"$ref": "../common/common.json"
},
"definitions": {
"module": {
"description": "The module name. If the module name is not specified then, it returns all modules",
"type": "string",
"example": "Plugin_Monitor"
},
"category": {
"description": "The category name. If the category name is not specified then, it returns all categories",
"type": "string",
"example": "Information"
},
"state": {
"description": "The state value",
"type": "string",
"enum": [
"enabled",
"disabled",
"tristated"
],
"example": "disabled"
},
"trace": {
"description": "Trace information",
"type": "object",
"properties": {
"module": {
"$ref": "#/definitions/module"
},
"category": {
"$ref": "#/definitions/category"
},
"state": {
"$ref": "#/definitions/state"
}
},
"required": [
"module",
"category",
"state"
]
}
},
"methods": {
"set": {
"summary": "Sets traces. Enables or disables all or select category traces for the specified module.",
"params": {
"$ref": "#/definitions/trace"
},
"result": {
"$ref": "#/common/results/void"
}
},
"status":{
"summary": "Retrieves the actual trace status information for the specified module and category. If the category or module is not specified then, all the information is returned. If both module and category are not specified then, the result is empty. It retrieves the details about the console status and remote address (port and binding), if these are configured.",
"params": {
"type": "object",
"properties": {
"module": {
"$ref": "#/definitions/module"
},
"category": {
"$ref": "#/definitions/category"
}
},
"required": [
"module",
"category"
]
},
"result": {
"type": "object",
"properties": {
"console": {
"description": "`true` if a console, otherwise `false`",
"type": "boolean",
"example": false
},
"remote": {
"description": "The remote address",
"type": "object",
"properties": {
"port": {
"description": "The port number",
"type": "number",
"size": 16,
"example": 2200
},
"binding": {
"description": "The binding address",
"type": "string",
"example": "0.0.0.0"
}
},
"required": [
"port",
"binding"
]
},
"settings": {
"type": "array",
"items": {
"$ref": "#/definitions/trace"
}
}
},
"required": [
"console",
"remote",
"settings"
]
}
}
}
}