feat: added shivanshus suggestions in qb payloads for spanid and kind string client filter

This commit is contained in:
sawhil 2025-04-24 18:25:48 +05:30 committed by Sahil Khan
parent e125d146b5
commit ac0b640146
2 changed files with 282 additions and 15 deletions

View File

@ -84,7 +84,22 @@ function DomainList({ showIP }: { showIP: boolean }): JSX.Element {
show_ip: showIP, show_ip: showIP,
filters: { filters: {
op: 'AND', op: 'AND',
items: query?.filters.items, items: [
{
id: '212678b9',
key: {
key: 'kind_string',
dataType: 'string',
type: '',
isColumn: true,
isJSON: false,
id: 'kind_string--string----true',
},
op: '=',
value: 'Client',
},
...(query?.filters.items || []),
],
}, },
}; };

View File

@ -368,7 +368,7 @@ export const getEndPointsQueryPayload = (
key: 'span_id', key: 'span_id',
type: '', type: '',
}, },
aggregateOperator: 'count_distinct', aggregateOperator: 'count',
dataSource: DataSource.TRACES, dataSource: DataSource.TRACES,
disabled: false, disabled: false,
expression: 'A', expression: 'A',
@ -387,6 +387,19 @@ export const getEndPointsQueryPayload = (
op: '=', op: '=',
value: domainName, value: domainName,
}, },
{
id: '212678b9',
key: {
key: 'kind_string',
dataType: DataTypes.String,
type: '',
isColumn: true,
isJSON: false,
id: 'kind_string--string----true',
},
op: '=',
value: 'Client',
},
], ],
op: 'AND', op: 'AND',
}, },
@ -400,7 +413,7 @@ export const getEndPointsQueryPayload = (
reduceTo: 'avg', reduceTo: 'avg',
spaceAggregation: 'sum', spaceAggregation: 'sum',
stepInterval: 60, stepInterval: 60,
timeAggregation: 'count_distinct', timeAggregation: 'count',
}, },
{ {
aggregateAttribute: { aggregateAttribute: {
@ -430,6 +443,19 @@ export const getEndPointsQueryPayload = (
op: '=', op: '=',
value: domainName, value: domainName,
}, },
{
id: '212678b9',
key: {
key: 'kind_string',
dataType: DataTypes.String,
type: '',
isColumn: true,
isJSON: false,
id: 'kind_string--string----true',
},
op: '=',
value: 'Client',
},
], ],
op: 'AND', op: 'AND',
}, },
@ -472,6 +498,19 @@ export const getEndPointsQueryPayload = (
op: '=', op: '=',
value: domainName, value: domainName,
}, },
{
id: '212678b9',
key: {
key: 'kind_string',
dataType: DataTypes.String,
type: '',
isColumn: true,
isJSON: false,
id: 'kind_string--string----true',
},
op: '=',
value: 'Client',
},
], ],
op: 'AND', op: 'AND',
}, },
@ -496,7 +535,7 @@ export const getEndPointsQueryPayload = (
key: 'span_id', key: 'span_id',
type: '', type: '',
}, },
aggregateOperator: 'count_distinct', aggregateOperator: 'count',
dataSource: DataSource.TRACES, dataSource: DataSource.TRACES,
disabled: true, disabled: true,
expression: 'D', expression: 'D',
@ -528,6 +567,19 @@ export const getEndPointsQueryPayload = (
op: '=', op: '=',
value: 'true', value: 'true',
}, },
{
id: '212678b9',
key: {
key: 'kind_string',
dataType: DataTypes.String,
type: '',
isColumn: true,
isJSON: false,
id: 'kind_string--string----true',
},
op: '=',
value: 'Client',
},
], ],
op: 'AND', op: 'AND',
}, },
@ -541,7 +593,7 @@ export const getEndPointsQueryPayload = (
reduceTo: 'avg', reduceTo: 'avg',
spaceAggregation: 'sum', spaceAggregation: 'sum',
stepInterval: 60, stepInterval: 60,
timeAggregation: 'count_distinct', timeAggregation: 'count',
}, },
], ],
queryFormulas: [ queryFormulas: [
@ -948,6 +1000,20 @@ export const getEndPointDetailsQueryPayload = (
op: '=', op: '=',
value: domainName, value: domainName,
}, },
{
id: '212678b9',
key: {
key: 'kind_string',
dataType: DataTypes.String,
type: '',
isColumn: true,
isJSON: false,
id: 'kind_string--string----true',
},
op: '=',
value: 'Client',
},
...filters.items,
], ],
op: 'AND', op: 'AND',
}, },
@ -1004,6 +1070,20 @@ export const getEndPointDetailsQueryPayload = (
op: '=', op: '=',
value: domainName, value: domainName,
}, },
{
id: '212678b9',
key: {
key: 'kind_string',
dataType: DataTypes.String,
type: '',
isColumn: true,
isJSON: false,
id: 'kind_string--string----true',
},
op: '=',
value: 'Client',
},
...filters.items,
], ],
op: 'AND', op: 'AND',
}, },
@ -1028,7 +1108,7 @@ export const getEndPointDetailsQueryPayload = (
key: 'span_id', key: 'span_id',
type: '', type: '',
}, },
aggregateOperator: 'count_distinct', aggregateOperator: 'count',
dataSource: DataSource.TRACES, dataSource: DataSource.TRACES,
disabled: true, disabled: true,
expression: 'C', expression: 'C',
@ -1073,6 +1153,20 @@ export const getEndPointDetailsQueryPayload = (
op: '=', op: '=',
value: 'true', value: 'true',
}, },
{
id: '212678b9',
key: {
key: 'kind_string',
dataType: DataTypes.String,
type: '',
isColumn: true,
isJSON: false,
id: 'kind_string--string----true',
},
op: '=',
value: 'Client',
},
...filters.items,
], ],
op: 'AND', op: 'AND',
}, },
@ -1086,7 +1180,7 @@ export const getEndPointDetailsQueryPayload = (
reduceTo: 'avg', reduceTo: 'avg',
spaceAggregation: 'sum', spaceAggregation: 'sum',
stepInterval: 60, stepInterval: 60,
timeAggregation: 'count_distinct', timeAggregation: 'count',
}, },
{ {
aggregateAttribute: { aggregateAttribute: {
@ -1128,6 +1222,20 @@ export const getEndPointDetailsQueryPayload = (
op: '=', op: '=',
value: domainName, value: domainName,
}, },
{
id: '212678b9',
key: {
key: 'kind_string',
dataType: DataTypes.String,
type: '',
isColumn: true,
isJSON: false,
id: 'kind_string--string----true',
},
op: '=',
value: 'Client',
},
...filters.items,
], ],
op: 'AND', op: 'AND',
}, },
@ -1152,7 +1260,7 @@ export const getEndPointDetailsQueryPayload = (
key: 'span_id', key: 'span_id',
type: '', type: '',
}, },
aggregateOperator: 'count_distinct', aggregateOperator: 'count',
dataSource: DataSource.TRACES, dataSource: DataSource.TRACES,
disabled: true, disabled: true,
expression: 'E', expression: 'E',
@ -1184,6 +1292,20 @@ export const getEndPointDetailsQueryPayload = (
op: '=', op: '=',
value: domainName, value: domainName,
}, },
{
id: '212678b9',
key: {
key: 'kind_string',
dataType: DataTypes.String,
type: '',
isColumn: true,
isJSON: false,
id: 'kind_string--string----true',
},
op: '=',
value: 'Client',
},
...filters.items,
], ],
op: 'AND', op: 'AND',
}, },
@ -1197,7 +1319,7 @@ export const getEndPointDetailsQueryPayload = (
reduceTo: 'avg', reduceTo: 'avg',
spaceAggregation: 'sum', spaceAggregation: 'sum',
stepInterval: 60, stepInterval: 60,
timeAggregation: 'count_distinct', timeAggregation: 'count',
}, },
], ],
queryFormulas: [ queryFormulas: [
@ -1249,7 +1371,7 @@ export const getEndPointDetailsQueryPayload = (
key: 'span_id', key: 'span_id',
type: '', type: '',
}, },
aggregateOperator: 'count_distinct', aggregateOperator: 'count',
dataSource: DataSource.TRACES, dataSource: DataSource.TRACES,
disabled: false, disabled: false,
expression: 'A', expression: 'A',
@ -1281,6 +1403,19 @@ export const getEndPointDetailsQueryPayload = (
op: '=', op: '=',
value: endPointName, value: endPointName,
}, },
{
id: '212678b9',
key: {
key: 'kind_string',
dataType: DataTypes.String,
type: '',
isColumn: true,
isJSON: false,
id: 'kind_string--string----true',
},
op: '=',
value: 'Client',
},
...filters.items, ...filters.items,
], ],
op: 'AND', op: 'AND',
@ -1304,7 +1439,7 @@ export const getEndPointDetailsQueryPayload = (
reduceTo: 'avg', reduceTo: 'avg',
spaceAggregation: 'sum', spaceAggregation: 'sum',
stepInterval: 60, stepInterval: 60,
timeAggregation: 'count_distinct', timeAggregation: 'count',
}, },
{ {
aggregateAttribute: { aggregateAttribute: {
@ -1347,6 +1482,19 @@ export const getEndPointDetailsQueryPayload = (
op: '=', op: '=',
value: endPointName, value: endPointName,
}, },
{
id: '212678b9',
key: {
key: 'kind_string',
dataType: DataTypes.String,
type: '',
isColumn: true,
isJSON: false,
id: 'kind_string--string----true',
},
op: '=',
value: 'Client',
},
...filters.items, ...filters.items,
], ],
op: 'AND', op: 'AND',
@ -1433,6 +1581,19 @@ export const getEndPointDetailsQueryPayload = (
op: '=', op: '=',
value: domainName, value: domainName,
}, },
{
id: '212678b9',
key: {
key: 'kind_string',
dataType: DataTypes.String,
type: '',
isColumn: true,
isJSON: false,
id: 'kind_string--string----true',
},
op: '=',
value: 'Client',
},
...filters.items, ...filters.items,
], ],
op: 'AND', op: 'AND',
@ -1498,7 +1659,7 @@ export const getEndPointDetailsQueryPayload = (
key: 'span_id', key: 'span_id',
type: '', type: '',
}, },
aggregateOperator: 'count_distinct', aggregateOperator: 'count',
dataSource: DataSource.TRACES, dataSource: DataSource.TRACES,
disabled: false, disabled: false,
expression: 'A', expression: 'A',
@ -1530,6 +1691,19 @@ export const getEndPointDetailsQueryPayload = (
op: '=', op: '=',
value: domainName, value: domainName,
}, },
{
id: '212678b9',
key: {
key: 'kind_string',
dataType: DataTypes.String,
type: '',
isColumn: true,
isJSON: false,
id: 'kind_string--string----true',
},
op: '=',
value: 'Client',
},
...filters.items, ...filters.items,
], ],
op: 'AND', op: 'AND',
@ -1553,7 +1727,7 @@ export const getEndPointDetailsQueryPayload = (
reduceTo: 'avg', reduceTo: 'avg',
spaceAggregation: 'sum', spaceAggregation: 'sum',
stepInterval: 60, stepInterval: 60,
timeAggregation: 'count_distinct', timeAggregation: 'count',
}, },
{ {
aggregateAttribute: { aggregateAttribute: {
@ -1596,6 +1770,19 @@ export const getEndPointDetailsQueryPayload = (
op: '=', op: '=',
value: domainName, value: domainName,
}, },
{
id: '212678b9',
key: {
key: 'kind_string',
dataType: DataTypes.String,
type: '',
isColumn: true,
isJSON: false,
id: 'kind_string--string----true',
},
op: '=',
value: 'Client',
},
...filters.items, ...filters.items,
], ],
op: 'AND', op: 'AND',
@ -1661,6 +1848,19 @@ export const getEndPointDetailsQueryPayload = (
op: '=', op: '=',
value: domainName, value: domainName,
}, },
{
id: '212678b9',
key: {
key: 'kind_string',
dataType: DataTypes.String,
type: '',
isColumn: true,
isJSON: false,
id: 'kind_string--string----true',
},
op: '=',
value: 'Client',
},
...filters.items, ...filters.items,
], ],
op: 'AND', op: 'AND',
@ -1695,7 +1895,7 @@ export const getEndPointDetailsQueryPayload = (
key: 'span_id', key: 'span_id',
type: '', type: '',
}, },
aggregateOperator: 'count_distinct', aggregateOperator: 'count',
dataSource: DataSource.TRACES, dataSource: DataSource.TRACES,
disabled: true, disabled: true,
expression: 'D', expression: 'D',
@ -1740,6 +1940,19 @@ export const getEndPointDetailsQueryPayload = (
op: '=', op: '=',
value: 'true', value: 'true',
}, },
{
id: '212678b9',
key: {
key: 'kind_string',
dataType: DataTypes.String,
type: '',
isColumn: true,
isJSON: false,
id: 'kind_string--string----true',
},
op: '=',
value: 'Client',
},
...filters.items, ...filters.items,
], ],
op: 'AND', op: 'AND',
@ -1763,7 +1976,7 @@ export const getEndPointDetailsQueryPayload = (
reduceTo: 'avg', reduceTo: 'avg',
spaceAggregation: 'sum', spaceAggregation: 'sum',
stepInterval: 60, stepInterval: 60,
timeAggregation: 'count_distinct', timeAggregation: 'count',
}, },
], ],
queryFormulas: [ queryFormulas: [
@ -1846,6 +2059,19 @@ export const getEndPointDetailsQueryPayload = (
op: '=', op: '=',
value: endPointName, value: endPointName,
}, },
{
id: '212678b9',
key: {
key: 'kind_string',
dataType: DataTypes.String,
type: '',
isColumn: true,
isJSON: false,
id: 'kind_string--string----true',
},
op: '=',
value: 'Client',
},
...filters.items, ...filters.items,
], ],
op: 'AND', op: 'AND',
@ -1946,6 +2172,19 @@ export const getEndPointDetailsQueryPayload = (
op: '=', op: '=',
value: domainName, value: domainName,
}, },
{
id: '212678b9',
key: {
key: 'kind_string',
dataType: DataTypes.String,
type: '',
isColumn: true,
isJSON: false,
id: 'kind_string--string----true',
},
op: '=',
value: 'Client',
},
...filters.items, ...filters.items,
], ],
op: 'AND', op: 'AND',
@ -2039,6 +2278,19 @@ export const getEndPointZeroStateQueryPayload = (
op: '=', op: '=',
value: domainName, value: domainName,
}, },
{
id: '212678b9',
key: {
key: 'kind_string',
dataType: DataTypes.String,
type: '',
isColumn: true,
isJSON: false,
id: 'kind_string--string----true',
},
op: '=',
value: 'Client',
},
], ],
op: 'AND', op: 'AND',
}, },