Temporal coverage tool
The TemporalCoverageTool, which an agent sees as WhenWasThisImaged, reports when a place was imaged and where the gaps are. Use it to choose a baseline before FindChanges.
The answer includes how many acquisitions exist, the newest and oldest dates, and the longest gap — with the two dates that bound that gap.
time_field is required. An index usually carries several dates (capture, ingest, last write); the tool uses the one you name and repeats it in the answer.
The most recent 500 distinct acquisitions are examined for gaps. When the archive holds more, the true oldest date is still reported from a separate aggregation, and the answer states that the gap scan covered the most recent 500 acquisitions.
Parameters
| Parameter | Required | Description |
|---|---|---|
index | Yes | The index holding the acquisitions. |
time_field | Yes | The date field holding capture time. |
query | No | A phrase that restricts which acquisitions count. |
area | No | An area of interest, as WKT. |
field | No | The geometry field area is tested against. |
Register a flow agent that runs the TemporalCoverageTool
POST /_plugins/_agent/agents/_register
{
"name": "Coverage_Agent",
"type": "flow",
"description": "reports when a place was imaged",
"tools": [
{
"type": "TemporalCoverageTool",
"name": "DemoWhenWasThisImaged",
"parameters": {
"index": "land_cover",
"time_field": "captured_at"
}
}
]
}
Related tools
- Compare two windows:
FindChanges - Populate
captured_atat ingest:vectorize