使用其 REST API 将 Azure DevOps 指标纳入 Elasticsearch 数据库?
Get Azure DevOps Metrics into Elatic Search Database using its REST API?
我想使用 Kibana 以及其他一些数据来分析我的 Azure DevOps 组织中的一个团队的一些指标。因此我需要将所有提交导入到弹性搜索数据库中。然而,根据 elastic 的集成页面 https://www.elastic.co/de/integrations?solution=all-solutions,他们只支持从 Azure 的基础设施组合中获取数据,而不是他们的 DevOps 产品。
这就是为什么我考虑使用 DevOps 的 REST-API 收集数据,我每天都会调用它。
我的问题:有没有更优的方式?有人做过类似的事情吗?
提前致谢。
您可以查看 Content Sources:
Workplace Search can ingest data from many different content sources.
A content source is usually a third-party service like GitHub, Google
Drive, or Dropbox. You can also build your own connectors using
Custom API sources, which allows you to create unique content
repositories on the platform and send any data to Workplace Search via
uniquely identifiable endpoints.
由于 Workplace Search 不支持 DevOps,您可以检查 Connecting custom sources. And work with Commits - Get Commits API 以检索项目的 git 次提交:
GET https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repositoryId}/commits?api-version=6.0
我想使用 Kibana 以及其他一些数据来分析我的 Azure DevOps 组织中的一个团队的一些指标。因此我需要将所有提交导入到弹性搜索数据库中。然而,根据 elastic 的集成页面 https://www.elastic.co/de/integrations?solution=all-solutions,他们只支持从 Azure 的基础设施组合中获取数据,而不是他们的 DevOps 产品。 这就是为什么我考虑使用 DevOps 的 REST-API 收集数据,我每天都会调用它。
我的问题:有没有更优的方式?有人做过类似的事情吗?
提前致谢。
您可以查看 Content Sources:
Workplace Search can ingest data from many different content sources. A content source is usually a third-party service like GitHub, Google Drive, or Dropbox. You can also build your own connectors using Custom API sources, which allows you to create unique content repositories on the platform and send any data to Workplace Search via uniquely identifiable endpoints.
由于 Workplace Search 不支持 DevOps,您可以检查 Connecting custom sources. And work with Commits - Get Commits API 以检索项目的 git 次提交:
GET https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repositoryId}/commits?api-version=6.0