@grafana/plugin-types 0.0.37 → 0.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -61,7 +61,6 @@ export interface ScopeCriteria {
61
61
  site?: EntityFilterParameter[];
62
62
  namespace?: EntityFilterParameter[];
63
63
  }
64
- export type ComponentSize = "xs" | "sm" | "md" | "lg";
65
64
  export declare enum StringRules {
66
65
  EQUALS = "=",
67
66
  NOT_EQUALS = "<>",
@@ -98,7 +97,7 @@ export interface EntityAssertionsWidgetProps {
98
97
  source?: string;
99
98
  returnToPrevious?: boolean;
100
99
  }
101
- export interface useMultipleEntitiesProps extends UseEntityParams {
100
+ export interface useMultipleEntitiesProps extends UseMultiEntityTypeParams {
102
101
  additionalMatchers?: EntityFilterPropertyMatcher[];
103
102
  enabled: boolean;
104
103
  matchAllNames?: boolean;
@@ -110,11 +109,28 @@ export interface UseEntityParams {
110
109
  end: number;
111
110
  scope?: Scope;
112
111
  }
112
+ export interface UseMultiEntityTypeParams {
113
+ entityName?: string;
114
+ entityType?: string | string[];
115
+ start: number;
116
+ end: number;
117
+ scope?: Scope;
118
+ }
113
119
  export interface Scope {
114
120
  env?: string;
115
121
  site?: string;
116
122
  namespace?: string;
117
123
  }
124
+ export type AssertionSeverity = "warning" | "critical" | "info";
125
+ export interface InsightsTimelineWidgetProps {
126
+ serviceName: string;
127
+ start: string | number;
128
+ end: string | number;
129
+ height?: number;
130
+ filterBySeverity?: AssertionSeverity[];
131
+ filterBySummaryKeywords?: string[];
132
+ label?: JSX.Element;
133
+ }
118
134
  /********************** Entity Cross Link ***********/
119
135
  export type DrawerViewProps = {
120
136
  entity: Entity;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafana/plugin-types",
3
- "version": "0.0.37",
3
+ "version": "0.0.38",
4
4
  "description": "NPM package consisting of various Grafana plugins exposed types.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Grafana Labs",