date_expressions
are used to control a resource or cluster option based on the current date/time. They can contain an optional date_spec
and/or duration
object depending on the context.
Tabella 8.3. Proprietà di un'espressione basata sulla data
Campo | Descrizione |
---|---|
start
| |
end
| |
operation
|
Confronta la data/ora attuale con la data/ora indicata nei parametri start ed end, dipendentemente dal contesto. Valori permessi:
* gt - True if the current date/time is after
start
* lt - True if the current date/time is before
end
* in-range - True if the current date/time is after
start and before end
|
Nota
date_spec
) include the time, the eq
, neq
, gte
and lte
operators have not been implemented since they would only be valid for a single second.
date_spec
sono utilizzati per creare espressioni simili a quelle cron. Ogi campo contiene un singolo numero ed un singolo range Anziché impostare per default zero, ogni campo non difinito viene ignorato.
monthdays="1"
matches the first day of every month and hours="09-17"
matches the hours between 9am and 5pm (inclusive). However, at this time one cannot specify weekdays="1,2"
or weekdays="1-2,5-6"
since they contain multiple ranges. Depending on demand, this may be implemented in a future release.
Tabella 8.4. Prorpietà di una specifica data
Campo | Descrizione |
---|---|
id
| |
hours
| |
monthdays
| |
weekdays
| |
yeardays
| |
months
| |
weeks
| |
years
| |
weekyears
| |
moon
|