GET api/EcoCar/Busi/WarnRule/Query/ByLineId/{lineid}
依据线路,查询当前线路的告警规则信息。 仅会返回处理“可用状态”的告警规则。
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
lineid |
线路的ID。 |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
依据线路,查询当前线路的告警规则信息。 仅会返回处理“可用状态”的告警规则。
CommonOperationResultWithTagOfIEnumerableOfEcoCar_WarnRuleItemResultName | Description | Type | Additional information |
---|---|---|---|
errcode | integer |
None. |
|
errmsg | string |
None. |
|
tag | Collection of EcoCar_WarnRuleItemResult |
None. |
Response Formats
application/json, text/json
Sample:
{ "errcode": 1, "errmsg": "sample string 2", "tag": [ { "WarnRulesId": "sample string 1", "LineId": "sample string 2", "WarnType": "sample string 3", "EnableStatus": "sample string 4", "WarnValue": 5.0, "WarnDriver": "sample string 6", "Reserve1": "sample string 7" }, { "WarnRulesId": "sample string 1", "LineId": "sample string 2", "WarnType": "sample string 3", "EnableStatus": "sample string 4", "WarnValue": 5.0, "WarnDriver": "sample string 6", "Reserve1": "sample string 7" } ] }
application/xml, text/xml
Sample:
<CommonOperationResultWithTagOfArrayOfEcoCar_WarnRuleItemResultguOp_Pzk_S 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 xmlns:d2p1="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Result.EcoCar"> <d2p1:EcoCar_WarnRuleItemResult> <d2p1:EnableStatus>sample string 4</d2p1:EnableStatus> <d2p1:LineId>sample string 2</d2p1:LineId> <d2p1:Reserve1>sample string 7</d2p1:Reserve1> <d2p1:WarnDriver>sample string 6</d2p1:WarnDriver> <d2p1:WarnRulesId>sample string 1</d2p1:WarnRulesId> <d2p1:WarnType>sample string 3</d2p1:WarnType> <d2p1:WarnValue>5</d2p1:WarnValue> </d2p1:EcoCar_WarnRuleItemResult> <d2p1:EcoCar_WarnRuleItemResult> <d2p1:EnableStatus>sample string 4</d2p1:EnableStatus> <d2p1:LineId>sample string 2</d2p1:LineId> <d2p1:Reserve1>sample string 7</d2p1:Reserve1> <d2p1:WarnDriver>sample string 6</d2p1:WarnDriver> <d2p1:WarnRulesId>sample string 1</d2p1:WarnRulesId> <d2p1:WarnType>sample string 3</d2p1:WarnType> <d2p1:WarnValue>5</d2p1:WarnValue> </d2p1:EcoCar_WarnRuleItemResult> </tag> </CommonOperationResultWithTagOfArrayOfEcoCar_WarnRuleItemResultguOp_Pzk_S>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.