Giter VIP home page Giter VIP logo

new-relic-synthetics-manager's People

Contributors

akarpz avatar dbradf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

new-relic-synthetics-manager's Issues

Alert configuration

It would be nice to use the tool to configure alerts for synthetics.


As a user
When I own a synthetic
Then I should be able to configure alerting for when the synthetic fails


Acceptance Criteria

  • Alerting for a synthetic can be configured via the tool

Add support for $browser.addHeader() when running Synthetics locally

Since I'm using the $browser.addHeader() function in my Synthetics, they currently fail when trying to run locally with an error similar to the example below.

$browser.addHeader("x-dynaTrace", "NA=SAMSimple;SI=NewRelicSynthetics");
         ^

TypeError: $browser.addHeader is not a function
    at Object.<anonymous> (/synthetics/samProd2Dev.js:53:10)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:509:3

Make synthetics.json file human readable

As a user
when I look at the synthetics.json file
then I should be able to easily part the output

Currently when editing the synthetics.json file, we just dump the json to the file unformatted. It would be nice to pretty print this, so that end users could easily read it.


Acceptance Criteria

  • The synthetics.json file is pretty printed before being written to disk.

Better Error Handling

Currently, if a call to New Relic fails, we will print an error message with the http response code. New Relic also provides some an HTML error message in the http response body, we should try and parse this to provide a better error message.


As a user
When there is an error from New Relic
Then I want to be shown that error


Acceptance Criteria

  • Error messages from New Relic are displayed to the user.

Add support for $browser.waitForPendingRequests

Since I use $browser.waitForPendingRequests in my Synthetics, running them locally produces an error similar to the example below:

$browser.waitForPendingRequests(180000);
         ^

TypeError: $browser.waitForPendingRequests is not a function
    at Object.<anonymous> (/synthetics/samProd.js:13:10)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:509:3

Add Developer documentation

There should be documentation on how to work on the project.


As a new developer
When I want to contribute to the project
Then I should be able to learn the tools and architecture of the project.


Acceptance Criteria

  • A document exists that describes the structure of the project and how to perform basic development tasks (running tests, linting, etc).

After setting up a development new environment, tests are still failing

Setup a new environment with a clone of this repository and tried to run npm test but ran into errors because of apparently unmet dependencies. Installed the following packages with npm:

$ npm install gulp-cli -g
$ npm install gulp -D
$ npm install gulp-jshint -g
$ npm install jshint -g
$ npm install --save-dev jshint gulp-jshint
$ npm install -g gulp-mocha
$ npm install --save-dev gulp-mocha
$ npm install --save-dev gulp-istanbul

However, when I now run npm test, it gives the following output but reports that the tests failed.

$ npm test

> [email protected] test /new-relic-synthetics-manager
> gulp

[05:29:44] Using gulpfile /new-relic-synthetics-manager/gulpfile.js
[05:29:44] Starting 'lint'...
[05:29:44] Starting 'pre-test'...
[05:29:44] Finished 'pre-test' after 372 ms
[05:29:44] Starting 'test'...
[05:29:44] Finished 'lint' after 406 ms
npm ERR! Test failed.  See above for more details.

$

The environment is running node.js 7.5.0 and npm 4.1.2.

Better locations support

A synthetic can specify which locations it should be run from. This can be really confusing and difficult to get right, if the defaults are not used. This should be improved.


As a user
When I am creating or updating a synthetic
Then I am able to easily specify which locations it should run from


Acceptance Criteria

  • A list of available locations is easily accessible
  • How to specify locations is easily understood

Add Contribution guide

The project should have a contribution guide


As a developer
When I want to contribute to the project
Then I should know the guidelines I should follow


Acceptance Criteria

  • A CONTRIBUTING.md file exists in the project root
  • The file contains details about how to contribute to the project.

synthmanager: command not found

Hi!,

First of all this is an awesome contribution to the community, thanks to everyone involved in this, I have a noob problem, I can't get the synthmanager command to run locally, is there something I have to configure first, or maybe something that I forgot? I just cloned your repository and wasn't able to start the command either, any help would be really appreciated.

Thank you

Synthetics configuration changes

Currently when creating a synthetic, the options are specified. It would be nice to be able to use the tool to change these options after creation as well.


As a user
When I want to change a synthetics configuration
Then I should be able to use the tool to do so


Acceptance Criteria

  • Synthetics configuration values are able to be changed via the tool

Support for all types of synthetics

The tools is currently written with a focus on SCRIPTED_BROWSER synthetics. It would be nice to be able to manage all four types of synthetics.


As a user
when I want to create a non-SCRIPTED_BROWSER synthetic
then I should be able to use the tool to do that


Acceptance Criteria

  • PING synthetics are able to be created with the tool
  • BROWSER synthetics are able to be created with the tool
  • SCRIPTED_API synthetics are able to be created with the tool

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.