mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 23:35:15 +08:00
tsdb/elasticsearch: remove TimeInterval field from tsdb/elasticsearch client (#78264)
remove TimeInterval field from tsdb/elasticsearch client #78187 Co-authored-by: Sam <samucap@users.noreply.github.com>
This commit is contained in:
@ -15,7 +15,6 @@ type datasourceInfo struct {
|
||||
TimeField any `json:"timeField"`
|
||||
MaxConcurrentShardRequests int64 `json:"maxConcurrentShardRequests"`
|
||||
Interval string `json:"interval"`
|
||||
TimeInterval string `json:"timeInterval"`
|
||||
}
|
||||
|
||||
func TestNewInstanceSettings(t *testing.T) {
|
||||
@ -40,7 +39,6 @@ func TestNewInstanceSettings(t *testing.T) {
|
||||
dsInfo := datasourceInfo{
|
||||
MaxConcurrentShardRequests: 5,
|
||||
Interval: "Daily",
|
||||
TimeInterval: "TimeInterval",
|
||||
}
|
||||
|
||||
settingsJSON, err := json.Marshal(dsInfo)
|
||||
@ -59,7 +57,6 @@ func TestNewInstanceSettings(t *testing.T) {
|
||||
MaxConcurrentShardRequests: 5,
|
||||
Interval: "Daily",
|
||||
TimeField: "",
|
||||
TimeInterval: "TimeInterval",
|
||||
}
|
||||
|
||||
settingsJSON, err := json.Marshal(dsInfo)
|
||||
|
Reference in New Issue
Block a user