Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions specs/common/schemas/Rule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,3 @@ timeRange:
type: integer
format: int64
description: When the rule should stop to be active, in Unix epoch time.
required:
- from
- until
9 changes: 5 additions & 4 deletions templates/go/guides/search/useConditionlessRule.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ func useConditionlessRule() {
*search.NewConsequence(/* Set relevant consequence */),
). // Set validity (optional)
SetValidity(
[]search.TimeRange{
*search.NewTimeRange(1_688_774_400, 1_738_972_800),
},
)
[]search.TimeRange{ {
From: utils.ToPtr(int64(1_688_774_400)),
Until: utils.ToPtr(int64(1_738_972_800)),
}},
)

_, err = {{#dynamicSnippet}}saveRule{{/dynamicSnippet}}
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions templates/scala/guides/search/useConditionlessRule.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ def useConditionlessRule(): Future[Unit] = {
// Set validity (optional)
validity = Some(Seq(
TimeRange(
from = 1_688_774_400,
until = 1_738_972_800
from = Some(1_688_774_400),
until = Some(1_738_972_800)
)
))
)
Expand Down
Loading