6.13 Calendar
以下にCalendar定義と定義例を示します。Calendarの詳細については「予定表管理機能」、「スケジュール管理」を参照してください。
ラベル | デフォルト値 | 必須 | 説明 | ||||
---|---|---|---|---|---|---|---|
apiVersion: | 1.0 | Yes | APIバージョン | ||||
kind: | Yes | 予定表テンプレートの際はcalendarを指定する | |||||
type: | Yes | 予定表テンプレートの際はresourceのみ指定可能 | |||||
name: | Yes | Calendar定義の内部名。本YAMLファイルのディレクトリ名を指定。 nameは英数字、"_"、"-"のみ使用可能。 |
|||||
label: | Yes | YAMLファイルの表示名 | |||||
description: | No | 詳細説明 | |||||
workItems: | No | 作業項目を定義 | |||||
- (workItem): | |||||||
name: | Yes | 作業項目名。 使用できる字数は、1~40文字。 |
|||||
description: | No | 作業項目の詳細説明 | |||||
isFolder: | Yes | 以下を指定できる。
|
|||||
scheduleRule: | isFolderがfalseの場合必須 | 作業項目に設定する予定 | |||||
appointment: | Yes | 作業項目の予定 | |||||
start: | Yes | 作業項目の開始時刻 | |||||
dateTime: | Yes | "hh:MM:ss"形式で指定。ssは00を指定する。 | |||||
timeZone: | Yes | 開始時刻のタイムゾーン | |||||
duration: | Yes | 作業に必要な時間 (分)。1~2,147,483,647の整数を指定する。 値はpatternのtypeによって最大値が異なる。patternのintervalで指定した値以下(単位は分に換算)を指定する。 |
|||||
pattern: | isFolderがfalseの場合必須 | 作業項目の繰り返しのパターン 詳細については「(表)作業項目の繰り返しのパターン」参照。 |
|||||
type: | oneTime | Yes | 作業項目の繰り返しのタイプ 指定可能な値:daily、weekly、monthly、yearly、oneTime oneTimeを指定すると単一の作業、その他のtypeを指定すると定期的な作業になる。 |
||||
useDayOfMonth: | 「(表)作業項目の繰り返しのパターン」参照 | 作業項目の予定で、日付を基準にするかを指定
|
|||||
interval: | 作業項目の実行の間隔 単位と指定可能な値はtypeによって異なる。
|
||||||
plannedDayOfWeek: | 作業項目を実行する曜日 指定可能な値:Monday、Tuesday、Wednesday、Thursday、Friday、Saturday、Sunday |
||||||
plannedDayOfMonth: | 作業項目を実行する日 | ||||||
plannedDay: | 作業項目を実行する基準からの日にち 指定可能文字:1~31の整数 |
||||||
isFromEnd: | false | 基準として以下を指定できる。
|
|||||
plannedWeekOfMonth: | 作業項目を実行する週 指定可能な値:1、2、3、4、5、-1 "-1"は最終週を表す |
||||||
plannedMonthOfYear: | 作業項目を実行する月 指定可能な値:1~12の整数 |
||||||
children: | No | isFolderで"true"を指定した場合に使用可能 フォルダの配下の作業項目を定義する。 |
|||||
- (workItem): | 作業項目を定義する。 |
各作業のスケジュールの実行パターンの詳細について以下に示します。
テーブルの各列には規則があり、"type"と"useDayOfMonth"の値の組み合わせによって繰り返しのパターンが指定されます。
pattern※1 | One time | daily | weekly | Absolute month | Relative month | Absolute year | Relative year | |
---|---|---|---|---|---|---|---|---|
type: | oneTime | daily | weekly | monthly | monthly | yearly | yearly | |
useDayOfMonth: | × | × | × | true | false | true | false | |
interval: | × | ◯ | ◯ | ◯ | ◯ | ◯ | ◯ | |
plannedDayOfWeek: | × | × | ◯※2 | × | ◯ | × | ◯ | |
plannedDayOfMonth: | × | × | × | ◯ | × | ◯ | × | |
plannedDay: | × | × | × | ◯ | × | ◯ | × | |
isFromEnd: | × | × | × | △ | × | × | × | |
plannedWeekOfMonth: | × | × | × | × | ◯ | × | ◯ | |
plannedMonthOfYear: | × | × | × | × | × | ◯ | ◯ |
<定義例>
apiVersion: 1.0
kind: calendar
type: resource
name: Template type_weekly1
label: test calendar template pattern type type_weekly1
description: test_calendar template description
workItems:
- name: workItem_plannedDayOfWeek_multi_update
description: workItem_plannedDayOfWeek_multi description
isFolder: false
scheduleRule:
appointment:
start:
dateTime: "16:00:00"
timeZone: "UTC+09:00_1"
duration: 60
pattern:
type: weekly
interval: 2
plannedDayOfWeek: ["Friday"]