Query gauge forecasts.
HTTP request
GET https://floodforecasting.googleapis.com/v1/gauges:queryGaugeForecasts
The URL uses gRPC Transcoding syntax.
Query parameters
Parameters | |
---|---|
gaugeIds[] |
Required. A list of gauge ids. The supported list size is limited to 500. If a list larger than 500 is provided it may fail, and soon we will also enforce the limit by returning an INVALID_REQUEST error. |
issuedTimeStart |
Optional. The earliest forecast issued time as string (ISO 8601), e.g. "2023-06-17T10:34:00Z" or a date string e.g. "2023-10-13". Start time cannot be earlier than "2023-10-01". Default is one week ago. |
issuedTimeEnd |
Optional. The latest forecast issued time as string (ISO 8601), e.g. "2023-06-17T10:34:00Z" or a date string e.g. "2023-10-13". Default is now. |
Request body
The request body must be empty.
Response body
The response of gauges.queryGaugeForecasts.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"forecasts": {
string: {
object ( |
Fields | |
---|---|
forecasts |
A map from gauge id to forecast set. An object containing a list of |
ForecastSet
A set of forecasts for a gauge.
JSON representation |
---|
{
"forecasts": [
{
object ( |
Fields | |
---|---|
forecasts[] |
The forecasts. |
Forecast
A single gauge's forecast for several lead times. For example, a forecast could have issue time of 5pm, and include forecasts for 6pm, 7pm, 8pm, etc.
Note: Some of the forecast ranges can potentially be earlier than the issued time. This can happen due to e.g., lags in input data for the model. With the above example, it could be that the issue time is 5pm, and the forecast ranges are for 4pm, 5pm, 6pm, etc.
Note: Ranges vary in length, and in distance between them. Some examples of possible ranges are:
[5pm - 5pm], [6pm - 6pm], [7pm - 7pm]
[Mar 1 12am - Mar 2 12am], [Mar 2 12am - Mar 3 12am], [Mar 3 12am - Mar 4 12am]
JSON representation |
---|
{
"forecastRanges": [
{
object ( |
Fields | |
---|---|
forecastRanges[] |
A forecast consists of several "forecast ranges", which are different forecast values pertaining to different time ranges. When the start and end of a range are equal, it means it's a time instant. |
gaugeId |
The ID of the gauge this forecast is for. |
issuedTime |
The issued time of the forecast (ISO 8601), e.g. "2023-06-17T10:34:00Z". The issued time is the time the forecast was generated. |
ForecastTimedValue
A forecast value pertaining to a time range. Its units are defined by the GaugeModel it is associated with. If the start and end are equal, it means it's a time instant.
JSON representation |
---|
{ "value": number, "forecastStartTime": string, "forecastEndTime": string } |
Fields | |
---|---|
value |
The value of the forecast. |
forecastStartTime |
The start of the interval. |
forecastEndTime |
The end of the interval. |