cortexapps-cli 1.18.0__tar.gz → 1.19.1__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.18.0 → cortexapps_cli-1.19.1}/PKG-INFO +2 -3
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/README.rst +0 -2
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/custom_events.py +3 -2
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/entity_types.py +1 -5
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/pyproject.toml +2 -1
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/LICENSE +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/__init__.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/cli.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/command_options.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/api_keys.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/audit_logs.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/backup.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/backup_commands/cortex_export.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/catalog.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/custom_data.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/custom_metrics.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/dependencies.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/deploys.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/discovery_audit.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/docs.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/entity_relationship_types.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/entity_relationships.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/gitops_logs.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/groups.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/initiatives.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/apiiro.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/argocd.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/aws.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/azure_active_directory.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/azure_devops.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/azure_resources.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/bamboohr.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/bitbucket.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/bugsnag.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/buildkite.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/checkmarx_sast.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/circleci.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/clickup.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/codecov.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/coralogix.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/datadog.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/dynatrace.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/firehydrant.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/github.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/gitlab.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/incidentio.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/instana.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/jenkins.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/jira.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/launchdarkly.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/mend_sast.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/mend_sca.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/newrelic.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/okta.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/opsgenie.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/pagerduty.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/prometheus.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/rollbar.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/rootly.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/semgrep.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/sentry.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/servicenow.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/servicenow_cloud_observability.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/snyk.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/sonarqube.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/splunk_observability_cloud.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/splunk_on_call.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/sumologic.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/veracode.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/wiz.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/workday.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/xmatters.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/ip_allowlist.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/on_call.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/packages.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/packages_commands/go.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/packages_commands/java.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/packages_commands/node.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/packages_commands/nuget.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/packages_commands/python.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/plugins.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/queries.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/rest.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/scim.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/scorecards.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/scorecards_commands/exemptions.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/secrets.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/teams.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/workflows.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/cortex_client.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/models/team.py +0 -0
- {cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cortexapps-cli
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.19.1
|
|
4
4
|
Summary: Command Line Interface for cortexapps
|
|
5
5
|
License: MIT
|
|
6
6
|
License-File: LICENSE
|
|
@@ -17,6 +17,7 @@ Classifier: Programming Language :: Python :: 3.14
|
|
|
17
17
|
Requires-Dist: pyyaml (>=6.0.1,<7)
|
|
18
18
|
Requires-Dist: requests (>=2.33.0,<3.0.0)
|
|
19
19
|
Requires-Dist: typer (>=0.15,<1.0)
|
|
20
|
+
Requires-Dist: typing_extensions (>=3.7.4.3)
|
|
20
21
|
Requires-Dist: urllib3 (>=2.7.0)
|
|
21
22
|
Project-URL: Bug Tracker, https://github.com/cortexapps/cli/issues
|
|
22
23
|
Project-URL: Changes, https://github.com/cortexapps/cli/blob/main/HISTORY.md
|
|
@@ -479,8 +480,6 @@ This recipe creates YAML files for each Workflow. This may be helpful if you ar
|
|
|
479
480
|
cortex workflows get --tag $workflow --yaml > $workflow.yaml
|
|
480
481
|
done
|
|
481
482
|
|
|
482
|
-
====================================
|
|
483
|
-
|
|
484
483
|
.. |PyPI download month| image:: https://img.shields.io/pypi/dm/cortexapps-cli.svg
|
|
485
484
|
:target: https://pypi.python.org/pypi/cortexapps-cli/
|
|
486
485
|
.. |PyPI version shields.io| image:: https://img.shields.io/pypi/v/cortexapps-cli.svg
|
|
@@ -453,8 +453,6 @@ This recipe creates YAML files for each Workflow. This may be helpful if you ar
|
|
|
453
453
|
cortex workflows get --tag $workflow --yaml > $workflow.yaml
|
|
454
454
|
done
|
|
455
455
|
|
|
456
|
-
====================================
|
|
457
|
-
|
|
458
456
|
.. |PyPI download month| image:: https://img.shields.io/pypi/dm/cortexapps-cli.svg
|
|
459
457
|
:target: https://pypi.python.org/pypi/cortexapps-cli/
|
|
460
458
|
.. |PyPI version shields.io| image:: https://img.shields.io/pypi/v/cortexapps-cli.svg
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from collections import defaultdict
|
|
2
2
|
from datetime import datetime
|
|
3
3
|
import json
|
|
4
|
+
from typing import List, Optional
|
|
4
5
|
from rich import print_json
|
|
5
6
|
import typer
|
|
6
7
|
from typing_extensions import Annotated
|
|
@@ -32,7 +33,7 @@ def _parse_key_value(values):
|
|
|
32
33
|
def update_by_uuid(
|
|
33
34
|
ctx: typer.Context,
|
|
34
35
|
file_input: Annotated[typer.FileText, typer.Option("--file", "-f", help=" File containing custom event; can be passed as stdin with -, example: -f-")] = None,
|
|
35
|
-
custom_data:
|
|
36
|
+
custom_data: Optional[List[str]] = typer.Option(None, "--custom", "-c", callback=_parse_key_value, help="List of optional custom metadata key=value pairs (only if file input not provided."),
|
|
36
37
|
description: str = typer.Option(None, "--description", "-d", help="The description of the custom data key (only if file input not provided)."),
|
|
37
38
|
title: str = typer.Option(None, "--title", "-ti", help="The title of the custome event (only if file input not provided)."),
|
|
38
39
|
tag: str = typer.Option(..., "--tag", "-t", help="The tag (x-cortex-tag) or unique, auto-generated identifier for the entity."),
|
|
@@ -81,7 +82,7 @@ def update_by_uuid(
|
|
|
81
82
|
def create(
|
|
82
83
|
ctx: typer.Context,
|
|
83
84
|
file_input: Annotated[typer.FileText, typer.Option("--file", "-f", help=" File containing custom event; can be passed as stdin with -, example: -f-")] = None,
|
|
84
|
-
custom_data:
|
|
85
|
+
custom_data: Optional[List[str]] = typer.Option(None, "--custom", "-c", callback=_parse_key_value, help="List of optional custom metadata key=value pairs (only if file input not provided."),
|
|
85
86
|
description: str = typer.Option(None, "--description", "-d", help="The description of the custom data key (only if file input not provided)."),
|
|
86
87
|
title: str = typer.Option(None, "--title", "-ti", help="The title of the custome event (only if file input not provided)."),
|
|
87
88
|
tag: str = typer.Option(..., "--tag", "-t", help="The tag (x-cortex-tag) or unique, auto-generated identifier for the entity."),
|
|
@@ -114,7 +114,6 @@ def update(
|
|
|
114
114
|
def get(
|
|
115
115
|
ctx: typer.Context,
|
|
116
116
|
entity_type: str = typer.Option(..., "--type", "-t", help="The entity type"),
|
|
117
|
-
_print: CommandOptions._print = True,
|
|
118
117
|
):
|
|
119
118
|
"""
|
|
120
119
|
Retrieve entity type
|
|
@@ -123,7 +122,4 @@ def get(
|
|
|
123
122
|
client = ctx.obj["client"]
|
|
124
123
|
|
|
125
124
|
r = client.get("api/v1/catalog/definitions/" + entity_type)
|
|
126
|
-
|
|
127
|
-
print_json(data=r)
|
|
128
|
-
else:
|
|
129
|
-
return r
|
|
125
|
+
print_json(data=r)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "cortexapps-cli"
|
|
3
3
|
# version will be incremented via command line as part of github actions build
|
|
4
|
-
version = "1.
|
|
4
|
+
version = "1.19.1"
|
|
5
5
|
description = "Command Line Interface for cortexapps"
|
|
6
6
|
license = "MIT"
|
|
7
7
|
authors = [
|
|
@@ -21,6 +21,7 @@ requests = "^2.33.0"
|
|
|
21
21
|
pyyaml = ">= 6.0.1, < 7"
|
|
22
22
|
urllib3 = ">= 2.7.0"
|
|
23
23
|
typer = ">=0.15,<1.0"
|
|
24
|
+
typing_extensions = ">=3.7.4.3"
|
|
24
25
|
|
|
25
26
|
[tool.poetry.scripts]
|
|
26
27
|
cortex = "cortexapps_cli.cli:app"
|
|
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.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/entity_relationship_types.py
RENAMED
|
File without changes
|
{cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/entity_relationships.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/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
|
|
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
|
{cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/integrations_commands/wiz.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/packages_commands/go.py
RENAMED
|
File without changes
|
{cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/packages_commands/java.py
RENAMED
|
File without changes
|
{cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/packages_commands/node.py
RENAMED
|
File without changes
|
{cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/cortexapps_cli/commands/packages_commands/nuget.py
RENAMED
|
File without changes
|
{cortexapps_cli-1.18.0 → cortexapps_cli-1.19.1}/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
|
|
File without changes
|
|
File without changes
|