forked from timescale/tsbs
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
145 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package main | ||
|
||
import "time" | ||
|
||
// CassandraDevopsSingleHost12hr produces Cassandra-specific queries for the devops single-host case. | ||
type CassandraDevopsSingleHost12hr struct { | ||
CassandraDevops | ||
} | ||
|
||
func NewCassandraDevopsSingleHost12hr(dbConfig DatabaseConfig, start, end time.Time) QueryGenerator { | ||
underlying := newCassandraDevopsCommon(dbConfig, start, end).(*CassandraDevops) | ||
return &CassandraDevopsSingleHost12hr{ | ||
CassandraDevops: *underlying, | ||
} | ||
} | ||
|
||
func (d *CassandraDevopsSingleHost12hr) Dispatch(_, scaleVar int) Query { | ||
q := NewCassandraQuery() // from pool | ||
d.MaxCPUUsage12HoursByMinuteOneHost(q, scaleVar) | ||
return q | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package main | ||
|
||
import "time" | ||
|
||
// ElasticSearchDevopsSingleHost12hr produces ES-specific queries for the devops single-host case. | ||
type ElasticSearchDevopsSingleHost12hr struct { | ||
ElasticSearchDevops | ||
} | ||
|
||
func NewElasticSearchDevopsSingleHost12hr(dbConfig DatabaseConfig, start, end time.Time) QueryGenerator { | ||
underlying := NewElasticSearchDevops(dbConfig, start, end).(*ElasticSearchDevops) | ||
return &ElasticSearchDevopsSingleHost12hr{ | ||
ElasticSearchDevops: *underlying, | ||
} | ||
} | ||
|
||
func (d *ElasticSearchDevopsSingleHost12hr) Dispatch(i, scaleVar int) Query { | ||
q := NewHTTPQuery() // from pool | ||
d.MaxCPUUsage12HoursByMinuteOneHost(q, scaleVar) | ||
return q | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package main | ||
|
||
import "time" | ||
|
||
// InfluxDevopsSingleHost12hr produces Influx-specific queries for the devops single-host case over a 12hr period. | ||
type InfluxDevopsSingleHost12hr struct { | ||
InfluxDevops | ||
} | ||
|
||
func NewInfluxDevopsSingleHost12hr(dbConfig DatabaseConfig, start, end time.Time) QueryGenerator { | ||
underlying := newInfluxDevopsCommon(dbConfig, start, end).(*InfluxDevops) | ||
return &InfluxDevopsSingleHost12hr{ | ||
InfluxDevops: *underlying, | ||
} | ||
} | ||
|
||
func (d *InfluxDevopsSingleHost12hr) Dispatch(i, scaleVar int) Query { | ||
q := NewHTTPQuery() // from pool | ||
d.MaxCPUUsage12HoursByMinuteOneHost(q, scaleVar) | ||
return q | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package main | ||
|
||
import "time" | ||
|
||
// MongoDevopsSingleHost produces Mongo-specific queries for the devops single-host case. | ||
type MongoDevopsSingleHost12hr struct { | ||
MongoDevops | ||
} | ||
|
||
func NewMongoDevopsSingleHost12hr(dbConfig DatabaseConfig, start, end time.Time) QueryGenerator { | ||
underlying := NewMongoDevops(dbConfig, start, end).(*MongoDevops) | ||
return &MongoDevopsSingleHost12hr{ | ||
MongoDevops: *underlying, | ||
} | ||
} | ||
|
||
func (d *MongoDevopsSingleHost12hr) Dispatch(i, scaleVar int) Query { | ||
q := NewMongoQuery() // from pool | ||
d.MaxCPUUsage12HoursByMinuteOneHost(q, scaleVar) | ||
return q | ||
} |