standardTransformers.ts 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. import { TransformerRegistryItem } from '@grafana/data';
  2. import { filterByValueTransformRegistryItem } from './FilterByValueTransformer/FilterByValueTransformerEditor';
  3. import { heatmapTransformRegistryItem } from './calculateHeatmap/HeatmapTransformerEditor';
  4. import { configFromQueryTransformRegistryItem } from './configFromQuery/ConfigFromQueryTransformerEditor';
  5. import { calculateFieldTransformRegistryItem } from './editors/CalculateFieldTransformerEditor';
  6. import { concatenateTransformRegistryItem } from './editors/ConcatenateTransformerEditor';
  7. import { convertFieldTypeTransformRegistryItem } from './editors/ConvertFieldTypeTransformerEditor';
  8. import { filterFieldsByNameTransformRegistryItem } from './editors/FilterByNameTransformerEditor';
  9. import { filterFramesByRefIdTransformRegistryItem } from './editors/FilterByRefIdTransformerEditor';
  10. import { groupByTransformRegistryItem } from './editors/GroupByTransformerEditor';
  11. import { groupingToMatrixTransformRegistryItem } from './editors/GroupingToMatrixTransformerEditor';
  12. import { histogramTransformRegistryItem } from './editors/HistogramTransformerEditor';
  13. import { labelsToFieldsTransformerRegistryItem } from './editors/LabelsToFieldsTransformerEditor';
  14. import { mergeTransformerRegistryItem } from './editors/MergeTransformerEditor';
  15. import { organizeFieldsTransformRegistryItem } from './editors/OrganizeFieldsTransformerEditor';
  16. import { reduceTransformRegistryItem } from './editors/ReduceTransformerEditor';
  17. import { renameByRegexTransformRegistryItem } from './editors/RenameByRegexTransformer';
  18. import { seriesToFieldsTransformerRegistryItem } from './editors/SeriesToFieldsTransformerEditor';
  19. import { seriesToRowsTransformerRegistryItem } from './editors/SeriesToRowsTransformerEditor';
  20. import { sortByTransformRegistryItem } from './editors/SortByTransformerEditor';
  21. import { extractFieldsTransformRegistryItem } from './extractFields/ExtractFieldsTransformerEditor';
  22. import { fieldLookupTransformRegistryItem } from './lookupGazetteer/FieldLookupTransformerEditor';
  23. import { prepareTimeseriesTransformerRegistryItem } from './prepareTimeSeries/PrepareTimeSeriesEditor';
  24. import { rowsToFieldsTransformRegistryItem } from './rowsToFields/RowsToFieldsTransformerEditor';
  25. import { spatialTransformRegistryItem } from './spatial/SpatialTransformerEditor';
  26. export const getStandardTransformers = (): Array<TransformerRegistryItem<any>> => {
  27. return [
  28. reduceTransformRegistryItem,
  29. filterFieldsByNameTransformRegistryItem,
  30. renameByRegexTransformRegistryItem,
  31. filterFramesByRefIdTransformRegistryItem,
  32. filterByValueTransformRegistryItem,
  33. organizeFieldsTransformRegistryItem,
  34. seriesToFieldsTransformerRegistryItem,
  35. seriesToRowsTransformerRegistryItem,
  36. concatenateTransformRegistryItem,
  37. calculateFieldTransformRegistryItem,
  38. labelsToFieldsTransformerRegistryItem,
  39. groupByTransformRegistryItem,
  40. sortByTransformRegistryItem,
  41. mergeTransformerRegistryItem,
  42. histogramTransformRegistryItem,
  43. rowsToFieldsTransformRegistryItem,
  44. configFromQueryTransformRegistryItem,
  45. prepareTimeseriesTransformerRegistryItem,
  46. convertFieldTypeTransformRegistryItem,
  47. spatialTransformRegistryItem,
  48. fieldLookupTransformRegistryItem,
  49. extractFieldsTransformRegistryItem,
  50. heatmapTransformRegistryItem,
  51. groupingToMatrixTransformRegistryItem,
  52. ];
  53. };