cortexapps-cli 1.0.6__tar.gz → 1.2.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.
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/PKG-INFO +1 -1
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/cli.py +4 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/scorecards.py +17 -2
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/pyproject.toml +1 -1
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/LICENSE +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/README.rst +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/command_options.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/api_keys.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/audit_logs.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/backup.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/backup_commands/cortex_export.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/catalog.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/custom_data.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/custom_events.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/custom_metrics.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/dependencies.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/deploys.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/discovery_audit.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/docs.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/entity_types.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/gitops_logs.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/groups.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/initiatives.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/integrations.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/integrations_commands/aws.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/integrations_commands/azure_devops.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/integrations_commands/azure_resources.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/integrations_commands/circleci.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/integrations_commands/coralogix.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/integrations_commands/datadog.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/integrations_commands/github.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/integrations_commands/gitlab.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/integrations_commands/incidentio.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/integrations_commands/launchdarkly.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/integrations_commands/newrelic.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/integrations_commands/pagerduty.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/integrations_commands/prometheus.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/integrations_commands/sonarqube.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/ip_allowlist.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/on_call.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/packages.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/packages_commands/go.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/packages_commands/java.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/packages_commands/node.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/packages_commands/nuget.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/packages_commands/python.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/plugins.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/queries.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/rest.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/scim.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/scorecards_commands/exemptions.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/teams.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/workflows.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/cortex_client.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/models/team.py +0 -0
- {cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/utils.py +0 -0
|
@@ -121,6 +121,10 @@ def global_callback(
|
|
|
121
121
|
else:
|
|
122
122
|
url = "https://api.getcortexapp.com"
|
|
123
123
|
|
|
124
|
+
# Set default URL if not provided
|
|
125
|
+
if not url:
|
|
126
|
+
url = "https://api.getcortexapp.com"
|
|
127
|
+
|
|
124
128
|
# strip any quotes or spaces from the api_key and url
|
|
125
129
|
api_key = api_key.strip('"\' ')
|
|
126
130
|
url = url.strip('"\' /')
|
|
@@ -183,10 +183,25 @@ def scores(
|
|
|
183
183
|
"entityTag": tag_or_id,
|
|
184
184
|
"page": page,
|
|
185
185
|
"pageSize": page_size
|
|
186
|
-
}
|
|
186
|
+
}
|
|
187
187
|
|
|
188
188
|
# remove any params that are None
|
|
189
189
|
params = {k: v for k, v in params.items() if v is not None}
|
|
190
|
-
|
|
190
|
+
|
|
191
191
|
client.fetch_or_get("api/v1/scorecards/" + scorecard_tag + "/scores", page, _print, params=params)
|
|
192
192
|
|
|
193
|
+
@app.command(name="trigger-evaluation")
|
|
194
|
+
def trigger_evaluation(
|
|
195
|
+
ctx: typer.Context,
|
|
196
|
+
scorecard_tag: str = typer.Option(..., "--scorecard-tag", "-s", help="Unique tag for the scorecard"),
|
|
197
|
+
entity_tag: str = typer.Option(..., "--entity-tag", "-e", help="The entity's unique tag (x-cortex-tag)"),
|
|
198
|
+
):
|
|
199
|
+
"""
|
|
200
|
+
Trigger score evaluation for a specific entity in a scorecard
|
|
201
|
+
"""
|
|
202
|
+
|
|
203
|
+
client = ctx.obj["client"]
|
|
204
|
+
|
|
205
|
+
client.post(f"api/v1/scorecards/{scorecard_tag}/entity/{entity_tag}/scores")
|
|
206
|
+
print(f"Scorecard evaluation triggered successfully for entity '{entity_tag}' in scorecard '{scorecard_tag}'")
|
|
207
|
+
|
|
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
|
{cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/integrations_commands/aws.py
RENAMED
|
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
|
{cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/packages_commands/go.py
RENAMED
|
File without changes
|
{cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/packages_commands/java.py
RENAMED
|
File without changes
|
{cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/packages_commands/node.py
RENAMED
|
File without changes
|
{cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/packages_commands/nuget.py
RENAMED
|
File without changes
|
{cortexapps_cli-1.0.6 → cortexapps_cli-1.2.0}/cortexapps_cli/commands/packages_commands/python.py
RENAMED
|
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
|