Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 3 Next »

Alerts are adverse conditions for a flight that could result in a pilot making changes to their plan given the new information.  They are a huge value to your users in allowing them to make safe decisions in flying.  We have done everything we can to make these types of alerts easy to retrieve.  There are two different ways to retrieve alerts.  The first is by flight, which means the pilot needs to have already filed a flight in the system.  The second is by route, which is based on a route of flight, taking in the set of NAS or ICAO flight plan fields necessary to get information on a route of flight.  You are able to also acknowledge alerts for a particular flight so that subsequent requests for alerts do not contain the given alert.  An example request for alerts, given the ongoing example from previous pages would be as follows:

 

Alert Request - Note first parameter is the versionStamp for the starting time for when you want alerts
$ /usr/bin/curl -k -A "Mozilla/5.0" -i --header "Authorization: Basic bWVAbGV0bWVpbi5jb206TXlQYXNzdzByZCE=" "http://www.elabs.testafss.net/Website2/rest/FP/298351728_447141_1053/alert?20150306145400000&versionRequested=20140507" -v

{"alerts":[],"ngbAlerts":[{"alert":{"alertText":{"text1":"AIRMETAlertType","text2":null,"text3":null},"versionStamp":"20130531222200000","alertId":"6789_12345_10","alertState":"CREATED_STATE","estimatedDistanceAlongRoute":100.0,"precipitatingModelId":"huh","altitudeRange":null,"instantDetected":1370038920000,"shortestLateralDistanceOfConditionToRoute":null},"alertType":"AIRMET","finalDistanceAlongRoute":null,"geometry":null,"ngbAlertSummarizationInformation":{"summaryText":"No summary information available.","additionalNotesOrWarnings":null,"alertEndTime":null,"alertPassingInformation":null,"alertStartTime":null}},{"alert":{"alertText":{"text1":"AirportRunwayRestrictionAlertType","text2":null,"text3":null},"versionStamp":"20130531222200000","alertId":"6789_12345_2","alertState":"CREATED_STATE","estimatedDistanceAlongRoute":100.0,"precipitatingModelId":"huh","altitudeRange":null,"instantDetected":1370038920000,"shortestLateralDistanceOfConditionToRoute":null},"alertType":"AIRPORT_RUNWAY_RESTRICTION","finalDistanceAlongRoute":null,"geometry":null,"ngbAlertSummarizationInformation":{"summaryText":"AirportRunwayRestrictionAlertType","additionalNotesOrWarnings":null,"alertEndTime":null,"alertPassingInformation":null,"alertStartTime":null}},{"alert":{"alertText":{"text1":"UrgentPIREPAlertType","text2":null,"text3":null},"versionStamp":"20130531222200000","alertId":"6789_12345_3","alertState":"CREATED_STATE","estimatedDistanceAlongRoute":100.0,"precipitatingModelId":"huh","altitudeRange":null,"instantDetected":1370038920000,"shortestLateralDistanceOfConditionToRoute":null},"alertType":"URGENT_PIREP","finalDistanceAlongRoute":null,"geometry":null,"ngbAlertSummarizationInformation":{"summaryText":"No summary information available.","additionalNotesOrWarnings":null,"alertEndTime":null,"alertPassingInformation":null,"alertStartTime":null}},{"alert":{"alertText":{"text1":"WeatherWatchAlertType","text2":null,"text3":null},"versionStamp":"20130531222200000","alertId":"6789_12345_4","alertState":"CREATED_STATE","estimatedDistanceAlongRoute":100.0,"precipitatingModelId":"huh","altitudeRange":null,"instantDetected":1370038920000,"shortestLateralDistanceOfConditionToRoute":null},"alertType":"WEATHER_WATCH","finalDistanceAlongRoute":null,"geometry":null,"ngbAlertSummarizationInformation":{"summaryText":"No summary information available.","additionalNotesOrWarnings":null,"alertEndTime":null,"alertPassingInformation":null,"alertStartTime":null}},{"alert":{"alertText":{"text1":"AviationWeatherWatchAlertType","text2":null,"text3":null},"versionStamp":"20130531222200000","alertId":"6789_12345_5","alertState":"DISSEMINATED_STATE","estimatedDistanceAlongRoute":100.0,"precipitatingModelId":"huh","altitudeRange":null,"instantDetected":1370038920000,"shortestLateralDistanceOfConditionToRoute":null},"alertType":"AVIATION_WEATHER_WATCH","finalDistanceAlongRoute":null,"geometry":null,"ngbAlertSummarizationInformation":{"summaryText":"No summary information available.","additionalNotesOrWarnings":null,"alertEndTime":null,"alertPassingInformation":null,"alertStartTime":null}},{"alert":{"alertText":{"text1":"CenterWeatherAdvisoryAlertType","text2":null,"text3":null},"versionStamp":"20130531222200000","alertId":"6789_12345_6","alertState":"DISSEMINATED_STATE","estimatedDistanceAlongRoute":100.0,"precipitatingModelId":"huh","altitudeRange":null,"instantDetected":1370038920000,"shortestLateralDistanceOfConditionToRoute":null},"alertType":"CENTER_WEATHER_ADVISORY","finalDistanceAlongRoute":null,"geometry":null,"ngbAlertSummarizationInformation":{"summaryText":"No summary information available.","additionalNotesOrWarnings":null,"alertEndTime":null,"alertPassingInformation":null,"alertStartTime":null}},{"alert":{"alertText":{"text1":"ConvectionSIGMETAlertType","text2":null,"text3":null},"versionStamp":"20130531222200000","alertId":"6789_12345_7","alertState":"DISSEMINATED_STATE","estimatedDistanceAlongRoute":100.0,"precipitatingModelId":"huh","altitudeRange":null,"instantDetected":1370038920000,"shortestLateralDistanceOfConditionToRoute":null},"alertType":"CONVECTION_SIGMET","finalDistanceAlongRoute":null,"geometry":null,"ngbAlertSummarizationInformation":{"summaryText":"No summary information available.","additionalNotesOrWarnings":null,"alertEndTime":null,"alertPassingInformation":null,"alertStartTime":null}},{"alert":{"alertText":{"text1":"SIGMETAlertType","text2":null,"text3":null},"versionStamp":"20130531222200000","alertId":"6789_12345_8","alertState":"DISSEMINATED_STATE","estimatedDistanceAlongRoute":100.0,"precipitatingModelId":"huh","altitudeRange":null,"instantDetected":1370038920000,"shortestLateralDistanceOfConditionToRoute":null},"alertType":"SIGMET","finalDistanceAlongRoute":null,"geometry":null,"ngbAlertSummarizationInformation":{"summaryText":"No summary information available.","additionalNotesOrWarnings":null,"alertEndTime":null,"alertPassingInformation":null,"alertStartTime":null}},{"alert":{"alertText":{"text1":"TFRAlertType","text2":null,"text3":null},"versionStamp":"20130531222200000","alertId":"6789_12345_9","alertState":"DISSEMINATED_STATE","estimatedDistanceAlongRoute":100.0,"precipitatingModelId":"huh","altitudeRange":null,"instantDetected":1370038920000,"shortestLateralDistanceOfConditionToRoute":null},"alertType":"TFR","finalDistanceAlongRoute":null,"geometry":null,"ngbAlertSummarizationInformation":{"summaryText":"No summary information available.","additionalNotesOrWarnings":null,"alertEndTime":null,"alertPassingInformation":null,"alertStartTime":null}}],"returnCodedMessage":[],"returnMessage":[],"returnStatus":true}

 

Given the list of alerts, you are now able to acknowledge individual alerts so that they no longer appear in the alert list.  So, note above the first alert has an identifier 6890_12345_10.  We can acknowledge that one so it does not subsequently show up in the list of alerts:

$ /usr/bin/curl -k -A "Mozilla/5.0" -i --header "Authorization: Basic bWVAbGV0bWVpbi5jb206TXlQYXNzdzByZCE=" --data "&alertIdentifier=6789_12345_10&includeCodedMessages=true" -u "vendor_healthcheck@emulator.com:Password1" "http://www.elabs.testafss.net/Website2/rest/FP/298351728_447141_1053/acknowledgeAlert" -v

{"returnCodedMessage":[],"returnMessage":[],"returnStatus":true}
  • No labels