Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: Neaj Morshad <[email protected]>
  • Loading branch information
Neaj-Morshad-101 committed Nov 13, 2024
1 parent 814b508 commit 35ac4ba
Show file tree
Hide file tree
Showing 9 changed files with 1,596 additions and 720 deletions.
24 changes: 14 additions & 10 deletions apis/alerts/v1alpha1/mssqlserver_alerts_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const (
ResourceMSSQLServerAlertss = "mssqlserveralertss"
)

// MSSQLServerAlerts defines the schama for KubeDB Ops Manager Operator Installer.
// MSSQLServerAlerts defines the schema for KubeDB Ops Manager Operator Installer.

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

Expand All @@ -44,6 +44,7 @@ type MSSQLServerAlerts struct {
type MSSQLServerAlertsSpec struct {
api.Metadata `json:"metadata,omitempty"`
Form MSSQLServerAlertsSpecForm `json:"form"`
Grafana MemcachedGrafana `json:"grafana"`
}

type MSSQLServerAlertsSpecForm struct {
Expand All @@ -61,12 +62,9 @@ type MSSQLServerAlert struct {
}

type MSSQLServerAlertGroups struct {
Database MSSQLServerDatabaseAlert `json:"database"`
Provisioner ProvisionerAlert `json:"provisioner"`
OpsManager OpsManagerAlert `json:"opsManager"`
Stash StashAlert `json:"stash"`
KubeStash KubeStashAlert `json:"kubeStash"`
SchemaManager SchemaManagerAlert `json:"schemaManager"`
Database MSSQLServerDatabaseAlert `json:"database"`
Provisioner ProvisionerAlert `json:"provisioner"`
KubeStash KubeStashAlert `json:"kubeStash"`
}

type MSSQLServerDatabaseAlert struct {
Expand All @@ -76,19 +74,25 @@ type MSSQLServerDatabaseAlert struct {

type MSSQLServerDatabaseAlertRules struct {
MSSQLServerInstanceDown FixedAlert `json:"mssqlserverInstanceDown"`
MSSSQLServerServiceDown FixedAlert `json:"mssqlserverServiceDown"`
MSSQLServerRestarted IntValAlert `json:"mssqlserverRestarted"`
MSSQLServerExporterError FixedAlert `json:"mssqlserverExporterError"`
MSSQLServerTooManyConnections IntValAlert `json:"mssqlserverTooManyConnections"`
MSSQLServerNotEnoughConnections IntValAlert `json:"mssqlserverNotEnoughConnections"`
MSSQLServerSlowQueries FixedAlert `json:"mssqlserverSlowQueries"`
MSSQLServerReplicationLag StringValAlert `json:"mssqlserverReplicationLag"`
MSSQLServerHighRollbackRate FloatValAlertConfig `json:"mssqlserverHighRollbackRate"`
MSSQLServerSplitBrain FixedAlert `json:"mssqlserverSplitBrain"`
MSSQLServerTooManyLocksAcquired FloatValAlertConfig `json:"mssqlserverTooManyLocksAcquired"`
DiskUsageHigh IntValAlert `json:"diskUsageHigh"`
DiskAlmostFull IntValAlert `json:"diskAlmostFull"`
}

type MSSQLServerGrafana struct {
Enabled bool `json:"enabled"`
Version string `json:"version"`
JobName string `json:"jobName"`
URL string `json:"url"`
ApiKey string `json:"apikey"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

// MSSQLServerAlertsList is a list of MSSQLServerAlertss
Expand Down
24 changes: 18 additions & 6 deletions apis/alerts/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 35ac4ba

Please sign in to comment.