OpenSearch/plugin
Alexander Reelsen fdb02f4f99 Watcher: Fix pagerduty action to send context data (elastic/x-pack-elasticsearch#3185)
The pagerduty action allows to send contexts, which contains an array
of texts or images, each with a link.

The field of this data was named 'context' instead of 'contexts' and
thus those contects were never correctly parsed on the pagerduty side.

Unfortunately pagerduty accepts any JSON, thus this was not caught so
far.

This commit allows parsing of the old field name to retain BWC, but when
written out via toXContent, it will always use the 'contexts' field name.

relates elastic/x-pack-elasticsearch#3184

Original commit: elastic/x-pack-elasticsearch@50f0b65d56
2017-12-05 11:31:48 +01:00
..
bin/x-pack Usability enhancements for certificate generation (elastic/x-pack-elasticsearch#2561) 2017-10-30 13:08:31 +11:00
bwc-snapshot-dummy-projects Consolidate version numbering semantics (elastic/x-pack-elasticsearch#3078) 2017-11-23 20:23:05 +00:00
config/x-pack Rename core plugin and transport dirs 2017-02-10 11:02:42 -08:00
forbidden Fix LDAP Authc connections deadlock (elastic/x-pack-elasticsearch#2587) 2017-10-09 13:06:12 +03:00
keys Rename core plugin and transport dirs 2017-02-10 11:02:42 -08:00
licenses Revert " Add "client-api-objects" dependency for xpack plugin and transport-client (elastic/x-pack-elasticsearch#2995)" (elastic/x-pack-elasticsearch#3083) 2017-11-28 09:05:00 -06:00
ml-cpp-snapshot [BUILD] Make AWS error message more informative 2017-09-14 14:46:48 +01:00
src Watcher: Fix pagerduty action to send context data (elastic/x-pack-elasticsearch#3185) 2017-12-05 11:31:48 +01:00
build.gradle Revert " Add "client-api-objects" dependency for xpack plugin and transport-client (elastic/x-pack-elasticsearch#2995)" (elastic/x-pack-elasticsearch#3083) 2017-11-28 09:05:00 -06:00