Purpose

Sends a test request to the agent to check the aggregator-agent-server throughput. Access to the method is limited

Request typeAsynchronous/synchronous
Supported agent versionv2
PluggetSystemTypeAgentInternal

Request format


JSON

{
  "taskType": "ServiceAgentBenchmark",
  "params": {
    "async": {
      "objectId": number,
       "timeout": number
    },
    "sync": {
      "objectId": number,
       "timeout": number
    },
    "numberOfCharacters":0
  }
}

Parameter

Type

Mandatory

Description

taskTypestringyesTask type. For this method, the value is ServiceAgentBenchmark
-async

Asynchronous method call: either synchronous or asynchronous
-sync

Synchronous method call: either synchronous or asynchronous
--timeoutintnoAgent response time in seconds. Default is 120 seconds
--objectIdintyesRestaurant code in the licensing system
-numberOfCharactersintyesThe number of randomly generated characters that the agent should return in the response.

Synchronous response format


JSON

{
   "responseCommon":{
      "taskGuid":"guid",
      "taskType":"ServiceAgentBenchmark",
      "objectId": 0
   },
   "error":{
      "wsError":{
         "code":"string",
         "desc":"string"
      }
   }
}

Parameter

Type

Description

-taskGuidguidUnique code for this task. Used when receiving a task via the queue
-taskTypestring enumTask type
-objectIdintRestaurant code in the licensing system
error
Error container, for more details see the article Error Description

Asynchronous response format

Successful response


JSON

{
  "taskResponse":{
     "text": ""
      },
  "responseCommon": {
    "taskGuid": "string",
    "taskType": "ServiceAgentBenchmark",
    "objectId": 0
  }
}

Parameter

Parameter type

Mandatory

Description

taskResponseobjectyes
-textstringyesRandomly generated characters in the amount specified in the request

Response with error


JSON

{
  "responseCommon": {
    "taskGuid": "string",
    "taskType": "ServiceAgentBenchmark",
    "objectId": 0
  },
  "error": {
    "wsError": {
      "code": "string",
      "desc": "string"
    },
    "agentError": {
      "code": "string",
      "desc": "string"
    }
  }
}

Parameter

Parameter type

Mandatory

Description

errorstring enum
Error container, for more details see the article Error Description