Skip to content

Commit

Permalink
Introduced temporal_mode to GetObsRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
jo-asplin-met-no committed Feb 15, 2024
1 parent 53ac5d6 commit d707e60
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion protobuf/datastore.proto
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,20 @@ message Strings {
message GetObsRequest {
// --- BEGIN non-string metadata -------------------------

// temporal filter
// temporal mode
string temporal_mode = 4; // use 'interval' (the default) or 'latest'

// temporal spec applicable when temporal_mode = 'interval'
TimeInterval temporal_interval = 1; // only observations in this time range may be returned

// temporal spec applicable when temporal_mode = 'latest'
int32 latest_limit = 5; // only this many of the latest observations may be returned per time
// series; default: 1
string latest_maxage = 6; // ISO 8601 period (like 'PT1H') that limits the time window (ending
// at the current time) from which the latest observations may be retrieved (use case: specify
// PT1H if you're not interested in observations older than one hour!); default: entire valid
// time range of the data store, typically PT24H

// spatial filter
Polygon spatial_area = 2; // if specified, only observations in this area may be returned

Expand Down

1 comment on commit d707e60

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API Unit Test Coverage Report
FileStmtsMissCoverMissing
\_\_init\_\_.py00100% 
datastore_pb2.py584621%24–69
datastore_pb2_grpc.py432347%37–52, 85–87, 92–94, 99–101, 106–108, 112–136, 174, 191, 208, 225
dependencies.py31487%23–24, 31, 38
grpc_getter.py8450%12–16
locustfile.py15150%1–31
main.py22386%27, 37, 47
metadata_endpoints.py19479%16, 33–66, 70
formatters
   \_\_init\_\_.py70100% 
   covjson.py46198%58
routers
   \_\_init\_\_.py00100% 
   edr.py711185%36–59, 109–110, 137–138
   records.py00100% 
TOTAL32011165% 

API Unit Test Coverage Summary

Tests Skipped Failures Errors Time
16 0 💤 0 ❌ 0 🔥 1.807s ⏱️

Please sign in to comment.