Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentType ¶
type ComponentType struct { // CustomData corresponds to the JSON schema field "customData". CustomData *CustomDataType `json:"customData,omitempty" yaml:"customData,omitempty"` // Evse corresponds to the JSON schema field "evse". Evse *EVSEType `json:"evse,omitempty" yaml:"evse,omitempty"` // Name of instance in case the component exists as multiple instances. Case // Insensitive. strongly advised to use Camel Case. // Instance *string `json:"instance,omitempty" yaml:"instance,omitempty"` // Name of the component. Name should be taken from the list of standardized // component names whenever possible. Case Insensitive. strongly advised to use // Camel Case. // Name string `json:"name" yaml:"name"` }
A physical or logical component
func (*ComponentType) UnmarshalJSON ¶
func (j *ComponentType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type CustomDataType ¶
type CustomDataType struct { // VendorId corresponds to the JSON schema field "vendorId". VendorId string `json:"vendorId" yaml:"vendorId"` }
This class does not get 'AdditionalProperties = false' in the schema generation, so it can be extended with arbitrary JSON properties to allow adding custom data.
func (*CustomDataType) UnmarshalJSON ¶
func (j *CustomDataType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type EVSEType ¶
type EVSEType struct { // An id to designate a specific connector (on an EVSE) by connector index number. // ConnectorId *int `json:"connectorId,omitempty" yaml:"connectorId,omitempty"` // CustomData corresponds to the JSON schema field "customData". CustomData *CustomDataType `json:"customData,omitempty" yaml:"customData,omitempty"` // Identified_ Object. MRID. Numeric_ Identifier // urn:x-enexis:ecdm:uid:1:569198 // EVSE Identifier. This contains a number (> 0) designating an EVSE of the // Charging Station. // Id int `json:"id" yaml:"id"` }
EVSE urn:x-oca:ocpp:uid:2:233123 Electric Vehicle Supply Equipment
func (*EVSEType) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler.
type MonitorEnumType ¶
type MonitorEnumType string
const MonitorEnumTypeDelta MonitorEnumType = "Delta"
const MonitorEnumTypeLowerThreshold MonitorEnumType = "LowerThreshold"
const MonitorEnumTypePeriodic MonitorEnumType = "Periodic"
const MonitorEnumTypePeriodicClockAligned MonitorEnumType = "PeriodicClockAligned"
const MonitorEnumTypeUpperThreshold MonitorEnumType = "UpperThreshold"
func (*MonitorEnumType) UnmarshalJSON ¶
func (j *MonitorEnumType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type MonitorEnumType_1 ¶
type MonitorEnumType_1 string
const MonitorEnumType_1_Delta MonitorEnumType_1 = "Delta"
const MonitorEnumType_1_LowerThreshold MonitorEnumType_1 = "LowerThreshold"
const MonitorEnumType_1_Periodic MonitorEnumType_1 = "Periodic"
const MonitorEnumType_1_PeriodicClockAligned MonitorEnumType_1 = "PeriodicClockAligned"
const MonitorEnumType_1_UpperThreshold MonitorEnumType_1 = "UpperThreshold"
func (*MonitorEnumType_1) UnmarshalJSON ¶
func (j *MonitorEnumType_1) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type SetMonitoringResultType ¶
type SetMonitoringResultType struct { // Component corresponds to the JSON schema field "component". Component ComponentType `json:"component" yaml:"component"` // CustomData corresponds to the JSON schema field "customData". CustomData *CustomDataType `json:"customData,omitempty" yaml:"customData,omitempty"` // Id given to the VariableMonitor by the Charging Station. The Id is only // returned when status is accepted. Installed VariableMonitors should have unique // id's but the id's of removed Installed monitors should have unique id's but the // id's of removed monitors MAY be reused. // Id *int `json:"id,omitempty" yaml:"id,omitempty"` // The severity that will be assigned to an event that is triggered by this // monitor. The severity range is 0-9, with 0 as the highest and 9 as the lowest // severity level. // // The severity levels have the following meaning: + // *0-Danger* + // Indicates lives are potentially in danger. Urgent attention is needed and // action should be taken immediately. + // *1-Hardware Failure* + // Indicates that the Charging Station is unable to continue regular operations // due to Hardware issues. Action is required. + // *2-System Failure* + // Indicates that the Charging Station is unable to continue regular operations // due to software or minor hardware issues. Action is required. + // *3-Critical* + // Indicates a critical error. Action is required. + // *4-Error* + // Indicates a non-urgent error. Action is required. + // *5-Alert* + // Indicates an alert event. Default severity for any type of monitoring event. + // *6-Warning* + // Indicates a warning event. Action may be required. + // *7-Notice* + // Indicates an unusual event. No immediate action is required. + // *8-Informational* + // Indicates a regular operational event. May be used for reporting, measuring // throughput, etc. No action is required. + // *9-Debug* + // Indicates information useful to developers for debugging, not useful during // operations. // // Severity int `json:"severity" yaml:"severity"` // Status corresponds to the JSON schema field "status". Status SetMonitoringStatusEnumType `json:"status" yaml:"status"` // StatusInfo corresponds to the JSON schema field "statusInfo". StatusInfo *StatusInfoType `json:"statusInfo,omitempty" yaml:"statusInfo,omitempty"` // Type corresponds to the JSON schema field "type". Type MonitorEnumType_1 `json:"type" yaml:"type"` // Variable corresponds to the JSON schema field "variable". Variable VariableType `json:"variable" yaml:"variable"` }
Class to hold result of SetVariableMonitoring request.
func (*SetMonitoringResultType) UnmarshalJSON ¶
func (j *SetMonitoringResultType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type SetMonitoringStatusEnumType ¶
type SetMonitoringStatusEnumType string
const SetMonitoringStatusEnumTypeAccepted SetMonitoringStatusEnumType = "Accepted"
const SetMonitoringStatusEnumTypeDuplicate SetMonitoringStatusEnumType = "Duplicate"
const SetMonitoringStatusEnumTypeRejected SetMonitoringStatusEnumType = "Rejected"
const SetMonitoringStatusEnumTypeUnknownComponent SetMonitoringStatusEnumType = "UnknownComponent"
const SetMonitoringStatusEnumTypeUnknownVariable SetMonitoringStatusEnumType = "UnknownVariable"
const SetMonitoringStatusEnumTypeUnsupportedMonitorType SetMonitoringStatusEnumType = "UnsupportedMonitorType"
func (*SetMonitoringStatusEnumType) UnmarshalJSON ¶
func (j *SetMonitoringStatusEnumType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type SetMonitoringStatusEnumType_1 ¶
type SetMonitoringStatusEnumType_1 string
const SetMonitoringStatusEnumType_1_Accepted SetMonitoringStatusEnumType_1 = "Accepted"
const SetMonitoringStatusEnumType_1_Duplicate SetMonitoringStatusEnumType_1 = "Duplicate"
const SetMonitoringStatusEnumType_1_Rejected SetMonitoringStatusEnumType_1 = "Rejected"
const SetMonitoringStatusEnumType_1_UnknownComponent SetMonitoringStatusEnumType_1 = "UnknownComponent"
const SetMonitoringStatusEnumType_1_UnknownVariable SetMonitoringStatusEnumType_1 = "UnknownVariable"
const SetMonitoringStatusEnumType_1_UnsupportedMonitorType SetMonitoringStatusEnumType_1 = "UnsupportedMonitorType"
func (*SetMonitoringStatusEnumType_1) UnmarshalJSON ¶
func (j *SetMonitoringStatusEnumType_1) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type SetVariableMonitoringResponseJson ¶
type SetVariableMonitoringResponseJson struct { // CustomData corresponds to the JSON schema field "customData". CustomData *CustomDataType `json:"customData,omitempty" yaml:"customData,omitempty"` // SetMonitoringResult corresponds to the JSON schema field "setMonitoringResult". SetMonitoringResult []SetMonitoringResultType `json:"setMonitoringResult" yaml:"setMonitoringResult"` }
func (*SetVariableMonitoringResponseJson) UnmarshalJSON ¶
func (j *SetVariableMonitoringResponseJson) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type StatusInfoType ¶
type StatusInfoType struct { // Additional text to provide detailed information. // AdditionalInfo *string `json:"additionalInfo,omitempty" yaml:"additionalInfo,omitempty"` // CustomData corresponds to the JSON schema field "customData". CustomData *CustomDataType `json:"customData,omitempty" yaml:"customData,omitempty"` // A predefined code for the reason why the status is returned in this response. // The string is case-insensitive. // ReasonCode string `json:"reasonCode" yaml:"reasonCode"` }
Element providing more information about the status.
func (*StatusInfoType) UnmarshalJSON ¶
func (j *StatusInfoType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type VariableType ¶
type VariableType struct { // CustomData corresponds to the JSON schema field "customData". CustomData *CustomDataType `json:"customData,omitempty" yaml:"customData,omitempty"` // Name of instance in case the variable exists as multiple instances. Case // Insensitive. strongly advised to use Camel Case. // Instance *string `json:"instance,omitempty" yaml:"instance,omitempty"` // Name of the variable. Name should be taken from the list of standardized // variable names whenever possible. Case Insensitive. strongly advised to use // Camel Case. // Name string `json:"name" yaml:"name"` }
Reference key to a component-variable.
func (*VariableType) UnmarshalJSON ¶
func (j *VariableType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.