POST api/Servo/EcoCar/WarningRecords/Add
添加告警记录
Request Information
URI Parameters
None.
Body Parameters
EcoCar_WarningRecordsAddParmName | Description | Type | Additional information |
---|---|---|---|
LineId |
线路ID |
string |
Required |
ClassId |
班次ID |
string |
None. |
DriverId |
司机ID |
string |
None. |
CardNo |
车牌号 |
string |
None. |
HappenTime |
告警发生时间 |
string |
Required |
WarnRulesId |
命中的告警规则 |
string |
Required |
WarnType |
告警类型 |
string |
Required |
WarnContent |
告警内容 |
string |
Required |
Speed |
触发告警时的车速 |
decimal number |
None. |
Longitude |
触发告警时的经度 |
decimal number |
None. |
Latitude |
触发告警时的纬度 |
decimal number |
None. |
Rundirection |
触发告警时的行进方向 |
decimal number |
None. |
ApplyTime |
告警信息到达服务器的时间 |
string |
Required |
Request Formats
application/json, text/json
Sample:
{ "LineId": "sample string 1", "ClassId": "sample string 2", "DriverId": "sample string 3", "CardNo": "sample string 4", "HappenTime": "sample string 5", "WarnRulesId": "sample string 6", "WarnType": "sample string 7", "WarnContent": "sample string 8", "Speed": 9.0, "Longitude": 10.0, "Latitude": 11.0, "Rundirection": 12.0, "ApplyTime": "sample string 13" }
application/xml, text/xml
Sample:
<EcoCar_WarningRecordsAddParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm.EcoCar"> <ApplyTime>sample string 13</ApplyTime> <CardNo>sample string 4</CardNo> <ClassId>sample string 2</ClassId> <DriverId>sample string 3</DriverId> <HappenTime>sample string 5</HappenTime> <Latitude>11</Latitude> <LineId>sample string 1</LineId> <Longitude>10</Longitude> <Rundirection>12</Rundirection> <Speed>9</Speed> <WarnContent>sample string 8</WarnContent> <WarnRulesId>sample string 6</WarnRulesId> <WarnType>sample string 7</WarnType> </EcoCar_WarningRecordsAddParm>
application/x-www-form-urlencoded
Sample:
Sample not available.
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
添加告警记录
CommonOperationResultName | Description | Type | Additional information |
---|---|---|---|
errcode |
错误代码,通常0表示成功,其他值表示错误。 |
integer |
None. |
errmsg |
错误描述,当errcode不为零时,此值可以用于呈现给用户。 |
string |
None. |
tag |
操作同时,服务器端需要返回的其他值。 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "errcode": 1, "errmsg": "sample string 2", "tag": "sample string 3" }
application/xml, text/xml
Sample:
<CommonOperationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer"> <errcode>1</errcode> <errmsg>sample string 2</errmsg> <tag>sample string 3</tag> </CommonOperationResult>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.