cortexapps-cli 1.10.0__tar.gz → 1.14.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.10.0 → cortexapps_cli-1.14.0}/PKG-INFO +2 -2
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/cortex_client.py +7 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/pyproject.toml +2 -2
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/LICENSE +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/README.rst +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/cli.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/command_options.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/api_keys.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/audit_logs.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/backup.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/backup_commands/cortex_export.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/catalog.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/custom_data.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/custom_events.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/custom_metrics.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/dependencies.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/deploys.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/discovery_audit.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/docs.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/entity_relationship_types.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/entity_relationships.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/entity_types.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/gitops_logs.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/groups.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/initiatives.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/integrations.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/integrations_commands/aws.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/integrations_commands/azure_devops.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/integrations_commands/azure_resources.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/integrations_commands/circleci.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/integrations_commands/coralogix.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/integrations_commands/datadog.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/integrations_commands/github.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/integrations_commands/gitlab.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/integrations_commands/incidentio.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/integrations_commands/launchdarkly.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/integrations_commands/newrelic.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/integrations_commands/pagerduty.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/integrations_commands/prometheus.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/integrations_commands/sonarqube.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/ip_allowlist.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/on_call.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/packages.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/packages_commands/go.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/packages_commands/java.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/packages_commands/node.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/packages_commands/nuget.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/packages_commands/python.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/plugins.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/queries.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/rest.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/scim.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/scorecards.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/scorecards_commands/exemptions.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/secrets.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/teams.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/workflows.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/models/team.py +0 -0
- {cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/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.14.0
|
|
4
4
|
Summary: Command Line Interface for cortexapps
|
|
5
5
|
License: MIT
|
|
6
6
|
License-File: LICENSE
|
|
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.14
|
|
17
17
|
Requires-Dist: click (<8.2)
|
|
18
18
|
Requires-Dist: pyyaml (>=6.0.1,<7)
|
|
19
|
-
Requires-Dist: requests (>=2.
|
|
19
|
+
Requires-Dist: requests (>=2.33.0,<3.0.0)
|
|
20
20
|
Requires-Dist: typer (>=0.12.5,<0.13.0)
|
|
21
21
|
Requires-Dist: urllib3 (>=2.6.0)
|
|
22
22
|
Project-URL: Bug Tracker, https://github.com/cortexapps/cli/issues
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import importlib.metadata
|
|
1
2
|
import requests
|
|
2
3
|
from requests.adapters import HTTPAdapter
|
|
3
4
|
from urllib3.util.retry import Retry
|
|
@@ -71,6 +72,11 @@ class CortexClient:
|
|
|
71
72
|
self.tenant = tenant
|
|
72
73
|
self.base_url = base_url
|
|
73
74
|
|
|
75
|
+
try:
|
|
76
|
+
self.version = importlib.metadata.version('cortexapps_cli')
|
|
77
|
+
except importlib.metadata.PackageNotFoundError:
|
|
78
|
+
self.version = 'unknown'
|
|
79
|
+
|
|
74
80
|
logging.basicConfig(level=numeric_level)
|
|
75
81
|
self.logger = logging.getLogger(__name__)
|
|
76
82
|
|
|
@@ -110,6 +116,7 @@ class CortexClient:
|
|
|
110
116
|
req_headers = {
|
|
111
117
|
'Authorization': f'Bearer {self.api_key}',
|
|
112
118
|
'Content-Type': content_type,
|
|
119
|
+
'User-Agent': f'cortexapps-cli/{self.version}',
|
|
113
120
|
**headers
|
|
114
121
|
}
|
|
115
122
|
url = '/'.join([self.base_url.rstrip('/'), endpoint.lstrip('/')])
|
|
@@ -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.14.0"
|
|
5
5
|
description = "Command Line Interface for cortexapps"
|
|
6
6
|
license = "MIT"
|
|
7
7
|
authors = [
|
|
@@ -17,7 +17,7 @@ classifiers = [
|
|
|
17
17
|
|
|
18
18
|
[tool.poetry.dependencies]
|
|
19
19
|
python = "^3.11"
|
|
20
|
-
requests = "^2.
|
|
20
|
+
requests = "^2.33.0"
|
|
21
21
|
pyyaml = ">= 6.0.1, < 7"
|
|
22
22
|
urllib3 = ">= 2.6.0"
|
|
23
23
|
typer = "^0.12.5"
|
|
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.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/entity_relationship_types.py
RENAMED
|
File without changes
|
{cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/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
|
{cortexapps_cli-1.10.0 → cortexapps_cli-1.14.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.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/packages_commands/go.py
RENAMED
|
File without changes
|
{cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/packages_commands/java.py
RENAMED
|
File without changes
|
{cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/packages_commands/node.py
RENAMED
|
File without changes
|
{cortexapps_cli-1.10.0 → cortexapps_cli-1.14.0}/cortexapps_cli/commands/packages_commands/nuget.py
RENAMED
|
File without changes
|
{cortexapps_cli-1.10.0 → cortexapps_cli-1.14.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
|
|
File without changes
|