Skip to content

Commit 0bbfd12

Browse files
committed
postgres data-observability - sync instance.py with updated spec descriptions
Signed-off-by: mobuchowski <maciej.obuchowski@datadoghq.com>
1 parent 976cd74 commit 0bbfd12

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • postgres/datadog_checks/postgres/config_models

postgres/datadog_checks/postgres/config_models/instance.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,13 @@ class Query(BaseModel):
142142
entity: Entity
143143
interval_seconds: Optional[int] = Field(
144144
None,
145-
description='How often (in seconds) to run this query. At least one of interval_seconds or\nschedule must be set. When both are present, schedule takes precedence and\ninterval_seconds is ignored.\n',
145+
description='How often (in seconds) to run this query. When both schedule and\ninterval_seconds are present, schedule takes precedence and interval_seconds\nis ignored. If neither is set, the query is skipped at runtime with a warning.\n',
146146
)
147147
monitor_id: int
148148
query: str
149149
schedule: Optional[str] = Field(
150150
None,
151-
description='A standard 5-field cron expression (minute hour dom month dow) specifying\nwhen to run this query. When set, takes precedence over interval_seconds.\nAt least one of schedule or interval_seconds must be set.\n',
151+
description='A standard 5-field cron expression (minute hour dom month dow) specifying\nwhen to run this query. When set, takes precedence over interval_seconds.\nIf neither schedule nor interval_seconds is set, the query is skipped at\nruntime with a warning.\n',
152152
)
153153
type: Optional[str] = None
154154

0 commit comments

Comments
 (0)