@grafana/plugin-types 0.0.33 → 0.0.34
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.
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
|
-
export type ComponentSize = "xs" | "sm" | "md" | "lg";
|
|
4
3
|
/**
|
|
5
4
|
* Generated by orval v7.9.0 🍺
|
|
6
5
|
* Do not edit manually.
|
|
@@ -52,13 +51,7 @@ export interface Entity {
|
|
|
52
51
|
parentEntity?: EntityParent;
|
|
53
52
|
connectedEntities?: Entity[];
|
|
54
53
|
}
|
|
55
|
-
export
|
|
56
|
-
EQUALS = "eq",
|
|
57
|
-
NOT_EQUALS = "neq",
|
|
58
|
-
STARTS_WITH = "starts_with",
|
|
59
|
-
CONTAINS = "contains",
|
|
60
|
-
IsNull = "is_null"
|
|
61
|
-
}
|
|
54
|
+
export type EntityFilterOperation = "eq" | "neq" | "starts_with" | "contains" | "is_null";
|
|
62
55
|
export interface EntityFilterParameter {
|
|
63
56
|
op: EntityFilterOperation;
|
|
64
57
|
value: string | true | false;
|
|
@@ -68,6 +61,7 @@ export interface ScopeCriteria {
|
|
|
68
61
|
site?: EntityFilterParameter[];
|
|
69
62
|
namespace?: EntityFilterParameter[];
|
|
70
63
|
}
|
|
64
|
+
export type ComponentSize = "xs" | "sm" | "md" | "lg";
|
|
71
65
|
export declare enum StringRules {
|
|
72
66
|
EQUALS = "=",
|
|
73
67
|
NOT_EQUALS = "<>",
|
|
@@ -102,6 +96,7 @@ export interface EntityAssertionsWidgetProps {
|
|
|
102
96
|
query: useMultipleEntitiesProps;
|
|
103
97
|
size?: ComponentSize;
|
|
104
98
|
source?: string;
|
|
99
|
+
returnToPrevious?: boolean;
|
|
105
100
|
}
|
|
106
101
|
export interface useMultipleEntitiesProps extends UseEntityParams {
|
|
107
102
|
additionalMatchers?: EntityFilterPropertyMatcher[];
|
|
@@ -121,18 +116,12 @@ export interface Scope {
|
|
|
121
116
|
namespace?: string;
|
|
122
117
|
}
|
|
123
118
|
/********************** 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
|
-
}
|
|
131
119
|
export type DrawerViewProps = {
|
|
132
120
|
entity: Entity;
|
|
133
121
|
start: string;
|
|
134
122
|
end: string;
|
|
135
123
|
};
|
|
124
|
+
export type DrawerSize = "sm" | "md" | "lg";
|
|
136
125
|
export type ConnectedEntityType = {
|
|
137
126
|
type: string;
|
|
138
127
|
scopeCriteria?: ScopeCriteria;
|
|
@@ -146,5 +135,16 @@ export interface EntityCrossLinkWidgetProps {
|
|
|
146
135
|
scopeCriteria?: ScopeCriteria;
|
|
147
136
|
backTo?: string;
|
|
148
137
|
onConnectedEntityClick?: (entity: Entity) => void;
|
|
138
|
+
drawerTitle?: string | JSX.Element;
|
|
149
139
|
drawerView?: (props: DrawerViewProps) => JSX.Element;
|
|
140
|
+
drawerSize?: DrawerSize;
|
|
141
|
+
}
|
|
142
|
+
export interface EntityCrossLinkWidgetV2Props extends EntityCrossLinkWidgetProps {
|
|
143
|
+
metricsDataSourceUID: string;
|
|
144
|
+
logsDataSourceUID?: string;
|
|
145
|
+
}
|
|
146
|
+
export interface RelatedEntitiesWidgetProps {
|
|
147
|
+
labels: Record<string, string | number>;
|
|
148
|
+
start: number | string;
|
|
149
|
+
end: number | string;
|
|
150
150
|
}
|