2024-03-28 16:34:09 +05:30
|
|
|
import { DataTypes } from 'types/api/queryBuilder/queryAutocompleteResponse';
|
|
|
|
|
|
2024-08-22 23:56:51 +05:30
|
|
|
import { FontSize, OptionsQuery } from './types';
|
2023-06-23 21:39:59 +03:00
|
|
|
|
|
|
|
|
export const URL_OPTIONS = 'options';
|
|
|
|
|
|
|
|
|
|
export const defaultOptionsQuery: OptionsQuery = {
|
2025-01-21 19:33:03 +04:30
|
|
|
selectColumns: [],
|
2023-07-06 14:22:44 +03:00
|
|
|
maxLines: 2,
|
2024-09-02 11:48:51 +05:30
|
|
|
format: 'raw',
|
2024-08-22 23:56:51 +05:30
|
|
|
fontSize: FontSize.SMALL,
|
2023-06-23 21:39:59 +03:00
|
|
|
};
|
2024-03-28 16:34:09 +05:30
|
|
|
|
2025-01-27 20:54:59 +04:30
|
|
|
export const defaultLogsSelectedColumns = [
|
|
|
|
|
{
|
|
|
|
|
key: 'timestamp',
|
|
|
|
|
dataType: DataTypes.String,
|
|
|
|
|
type: 'tag',
|
|
|
|
|
isColumn: true,
|
|
|
|
|
isJSON: false,
|
|
|
|
|
id: 'timestamp--string--tag--true',
|
|
|
|
|
isIndexed: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: 'body',
|
|
|
|
|
dataType: DataTypes.String,
|
|
|
|
|
type: 'tag',
|
|
|
|
|
isColumn: true,
|
|
|
|
|
isJSON: false,
|
|
|
|
|
id: 'body--string--tag--true',
|
|
|
|
|
isIndexed: false,
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
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
|
|
|
},
|
|
|
|
|
];
|