Skip to content

Commit 795f32c

Browse files
authored
Add PR Updates (#2)
1 parent 8c5c99d commit 795f32c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

receiver/splunkenterprisereceiver/scraper.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1744,7 +1744,7 @@ func (s *splunkScraper) scrapeHealth(ctx context.Context, now pcommon.Timestamp,
17441744
ctx = context.WithValue(ctx, endpointType("type"), typeCm)
17451745

17461746
ept := apiDict[`SplunkHealth`]
1747-
var ha HealthArtifacts
1747+
var ha healthArtifacts
17481748

17491749
req, err := s.splunkClient.createAPIRequest(ctx, ept)
17501750
if err != nil {
@@ -1770,7 +1770,7 @@ func (s *splunkScraper) scrapeHealth(ctx context.Context, now pcommon.Timestamp,
17701770
}
17711771
}
17721772

1773-
func (s *splunkScraper) traverseHealthDetailFeatures(details HealthDetails, now pcommon.Timestamp) {
1773+
func (s *splunkScraper) traverseHealthDetailFeatures(details healthDetails, now pcommon.Timestamp) {
17741774
if details.Features == nil {
17751775
return
17761776
}

receiver/splunkenterprisereceiver/search_result.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,15 +159,15 @@ type DispatchArtifactContent struct {
159159
}
160160

161161
// '/services/server/health/splunkd/details
162-
type HealthArtifacts struct {
163-
Entries []HealthArtifactEntry `json:"entry"`
162+
type healthArtifacts struct {
163+
Entries []healthArtifactEntry `json:"entry"`
164164
}
165165

166-
type HealthArtifactEntry struct {
167-
Content HealthDetails `json:"content"`
166+
type healthArtifactEntry struct {
167+
Content healthDetails `json:"content"`
168168
}
169169

170-
type HealthDetails struct {
170+
type healthDetails struct {
171171
Health string `json:"health"`
172-
Features map[string]HealthDetails `json:"features,omitempty"`
172+
Features map[string]healthDetails `json:"features,omitempty"`
173173
}

0 commit comments

Comments
 (0)