Skip to content

Commit 901e6f4

Browse files
committed
update readme
1 parent 10c02d0 commit 901e6f4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,13 @@ a deployment or build process. For details on all of the attributes that can be
130130
```javascript
131131
const cronitor = require('cronitor')('apiKey123');
132132

133-
cronitor.readConfig('./cronitor.yaml'); // parse the yaml file of monitors
133+
cronitor.readConfig({path: './cronitor.yaml'}); // parse the yaml file of monitors
134134

135-
cronitor.validateConfig(); // send monitors to Cronitor for configuration validation
135+
cronitor.validateConfig({path: './cronitor.yaml'}); // send monitors to Cronitor for configuration validation
136136

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
138138

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
140140

141141
```
142142

@@ -233,9 +233,9 @@ These can also be supplied using the environment variables `CRONITOR_API_KEY`, `
233233

234234
```javascript
235235
const cronitor = require('cronitor')(
236-
'cronitor_api_key',
236+
'cronitor_api_key',
237237
{
238-
apiVersion: '2020-10-01',
238+
apiVersion: '2020-10-01',
239239
environment: 'staging',
240240
timeout: 5000
241241
});

0 commit comments

Comments
 (0)