Explore: Implement logs sample in Explore (#61864)

* Implement log samples

* Explore: Implement logs sample panel

* Log samples: Add documentation

* Update docs

* Add info for log sample

* Fix label

* Update

* Default to true

* Fix copy in test

* Update public/app/features/explore/LogsSamplePanel.tsx

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>

* Use timeZone from grafana/schema

* Rename data props to queryResponse

* Unify name to logs sample

* Remove redundant optional parameters in LogsSamplePanel

* Make intervalMs parameter optional in dataFrameToLogsModel and remove undefined argument when not needed

* Fix incorrect position of copy log line button

* Update public/app/core/logsModel.ts

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
This commit is contained in:
Ivana Huckova
2023-01-24 19:10:27 +01:00
committed by GitHub
co-authored by Sven Grossmann
parent e5920c211e
commit a0921f2e88
14 changed files with 296 additions and 45 deletions
@@ -108,7 +108,7 @@ export class InspectDataTab extends PureComponent<Props, State> {
area: 'inspector',
});
const logsModel = dataFrameToLogsModel(data || [], undefined);
const logsModel = dataFrameToLogsModel(data || []);
downloadLogsModelAsTxt(logsModel, panel ? panel.getDisplayTitle() : 'Explore');
};