opsrampcli 1.10.0__tar.gz → 1.11.0__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.
- {opsrampcli-1.10.0 → opsrampcli-1.11.0}/PKG-INFO +1 -1
- {opsrampcli-1.10.0 → opsrampcli-1.11.0}/opsrampcli/opsrampenv.py +3 -2
- {opsrampcli-1.10.0 → opsrampcli-1.11.0}/opsrampcli/resources.py +1 -1
- {opsrampcli-1.10.0 → opsrampcli-1.11.0}/pyproject.toml +1 -1
- {opsrampcli-1.10.0 → opsrampcli-1.11.0}/README.md +0 -0
- {opsrampcli-1.10.0 → opsrampcli-1.11.0}/opsrampcli/DataSource.py +0 -0
- {opsrampcli-1.10.0 → opsrampcli-1.11.0}/opsrampcli/JSONDataSource.py +0 -0
- {opsrampcli-1.10.0 → opsrampcli-1.11.0}/opsrampcli/ServiceNowDataSource.py +0 -0
- {opsrampcli-1.10.0 → opsrampcli-1.11.0}/opsrampcli/URLDataSource.py +0 -0
- {opsrampcli-1.10.0 → opsrampcli-1.11.0}/opsrampcli/__init.py__ +0 -0
- {opsrampcli-1.10.0 → opsrampcli-1.11.0}/opsrampcli/alerts.py +0 -0
- {opsrampcli-1.10.0 → opsrampcli-1.11.0}/opsrampcli/argparsing.py +0 -0
- {opsrampcli-1.10.0 → opsrampcli-1.11.0}/opsrampcli/customattrs.py +0 -0
- {opsrampcli-1.10.0 → opsrampcli-1.11.0}/opsrampcli/discovery.py +0 -0
- {opsrampcli-1.10.0 → opsrampcli-1.11.0}/opsrampcli/escalationpolicies.py +0 -0
- {opsrampcli-1.10.0 → opsrampcli-1.11.0}/opsrampcli/incidents.py +0 -0
- {opsrampcli-1.10.0 → opsrampcli-1.11.0}/opsrampcli/integrations.py +0 -0
- {opsrampcli-1.10.0 → opsrampcli-1.11.0}/opsrampcli/monitoring.py +0 -0
- {opsrampcli-1.10.0 → opsrampcli-1.11.0}/opsrampcli/opsrampcli.py +0 -0
- {opsrampcli-1.10.0 → opsrampcli-1.11.0}/opsrampcli/servicemaps.py +0 -0
- {opsrampcli-1.10.0 → opsrampcli-1.11.0}/opsrampcli/test.py +0 -0
|
@@ -256,7 +256,7 @@ class OpsRampEnv:
|
|
|
256
256
|
params['pageSize'] = page_size
|
|
257
257
|
params['pageNo'] = page_no
|
|
258
258
|
|
|
259
|
-
max_retries =
|
|
259
|
+
max_retries = 20
|
|
260
260
|
sleep_interval = 5
|
|
261
261
|
attempt = 0
|
|
262
262
|
|
|
@@ -360,7 +360,8 @@ class OpsRampEnv:
|
|
|
360
360
|
results = []
|
|
361
361
|
if 'results' in bodydict:
|
|
362
362
|
results = bodydict['results']
|
|
363
|
-
|
|
363
|
+
logger.info(f'Got {len(results)} records for page {page_no}.')
|
|
364
|
+
if len(results) > 0:
|
|
364
365
|
results = results + self.do_opsql_query(object_type, fields, filter_criteria, aggregate, group_by, sort_by, page_no+1, page_size)
|
|
365
366
|
return results
|
|
366
367
|
|
|
@@ -518,7 +518,7 @@ async def import_resources_from_dataframe(ops:OpsRampEnv, args, df:pd.DataFrame,
|
|
|
518
518
|
opsql['sortBy'] = "name"
|
|
519
519
|
|
|
520
520
|
logger.info(f'Using opsql resource search, opsql filter is \'{opsql["filter"]}\'')
|
|
521
|
-
resources =
|
|
521
|
+
resources = ops.do_opsql_query('resource',opsql['fields'], opsql['filter'],page_size=opsql['pageSize'], sort_by=opsql['sortBy'])
|
|
522
522
|
else:
|
|
523
523
|
old_query_type = True
|
|
524
524
|
queryString = None
|
|
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
|