7.1.9 Change delay monitor API
This API temporarily changes the delay monitor settings for the specified jobnet registered for execution.
For details about temporary change of the delay monitor settings, see 4.5.7 Temporarily changing the delay monitor settings of a jobnet in the manual JP1/Automatic Job Management System 3 Overview.
You can use this API only when the JP1/AJS3 - Web Console version is 11-10 or later. Before using this API, make sure that the return value of the version information acquisition API (productVersionNumber) is 111000 or greater.
- Execution privileges
-
The logged in JP1 user must have one of the following JP1 permissions for the unit for which the delay monitor settings are to be changed:
-
JP1_AJS_Admin privileges
-
JP1_AJS_Manager privileges
-
JP1_AJS_Operator privileges
-
- Request format
-
- Request line
POST /application/component/apiVersion/objects/statuses/unitName:execID/actions/changeDelayMonitor/invoke httpVersion
- Message Body
{ "parameters":{ "manager":"manager-host-name-or-IP-address", "serviceName":"scheduler-service-name", "delayedStart":"start-delay-monitoring-method", "delayedStartTime":"time-to-start-monitoring-of-start-delay", "delayedEnd":"end-delay-monitoring-method", "delayedEndTime":"time-to-start-monitoring-of-end-delay", "monitoringJobnet":"end-delay-monitoring-method-using-the-time-required-to-execute-jobnet", "timeRequiredForExecution":"time-required-to-execute-jobnet" } }
- API version
-
v1
- Information that uniquely identifies a resource
-
The table below describes the information that uniquely identifies a resource.
If a parameter is not specified or is specified incorrectly, an error with the status code 404 occurs because the resource cannot be uniquely identified.
Information that uniquely identifies a resource
Data type
Description
Required?
unitName
string
Specify the full name of the unit to be requested, by using a character string in the range from 1 to 930 bytes.
Y
execID
string
Specify the execution ID by using a character string in the format of @[mmmm]{A to Z}nnnn (for example, @10A200).
Y
- Legend:
-
Y: Required
- Parameter
-
The following table lists and describes the parameters that can be specified for parameters in the request message body.
Table 7‒9: List of parameters for the change delay monitor API Parameter
Data type
Description of the value
Required?
manager
string
Specify the manager host name or IP address by using a character string in the range from 1 to 255 bytes.
Y
serviceName
string
Specify the scheduler service name by using a character string in the range from 1 to 30 bytes.
Y
delayedStart#
string
Specify the method of monitoring start delays, by using a character string constant specified for the DelayMonitorType constant. For details about the DelayMonitorType constant, see 7.4.11(1) DelayMonitorType.
If you do not want to change the start delay monitor settings, do not specify this parameter, or specify null for this parameter.
If you specify a constant that cannot be specified for the root jobnet, an error occurs.
If the jobnet is running, you cannot change the start delay monitor settings. If you specify this parameter, an error occurs.
--
delayedStartTime
string
Specify the start time of start delay monitoring, by using a character string.
You must specify this parameter if you use the delayedStart parameter to change the start delay monitor settings. If you omit this parameter, an error occurs.
If you specify ABSOLUTE (absolute time) for the delayedStart parameter, specify the start time of start delay monitoring, by using an absolute time in hh:mm format.
Specify the time by using the local time for the scheduler service of the request-destination JP1/AJS3 - Manager.
You can specify the following values:
-
hh: Specify the hour.
You can specify the hour in the range from 00 to 47 (unit: hour).
-
mm: Specify the minute.
You can specify the minute in the range from 00 to 59 (unit: minute).
If you specify one of the following values for the delayedStart parameter, specify a relative time in hh:mm format: ROOT (relative time from the scheduled start time of the root jobnet), TOP (relative time from the scheduled start time of the upper jobnet), or OWN (relative time from the scheduled start time of the local jobnet).
Specify the time by using the local time for the scheduler service of the request-destination JP1/AJS3 - Manager.
You can specify the following values:
-
hh: Specify the hour.
You can specify the hour in the range from 00 to 47 (unit: hour).
-
mm: Specify the minute.
You can specify the minute in the range from 00 to 59 (unit: minute).
However, you cannot specify 00:00. Specify a value in the range from 00:01 to 47:59.
The specification of this parameter is ignored if you omit the delayedStart parameter or specify NOT (no monitoring) for the delayedStart parameter.
--
delayedEnd#
string
Specify the method of monitoring end delays, by using a character string constant specified for the DelayMonitorType constant. For details about the DelayMonitorType constant, see 7.4.11(1) DelayMonitorType.
If you do not want to change the end delay monitor settings, do not specify this parameter, or specify null for this parameter.
If you specify a constant that cannot be specified for the root jobnet, an error occurs.
--
delayedEndTime
string
Specify the start time of end delay monitoring, by using a character string.
You must specify this parameter if you use the delayedEnd parameter to change the end delay monitor settings. If you omit this parameter, an error occurs.
If you specify ABSOLUTE (absolute time) for the delayedEnd parameter, specify the start time of end delay monitoring, by using an absolute time in hh:mm format.
Specify the time by using the local time for the scheduler service of the request-destination JP1/AJS3 - Manager.
You can specify the following values:
-
hh: Specify the hour.
You can specify the hour in the range from 00 to 47 (unit: hour).
-
mm: Specify the minute.
You can specify the minute in the range from 00 to 59 (unit: minute).
If you specify one of the following values for the delayedEnd parameter, specify a relative time in hh:mm format: ROOT (relative time from the scheduled start time of the root jobnet), TOP (relative time from the scheduled start time of the upper jobnet), or OWN (relative time from the scheduled start time of the local jobnet).
Specify the time by using the local time for the scheduler service of the request-destination JP1/AJS3 - Manager.
You can specify the following values:
-
hh: Specify the hour.
You can specify the hour in the range from 00 to 47 (unit: hour).
-
mm: Specify the minute.
You can specify the minute in the range from 00 to 59 (unit: minute).
However, you cannot specify 00:00. Specify a value in the range from 00:01 to 47:59.
The specification of this parameter is ignored if you omit the delayedEnd parameter or specify NOT (no monitoring) for the delayedEnd parameter.
--
monitoringJobnet#
string
Specify the method of end delay monitoring based on the time required for executing the jobnet, by using a character string constant specified for the MonitoringJobnetType constant.
For details about the MonitoringJobnetType constant, see 7.4.11(2) MonitoringJobnetType.
If you do not want to change the setting of end delay monitoring based on the time required for executing the jobnet, do not specify this parameter, or specify null for this parameter.
--
timeRequiredForExecution
string
When you monitor end delays based on the time required for executing the jobnet, specify the time required for execution, by using a character string.
You must specify this parameter if you specify the monitoringJobnet parameter to change the setting of end delay monitoring based on the time required for executing the jobnet. If you omit this parameter, an error occurs.
If you specify TIME_REQUIRED_FOR_EXECUTION (time required for execution) for the monitoringJobnet parameter, specify the time required for executing the jobnet in hh:mm format.
You can specify the following values:
-
hh: Specify the hour.
You can specify the hour in the range from 00 to 47 (unit: hour).
-
mm: Specify the minute.
You can specify the minute in the range from 00 to 59 (unit: minute).
However, you cannot specify 00:00. Specify a value in the range from 00:01 to 47:59.
The specification of this parameter is ignored if you omit the monitoringJobnet parameter or specify NOT (no monitoring) for the monitoringJobnet parameter.
--
- Legend:
-
Y: Required
--: Optional
- #
-
Be sure to specify a procedure for monitoring one of the following: delayed start times (delayedStart), delayed end times (delayedEnd), or delayed end times that are due to the time required to execute a jobnet (monitoringJobnet). If you do not specify a monitoring procedure (or if null is specified), an error occurs.
-
- Status code
-
The following table lists and describes the status codes returned as a response:
Status code
Message
Description
200
OK
Delay monitoring settings were changed successfully.
400
Bad Request
The argument is invalid.
401
Unauthorized
Authentication is required.
403
Forbidden
The operator does not have execution permission.
404
Not found
The operator does not have access permission for the resource, or the resource does not exist.
409
Conflict
The processing cannot be continued because the request is inconsistent with the current resource status.
412
Precondition failed
The Web Console server is not available.
500
Server-side error
A processing error occurred in the Web Console server.
- Return values
-
None (The size of the response message body is 0 bytes.)
- Example 1
-
The following shows an example of using the API that temporarily changes the delay monitoring settings for the specified jobnet.
In this example, the API changes the delay monitoring settings as follows:
-
Monitoring start delays for the jobnet starts from 08:30 (absolute time).
-
Monitoring end delays for the jobnet is not set.
-
End delay monitoring based on the time required for execution of the jobnet is set to 10 minutes.
- Example request:
POST /ajs/api/v1/objects/statuses/%2FJobGroup%2FJobnet:%40A100/actions/changeDelayMonitor/invoke HTTP/1.1 Host: HOSTW:22252 Accept-Language: ja Content-type: application/json X-AJS-Authorization: dXNlcjpwYXNzd29yZA== { "parameters":{ "manager":"HOSTM", "serviceName":"AJSROOT1", "delayedStart":"ABSOLUTE", "delayedStartTime":"08:30", "delayedEnd":"NOT", "monitoringJobnet":"TIME_REQUIRED_FOR_EXECUTION", "timeRequiredForExecution":"00:10" } }
- Example response:
HTTP/1.1 200 OK Content-Type: text/plain Cache-Control: no-store, no-cache, max-age=0 Date: Mon, 08 Aug 2016 09:39:28 GMT Expires: Thu, 01 Jan 1970 00:00:00 GMT Pragma: no-cache Server: Cosminexus HTTP Server
-
- Example 2
-
The following shows an example of using the API that temporarily changes only the end delay monitoring setting for the specified jobnet.
- Example request:
POST /ajs/api/v1/objects/statuses/%2FJobGroup%2FJobnet:%40A100/actions/changeDelayMonitor/invoke HTTP/1.1 Host: HOSTW:22252 Accept-Language: ja Content-type: application/json X-AJS-Authorization: dXNlcjpwYXNzd29yZA== { "parameters":{ "manager":"HOSTM", "serviceName":"AJSROOT1", "delayedEnd":"OWN", "delayedEndTime":"00:10" } }
- Example response:
HTTP/1.1 200 OK Content-Type: text/plain Cache-Control: no-store, no-cache, max-age=0 Date: Mon, 08 Aug 2016 09:39:28 GMT Expires: Thu, 01 Jan 1970 00:00:00 GMT Pragma: no-cache Server: Cosminexus HTTP Server