cortexapps-cli 1.21.0__tar.gz → 1.21.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.21.0 → cortexapps_cli-1.21.1}/PKG-INFO +1 -1
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/deploys.py +3 -3
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/pyproject.toml +1 -1
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/LICENSE +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/README.rst +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/__init__.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/cli.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/command_options.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/api_keys.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/audit_logs.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/backup.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/backup_commands/cortex_export.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/catalog.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/custom_data.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/custom_events.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/custom_metrics.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/dependencies.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/discovery_audit.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/docs.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/entity_relationship_types.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/entity_relationships.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/entity_types.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/gitops_logs.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/groups.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/initiatives.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/apiiro.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/argocd.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/aws.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/azure_active_directory.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/azure_devops.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/azure_resources.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/bamboohr.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/bitbucket.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/bugsnag.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/buildkite.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/checkmarx_sast.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/circleci.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/clickup.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/codecov.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/coralogix.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/datadog.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/dynatrace.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/firehydrant.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/github.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/gitlab.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/incidentio.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/instana.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/jenkins.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/jira.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/launchdarkly.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/mend_sast.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/mend_sca.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/newrelic.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/okta.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/opsgenie.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/pagerduty.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/prometheus.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/rollbar.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/rootly.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/semgrep.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/sentry.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/servicenow.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/servicenow_cloud_observability.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/snyk.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/sonarqube.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/splunk_observability_cloud.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/splunk_on_call.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/sumologic.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/veracode.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/wiz.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/workday.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/integrations_commands/xmatters.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/ip_allowlist.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/on_call.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/packages.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/packages_commands/go.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/packages_commands/java.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/packages_commands/node.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/packages_commands/nuget.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/packages_commands/python.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/plugins.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/queries.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/rest.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/scim.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/scorecards.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/scorecards_commands/exemptions.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/secrets.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/teams.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/users.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/users_commands/roles.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/workflows.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/cortex_client.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/models/team.py +0 -0
- {cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/utils.py +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from collections import defaultdict
|
|
2
|
-
from datetime import datetime
|
|
2
|
+
from datetime import datetime, timezone
|
|
3
3
|
from enum import Enum
|
|
4
4
|
import json
|
|
5
5
|
from rich import print_json
|
|
@@ -168,7 +168,7 @@ def add(
|
|
|
168
168
|
|
|
169
169
|
if customData:
|
|
170
170
|
data["customData"] = dict(customData)
|
|
171
|
-
data["timestamp"] = data["timestamp"].strftime('%Y-%m-%dT%H:%M:%SZ')
|
|
171
|
+
data["timestamp"] = data["timestamp"].astimezone(timezone.utc).strftime('%Y-%m-%dT%H:%M:%SZ')
|
|
172
172
|
|
|
173
173
|
r = client.post("api/v1/catalog/" + tag + "/deploys", data=data)
|
|
174
174
|
print_json(data=r)
|
|
@@ -236,7 +236,7 @@ def update_by_uuid(
|
|
|
236
236
|
data["deployer"]["email"] = email
|
|
237
237
|
if name:
|
|
238
238
|
data["deployer"]["name"] = name
|
|
239
|
-
data["timestamp"] = data["timestamp"].strftime('%Y-%m-%dT%H:%M:%SZ')
|
|
239
|
+
data["timestamp"] = data["timestamp"].astimezone(timezone.utc).strftime('%Y-%m-%dT%H:%M:%SZ')
|
|
240
240
|
|
|
241
241
|
r = client.put("api/v1/catalog/" + tag + "/deploys/" + uuid, data=data)
|
|
242
242
|
print_json(data=r)
|
|
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.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/entity_relationship_types.py
RENAMED
|
File without changes
|
{cortexapps_cli-1.21.0 → cortexapps_cli-1.21.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
|
|
File without changes
|
{cortexapps_cli-1.21.0 → cortexapps_cli-1.21.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.21.0 → cortexapps_cli-1.21.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.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/packages_commands/go.py
RENAMED
|
File without changes
|
{cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/packages_commands/java.py
RENAMED
|
File without changes
|
{cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/packages_commands/node.py
RENAMED
|
File without changes
|
{cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/packages_commands/nuget.py
RENAMED
|
File without changes
|
{cortexapps_cli-1.21.0 → cortexapps_cli-1.21.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
|
{cortexapps_cli-1.21.0 → cortexapps_cli-1.21.1}/cortexapps_cli/commands/users_commands/roles.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|