mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
TimeSeries panel: Allow adding annotations from the panel (#36220)
* First stab on UI for adding annotations in time series panel * Extend panel context with annotations api * Annotations editor UI & CRUD * Prevent annotation markers to overflow uPlot canvas * Do not overflow graphing area with region annotations * Align annotation id type * Fix exemplar markers positioning * Use clipping region rather than adjusting annotation region bounds * Smaller icons * Improve annotation tooltip and editor auto positioning, reorg code * Renames * Enable annotations ctx menu only when adding annotations is allowed * Wrap setSelect hooks diring init hook * Use TagFilter instead of TagsInput * Add id to annotation events * Add support for cmd+click for adding point annotations Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
This commit is contained in:
@@ -51,6 +51,14 @@ export interface AnnotationEvent {
|
||||
source?: any; // source.type === 'dashboard'
|
||||
}
|
||||
|
||||
export interface AnnotationEventUIModel {
|
||||
id?: string;
|
||||
from: number;
|
||||
to: number;
|
||||
tags: string[];
|
||||
description: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @alpha -- any value other than `field` is experimental
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user