{"openapi":"3.1.0","info":{"title":"MKE Rain API","description":"Public, provisional rainfall and facility measurements collected from the Milwaukee Metropolitan Sewerage District (MMSD). MKE Rain is not affiliated with, endorsed by, or operated by the Milwaukee Metropolitan Sewerage District (MMSD). Every reading is kept. Five-minute observations are not pruned. Hourly and daily rollups are derived copies used to serve history cheaply.\n\nHistory routes take an absolute start and end. Daily ranges are at most 10 years, hourly ranges at most 92 days, and five-minute ranges at most 31 days. Live routes use `public, max-age=60, stale-while-revalidate=240`. History that ends within the last five days uses `public, max-age=300`. History that ended more than five days ago is `public, max-age=86400, s-maxage=31536000, immutable`.\n\nThe edge allows 20 requests per 10 seconds per IP. When this API itself rejects a request, the 429 body is JSON and includes Retry-After. Terms: https://mkerain.com/terms.","contact":{"name":"MKE Rain","url":"https://mkerain.com/"},"version":"0.2.0"},"paths":{"/v1/current":{"get":{"tags":["rainfall"],"summary":"Current","operationId":"current_v1_current_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurrentResponse"}}}}}}},"/v1/stations":{"get":{"tags":["stations"],"summary":"Stations","operationId":"stations_v1_stations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StationsResponse"}}}}}}},"/v1/stations/{station_id}":{"get":{"tags":["stations"],"summary":"Station Detail","operationId":"station_detail_v1_stations__station_id__get","parameters":[{"name":"station_id","in":"path","required":true,"schema":{"type":"string","title":"Station Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StationDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/rainfall/totals":{"get":{"tags":["rainfall"],"summary":"Totals","operationId":"totals_v1_rainfall_totals_get","parameters":[{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":8784,"minimum":1,"default":24,"title":"Hours"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TotalsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/timeline":{"get":{"tags":["rainfall"],"summary":"Timeline","operationId":"timeline_v1_timeline_get","parameters":[{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":24,"minimum":1,"default":24,"title":"Hours"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TimelineResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/rainfall/series":{"get":{"tags":["rainfall"],"summary":"Series","operationId":"series_v1_rainfall_series_get","parameters":[{"name":"station_id","in":"query","required":true,"schema":{"type":"string","title":"Station Id"}},{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":8784,"minimum":1,"default":24,"title":"Hours"}},{"name":"resolution","in":"query","required":false,"schema":{"enum":["5m","1h","1d"],"type":"string","default":"1h","title":"Resolution"}},{"name":"format","in":"query","required":false,"schema":{"enum":["json","csv"],"type":"string","default":"json","title":"Format"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeriesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/facilities/latest":{"get":{"tags":["facilities"],"summary":"Facilities","operationId":"facilities_v1_facilities_latest_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacilityLatestResponse"}}}}}}},"/v1/facilities/series":{"get":{"tags":["facilities"],"summary":"Facility Series","operationId":"facility_series_v1_facilities_series_get","parameters":[{"name":"asset_id","in":"query","required":true,"schema":{"type":"string","title":"Asset Id"}},{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":8784,"minimum":1,"default":168,"title":"Hours"}},{"name":"resolution","in":"query","required":false,"schema":{"enum":["5m","1h","1d"],"type":"string","default":"1h","title":"Resolution"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacilitySeriesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/alerts/water-drop":{"get":{"tags":["alerts"],"summary":"Alert","operationId":"alert_v1_alerts_water_drop_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertStatusResponse"}}}}}}},"/v1/alerts/water-drop/events":{"get":{"tags":["alerts"],"summary":"Alert Events","operationId":"alert_events_v1_alerts_water_drop_events_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertEventsResponse"}}}}}}},"/v1/status":{"get":{"tags":["status"],"summary":"Status","operationId":"status_v1_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}}}}},"/v1/rainfall/daily":{"get":{"tags":["rainfall"],"summary":"Daily rainfall totals","description":"Local America/Chicago dates, up to 10 years. Rows computed from five-minute observations are preferred over MMSD date-picker totals for the same gauge-day.","operationId":"rainfall_daily_v1_rainfall_daily_get","parameters":[{"name":"start","in":"query","required":true,"schema":{"type":"string","title":"Start"}},{"name":"end","in":"query","required":true,"schema":{"type":"string","title":"End"}},{"name":"station_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Station Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":5000,"minimum":1,"default":1000,"title":"Limit"}},{"name":"format","in":"query","required":false,"schema":{"enum":["json","csv"],"type":"string","default":"json","title":"Format"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RainHistoryPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/rainfall/hourly":{"get":{"tags":["rainfall"],"summary":"Hourly rainfall totals","description":"UTC hour buckets summed from five-minute increments. The range can be at most 92 days.","operationId":"rainfall_hourly_v1_rainfall_hourly_get","parameters":[{"name":"start","in":"query","required":true,"schema":{"type":"string","title":"Start"}},{"name":"end","in":"query","required":true,"schema":{"type":"string","title":"End"}},{"name":"station_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Station Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":5000,"minimum":1,"default":1000,"title":"Limit"}},{"name":"format","in":"query","required":false,"schema":{"enum":["json","csv"],"type":"string","default":"json","title":"Format"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RainHistoryPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/rainfall/observations":{"get":{"tags":["rainfall"],"summary":"Five-minute rainfall observations","description":"Raw five-minute readings. The range can be at most 31 days.","operationId":"rainfall_observations_v1_rainfall_observations_get","parameters":[{"name":"start","in":"query","required":true,"schema":{"type":"string","title":"Start"}},{"name":"end","in":"query","required":true,"schema":{"type":"string","title":"End"}},{"name":"station_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Station Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":5000,"minimum":1,"default":1000,"title":"Limit"}},{"name":"format","in":"query","required":false,"schema":{"enum":["json","csv"],"type":"string","default":"json","title":"Format"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RainObservationPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/facilities/hourly":{"get":{"tags":["facilities"],"summary":"Hourly facility readings","description":"Last sample in each UTC hour. The range can be at most 92 days.","operationId":"facilities_hourly_v1_facilities_hourly_get","parameters":[{"name":"start","in":"query","required":true,"schema":{"type":"string","title":"Start"}},{"name":"end","in":"query","required":true,"schema":{"type":"string","title":"End"}},{"name":"asset_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":5000,"minimum":1,"default":1000,"title":"Limit"}},{"name":"format","in":"query","required":false,"schema":{"enum":["json","csv"],"type":"string","default":"json","title":"Format"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacilityHistoryPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/facilities/daily":{"get":{"tags":["facilities"],"summary":"Daily facility readings","description":"Last hourly sample on each America/Chicago date, up to 10 years. Derived from facility_hourly.","operationId":"facilities_daily_v1_facilities_daily_get","parameters":[{"name":"start","in":"query","required":true,"schema":{"type":"string","title":"Start"}},{"name":"end","in":"query","required":true,"schema":{"type":"string","title":"End"}},{"name":"asset_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":5000,"minimum":1,"default":1000,"title":"Limit"}},{"name":"format","in":"query","required":false,"schema":{"enum":["json","csv"],"type":"string","default":"json","title":"Format"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacilityHistoryPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/facilities/observations":{"get":{"tags":["facilities"],"summary":"Five-minute facility observations","description":"Raw facility samples. The range can be at most 31 days.","operationId":"facilities_observations_v1_facilities_observations_get","parameters":[{"name":"start","in":"query","required":true,"schema":{"type":"string","title":"Start"}},{"name":"end","in":"query","required":true,"schema":{"type":"string","title":"End"}},{"name":"asset_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":5000,"minimum":1,"default":1000,"title":"Limit"}},{"name":"format","in":"query","required":false,"schema":{"enum":["json","csv"],"type":"string","default":"json","title":"Format"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacilityHistoryPage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AlertEventModel":{"properties":{"id":{"type":"integer","title":"Id"},"started_at":{"type":"string","title":"Started At"},"ended_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ended At"},"last_confirmed_at":{"type":"string","title":"Last Confirmed At"},"source_url":{"type":"string","title":"Source Url"}},"type":"object","required":["id","started_at","ended_at","last_confirmed_at","source_url"],"title":"AlertEventModel"},"AlertEventsResponse":{"properties":{"provisional":{"type":"boolean","const":true,"title":"Provisional","default":true},"source":{"$ref":"#/components/schemas/SourceModel"},"attribution":{"type":"string","title":"Attribution","examples":["Rainfall and facility measurements are collected from the Milwaukee Metropolitan Sewerage District (MMSD)."]},"terms_url":{"type":"string","title":"Terms Url","examples":["https://mkerain.com/terms"]},"note":{"type":"string","title":"Note","examples":["MKE Rain is not affiliated with, endorsed by, or operated by the Milwaukee Metropolitan Sewerage District (MMSD)."]},"events":{"items":{"$ref":"#/components/schemas/AlertEventModel"},"type":"array","title":"Events"}},"type":"object","required":["source","attribution","terms_url","note","events"],"title":"AlertEventsResponse"},"AlertStatusModel":{"properties":{"state":{"type":"string","title":"State"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"},"checked_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checked At"},"source_updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Updated At"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Started At"},"message":{"type":"string","title":"Message"},"source_url":{"type":"string","title":"Source Url"},"evidence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evidence"}},"type":"object","required":["state","active","checked_at","started_at","message","source_url"],"title":"AlertStatusModel"},"AlertStatusResponse":{"properties":{"provisional":{"type":"boolean","const":true,"title":"Provisional","default":true},"source":{"$ref":"#/components/schemas/SourceModel"},"attribution":{"type":"string","title":"Attribution","examples":["Rainfall and facility measurements are collected from the Milwaukee Metropolitan Sewerage District (MMSD)."]},"terms_url":{"type":"string","title":"Terms Url","examples":["https://mkerain.com/terms"]},"note":{"type":"string","title":"Note","examples":["MKE Rain is not affiliated with, endorsed by, or operated by the Milwaukee Metropolitan Sewerage District (MMSD)."]},"state":{"type":"string","title":"State"},"active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Active"},"checked_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checked At"},"source_updated_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Updated At"},"started_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Started At"},"message":{"type":"string","title":"Message"},"source_url":{"type":"string","title":"Source Url"},"evidence":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evidence"}},"type":"object","required":["source","attribution","terms_url","note","state","active","checked_at","started_at","message","source_url"],"title":"AlertStatusResponse"},"CollectorRunModel":{"properties":{"source":{"type":"string","title":"Source"},"started_at":{"type":"string","title":"Started At"},"finished_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Finished At"},"status":{"type":"string","title":"Status"},"records_processed":{"type":"integer","title":"Records Processed"}},"type":"object","required":["source","started_at","finished_at","status","records_processed"],"title":"CollectorRunModel"},"CurrentResponse":{"properties":{"provisional":{"type":"boolean","const":true,"title":"Provisional","default":true},"source":{"$ref":"#/components/schemas/SourceModel"},"attribution":{"type":"string","title":"Attribution","examples":["Rainfall and facility measurements are collected from the Milwaukee Metropolitan Sewerage District (MMSD)."]},"terms_url":{"type":"string","title":"Terms Url","examples":["https://mkerain.com/terms"]},"note":{"type":"string","title":"Note","examples":["MKE Rain is not affiliated with, endorsed by, or operated by the Milwaukee Metropolitan Sewerage District (MMSD)."]},"generated_at":{"type":"string","title":"Generated At"},"latest_observed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Observed At"},"metro_average_24h_inches":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Metro Average 24H Inches"},"stations_reporting":{"type":"integer","title":"Stations Reporting"},"stations":{"items":{"$ref":"#/components/schemas/CurrentStationModel"},"type":"array","title":"Stations"},"alert":{"$ref":"#/components/schemas/AlertStatusModel"}},"type":"object","required":["source","attribution","terms_url","note","generated_at","latest_observed_at","metro_average_24h_inches","stations_reporting","stations","alert"],"title":"CurrentResponse","examples":[{"alert":{"active":false,"checked_at":"2026-07-20T17:55:00Z","message":"No Water Drop Alert is active.","source_url":"https://www.mmsd.com/about-us/milwaukee-rain-facility-information","state":"inactive"},"attribution":"Rainfall and facility measurements are collected from the Milwaukee Metropolitan Sewerage District (MMSD).","generated_at":"2026-07-20T18:00:00Z","latest_observed_at":"2026-07-20T17:55:00Z","metro_average_24h_inches":0.12,"note":"MKE Rain is not affiliated with, endorsed by, or operated by the Milwaukee Metropolitan Sewerage District (MMSD).","provisional":true,"source":{"name":"Milwaukee Metropolitan Sewerage District","timezone":"America/Chicago","url":"https://www.mmsd.com/about-us/milwaukee-rain-facility-information"},"stations":[{"active":true,"address":"8500 S 5th Ave","current_day_inches":0.12,"id":"WS1201","last_24h_inches":0.12,"latitude":42.88945,"longitude":-87.852678,"name":"South Shore WRF","observed_at":"2026-07-20T17:55:00Z","quality":"good"}],"stations_reporting":1,"terms_url":"https://mkerain.com/terms"}]},"CurrentStationModel":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"address":{"type":"string","title":"Address"},"latitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latitude"},"longitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Longitude"},"active":{"type":"boolean","title":"Active"},"current_day_inches":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Current Day Inches"},"last_24h_inches":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Last 24H Inches"},"observed_at":{"type":"string","title":"Observed At"},"quality":{"type":"string","title":"Quality"}},"type":"object","required":["id","name","address","latitude","longitude","active","current_day_inches","last_24h_inches","observed_at","quality"],"title":"CurrentStationModel"},"FacilityHistoryPage":{"properties":{"provisional":{"type":"boolean","const":true,"title":"Provisional","default":true},"source":{"$ref":"#/components/schemas/SourceModel"},"attribution":{"type":"string","title":"Attribution","examples":["Rainfall and facility measurements are collected from the Milwaukee Metropolitan Sewerage District (MMSD)."]},"terms_url":{"type":"string","title":"Terms Url","examples":["https://mkerain.com/terms"]},"note":{"type":"string","title":"Note","examples":["MKE Rain is not affiliated with, endorsed by, or operated by the Milwaukee Metropolitan Sewerage District (MMSD)."]},"start":{"type":"string","title":"Start"},"end":{"type":"string","title":"End"},"resolution":{"type":"string","enum":["1d","1h","5m"],"title":"Resolution"},"count":{"type":"integer","title":"Count"},"next":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next"},"points":{"items":{"$ref":"#/components/schemas/FacilityHistoryPoint"},"type":"array","title":"Points"}},"type":"object","required":["source","attribution","terms_url","note","start","end","resolution","count","points"],"title":"FacilityHistoryPage"},"FacilityHistoryPoint":{"properties":{"asset_id":{"type":"string","title":"Asset Id"},"time":{"type":"string","title":"Time"},"label":{"type":"string","title":"Label"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"capacity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Capacity"},"unit":{"type":"string","title":"Unit"},"available":{"type":"boolean","title":"Available"},"utilization_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Utilization Percent"},"source":{"type":"string","title":"Source"}},"type":"object","required":["asset_id","time","label","value","capacity","unit","available","utilization_percent","source"],"title":"FacilityHistoryPoint"},"FacilityLatestItem":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"observed_at":{"type":"string","title":"Observed At"},"current_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Current Value"},"capacity_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Capacity Value"},"unit":{"type":"string","title":"Unit"},"available":{"type":"boolean","title":"Available"}},"type":"object","required":["id","label","observed_at","current_value","capacity_value","unit","available"],"title":"FacilityLatestItem"},"FacilityLatestResponse":{"properties":{"provisional":{"type":"boolean","const":true,"title":"Provisional","default":true},"source":{"$ref":"#/components/schemas/SourceModel"},"attribution":{"type":"string","title":"Attribution","examples":["Rainfall and facility measurements are collected from the Milwaukee Metropolitan Sewerage District (MMSD)."]},"terms_url":{"type":"string","title":"Terms Url","examples":["https://mkerain.com/terms"]},"note":{"type":"string","title":"Note","examples":["MKE Rain is not affiliated with, endorsed by, or operated by the Milwaukee Metropolitan Sewerage District (MMSD)."]},"facilities":{"items":{"$ref":"#/components/schemas/FacilityLatestItem"},"type":"array","title":"Facilities"}},"type":"object","required":["source","attribution","terms_url","note","facilities"],"title":"FacilityLatestResponse"},"FacilitySeriesPointModel":{"properties":{"time":{"type":"string","title":"Time"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"capacity":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Capacity"},"utilization_percent":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Utilization Percent"},"available":{"type":"boolean","title":"Available"}},"type":"object","required":["time","value","capacity","utilization_percent","available"],"title":"FacilitySeriesPointModel"},"FacilitySeriesResponse":{"properties":{"provisional":{"type":"boolean","const":true,"title":"Provisional","default":true},"source":{"$ref":"#/components/schemas/SourceModel"},"attribution":{"type":"string","title":"Attribution","examples":["Rainfall and facility measurements are collected from the Milwaukee Metropolitan Sewerage District (MMSD)."]},"terms_url":{"type":"string","title":"Terms Url","examples":["https://mkerain.com/terms"]},"note":{"type":"string","title":"Note","examples":["MKE Rain is not affiliated with, endorsed by, or operated by the Milwaukee Metropolitan Sewerage District (MMSD)."]},"asset_id":{"type":"string","title":"Asset Id"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"},"start":{"type":"string","title":"Start"},"end":{"type":"string","title":"End"},"resolution":{"type":"string","enum":["5m","1h","1d"],"title":"Resolution"},"points":{"items":{"$ref":"#/components/schemas/FacilitySeriesPointModel"},"type":"array","title":"Points"}},"type":"object","required":["source","attribution","terms_url","note","asset_id","label","unit","start","end","resolution","points"],"title":"FacilitySeriesResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"RainHistoryPage":{"properties":{"provisional":{"type":"boolean","const":true,"title":"Provisional","default":true},"source":{"$ref":"#/components/schemas/SourceModel"},"attribution":{"type":"string","title":"Attribution","examples":["Rainfall and facility measurements are collected from the Milwaukee Metropolitan Sewerage District (MMSD)."]},"terms_url":{"type":"string","title":"Terms Url","examples":["https://mkerain.com/terms"]},"note":{"type":"string","title":"Note","examples":["MKE Rain is not affiliated with, endorsed by, or operated by the Milwaukee Metropolitan Sewerage District (MMSD)."]},"start":{"type":"string","title":"Start"},"end":{"type":"string","title":"End"},"resolution":{"type":"string","enum":["1d","1h","5m"],"title":"Resolution"},"count":{"type":"integer","title":"Count"},"next":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next"},"points":{"items":{"$ref":"#/components/schemas/RainHistoryPoint"},"type":"array","title":"Points"}},"type":"object","required":["source","attribution","terms_url","note","start","end","resolution","count","points"],"title":"RainHistoryPage","examples":[{"attribution":"Rainfall and facility measurements are collected from the Milwaukee Metropolitan Sewerage District (MMSD).","count":1,"end":"2018-01-07","note":"MKE Rain is not affiliated with, endorsed by, or operated by the Milwaukee Metropolitan Sewerage District (MMSD).","points":[{"inches":0.0,"source":"mmsd_range_total","station_id":"WS1201","time":"2018-01-01","verified":false}],"provisional":true,"resolution":"1d","source":{"name":"Milwaukee Metropolitan Sewerage District","timezone":"America/Chicago","url":"https://www.mmsd.com/about-us/milwaukee-rain-facility-information"},"start":"2018-01-01","terms_url":"https://mkerain.com/terms"}]},"RainHistoryPoint":{"properties":{"station_id":{"type":"string","title":"Station Id"},"time":{"type":"string","title":"Time"},"inches":{"type":"number","title":"Inches"},"source":{"type":"string","enum":["observations","mmsd_range_total"],"title":"Source"},"verified":{"type":"boolean","title":"Verified"}},"type":"object","required":["station_id","time","inches","source","verified"],"title":"RainHistoryPoint"},"RainObservationPage":{"properties":{"provisional":{"type":"boolean","const":true,"title":"Provisional","default":true},"source":{"$ref":"#/components/schemas/SourceModel"},"attribution":{"type":"string","title":"Attribution","examples":["Rainfall and facility measurements are collected from the Milwaukee Metropolitan Sewerage District (MMSD)."]},"terms_url":{"type":"string","title":"Terms Url","examples":["https://mkerain.com/terms"]},"note":{"type":"string","title":"Note","examples":["MKE Rain is not affiliated with, endorsed by, or operated by the Milwaukee Metropolitan Sewerage District (MMSD)."]},"start":{"type":"string","title":"Start"},"end":{"type":"string","title":"End"},"resolution":{"type":"string","const":"5m","title":"Resolution","default":"5m"},"count":{"type":"integer","title":"Count"},"next":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next"},"points":{"items":{"$ref":"#/components/schemas/RainObservationPoint"},"type":"array","title":"Points"}},"type":"object","required":["source","attribution","terms_url","note","start","end","count","points"],"title":"RainObservationPage"},"RainObservationPoint":{"properties":{"station_id":{"type":"string","title":"Station Id"},"time":{"type":"string","title":"Time"},"cumulative_inches":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cumulative Inches"},"increment_inches":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Increment Inches"},"quality":{"type":"string","title":"Quality"},"source":{"type":"string","title":"Source"}},"type":"object","required":["station_id","time","cumulative_inches","increment_inches","quality","source"],"title":"RainObservationPoint"},"SeriesPointModel":{"properties":{"time":{"type":"string","title":"Time"},"inches":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Inches"}},"type":"object","required":["time","inches"],"title":"SeriesPointModel"},"SeriesResponse":{"properties":{"provisional":{"type":"boolean","const":true,"title":"Provisional","default":true},"source":{"$ref":"#/components/schemas/SourceModel"},"attribution":{"type":"string","title":"Attribution","examples":["Rainfall and facility measurements are collected from the Milwaukee Metropolitan Sewerage District (MMSD)."]},"terms_url":{"type":"string","title":"Terms Url","examples":["https://mkerain.com/terms"]},"note":{"type":"string","title":"Note","examples":["MKE Rain is not affiliated with, endorsed by, or operated by the Milwaukee Metropolitan Sewerage District (MMSD)."]},"station_id":{"type":"string","title":"Station Id"},"start":{"type":"string","title":"Start"},"end":{"type":"string","title":"End"},"resolution":{"type":"string","enum":["5m","1h","1d"],"title":"Resolution"},"points":{"items":{"$ref":"#/components/schemas/SeriesPointModel"},"type":"array","title":"Points"}},"type":"object","required":["source","attribution","terms_url","note","station_id","start","end","resolution","points"],"title":"SeriesResponse"},"SourceModel":{"properties":{"name":{"type":"string","title":"Name","examples":["Milwaukee Metropolitan Sewerage District"]},"url":{"type":"string","title":"Url"},"timezone":{"type":"string","title":"Timezone","examples":["America/Chicago"]}},"type":"object","required":["name","url","timezone"],"title":"SourceModel"},"StationDetailResponse":{"properties":{"provisional":{"type":"boolean","const":true,"title":"Provisional","default":true},"source":{"$ref":"#/components/schemas/SourceModel"},"attribution":{"type":"string","title":"Attribution","examples":["Rainfall and facility measurements are collected from the Milwaukee Metropolitan Sewerage District (MMSD)."]},"terms_url":{"type":"string","title":"Terms Url","examples":["https://mkerain.com/terms"]},"note":{"type":"string","title":"Note","examples":["MKE Rain is not affiliated with, endorsed by, or operated by the Milwaukee Metropolitan Sewerage District (MMSD)."]},"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"address":{"type":"string","title":"Address"},"latitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latitude"},"longitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Longitude"},"active":{"type":"boolean","title":"Active"},"latest":{"anyOf":[{"$ref":"#/components/schemas/StationLatestModel"},{"type":"null"}]}},"type":"object","required":["source","attribution","terms_url","note","id","name","address","latitude","longitude","active","latest"],"title":"StationDetailResponse"},"StationLatestModel":{"properties":{"observed_at":{"type":"string","title":"Observed At"},"cumulative_inches":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cumulative Inches"},"increment_inches":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Increment Inches"},"quality":{"type":"string","title":"Quality"}},"type":"object","required":["observed_at","cumulative_inches","increment_inches","quality"],"title":"StationLatestModel"},"StationModel":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"address":{"type":"string","title":"Address"},"latitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latitude"},"longitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Longitude"},"active":{"type":"boolean","title":"Active"}},"type":"object","required":["id","name","address","latitude","longitude","active"],"title":"StationModel"},"StationsResponse":{"properties":{"provisional":{"type":"boolean","const":true,"title":"Provisional","default":true},"source":{"$ref":"#/components/schemas/SourceModel"},"attribution":{"type":"string","title":"Attribution","examples":["Rainfall and facility measurements are collected from the Milwaukee Metropolitan Sewerage District (MMSD)."]},"terms_url":{"type":"string","title":"Terms Url","examples":["https://mkerain.com/terms"]},"note":{"type":"string","title":"Note","examples":["MKE Rain is not affiliated with, endorsed by, or operated by the Milwaukee Metropolitan Sewerage District (MMSD)."]},"stations":{"items":{"$ref":"#/components/schemas/StationModel"},"type":"array","title":"Stations"},"count":{"type":"integer","title":"Count"}},"type":"object","required":["source","attribution","terms_url","note","stations","count"],"title":"StationsResponse"},"StatusResponse":{"properties":{"provisional":{"type":"boolean","const":true,"title":"Provisional","default":true},"source":{"$ref":"#/components/schemas/SourceModel"},"attribution":{"type":"string","title":"Attribution","examples":["Rainfall and facility measurements are collected from the Milwaukee Metropolitan Sewerage District (MMSD)."]},"terms_url":{"type":"string","title":"Terms Url","examples":["https://mkerain.com/terms"]},"note":{"type":"string","title":"Note","examples":["MKE Rain is not affiliated with, endorsed by, or operated by the Milwaukee Metropolitan Sewerage District (MMSD)."]},"status":{"type":"string","enum":["ok","degraded"],"title":"Status"},"collector_runs":{"items":{"$ref":"#/components/schemas/CollectorRunModel"},"type":"array","title":"Collector Runs"}},"type":"object","required":["source","attribution","terms_url","note","status","collector_runs"],"title":"StatusResponse"},"TimelineFacilityModel":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"unit":{"type":"string","title":"Unit"},"values":{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array","title":"Values"},"capacities":{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array","title":"Capacities"},"utilization_percent":{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array","title":"Utilization Percent"},"available":{"items":{"type":"boolean"},"type":"array","title":"Available"},"observed_at":{"items":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"array","title":"Observed At"}},"type":"object","required":["id","label","unit","values","capacities","utilization_percent","available","observed_at"],"title":"TimelineFacilityModel"},"TimelineResponse":{"properties":{"provisional":{"type":"boolean","const":true,"title":"Provisional","default":true},"source":{"$ref":"#/components/schemas/SourceModel"},"attribution":{"type":"string","title":"Attribution","examples":["Rainfall and facility measurements are collected from the Milwaukee Metropolitan Sewerage District (MMSD)."]},"terms_url":{"type":"string","title":"Terms Url","examples":["https://mkerain.com/terms"]},"note":{"type":"string","title":"Note","examples":["MKE Rain is not affiliated with, endorsed by, or operated by the Milwaukee Metropolitan Sewerage District (MMSD)."]},"generated_at":{"type":"string","title":"Generated At"},"start":{"type":"string","title":"Start"},"end":{"type":"string","title":"End"},"step_minutes":{"type":"integer","const":5,"title":"Step Minutes"},"timestamps":{"items":{"type":"string"},"type":"array","title":"Timestamps"},"rainfall":{"additionalProperties":{"items":{"$ref":"#/components/schemas/TimelineStationModel"},"type":"array"},"type":"object","title":"Rainfall"},"facilities":{"items":{"$ref":"#/components/schemas/TimelineFacilityModel"},"type":"array","title":"Facilities"}},"type":"object","required":["source","attribution","terms_url","note","generated_at","start","end","step_minutes","timestamps","rainfall","facilities"],"title":"TimelineResponse"},"TimelineStationModel":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"address":{"type":"string","title":"Address"},"latitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latitude"},"longitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Longitude"},"active":{"type":"boolean","title":"Active"},"increments":{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array","title":"Increments"},"rolling_24h_totals":{"items":{"anyOf":[{"type":"number"},{"type":"null"}]},"type":"array","title":"Rolling 24H Totals"},"coverage_percent":{"items":{"type":"number"},"type":"array","title":"Coverage Percent"},"quality":{"items":{"type":"string"},"type":"array","title":"Quality"}},"type":"object","required":["id","name","address","latitude","longitude","active","increments","rolling_24h_totals","coverage_percent","quality"],"title":"TimelineStationModel"},"TotalStationModel":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"address":{"type":"string","title":"Address"},"latitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latitude"},"longitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Longitude"},"active":{"type":"boolean","title":"Active"},"total_inches":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Inches"}},"type":"object","required":["id","name","address","latitude","longitude","active","total_inches"],"title":"TotalStationModel"},"TotalsResponse":{"properties":{"provisional":{"type":"boolean","const":true,"title":"Provisional","default":true},"source":{"$ref":"#/components/schemas/SourceModel"},"attribution":{"type":"string","title":"Attribution","examples":["Rainfall and facility measurements are collected from the Milwaukee Metropolitan Sewerage District (MMSD)."]},"terms_url":{"type":"string","title":"Terms Url","examples":["https://mkerain.com/terms"]},"note":{"type":"string","title":"Note","examples":["MKE Rain is not affiliated with, endorsed by, or operated by the Milwaukee Metropolitan Sewerage District (MMSD)."]},"start":{"type":"string","title":"Start"},"end":{"type":"string","title":"End"},"hours":{"type":"integer","title":"Hours"},"stations":{"items":{"$ref":"#/components/schemas/TotalStationModel"},"type":"array","title":"Stations"}},"type":"object","required":["source","attribution","terms_url","note","start","end","hours","stations"],"title":"TotalsResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"tags":[{"name":"rainfall","description":"Rain gauge readings, totals, and history."},{"name":"facilities","description":"Deep Tunnel and water reclamation facilities."},{"name":"stations","description":"Gauge locations."},{"name":"alerts","description":"Water Drop Alert status."},{"name":"status","description":"Collector health."}]}