File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -130,13 +130,13 @@ a deployment or build process. For details on all of the attributes that can be
130
130
``` javascript
131
131
const cronitor = require (' cronitor' )(' apiKey123' );
132
132
133
- cronitor .readConfig (' ./cronitor.yaml' ); // parse the yaml file of monitors
133
+ cronitor .readConfig ({path : ' ./cronitor.yaml' } ); // parse the yaml file of monitors
134
134
135
- cronitor .validateConfig (); // send monitors to Cronitor for configuration validation
135
+ cronitor .validateConfig ({path : ' ./cronitor.yaml ' } ); // send monitors to Cronitor for configuration validation
136
136
137
- cronitor .applyConfig (); // sync the monitors from the config file to Cronitor
137
+ cronitor .applyConfig ({path : ' ./cronitor.yaml ' } ); // sync the monitors from the config file to Cronitor
138
138
139
- cronitor .generateConfig (); // generate a new config file from the Cronitor API
139
+ cronitor .generateConfig ({path : ' ./cronitor.yaml ' } ); // generate a new config file from the Cronitor API
140
140
141
141
```
142
142
@@ -233,9 +233,9 @@ These can also be supplied using the environment variables `CRONITOR_API_KEY`, `
233
233
234
234
``` javascript
235
235
const cronitor = require (' cronitor' )(
236
- ' cronitor_api_key' ,
236
+ ' cronitor_api_key' ,
237
237
{
238
- apiVersion: ' 2020-10-01' ,
238
+ apiVersion: ' 2020-10-01' ,
239
239
environment: ' staging' ,
240
240
timeout: 5000
241
241
});
You can’t perform that action at this time.
0 commit comments