Skip to content

Commit b7f25ca

Browse files
authored
Merge pull request #138 from scalyr/dtin-6392
2 parents ce8f0a3 + 833e44e commit b7f25ca

File tree

7 files changed

+10
-6
lines changed

7 files changed

+10
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- Plugin setup changes:
66
- Use a less expensive api key check
77
- Ensure the default DataSet url is set
8+
- Set the power query frequency to high (for performance)
89

910
## 3.1.6
1011

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sentinelone-dataset-datasource",
3-
"version": "3.1.6",
3+
"version": "3.1.7",
44
"description": "Scalyr Observability Platform",
55
"scripts": {
66
"build": "webpack -c ./.config/webpack/webpack.config.ts --env production",

pkg/plugin/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func NewDataSetClient(dataSetUrl string, apiKey string) DataSetClient {
5757
}
5858

5959
func (d *dataSetClient) newRequest(method, url string, body io.Reader) (*http.Request, error) {
60-
const VERSION = "3.1.6"
60+
const VERSION = "3.1.7"
6161

6262
// Apply the rate limiter to the initial POST request of the LRQ api session.
6363
// This ensures that later LRQ api "pings" (ie GET requests) are not rate-limited;
@@ -79,7 +79,7 @@ func (d *dataSetClient) newRequest(method, url string, body io.Reader) (*http.Re
7979
// However RoundTrip should not modify the request (ref: go doc net/http.RoundTripper)
8080
request.Header.Set("Authorization", "Bearer "+d.apiKey)
8181
request.Header.Set("Content-Type", "application/json")
82-
request.Header.Set("User-Agent", "sentinelone-dataset-datasource/"+VERSION)
82+
request.Header.Set("User-Agent", "grafana-sentinelone-dataset-datasource/"+VERSION)
8383

8484
return request, nil
8585
}

pkg/plugin/client_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ func TestClientRateLimiter(t *testing.T) {
7474
Pq: &PQOptions{
7575
Query: "message contains 'error'\n| columns timestamp,severity,message",
7676
ResultType: TABLE,
77+
Frequency: HIGH,
7778
},
7879
}
7980

pkg/plugin/lrq_types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const COLUMN = "COLUMN"
1919
// PLOT is a value for both a request "type" and a PQ "resultType"
2020
const PLOT = "PLOT"
2121

22-
// Possible values for "frequency" of PLOT requests
22+
// Possible values for "frequency"
2323
const LOW = "LOW"
2424
const HIGH = "HIGH"
2525

@@ -55,6 +55,7 @@ type TopFacetOptions struct {
5555
type PQOptions struct {
5656
Query string `json:"query"`
5757
ResultType string `json:"resultType"`
58+
Frequency string `json:"frequency"`
5859
}
5960

6061
type PlotOptions struct {

pkg/plugin/plugin.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ func (d *DataSetDatasource) query(ctx context.Context, query backend.DataQuery)
8585
Pq: &PQOptions{
8686
Query: qm.Expression,
8787
ResultType: TABLE,
88+
Frequency: HIGH,
8889
},
8990
}
9091
} else {

src/plugin.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
"path": "img/DatasetConfig.png"
4444
}
4545
],
46-
"version": "3.1.6",
47-
"updated": "2025-09-19"
46+
"version": "3.1.7",
47+
"updated": "2025-09-25"
4848
},
4949
"dependencies": {
5050
"grafanaDependency": ">=8.2.0",

0 commit comments

Comments
 (0)