Skip to content

Commit

Permalink
[Core-541] Client support for event schedules (#12689)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 0449b5e37eef00c24c81606f49c486ed94a80b4f
  • Loading branch information
stephencpope authored and Descartes Labs Build committed Oct 3, 2024
1 parent 6d9cce5 commit 3dc6b8c
Show file tree
Hide file tree
Showing 7 changed files with 1,197 additions and 37 deletions.
9 changes: 9 additions & 0 deletions descarteslabs/core/catalog/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,15 @@
EventConnectionParameter,
)
from .event_rule import EventRule, EventRuleSearch, EventRuleTarget
from .event_schedule import EventSchedule, EventScheduleSearch
from .event_subscription import (
EventSubscription,
EventSubscriptionComputeTarget,
EventSubscriptionSearch,
EventSubscriptionTarget,
EventType,
Placeholder,
ScheduledEventSubscription,
)
from .image import Image, ImageSearch, ImageSummaryResult
from .image_types import ResampleAlgorithm, DownloadFileFormat
Expand Down Expand Up @@ -125,7 +129,10 @@
"EventRule",
"EventRuleSearch",
"EventRuleTarget",
"EventSchedule",
"EventScheduleSearch",
"EventSubscription",
"EventSubscriptionComputeTarget",
"EventSubscriptionSearch",
"EventSubscriptionTarget",
"EventType",
Expand All @@ -148,6 +155,7 @@
"MicrowaveBand",
"NamedCatalogObject",
"OverviewResampler",
"Placeholder",
"ProcessingLevelsAttribute",
"ProcessingStepAttribute",
"Product",
Expand All @@ -156,6 +164,7 @@
"ResampleAlgorithm",
"Resolution",
"ResolutionUnit",
"ScheduledEventSubscription",
"Search",
"SpectralBand",
"StorageState",
Expand Down
7 changes: 7 additions & 0 deletions descarteslabs/core/catalog/event_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,13 @@ class EventRule(CatalogObject):
At least one target is required.
""",
)
enabled = BooleanAttribute(
doc="""bool, optional: True if the rule is enabled. Non-enabled rules are ignored
during the matching of events.
*Filterable, sortable*.
""",
)
event_bus_arn = TypedAttribute(
str,
doc="""str: The ARN of the event bus to which this rule belongs.""",
Expand Down
Loading

0 comments on commit 3dc6b8c

Please sign in to comment.