@grafana/plugin-types 0.0.31 → 0.0.33

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.
@@ -52,7 +52,13 @@ export interface Entity {
52
52
  parentEntity?: EntityParent;
53
53
  connectedEntities?: Entity[];
54
54
  }
55
- export type EntityFilterOperation = "eq" | "neq" | "starts_with" | "contains" | "is_null";
55
+ export declare enum EntityFilterOperation {
56
+ EQUALS = "eq",
57
+ NOT_EQUALS = "neq",
58
+ STARTS_WITH = "starts_with",
59
+ CONTAINS = "contains",
60
+ IsNull = "is_null"
61
+ }
56
62
  export interface EntityFilterParameter {
57
63
  op: EntityFilterOperation;
58
64
  value: string | true | false;
@@ -96,7 +102,6 @@ export interface EntityAssertionsWidgetProps {
96
102
  query: useMultipleEntitiesProps;
97
103
  size?: ComponentSize;
98
104
  source?: string;
99
- returnToPrevious?: boolean;
100
105
  }
101
106
  export interface useMultipleEntitiesProps extends UseEntityParams {
102
107
  additionalMatchers?: EntityFilterPropertyMatcher[];
@@ -116,6 +121,13 @@ export interface Scope {
116
121
  namespace?: string;
117
122
  }
118
123
  /********************** Entity Cross Link ***********/
124
+ export declare enum EntityCrossLinkType {
125
+ K8S_NODE = "k8s_node",
126
+ EC2_INSTANCE = "ec2_instance",
127
+ RDS_INSTANCE = "rds_instance",
128
+ MYSQL_INSTANCE = "mysql_instance",
129
+ UNKNOWN = "unknown"
130
+ }
119
131
  export type DrawerViewProps = {
120
132
  entity: Entity;
121
133
  start: string;
@@ -136,8 +148,3 @@ export interface EntityCrossLinkWidgetProps {
136
148
  onConnectedEntityClick?: (entity: Entity) => void;
137
149
  drawerView?: (props: DrawerViewProps) => JSX.Element;
138
150
  }
139
- export interface RelatedEntitiesWidgetProps {
140
- labels: Record<string, string | number>;
141
- start: number | string;
142
- end: number | string;
143
- }
@@ -47,6 +47,7 @@ export interface AdHocVariableFilter {
47
47
  operator: string;
48
48
  value: string;
49
49
  values?: string[];
50
+ origin?: "dashboard" | string;
50
51
  /** @deprecated */
51
52
  condition?: string;
52
53
  }
@@ -55,7 +56,7 @@ export type TempoMatcher = {
55
56
  value: string;
56
57
  operator: "=" | "!=" | ">" | "<" | "=~" | "!~";
57
58
  };
58
- export type ActionViewType = "traceList" | "breakdown" | "structure" | "comparison";
59
+ export type ActionViewType = "traceList" | "breakdown" | "structure" | "comparison" | "exceptions";
59
60
  export interface OpenInExploreTracesButtonProps {
60
61
  datasourceUid?: string;
61
62
  matchers: TempoMatcher[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafana/plugin-types",
3
- "version": "0.0.31",
3
+ "version": "0.0.33",
4
4
  "description": "NPM package consisting of various Grafana plugins exposed types.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Grafana Labs",