-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add telemetry in smapi commands (#278)
- Loading branch information
1 parent
c010264
commit 54f972b
Showing
19 changed files
with
206 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,6 @@ | ||
const { MetricClient } = require('@src/clients/metric-client'); | ||
// const MetricConfig = require('@src/model/metric-config'); | ||
const { METRICS } = require('@src/utils/constants'); | ||
const { name, version } = require('./../../package.json'); | ||
|
||
// TODO enable when we have configure command prompting for telemetry | ||
// const metricConfig = new MetricConfig(); | ||
|
||
const metricClient = new MetricClient({ | ||
version, | ||
machineId: '', // metricConfig.machineId, | ||
newUser: false, // metricConfig.isNewUser(), | ||
clientId: name, | ||
serverUrl: METRICS.ENDPOINT, | ||
enabled: false // TODO make it dependent on configure command | ||
}); | ||
// metric client singleton | ||
const metricClient = new MetricClient(); | ||
|
||
module.exports = metricClient; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
console.log(` | ||
================================================================================ | ||
ASK CLI collects telemetry to better understand customer needs. You can | ||
OPT OUT and disable telemetry by setting the 'share_usage' key to 'false' | ||
in '~/.ask/cli_config'. | ||
Learn more: https://developer.amazon.com/docs/alexa/smapi/ask-cli-telemetry.html | ||
================================================================================ | ||
`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.