search cancel

Rest API Schedule less than an hour

book

Article ID: 215244

calendar_today

Updated On:

Products

CA Service Operations Insight (SOI)

Issue/Introduction

 

While using the SOI Rest API it is not possible to create schedules with a duration less than an hour.
 
Example:
Read a schedule with a duration of 15 minutes from SOI using: GET https://<ui server>/rest/schedule/<schedule id>
 
This is a sample response:


<schedule>
   <type>BUSINESS_HOURS</type>
   <startDate>2016-10-05T00:00:00+02:00</startDate>
   <description/>
   <startTime>10</startTime>
   <timeZone>Europe</timeZone>
--->   <duration>0</duration>
   <recurrence xsi:type="ns3:dailyRecurrence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns3="http://ns.ca.com/SOI/headless/client-api">
      <dailyRecurrenceType>EVERY_DAY</dailyRecurrenceType>
      <frequency>1</frequency>
   </recurrence>
</schedule>

Note the duration value reports as zero
 
Using this response to create a schedule in SOI using: POST https://<ui server>/rest/schedule
 
will create an error:
 
<error>
   <message>Property duration is out of range [1, 71]</message>
   <detail>Property duration is out of range [1, 71]</detail>
</error>
 
It is possible to create schedules with a duration less than an hour in the SOI GUI, but it is not possible to create such schedules via Rest API.

Is it possible to specify a schedule duration in minutes?

Environment

Release : 4.2

Component : SOI ALERT MANAGEMENT

Resolution

 
 

This has been confirmed as a limitation of the REST API.

A fix for this will be included in SOI 4.2 CU2