stack kb apm-annotations create-annotation cli command

Auth required
elastic stack kb apm-annotations create-annotation \
  --service-name <service-name> \
  --@timestamp <@timestamp> \
  --service <service> \
  [options]
		

Create a service annotation

Behaviour flags:

--dry-run — validate all inputs and exit without performing any action

--service-name string required
The name of the service
--@timestamp string required
The date and time of the annotation. It must be in ISO 8601 format.
--service string required
The service that identifies the configuration to create or update.
--message string
The message displayed in the annotation. It defaults to service.version.
--tags string[]

Tags are used by the Applications UI to distinguish APM annotations from other annotations. Tags may have additional functionality in future releases. It defaults to [apm]. While you can add additional tags, you cannot remove the apm tag.

Repeatable: pass --tags multiple times to supply more than one value

--input-file string
path to a JSON file to use as command input
--dry-run
validate all inputs and exit without performing any action (preview changes without applying them)
--json

output as JSON