Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Feature Request: Support selecting columns from resulting data in query

未关闭
#290 2 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
github, go
领域
api, data

调研方向

Issue 中没有指定文件或测试。首先追踪 Issues 和 Pull Requests 的查询结果如何转换为数据帧,然后将该输出与所链接 Grafana 表达式的要求进行比较。完成标准是:可以从生成的数据中选择请求的字段用于告警规则,并且该行为有适当的测试覆盖。

由索引模型根据 Issue 内容生成。

描述

type/feature-request

I'd like to use the Grafana expression language to write alerting rules based on the output of the Github Datasource. Right now I can't because:

Currently, the only non-time series format (number) is supported when you’re using data frames and you have a table response that returns a data frame with no time, string columns, and one number column

Queries for Issues and Pull Requests return at least one numeric field, and several other fields that aren't appropriate for labels. I'd like to be able to get data equivalent to this SQL call:

SELECT pull_request.open_time, pull_request.author FROM pull_request WHERE pull_request.open is TRUE;

Perhaps this could be done in the plugin by dropping fields from the data frames until only the requested fields remain?

主要语言
Go
星标
311
派生
72
平均合并
2 天 9 小时
30 天内合并 PR
2

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

grafana/github-datasource 的其他 Issue

查看 grafana/github-datasource 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。