Cisco Cisco Videoscape Voyager Vantage 3.2 Mode D'Emploi
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§ion=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.
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.
all log messages that met the criteria
in diagnostics.ini.
Every message passed through dlog()
has the dlog name inserted by 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.
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.
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.
The level is not used on messages
generated by JavaScript, but 1 is the
default.