Search Criteria

Search Criteria should be provided to retrieve messages for specified DCPs. Search criteria can be passed either as the path to the search criteria json file or a dict. An example is provided below. For detailed information on the search criteria format, see the opendcs docs.

{
  "DRS_SINCE": "now - 1 hour",
  "DRS_UNTIL": "now",
  "SOURCE": [
    "GOES_SELFTIMED",
    "GOES_RANDOM"
  ],
  "DCP_ADDRESS": [
    "address1",
    "address2"
  ]
}

Supported Fields

Warning

Only the following search criteria keys are currently supported. All other keys in the criteria file will be ignored.

Key

Type

Description

DRS_SINCE

string

Start time for data query (e.g., "now - 1 hour")

DRS_UNTIL

string

End time for data query (e.g., "now")

SOURCE

list[string]

Must be one or both of: "GOES_SELFTIMED", "GOES_RANDOM"

DCP_ADDRESS

list[string]

One or more DCP addresses to query