File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
public/app/plugins/datasource/loki Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1529,6 +1529,7 @@ describe('LokiDatasource', () => {
1529
1529
queryType : 'range' ,
1530
1530
refId : 'log-sample-A' ,
1531
1531
maxLines : 20 ,
1532
+ supportingQueryType : SupportingQueryType . LogsSample ,
1532
1533
} ) ;
1533
1534
} ) ;
1534
1535
@@ -1547,6 +1548,7 @@ describe('LokiDatasource', () => {
1547
1548
queryType : LokiQueryType . Range ,
1548
1549
refId : 'log-sample-A' ,
1549
1550
maxLines : 20 ,
1551
+ supportingQueryType : SupportingQueryType . LogsSample ,
1550
1552
} ) ;
1551
1553
} ) ;
1552
1554
@@ -1564,6 +1566,7 @@ describe('LokiDatasource', () => {
1564
1566
expr : '{label="value"}' ,
1565
1567
queryType : LokiQueryType . Range ,
1566
1568
refId : 'log-sample-A' ,
1569
+ supportingQueryType : SupportingQueryType . LogsSample ,
1567
1570
maxLines : 5 ,
1568
1571
} ) ;
1569
1572
} ) ;
Original file line number Diff line number Diff line change @@ -242,6 +242,7 @@ export class LokiDatasource
242
242
refId : `${ REF_ID_STARTER_LOG_SAMPLE } ${ normalizedQuery . refId } ` ,
243
243
expr : getLogQueryFromMetricsQuery ( expr ) ,
244
244
maxLines : Number . isNaN ( Number ( options . limit ) ) ? this . maxLines : Number ( options . limit ) ,
245
+ supportingQueryType : SupportingQueryType . LogsSample ,
245
246
} ;
246
247
247
248
default :
You can’t perform that action at this time.
0 commit comments