2024-03-28 16:34:09 +05:30
|
|
|
import { DataTypes } from 'types/api/queryBuilder/queryAutocompleteResponse';
|
|
|
|
|
|
2023-06-23 21:39:59 +03:00
|
|
|
import { OptionsQuery } from './types';
|
|
|
|
|
|
|
|
|
|
export const URL_OPTIONS = 'options';
|
|
|
|
|
|
|
|
|
|
export const defaultOptionsQuery: OptionsQuery = {
|
|
|
|
|
selectColumns: [],
|
2023-07-06 14:22:44 +03:00
|
|
|
maxLines: 2,
|
|
|
|
|
format: 'list',
|
2023-06-23 21:39:59 +03:00
|
|
|
};
|
2024-03-28 16:34:09 +05:30
|
|
|
|
|
|
|
|
export const defaultTraceSelectedColumns = [
|
|
|
|
|
{
|
|
|
|
|
key: 'serviceName',
|
|
|
|
|
dataType: DataTypes.String,
|
|
|
|
|
type: 'tag',
|
|
|
|
|
isColumn: true,
|
|
|
|
|
isJSON: false,
|
|
|
|
|
id: 'serviceName--string--tag--true',
|
2024-08-16 13:11:39 +05:30
|
|
|
isIndexed: false,
|
2024-03-28 16:34:09 +05:30
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: 'name',
|
|
|
|
|
dataType: DataTypes.String,
|
|
|
|
|
type: 'tag',
|
|
|
|
|
isColumn: true,
|
|
|
|
|
isJSON: false,
|
|
|
|
|
id: 'name--string--tag--true',
|
2024-08-16 13:11:39 +05:30
|
|
|
isIndexed: false,
|
2024-03-28 16:34:09 +05:30
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: 'durationNano',
|
|
|
|
|
dataType: DataTypes.Float64,
|
|
|
|
|
type: 'tag',
|
|
|
|
|
isColumn: true,
|
|
|
|
|
isJSON: false,
|
|
|
|
|
id: 'durationNano--float64--tag--true',
|
2024-08-16 13:11:39 +05:30
|
|
|
isIndexed: false,
|
2024-03-28 16:34:09 +05:30
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: 'httpMethod',
|
|
|
|
|
dataType: DataTypes.String,
|
|
|
|
|
type: 'tag',
|
|
|
|
|
isColumn: true,
|
|
|
|
|
isJSON: false,
|
|
|
|
|
id: 'httpMethod--string--tag--true',
|
2024-08-16 13:11:39 +05:30
|
|
|
isIndexed: false,
|
2024-03-28 16:34:09 +05:30
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: 'responseStatusCode',
|
|
|
|
|
dataType: DataTypes.String,
|
|
|
|
|
type: 'tag',
|
|
|
|
|
isColumn: true,
|
|
|
|
|
isJSON: false,
|
|
|
|
|
id: 'responseStatusCode--string--tag--true',
|
2024-08-16 13:11:39 +05:30
|
|
|
isIndexed: false,
|
2024-03-28 16:34:09 +05:30
|
|
|
},
|
|
|
|
|
];
|