From 160ba8efa0c6c3689b50e0b4c3c9d05ca0077c62 Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Mon, 31 Jul 2017 09:31:46 +0100 Subject: [PATCH] rename 'report_persistence' capability to 'historic_reports' since that better captures the intent - the UI doesn't care about reports get stored, but what reports it can retrieve. --- common/xfer/constants.go | 6 +++--- prog/app.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/xfer/constants.go b/common/xfer/constants.go index 04f151699..7b3c0469e 100644 --- a/common/xfer/constants.go +++ b/common/xfer/constants.go @@ -14,9 +14,9 @@ const ( ScopeProbeVersionHeader = "X-Scope-Probe-Version" ) -// ReportPersistenceCapability indicates whether probe reports end up in a -// long-term storage and can be retrieved. -const ReportPersistenceCapability = "report_persistence" +// HistoricReportsCapability indicates whether reports older than the +// current time (-app.window) can be retrieved. +const HistoricReportsCapability = "historic_reports" // Details are some generic details that can be fetched from /api type Details struct { diff --git a/prog/app.go b/prog/app.go index 618c36a2c..ecd4df48e 100644 --- a/prog/app.go +++ b/prog/app.go @@ -295,7 +295,7 @@ func appMain(flags appFlags) { } capabilities := map[string]bool{ - xfer.ReportPersistenceCapability: flags.s3URL != "local", + xfer.HistoricReportsCapability: flags.s3URL != "local", } handler := router(collector, controlRouter, pipeRouter, flags.externalUI, capabilities) if flags.logHTTP {