Skip to content

Commit

Permalink
PMM-7697 Enable/Disable backup management (#711)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dasio authored Mar 31, 2021
1 parent 736e4ef commit 9c58412
Show file tree
Hide file tree
Showing 7 changed files with 309 additions and 193 deletions.
9 changes: 9 additions & 0 deletions api/serverpb/json/client/server/change_settings_responses.go

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

3 changes: 3 additions & 0 deletions api/serverpb/json/client/server/get_settings_responses.go

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

20 changes: 20 additions & 0 deletions api/serverpb/json/serverpb.json
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,11 @@
"type": "boolean",
"x-order": 13
},
"disable_backup_management": {
"description": "Disable Backup Management.",
"type": "boolean",
"x-order": 22
},
"disable_stt": {
"description": "Disable Security Threat Tool.",
"type": "boolean",
Expand Down Expand Up @@ -457,6 +462,11 @@
"type": "boolean",
"x-order": 12
},
"enable_backup_management": {
"description": "Enable Backup Management.",
"type": "boolean",
"x-order": 21
},
"enable_stt": {
"description": "Enable Security Threat Tool.",
"type": "boolean",
Expand Down Expand Up @@ -591,6 +601,11 @@
},
"x-order": 5
},
"backup_management_enabled": {
"description": "True if Backup Management is enabled.",
"type": "boolean",
"x-order": 16
},
"data_retention": {
"type": "string",
"x-order": 3
Expand Down Expand Up @@ -824,6 +839,11 @@
},
"x-order": 5
},
"backup_management_enabled": {
"description": "True if Backup Management is enabled.",
"type": "boolean",
"x-order": 16
},
"data_retention": {
"type": "string",
"x-order": 3
Expand Down
424 changes: 231 additions & 193 deletions api/serverpb/server.pb.go

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions api/serverpb/server.proto
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ message Settings {
string pmm_public_address = 15;
// Intervals between STT check runs.
STTCheckIntervals stt_check_intervals = 16;
// True if Backup Management is enabled.
bool backup_management_enabled = 17;
}

message GetSettingsRequest {}
Expand Down Expand Up @@ -232,6 +234,10 @@ message ChangeSettingsRequest {
bool remove_pmm_public_address = 20;
// Intervals between STT check runs.
STTCheckIntervals stt_check_intervals = 21;
// Enable Backup Management.
bool enable_backup_management = 22;
// Disable Backup Management.
bool disable_backup_management = 23;
}

message ChangeSettingsResponse {
Expand Down
20 changes: 20 additions & 0 deletions api/swagger/swagger-dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -2247,6 +2247,16 @@
}
},
"x-order": 20
},
"enable_backup_management": {
"description": "Enable Backup Management.",
"type": "boolean",
"x-order": 21
},
"disable_backup_management": {
"description": "Disable Backup Management.",
"type": "boolean",
"x-order": 22
}
}
}
Expand Down Expand Up @@ -2419,6 +2429,11 @@
}
},
"x-order": 15
},
"backup_management_enabled": {
"description": "True if Backup Management is enabled.",
"type": "boolean",
"x-order": 16
}
},
"x-order": 0
Expand Down Expand Up @@ -2652,6 +2667,11 @@
}
},
"x-order": 15
},
"backup_management_enabled": {
"description": "True if Backup Management is enabled.",
"type": "boolean",
"x-order": 16
}
},
"x-order": 0
Expand Down
20 changes: 20 additions & 0 deletions api/swagger/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,16 @@
}
},
"x-order": 20
},
"enable_backup_management": {
"description": "Enable Backup Management.",
"type": "boolean",
"x-order": 21
},
"disable_backup_management": {
"description": "Disable Backup Management.",
"type": "boolean",
"x-order": 22
}
}
}
Expand Down Expand Up @@ -726,6 +736,11 @@
}
},
"x-order": 15
},
"backup_management_enabled": {
"description": "True if Backup Management is enabled.",
"type": "boolean",
"x-order": 16
}
},
"x-order": 0
Expand Down Expand Up @@ -959,6 +974,11 @@
}
},
"x-order": 15
},
"backup_management_enabled": {
"description": "True if Backup Management is enabled.",
"type": "boolean",
"x-order": 16
}
},
"x-order": 0
Expand Down

0 comments on commit 9c58412

Please sign in to comment.