Annotation Builder#
Constructor#
import "github.com/perses/perses/go-sdk/annotation"
var options []annotation.Option
annotation.New("Deployments", options...)
Need to provide the name of the annotation and a list of options.
Default options#
- Name(): with the name provided in the constructor.
Available options#
Name#
Sets the annotation display name.
Description#
Sets the annotation description.
Hidden#
Controls whether the annotation is initially hidden.
Color#
Sets the annotation display color.
Plugin#
Sets the annotation plugin configuration. An annotation plugin SDK returns an annotation.Option that sets this field.
Annotation Plugin Options#
See the related documentation for each annotation plugin.