pingera-cli 0.1.7__tar.gz → 0.1.8__tar.gz
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.
- {pingera_cli-0.1.7/pingera_cli.egg-info → pingera_cli-0.1.8}/PKG-INFO +1 -1
- pingera_cli-0.1.8/docs/example-web-check.json +23 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/__init__.py +1 -1
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/commands/checks.py +1 -1
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/commands/on_demand_checks.py +8 -5
- {pingera_cli-0.1.7 → pingera_cli-0.1.8/pingera_cli.egg-info}/PKG-INFO +1 -1
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli.egg-info/SOURCES.txt +1 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/.gitignore +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/.replit +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/LICENSE +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/README.md +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/assert +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/docs/cli-commands.md +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/docs/example-check.yaml +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/docs/example-synthetic-screenshot.json +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/__main__.py +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/commands/__init__.py +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/commands/auth.py +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/commands/base.py +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/commands/check_groups.py +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/commands/check_secrets.py +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/commands/secrets.py +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/formatters/__init__.py +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/formatters/base_formatter.py +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/formatters/generic_formatter.py +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/formatters/multistep_formatter.py +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/formatters/registry.py +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/formatters/ssl_formatter.py +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/formatters/synthetic_formatter.py +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/formatters/web_formatter.py +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/main.py +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/utils/__init__.py +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/utils/config.py +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli/utils/console.py +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli.egg-info/dependency_links.txt +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli.egg-info/entry_points.txt +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli.egg-info/requires.txt +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pingera_cli.egg-info/top_level.txt +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/pyproject.toml +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/replit.md +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/run_tests.py +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/setup.cfg +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/setup.py +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/tests/__init__.py +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/tests/conftest.py +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/tests/requirements.txt +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/tests/test_auth.py +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/tests/test_checks.py +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/tests/test_config.py +0 -0
- {pingera_cli-0.1.7 → pingera_cli-0.1.8}/tests/test_on_demand_checks.py +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
|
|
2
|
+
{
|
|
3
|
+
"name": "Example Web Check",
|
|
4
|
+
"type": "web",
|
|
5
|
+
"url": "https://example.com",
|
|
6
|
+
"interval": 300,
|
|
7
|
+
"timeout": 30,
|
|
8
|
+
"parameters": {
|
|
9
|
+
"regions": ["RU, Moscow", "EU, West"],
|
|
10
|
+
"search_text": "Welcome",
|
|
11
|
+
"http_request": {
|
|
12
|
+
"method": "GET",
|
|
13
|
+
"headers": {
|
|
14
|
+
"User-Agent": "PingeraCLI/1.0"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"marketplace": {
|
|
19
|
+
"tags": ["web", "basic"],
|
|
20
|
+
"name": "Simple website check with string search",
|
|
21
|
+
"description": "Queries website URL and searches for a string in the response"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -444,7 +444,7 @@ class ChecksCommand(BaseCommand):
|
|
|
444
444
|
|
|
445
445
|
# Filter only SDK-recognized fields from file data
|
|
446
446
|
# This ignores marketplace-specific fields and other extensions
|
|
447
|
-
sdk_fields = ["name", "type", "url", "host", "port", "interval", "timeout", "parameters", "active"]
|
|
447
|
+
sdk_fields = ["name", "type", "url", "host", "port", "interval", "timeout", "parameters", "active", "secrets"]
|
|
448
448
|
filtered_file_data = {k: v for k, v in file_data.items() if k in sdk_fields}
|
|
449
449
|
|
|
450
450
|
# Command line options take precedence over file data
|
|
@@ -106,7 +106,7 @@ class OnDemandChecksCommand(BaseCommand):
|
|
|
106
106
|
|
|
107
107
|
# Filter only SDK-recognized fields from file data
|
|
108
108
|
# This ignores marketplace-specific fields and other extensions
|
|
109
|
-
sdk_fields = ["name", "type", "url", "host", "port", "timeout", "parameters"]
|
|
109
|
+
sdk_fields = ["name", "type", "url", "host", "port", "timeout", "parameters", "secrets"]
|
|
110
110
|
filtered_file_data = {k: v for k, v in file_data.items() if k in sdk_fields}
|
|
111
111
|
|
|
112
112
|
# Command line options take precedence over file data
|
|
@@ -240,8 +240,9 @@ class OnDemandChecksCommand(BaseCommand):
|
|
|
240
240
|
response = checks_api.v1_checks_execute_post(check_request)
|
|
241
241
|
job_id = response.job_id
|
|
242
242
|
|
|
243
|
-
# Build success message
|
|
244
|
-
|
|
243
|
+
# Build success message - use the actual type from check_data
|
|
244
|
+
actual_check_type = check_data.get("type", check_type)
|
|
245
|
+
success_details = [f"Job ID: {job_id}", f"Type: {actual_check_type}"]
|
|
245
246
|
if url:
|
|
246
247
|
success_details.append(f"URL: {url}")
|
|
247
248
|
if host:
|
|
@@ -256,13 +257,15 @@ class OnDemandChecksCommand(BaseCommand):
|
|
|
256
257
|
self._wait_and_show_result(job_id, success_details)
|
|
257
258
|
else:
|
|
258
259
|
if self.output_format in ['json', 'yaml']:
|
|
260
|
+
actual_check_type = check_data.get("type", check_type)
|
|
261
|
+
actual_name = check_data.get("name", name)
|
|
259
262
|
self.output_data({
|
|
260
263
|
"job_id": job_id,
|
|
261
|
-
"check_type":
|
|
264
|
+
"check_type": actual_check_type,
|
|
262
265
|
"url": url,
|
|
263
266
|
"host": host,
|
|
264
267
|
"port": port,
|
|
265
|
-
"name":
|
|
268
|
+
"name": actual_name,
|
|
266
269
|
"status": "queued"
|
|
267
270
|
})
|
|
268
271
|
else:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|