forked from newrelic/nri-flex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathteamcity-http-example.yml
31 lines (31 loc) · 1.6 KB
/
teamcity-http-example.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
---
integrations:
- name: nri-flex
# interval: 30s
config:
name: teamcityFlex
global:
base_url: http://localhost:8111/
user: teamcity
pass: teamcity
headers:
accept: application/json
apis:
- event_type: teamcityUserSample
url: app/rest/users/
- event_type: teamcityUserGroupSample
url: app/rest/userGroups/
- event_type: teamcityVcsRootSample
url: app/rest/vcs-roots
- event_type: teamcityBuildSample
url: app/rest/builds?fields=build(id,branch,revision,number,state,status,statusText,agent,startDate,finishDate,lastChange,tags,pinned,artifacts)
- event_type: teamcityBuildQueueSample
url: app/rest/buildQueue?fields=build(id,branch,revision,number,state,status,statusText,agent,startDate,finishDate,lastChange,tags,pinned,artifacts)
- event_type: teamcityBuildTypeSample
url: app/rest/buildTypes/
- event_type: teamcityProjectSample
url: app/rest/projects/
- event_type: teamcityAgentSample
url: app/rest/agents?locator=defaultFilter%3Afalse&fields=agent(id,ip,name,enabled,connected,authorized,uptodate,version,lastActivityTime,pool(id,name),enabledInfo(status,comment(text,timestamp,user(name,username)),statusSwitchTime),environment(osType),build(id,number,branchName,defaultBranch,startDate,running-info(percentageComplete,leftSeconds),statusText,status,state,personal,user(id),buildType(id,projectId,name,links(link(relativeUrl)))))
- event_type: teamcityAgentPoolSample
url: app/rest/agentPools