Imports github.com/elastic/beats/metricbeat/mb github.com/elastic/beats/metricbeat/beater github.com/elastic/beats/libbeat/common github.com/stretchr/testify/assert Standard library imports encoding/json flag fmt io/ioutil os testing time