@browserless.io/browserless 2.10.0 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -1
- package/build/browsers/chromium.cdp.d.ts +1 -0
- package/build/browsers/chromium.cdp.js +3 -0
- package/build/browsers/chromium.playwright.d.ts +1 -0
- package/build/browsers/chromium.playwright.js +3 -0
- package/build/browsers/firefox.playwright.d.ts +1 -0
- package/build/browsers/firefox.playwright.js +3 -0
- package/build/browsers/index.d.ts +0 -1
- package/build/browsers/index.js +3 -5
- package/build/browsers/webkit.playwright.d.ts +1 -0
- package/build/browsers/webkit.playwright.js +3 -0
- package/build/routes/chrome/http/pdf.post.body.json +8 -8
- package/build/routes/chrome/http/scrape.post.body.json +8 -8
- package/build/routes/chrome/http/screenshot.post.body.json +8 -8
- package/build/routes/chromium/http/content.post.body.json +8 -8
- package/build/routes/chromium/http/pdf.post.body.json +8 -8
- package/build/routes/chromium/http/scrape.post.body.json +8 -8
- package/build/routes/management/http/pressure.get.d.ts +47 -45
- package/build/routes/management/http/pressure.get.js +13 -11
- package/build/routes/management/http/pressure.get.response.json +74 -65
- package/package.json +1 -1
- package/src/browsers/chromium.cdp.ts +4 -0
- package/src/browsers/chromium.playwright.ts +4 -0
- package/src/browsers/firefox.playwright.ts +4 -0
- package/src/browsers/index.ts +3 -5
- package/src/browsers/webkit.playwright.ts +4 -0
- package/src/routes/management/http/pressure.get.ts +70 -66
- package/static/docs/swagger.json +76 -67
- package/static/docs/swagger.min.json +75 -66
|
@@ -1098,7 +1098,7 @@
|
|
|
1098
1098
|
},
|
|
1099
1099
|
"info": {
|
|
1100
1100
|
"title": "Browserless",
|
|
1101
|
-
"version": "2.
|
|
1101
|
+
"version": "2.11.0",
|
|
1102
1102
|
"x-logo": {
|
|
1103
1103
|
"altText": "browserless logo",
|
|
1104
1104
|
"url": "./docs/browserless-logo-inline.svg"
|
|
@@ -6149,76 +6149,85 @@
|
|
|
6149
6149
|
"schema": {
|
|
6150
6150
|
"type": "object",
|
|
6151
6151
|
"properties": {
|
|
6152
|
-
"
|
|
6153
|
-
"
|
|
6154
|
-
"
|
|
6155
|
-
"
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6159
|
-
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
"
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
|
|
6193
|
-
""
|
|
6152
|
+
"pressure": {
|
|
6153
|
+
"type": "object",
|
|
6154
|
+
"properties": {
|
|
6155
|
+
"cpu": {
|
|
6156
|
+
"description": "An integer representing the percentage of CPU being used. For instance 92 means 92%",
|
|
6157
|
+
"type": [
|
|
6158
|
+
"null",
|
|
6159
|
+
"number"
|
|
6160
|
+
]
|
|
6161
|
+
},
|
|
6162
|
+
"date": {
|
|
6163
|
+
"description": "A number of milliseconds since epoch, or \"Date.now()\" equivalent.",
|
|
6164
|
+
"type": "number"
|
|
6165
|
+
},
|
|
6166
|
+
"isAvailable": {
|
|
6167
|
+
"description": "Whether or not a session can be connected and immediately ran on a health instance.",
|
|
6168
|
+
"type": "boolean"
|
|
6169
|
+
},
|
|
6170
|
+
"maxConcurrent": {
|
|
6171
|
+
"description": "The maximum amount of browsers that can be ran at a single time.",
|
|
6172
|
+
"type": "number"
|
|
6173
|
+
},
|
|
6174
|
+
"maxQueued": {
|
|
6175
|
+
"description": "The maximum amount of queued connections allowed at a single time.",
|
|
6176
|
+
"type": "number"
|
|
6177
|
+
},
|
|
6178
|
+
"memory": {
|
|
6179
|
+
"description": "An integer representing the percentage of Memory being used. For instance 95 means 95%",
|
|
6180
|
+
"type": [
|
|
6181
|
+
"null",
|
|
6182
|
+
"number"
|
|
6183
|
+
]
|
|
6184
|
+
},
|
|
6185
|
+
"message": {
|
|
6186
|
+
"description": "A human-readable message as the overall status of the instance.",
|
|
6187
|
+
"type": "string"
|
|
6188
|
+
},
|
|
6189
|
+
"queued": {
|
|
6190
|
+
"description": "The current number of connect or API calls pending to run.",
|
|
6191
|
+
"type": "number"
|
|
6192
|
+
},
|
|
6193
|
+
"reason": {
|
|
6194
|
+
"description": "A simple single-word reason as to why an instance may or may not be available.",
|
|
6195
|
+
"enum": [
|
|
6196
|
+
"",
|
|
6197
|
+
"cpu",
|
|
6198
|
+
"full",
|
|
6199
|
+
"memory"
|
|
6200
|
+
],
|
|
6201
|
+
"type": "string"
|
|
6202
|
+
},
|
|
6203
|
+
"recentlyRejected": {
|
|
6204
|
+
"description": "The number of recent connections that were rejected due to the queue and concurrency\nlimits having been filled.",
|
|
6205
|
+
"type": "number"
|
|
6206
|
+
},
|
|
6207
|
+
"running": {
|
|
6208
|
+
"description": "The current number of running connections or API calls.",
|
|
6209
|
+
"type": "number"
|
|
6210
|
+
}
|
|
6211
|
+
},
|
|
6212
|
+
"additionalProperties": false,
|
|
6213
|
+
"required": [
|
|
6194
6214
|
"cpu",
|
|
6195
|
-
"
|
|
6196
|
-
"
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
|
|
6205
|
-
|
|
6206
|
-
"type": "number"
|
|
6215
|
+
"date",
|
|
6216
|
+
"isAvailable",
|
|
6217
|
+
"maxConcurrent",
|
|
6218
|
+
"maxQueued",
|
|
6219
|
+
"memory",
|
|
6220
|
+
"message",
|
|
6221
|
+
"queued",
|
|
6222
|
+
"reason",
|
|
6223
|
+
"recentlyRejected",
|
|
6224
|
+
"running"
|
|
6225
|
+
]
|
|
6207
6226
|
}
|
|
6208
6227
|
},
|
|
6209
6228
|
"additionalProperties": false,
|
|
6210
6229
|
"required": [
|
|
6211
|
-
"
|
|
6212
|
-
"date",
|
|
6213
|
-
"isAvailable",
|
|
6214
|
-
"maxConcurrent",
|
|
6215
|
-
"maxQueued",
|
|
6216
|
-
"memory",
|
|
6217
|
-
"message",
|
|
6218
|
-
"queued",
|
|
6219
|
-
"reason",
|
|
6220
|
-
"recentlyRejected",
|
|
6221
|
-
"running"
|
|
6230
|
+
"pressure"
|
|
6222
6231
|
],
|
|
6223
6232
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
6224
6233
|
}
|