Improve server update checks

This commit is contained in:
allegroai
2019-12-14 23:33:04 +02:00
parent fe3dbc92dc
commit 0ad687008c
14 changed files with 571 additions and 28 deletions

View File

@@ -3,6 +3,25 @@ _default {
internal: true
allow_roles: ["root", "system"]
}
get_stats {
"2.1" {
description: "Get the server collected statistics."
request {
type: object
properties {
interval {
description: "The period for statistics collection in seconds."
type: long
}
}
}
response {
type: object
properties: {
}
}
}
}
config {
"2.1" {
description: "Get server configuration. Secure section is not returned."
@@ -66,3 +85,39 @@ endpoints {
}
}
}
report_stats_option {
"2.4" {
description: "Get or set the report statistics option per-company"
request {
type: object
properties {
enabled {
description: "If provided, sets the report statistics option (true/false)"
type: boolean
}
}
}
response {
type: object
properties {
enabled {
description: "Returns the current report stats option value"
type: boolean
}
enabled_time {
description: "If enabled, returns the time at which option was enabled"
type: string
format: date-time
}
enabled_version {
description: "If enabled, returns the server version at the time option was enabled"
type: string
}
enabled_user {
description: "If enabled, returns Id of the user who enabled the option"
type: string
}
}
}
}
}