Skip to content

Commit 3bc20f2

Browse files
authored
Merge pull request #322 from SumoLogic/vishal-set-admin-mode-header
2 parents 4389d44 + c22d839 commit 3bc20f2

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
## 2.12.0 (Unreleased)
22

3+
## 2.11.5 (Unreleased)
4+
5+
BUG FIXES:
6+
7+
* Set admin mode in PostRawPayload method (GH-322)
8+
39
## 2.11.4 (November 19, 2021)
410

511
BUG FIXES:
@@ -25,7 +31,7 @@ FEATURES:
2531
* **New Datasource:** sumologic_user (GH-299)
2632

2733
BUG FIXES:
28-
34+
2935
* Fix occurrence_type for metrics resolution conditions (GH-297)
3036
* Relaxed validation for monitor time range (GH-306)
3137

@@ -39,7 +45,7 @@ FEATURES:
3945
* **New Resource:** sumologic_cse_insights_resolution (GH-274)
4046
* **New Resource:** sumologic_cse_insights_status (GH-274)
4147
* **New Resource:** sumologic_cse_insights_configuration (GH-274)
42-
* **New Resource:** sumologic_cse_log_mapping (GH-284)
48+
* **New Resource:** sumologic_cse_log_mapping (GH-284)
4349
* **New Datasource:** sumologic_cse_log_mapping_vendor_product (GH-284)
4450
* **New Resource:** sumologic_cse_aggregation_rule (GH-290)
4551
* **New Resource:** sumologic_cse_chain_rule (GH-290)

sumologic/sumologic_client.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,10 @@ func (s *Client) PostRawPayload(urlPath string, payload string) ([]byte, error)
176176
return nil, err
177177
}
178178

179+
if s.IsInAdminMode {
180+
req.Header.Add("isAdminMode", "true")
181+
}
182+
179183
<-rateLimiter.C
180184
resp, err := s.httpClient.Do(req)
181185

0 commit comments

Comments
 (0)