mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
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:
co-authored by
Sven Grossmann
parent
e5920c211e
commit
a0921f2e88
@@ -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');
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user