From c4b83b758941b81cb54ae257da0b27cd0693a1d0 Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Wed, 7 Sep 2016 10:18:43 -0700 Subject: [PATCH] [API] Account for provider strategies --- src/api/telemetry/TelemetryAPI.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/api/telemetry/TelemetryAPI.js b/src/api/telemetry/TelemetryAPI.js index 172bebbb29..e33b0cd8f2 100644 --- a/src/api/telemetry/TelemetryAPI.js +++ b/src/api/telemetry/TelemetryAPI.js @@ -240,7 +240,7 @@ define([ ); }; - function registerProvider(provider) { + function registerProvider(provider, strategy) { // Not yet implemented. console.log('registering provider', provider); } @@ -273,6 +273,10 @@ define([ * @memberof module:openmct.TelemetryAPI# * @param {module:openmct.TelemetryProvider} provider the new * telemetry provider + * @param {string} [strategy] the request strategy supported by + * this provider. If omitted, this will be used as a + * default provider (when no strategy is requested or no + * matching strategy is found.) */ registerProvider: registerProvider,