ExclusionWindow - createWindowWithDailySchedule

ExclusionWindow - createWindowWithDailySchedule

Description :

This command adds a Window with daily schedule.

The dateString argument defines a daily schedule to be added to the window definition. It must be in the format YYYY-MM-DD HH:MM:SS.

Command Input :

Variable Name

Variable Type

Description

windowName

String

Name of Window

windowDescStringDescription of Window
dateStringStringDaily schedule to be added. The date string must be in the format YYYY-MM-DD HH:MM:SS.
windowDurationDaysStringDuration, number of days
windowDurationHoursStringDuration, number of hours
windowDurationMinutesStringDuration, number of minutes

Example

The following example shows how to create an exclusion window with a daily schedule at 11:35 PM and that extends for 5 hours and 35 minutes.

Script

DATE_STRING="2005-01-01 23:35:00"

EXCLUSION_WINDOW_NAME="DAILY_WINDOW"

EXCLUSION_WINDOW_DESC="Daily business hours exclusion window"

EXCLUSION_WINDOW_KEY=`blcli ExclusionWindow createWindowWithDailySchedule 
"$EXCLUSION_WINDOW_NAME" "$EXCLUSION_WINDOW_DESC" "$DATE_STRING" 0 5 35`
Was this page helpful? Yes No Submitting... Thank you

Comments