Skip to content
This repository has been archived by the owner on Jun 16, 2018. It is now read-only.

Commit

Permalink
change api url and remove bluemix button option (#2)
Browse files Browse the repository at this point in the history
* change api url and remove bluemix button option

* update link to metrics-collector

* update link to metrics-collectors

* update link to metrics-tracker, renamed client to metrics-tracker-client
  • Loading branch information
Tomcli authored Sep 19, 2017
1 parent 222ddd7 commit 3c7f1d1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ This is an npm module that can track and report details of a demo/tutorial that

1. Open a terminal and run
```
npm install metrics-collector-client --save
npm install metrics-tracker-client --save
```
2. Require the package in your main entry point to your app (probably app.js).
```
require("metrics-collector-client").track();
require("metrics-tracker-client").track();
```
3. Add a copy of the Privacy Notice to the readme file.

Expand All @@ -33,12 +33,11 @@ event_organizer: dev-journeys
```

Required field:
1. deploy_to_bluemix : Put **True** if your journey has a deploy to bluemix button. Else put **False**.
2. id: Put your journey name/Github URL of your journey.
3. runtimes: Put down all your platform runtime environments in a list.
4. services: Put down all the bluemix services that are used in your journey in a list.
5. event_id: Put down where you will distribute your journey. Default is **web**.
6. event_organizer: Put down your event organizer if you have one.
1. id: Put your journey name/Github URL of your journey.
2. runtimes: Put down all your platform runtime environments in a list.
3. services: Put down all the bluemix services that are used in your journey in a list.
4. event_id: Put down where you will distribute your journey. Default is **web**.
5. event_organizer: Put down your event organizer if you have one.

# List of runtimes and services

Expand Down
1 change: 0 additions & 1 deletion metric_tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ function combineData(data,cfData){
if(data.runtimes) cfData.config.target_runtimes = data.runtimes; else cfData.config.target_runtimes = "";
if(data.services) cfData.config.target_services = data.services; else cfData.config.target_services = "";
if(data.event_id) cfData.config.event_id = data.event_id; else cfData.config.event_id = "";
if(data.deploy_to_bluemix) cfData.config.deploy_to_bluemix = data.deploy_to_bluemix; else cfData.config.deploy_to_bluemix = "";
if(data.event_organizer) cfData.config.event_organizer = data.event_organizer; else cfData.config.event_organizer = "";
return cfData;
}catch(ex){
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "metrics-collector-client",
"version": "0.1.4",
"name": "metrics-tracker-client",
"version": "0.1.9",
"private": false,
"main": "tracker.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function track() {
// restler.postJson('https://deployment-tracker.mybluemix.net/api/v1/track', event).on('complete', function (data) {
// });
}
var url = 'https://trackermetric.mybluemix.net/api/v1/track';
var url = 'https://metrics-tracker.mybluemix.net/api/v1/track';
if(journey_metric!=null){
event = metric.massage(journey_metric,event);
}
Expand Down

0 comments on commit 3c7f1d1

Please sign in to comment.