Documentation for what goes in fields.yml?

I've read the blog on how to build lsbeat and I've gone through the tutorial on creating a custom beat, but I can't seem to find documentation on what needs to go into _meta\fields.yml. I'm not sure if the documentation for metricbeat fields.yml applies since my beat doesn't have modules. I've looked at other community beats and some seem to include @timestamp and count while others only seem to have only the fields that are specific to the custom beat and don't include @timestamp. Is this documented outside of the beats how-to information? If not, what is the format of fields.yml supposed to be?

fields.yml as documented can be used on global level as well. e.g. the key just just a name.