Imports github.com/elastic/beats/libbeat/common github.com/elastic/beats/metricbeat/mb github.com/elastic/beats/metricbeat/mb/testing github.com/elastic/beats/metricbeat/mb/testing/flags github.com/mitchellh/hashstructure github.com/stretchr/testify/assert Standard library imports encoding/json io/ioutil net/http net/http/httptest os sort testing