GET api/Service/Appointment/Read/Next/NeedToRun/{appointmentid}

获取当前平台需要运行的计划任务,一次只返回一条,循环直至不再返回表示一次扫描的结束。

Request Information

URI Parameters

NameDescriptionTypeAdditional information
appointmentid

当前预约指令的ID,返回的数据总是大于该ID值,此值为零时,表示取第一个。

integer

Required

Body Parameters

None.

Response Information

Resource Description

获取当前平台需要运行的计划任务,一次只返回一条,循环直至不再返回表示一次扫描的结束。

CommonOperationResultWithTagOfAgentAppointmentTableItem
NameDescriptionTypeAdditional information
errcode

integer

None.

errmsg

string

None.

tag

AgentAppointmentTableItem

None.

Response Formats

application/json, text/json

Sample:
{
  "errcode": 1,
  "errmsg": "sample string 2",
  "tag": {
    "AgentId": 1,
    "UserCode": 2,
    "AppointmentId": 3,
    "SerialId": 4,
    "AppointmentTime": "sample string 5",
    "AppointmentAction": "sample string 6",
    "TradeId": 7,
    "LandGroupId": 8,
    "TradeType": "sample string 9",
    "FlowLimit": 10.0,
    "CloseGateWhenEnding": 64,
    "ExpectWateringSpeed": 12.0,
    "TryTimes": 64,
    "NotifyModeWhenSuccess": "sample string 14",
    "NotifyModeWhenFailed": "sample string 15",
    "OperTime": "sample string 16",
    "SysScanTime": "sample string 17",
    "ActionResult": "sample string 18",
    "LatestMessage": "sample string 19",
    "GroupLeaderRequestId": 20,
    "ReplyForGroupRequest": "sample string 21"
  }
}

application/xml, text/xml

Sample:
<CommonOperationResultWithTagOfAgentAppointmentTableItemwlCnhfv3 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.Flowmeter">
    <d2p1:ActionResult>sample string 18</d2p1:ActionResult>
    <d2p1:AgentId>1</d2p1:AgentId>
    <d2p1:AppointmentAction>sample string 6</d2p1:AppointmentAction>
    <d2p1:AppointmentId>3</d2p1:AppointmentId>
    <d2p1:AppointmentTime>sample string 5</d2p1:AppointmentTime>
    <d2p1:CloseGateWhenEnding>64</d2p1:CloseGateWhenEnding>
    <d2p1:ExpectWateringSpeed>12</d2p1:ExpectWateringSpeed>
    <d2p1:FlowLimit>10</d2p1:FlowLimit>
    <d2p1:GroupLeaderRequestId>20</d2p1:GroupLeaderRequestId>
    <d2p1:LandGroupId>8</d2p1:LandGroupId>
    <d2p1:LatestMessage>sample string 19</d2p1:LatestMessage>
    <d2p1:NotifyModeWhenFailed>sample string 15</d2p1:NotifyModeWhenFailed>
    <d2p1:NotifyModeWhenSuccess>sample string 14</d2p1:NotifyModeWhenSuccess>
    <d2p1:OperTime>sample string 16</d2p1:OperTime>
    <d2p1:ReplyForGroupRequest>sample string 21</d2p1:ReplyForGroupRequest>
    <d2p1:SerialId>4</d2p1:SerialId>
    <d2p1:SysScanTime>sample string 17</d2p1:SysScanTime>
    <d2p1:TradeId>7</d2p1:TradeId>
    <d2p1:TradeType>sample string 9</d2p1:TradeType>
    <d2p1:TryTimes>64</d2p1:TryTimes>
    <d2p1:UserCode>2</d2p1:UserCode>
  </tag>
</CommonOperationResultWithTagOfAgentAppointmentTableItemwlCnhfv3>

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.