Skip to content

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

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

15 changes: 15 additions & 0 deletions api/server/v1/json/v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,11 @@
"type": "integer",
"format": "int64",
"x-order": 16
},
"update_snooze_duration": {
"type": "string",
"title": "Duration for which an update is snoozed",
"x-order": 17
}
},
"x-order": 0
Expand Down Expand Up @@ -478,6 +483,11 @@
"title": "Enable Access Control",
"x-nullable": true,
"x-order": 12
},
"update_snooze_duration": {
"description": "A number of full days for which an update is snoozed, i.e. a multiple of 24h: 2592000s, 43200m, 720h.",
"type": "string",
"x-order": 13
}
}
}
Expand Down Expand Up @@ -615,6 +625,11 @@
"type": "integer",
"format": "int64",
"x-order": 16
},
"update_snooze_duration": {
"type": "string",
"title": "Duration for which an update is snoozed",
"x-order": 17
}
},
"x-order": 0
Expand Down
102 changes: 62 additions & 40 deletions api/server/v1/server.pb.go

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

58 changes: 58 additions & 0 deletions api/server/v1/server.pb.validate.go

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

4 changes: 4 additions & 0 deletions api/server/v1/server.proto
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ message Settings {
bool enable_access_control = 17;
// Default Access Control role ID for new users.
uint32 default_role_id = 18;
// Duration for which an update is snoozed
google.protobuf.Duration update_snooze_duration = 19;
}

// ReadOnlySettings represents a stripped-down version of PMM Server settings that can be accessed by users of all roles.
Expand Down Expand Up @@ -235,6 +237,8 @@ message ChangeSettingsRequest {
optional bool enable_backup_management = 12;
// Enable Access Control
optional bool enable_access_control = 13;
// A number of full days for which an update is snoozed, i.e. a multiple of 24h: 2592000s, 43200m, 720h.
google.protobuf.Duration update_snooze_duration = 14;
}

message ChangeSettingsResponse {
Expand Down
Loading
Loading