The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/public/app/features/transformers/spatial/models.gen.ts

45 lines
958 B

import { FrameGeometrySource, FrameGeometrySourceMode } from '@grafana/data';
// This file should be generated by cue schema
export enum SpatialAction {
Prepare = 'prepare',
Calculate = 'calculate',
Modify = 'modify',
}
export enum SpatialCalculation {
Heading = 'heading',
Distance = 'distance',
Area = 'area',
}
export enum SpatialOperation {
AsLine = 'asLine',
LineBuilder = 'lineBuilder',
}
export interface SpatialCalculationOption {
calc?: SpatialCalculation;
field?: string;
}
export interface ModifyOptions {
op: SpatialOperation;
target?: FrameGeometrySource;
}
/** The main transformer options */
export interface SpatialTransformOptions {
action?: SpatialAction;
source?: FrameGeometrySource;
calculate?: SpatialCalculationOption;
modify?: ModifyOptions;
}
export const defaultOptions: SpatialTransformOptions = {
action: SpatialAction.Prepare,
source: {
mode: FrameGeometrySourceMode.Auto,
},
};