Skip to content

Commit 4e83f5a

Browse files
committed
go fmt
1 parent 9d8a14e commit 4e83f5a

File tree

3 files changed

+17
-21
lines changed

3 files changed

+17
-21
lines changed

azure-devops-client/build.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ func (c *AzureDevopsClient) ListBuildHistory(project string, minTime time.Time)
145145
url.QueryEscape(c.ApiVersion),
146146
url.QueryEscape(minTime.Format(time.RFC3339)),
147147
url.QueryEscape(int64ToString(c.LimitBuildsPerProject)),
148-
149148
)
150149
response, err := c.rest().R().Get(url)
151150
if err := c.checkResponse(response, err); err != nil {

azure-devops-client/resource_usage.go

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,39 +23,37 @@ type (
2323
ResourceUsages []ResourceUsageAgentUsageRow `json:"resourceUsages"`
2424

2525
TaskHubLicenseDetails struct {
26-
FreeLicenseCount *float64 `json:"freeLicenseCount"`
27-
FreeHostedLicenseCount *float64 `json:"freeHostedLicenseCount"`
28-
EnterpriseUsersCount *float64 `json:"enterpriseUsersCount"`
29-
PurchasedLicenseCount *float64 `json:"purchasedLicenseCount"`
26+
FreeLicenseCount *float64 `json:"freeLicenseCount"`
27+
FreeHostedLicenseCount *float64 `json:"freeHostedLicenseCount"`
28+
EnterpriseUsersCount *float64 `json:"enterpriseUsersCount"`
29+
PurchasedLicenseCount *float64 `json:"purchasedLicenseCount"`
3030
PurchasedHostedLicenseCount *float64 `json:"purchasedHostedLicenseCount"`
31-
HostedLicensesArePremium bool `json:"hostedLicensesArePremium"`
32-
TotalLicenseCount *float64 `json:"totalLicenseCount"`
33-
HasLicenseCountEverUpdated bool `json:"hasLicenseCountEverUpdated"`
34-
MsdnUsersCount *float64 `json:"msdnUsersCount"`
31+
HostedLicensesArePremium bool `json:"hostedLicensesArePremium"`
32+
TotalLicenseCount *float64 `json:"totalLicenseCount"`
33+
HasLicenseCountEverUpdated bool `json:"hasLicenseCountEverUpdated"`
34+
MsdnUsersCount *float64 `json:"msdnUsersCount"`
3535
HostedAgentMinutesFreeCount *float64 `json:"hostedAgentMinutesFreeCount"`
3636
HostedAgentMinutesUsedCount *float64 `json:"hostedAgentMinutesUsedCount"`
37-
FailedToReachAllProviders bool `json:"failedToReachAllProviders"`
38-
TotalPrivateLicenseCount *float64 `json:"totalPrivateLicenseCount"`
39-
TotalHostedLicenseCount *float64 `json:"totalHostedLicenseCount"`
37+
FailedToReachAllProviders bool `json:"failedToReachAllProviders"`
38+
TotalPrivateLicenseCount *float64 `json:"totalPrivateLicenseCount"`
39+
TotalHostedLicenseCount *float64 `json:"totalHostedLicenseCount"`
4040
} `json:"taskHubLicenseDetails"`
41-
4241
} `json:"ms.vss-build-web.build-queue-hub-data-provider"`
4342
} `json:"data"`
4443
}
4544

4645
ResourceUsageAgentUsageRow struct {
4746
ResourceLimit struct {
4847
ResourceLimitsData struct {
49-
FreeCount string `json:"freeCount"`
48+
FreeCount string `json:"freeCount"`
5049
PurchasedCount string `json:"purchasedCount"`
5150
} `json:"resourceLimitsData"`
5251

53-
HostId string `json:"hostId"`
54-
ParallelismTag string `json:"parallelismTag"`
55-
IsHosted bool `json:"isHosted"`
56-
TotalCount float64 `json:"totalCount"`
57-
IsPremium bool `json:"IsPremium"`
58-
52+
HostId string `json:"hostId"`
53+
ParallelismTag string `json:"parallelismTag"`
54+
IsHosted bool `json:"isHosted"`
55+
TotalCount float64 `json:"totalCount"`
56+
IsPremium bool `json:"IsPremium"`
5957
} `json:"resourceLimit"`
6058
}
6159
)

metrics_resourceusage.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ func (m *MetricsCollectorResourceUsage) Setup(collector *CollectorGeneral) {
2727
},
2828
)
2929

30-
3130
m.prometheus.resourceUsageLicense = prometheus.NewGaugeVec(
3231
prometheus.GaugeOpts{
3332
Name: "azure_devops_resourceusage_license",

0 commit comments

Comments
 (0)