Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detected fields: Use detected_fields response to determine if avg_over_time query should be run #871

Merged
merged 4 commits into from
Nov 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: pr review, update case statement
  • Loading branch information
gtk-grafana committed Nov 7, 2024
commit d1fa536a1824509f8c753af93d5d02f2baa6bc70
6 changes: 1 addition & 5 deletions src/services/fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,11 @@ export function extractParserFromString(parserString?: string): ParserType {
export function extractFieldTypeFromString(fieldString?: string): DetectedFieldType {
switch (fieldString) {
case 'int':
return 'int';
case 'float':
return 'float';
case 'duration':
return 'duration';
case 'boolean':
return 'boolean';
case 'bytes':
return 'bytes';
return fieldString;
default:
return 'string';
}
Expand Down
Loading