Endpoint to create annotations for environments dashboard

Merged Kirstie Cook requested to merge 211460-annotations-post-endpoint-revised into master

What does this MR do?

Implements POST /environments/:environment_id/metrics_dashboard/annotations/ endpoint from #211460 (closed). (Cluster metrics to be implemented in next MR.)

Documentation MR: !29368 (merged)

Screenshots

Successful: Screen_Shot_2020-04-08_at_11.12.36_AM

Unsuccessful:

Screen_Shot_2020-04-08_at_11.13.49_AM

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team
Edited by 🤖 GitLab Bot 🤖