Cisco Cisco Videoscape Voyager Vantage 3.2 Mode D'Emploi

Page de 204
Table 4
REST Parameters for Private API
23
   
REST APIs
Private REST API
Usage
Following are examples of complete Private REST API calls.
http://localhost:8899/diagnostics/logs?name=dlog&section=DL_SPM_VODCTLG&level=1
 
"sam_ChannelIsAnalog:3503 - Failed to get service param for serviceId(285) sourceId(13)"
Upload error text for the DL_SPM_VODCTLG software module with a severity of 1 (Error).
Note:
 Typically, the payload is a simple text string. However, it can include a valid embedded JSON segment.
REST Parameter
Value
Description
name
“vod”
Indicates VOD logging data.
Note:
 Log messages generated by 
JavaScript should use a descriptive 
name (such as vod) to ensure a 
logical grouping.
“dlog”
Indicates DLOG logging data, that is, 
all log messages that met the criteria 
in diagnostics.ini.
Every message passed through dlog() 
has the dlog name inserted by dlog.
section
<text>
Section label.
For dlog() based logging, use the 
labels for the Sections enumeration 
defined in dlog.h. For example, 
DL_SPM_VODCTLG.
For JavaScript logging, use JS-%s
where %s is replaced with a short 
descriptive label like JS-vod.
level
<integer>
Indicates the severity of the error text.
Levels are defined as follows:
0: Emergency
 
1: Error
 
2: Significant Event
 
3: Normal
 
4: Minor Event
 
5: Minor Debug
 
6: Data Processing
 
7: Noise
 
8: Function Calls
 
9: Really Noisy
JavaScript logging uses Error level 1. 
The level is not used on messages 
generated by JavaScript, but 1 is the 
default.