SetMonitoringLevel

Monitoring CSMS->CS OCPP 2.0.1

Sent by the CSMS to set the minimum severity level for which the Charging Station will send NotifyEvent messages.

Quick Reference

Required Fields

severity integer

Minimum severity threshold (0=Danger, 1=Hardware Failure, 2=System Failure, 3=Critical, 4=Error, 5=Alert, 6=Warning, 7=Notice, 8=Informational, 9=Debug)

Example Payload

{
  "severity": 5
}

Example Full Frame

[
  2,
  "msg-001",
  "SetMonitoringLevel",
  {
    "severity": 5
  }
]

Format: [MessageType, MessageId, Action, Payload]

Overview

SetMonitoringLevel acts as a filter for monitoring events. Only monitors with a severity ≤ the configured level will generate NotifyEvent messages.

Expected Response

  • status: Accepted or Rejected

Severity Levels

ValueName
0Danger
1Hardware Failure
2System Failure
3Critical
4Error
5Alert
6Warning
7Notice
8Informational
9Debug

Testing Tips

  • Set level to 5 (Alert) and verify Debug (9) monitors do not send events
  • Set level to 9 (Debug) and verify all monitors fire events

Common Errors

PropertyConstraintViolation

Cause: severity is outside the 0-9 range

Solution: severity must be an integer between 0 and 9 inclusive