mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-29 16:14:42 +00:00
22 lines
676 B
TypeScript
22 lines
676 B
TypeScript
|
|
import { DefaultOptionType } from 'antd/es/select';
|
||
|
|
import { categoryToSupport } from 'container/QueryBuilder/filters/BuilderUnitsFilter/config';
|
||
|
|
|
||
|
|
import { getCategorySelectOptionByName } from './alertFomatCategories';
|
||
|
|
|
||
|
|
export const operatorOptions: DefaultOptionType[] = [
|
||
|
|
{ value: '>', label: '>' },
|
||
|
|
{ value: '>=', label: '>=' },
|
||
|
|
{ value: '<', label: '<' },
|
||
|
|
{ value: '<=', label: '<=' },
|
||
|
|
];
|
||
|
|
|
||
|
|
export const unitOptions = categoryToSupport.map((category) => ({
|
||
|
|
label: category,
|
||
|
|
options: getCategorySelectOptionByName(category),
|
||
|
|
}));
|
||
|
|
|
||
|
|
export const showAsOptions: DefaultOptionType[] = [
|
||
|
|
{ value: 'Text', label: 'Text' },
|
||
|
|
{ value: 'Background', label: 'Background' },
|
||
|
|
];
|