cortexapps-cli 1.51.0__tar.gz → 1.52.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.51.0 → cortexapps_cli-1.52.0}/PKG-INFO +1 -1
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/backup.py +49 -3
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/custom_metrics.py +109 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-spend/README.md +1 -6
- cortexapps_cli-1.52.0/cortexapps_cli/solutions/ai-spend/custom-metric-definitions/ai-spend.json +9 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/pyproject.toml +1 -1
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/LICENSE +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/README.rst +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/__init__.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/cli.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/command_options.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/api_keys.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/audit_logs.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/backup_commands/cortex_export.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/catalog.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/catalogs.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/custom_data.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/custom_events.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/dependencies.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/deploys.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/discovery_audit.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/docs.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/entity_relationship_types.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/entity_relationships.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/entity_types.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/gitops_logs.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/groups.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/initiatives.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/apiiro.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/argocd.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/aws.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/azure_active_directory.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/azure_devops.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/azure_resources.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/bamboohr.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/bitbucket.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/bugsnag.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/buildkite.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/checkmarx_sast.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/circleci.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/clickup.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/codecov.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/coralogix.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/datadog.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/dynatrace.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/firehydrant.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/github.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/gitlab.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/harness.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/incidentio.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/instana.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/jenkins.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/jira.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/launchdarkly.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/mend_sast.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/mend_sca.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/newrelic.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/okta.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/opsgenie.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/pagerduty.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/prometheus.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/rollbar.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/rootly.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/semgrep.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/sentry.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/servicenow.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/servicenow_cloud_observability.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/snyk.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/sonarqube.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/splunk_observability_cloud.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/splunk_on_call.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/sumologic.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/veracode.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/wiz.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/workday.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/integrations_commands/xmatters.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/ip_allowlist.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/on_call.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/packages.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/packages_commands/go.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/packages_commands/java.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/packages_commands/node.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/packages_commands/nuget.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/packages_commands/python.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/plugins.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/queries.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/rest.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/scaffolders.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/scim.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/scorecards.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/scorecards_commands/exemptions.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/secrets.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/solutions.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/teams.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/users.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/users_commands/roles.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/verifications.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/verifications_commands/__init__.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/verifications_commands/entity.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/verifications_commands/periods.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/whoami.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/workflows.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/cortex_client.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/models/team.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/__init__.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/_lib/__init__.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/_lib/setup_base.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-agents/README.md +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-agents/catalog/address-reviews.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-agents/catalog/audit-flags.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-agents/catalog/code-review.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-agents/catalog/fix-issue.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-agents/catalog/incident-trends.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-agents/catalog/jira-to-kb.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-agents/catalog/release-to-sha.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-agents/catalog/search-troubleshooting-kb.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-agents/catalog/simplify-test.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-agents/catalogs/ai-agents.json +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-agents/entity-types/ai-agent.json +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-agents/scorecards/ai-agent-governance.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-skills/README.md +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-skills/catalog/api-doc-sync.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-skills/catalog/changelog-writer.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-skills/catalog/docs-generator.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-skills/catalog/docs-portal.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-skills/catalogs/ai-skills.json +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-skills/entity-relationship-types/ai-plugin-service.json +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-skills/entity-relationship-types/ai-plugin-skills.json +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-skills/entity-relationship-types/ai-skill-service.json +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-skills/entity-types/ai-plugin.json +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-skills/entity-types/ai-skill.json +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-skills/scorecards/ai-skills-quality.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-spend/.github/workflows/sync-claude-spend.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-spend/catalog/employee-alice-chen.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-spend/catalog/employee-bob-martinez.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-spend/catalog/employee-carol-kim.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-spend/catalog/employee-david-osei.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-spend/catalog/employee-emma-johnson.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-spend/catalog/team-data.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-spend/catalog/team-engineering.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-spend/catalog/team-frontend.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-spend/catalog/team-platform.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-spend/custom-metrics/ai-spend.json +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-spend/entity-relationship-types/team-member.json +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-spend/entity-types/employee.json +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-spend/plugins/team-ai-spend.json +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-spend/scorecards/ai-spend-scorecard.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-spend/scripts/sync-claude-spend.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/.github/workflows/cortex-service-version.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/README.md +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/api-gateway-3.0.1.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/api-gateway-3.1.0.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/api-gateway-3.1.1.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/api-gateway.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/auth-2.1.0.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/auth-2.1.1.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/auth-2.2.0.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/auth.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/aws-dev-us-west-2.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/billing-1.1.0.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/billing-1.2.0.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/billing.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/cart-1.0.2.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/cart.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/checkout-2.2.0.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/checkout-2.3.0.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/checkout-2.4.0.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/checkout.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/gcp-prod-us-east-1.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/gcp-prod-us-west-1.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/gcp-staging-us-east-1.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/notifications-1.0.0.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/notifications-1.0.1.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/notifications-1.1.0.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/notifications.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/order-service-2.0.1.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/order-service-2.1.0.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/order-service.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/payments-1.6.1.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/payments-1.7.0.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/payments-1.7.1.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/payments.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/release-2026-06-20.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/release-2026-07-01.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/release-2026-07-09.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/release-2026-07-10.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/search-4.0.0.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/search-4.1.0.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/search.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/user-service-1.2.0.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/user-service-1.3.0.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalog/user-service.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/catalogs/environments.json +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/entity-relationship-types/environments.json +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/entity-relationship-types/versions.json +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/entity-types/environment.json +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/entity-types/release.json +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/entity-types/service-version.json +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/workflows/create-environment.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/workflows/create-release.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/environments/workflows/trigger-github-release.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/github-actions-deploy/README.md +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/github-actions-deploy/_templates/cortex-async-callback.yml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/github-actions-deploy/_templates/cortex-deploy.yml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/github-actions-deploy/_templates/cortex-register-deploy.yml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/github-actions-deploy/_templates/github-actions-deploy.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/github-actions-deploy/catalog/github-actions-demo.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/github-actions-deploy/scorecards/deploy-health.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/github-actions-deploy/setup.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/harness-deploy/README.md +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/harness-deploy/_templates/cortex-async-callback-template.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/harness-deploy/_templates/cortex-deploy-pipeline.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/harness-deploy/_templates/cortex-record-deploy-template.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/harness-deploy/_templates/trigger-harness-deploy.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/harness-deploy/catalog/harness-demo.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/harness-deploy/scorecards/deploy-health.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/harness-deploy/setup.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/jenkins-deploy/README.md +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/jenkins-deploy/_templates/Jenkinsfile +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/jenkins-deploy/_templates/trigger-jenkins-deploy.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/jenkins-deploy/catalog/jenkins-demo.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/jenkins-deploy/scorecards/deploy-health.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/jenkins-deploy/setup.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/kubernetes-agent/README.md +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/kubernetes-agent/catalog/demo-kubernetes.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/kubernetes-agent/helm-chart/.helmignore +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/kubernetes-agent/helm-chart/Chart.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/kubernetes-agent/helm-chart/README.md +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/kubernetes-agent/helm-chart/templates/_helpers.tpl +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/kubernetes-agent/helm-chart/templates/clusterrole.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/kubernetes-agent/helm-chart/templates/clusterrolebinding.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/kubernetes-agent/helm-chart/templates/configmap.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/kubernetes-agent/helm-chart/templates/deployment.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/kubernetes-agent/helm-chart/templates/service.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/kubernetes-agent/helm-chart/templates/serviceaccount.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/kubernetes-agent/helm-chart/values.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/kubernetes-agent/manifests/cronjob.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/kubernetes-agent/manifests/deployment.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/kubernetes-agent/manifests/rollout.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/kubernetes-agent/manifests/statefulset.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/kubernetes-agent/setup.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/monorepo/README.md +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/monorepo/catalog/cli-commands.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/monorepo/catalog/cli-core.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/monorepo/catalog/cli-docker.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/monorepo/catalog/cli-solutions.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/monorepo/catalog/cli-tests.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/monorepo/scorecards/monorepo-component-health.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/monorepo/services/cli-commands/README.md +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/monorepo/services/cli-commands/cortex.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/monorepo/services/cli-commands/src/commands.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/monorepo/services/cli-core/README.md +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/monorepo/services/cli-core/cortex.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/monorepo/services/cli-core/src/cli.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/monorepo/services/cli-docker/Dockerfile +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/monorepo/services/cli-docker/README.md +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/monorepo/services/cli-docker/cortex.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/monorepo/services/cli-solutions/README.md +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/monorepo/services/cli-solutions/cortex.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/monorepo/services/cli-solutions/src/solutions.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/monorepo/services/cli-tests/README.md +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/monorepo/services/cli-tests/cortex.yaml +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/monorepo/services/cli-tests/src/test_cli.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/monorepo/setup.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/terraform/README.md +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/terraform/_templates/terraform/ecommerce.tf +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/terraform/_templates/terraform/provider.tf +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/terraform/_templates/terraform/scorecards.tf +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/terraform/_templates/terraform/supply-chain.tf +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/terraform/_templates/terraform/teams.tf +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/terraform/_templates/terraform/terraform.tfvars.example +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/terraform/_templates/terraform/variables.tf +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/terraform/_templates/terraform-delta/ecommerce.tf +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/terraform/_templates/terraform-delta/teams.tf +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/terraform/setup.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/workday/README.md +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/workday/data/configuration.json +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/workday/data/pied-piper-supervisory-org.json +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/workday/setup.py +0 -0
- {cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/utils.py +0 -0
|
@@ -220,9 +220,18 @@ def _export_catalog_pages(ctx, directory):
|
|
|
220
220
|
except Exception as e:
|
|
221
221
|
print(f"Failed to export catalog page {slug}: {e}")
|
|
222
222
|
|
|
223
|
+
def _export_custom_metric_definitions(ctx, directory):
|
|
224
|
+
directory = _directory_name(directory, "custom-metric-definitions")
|
|
225
|
+
client = ctx.obj["client"]
|
|
226
|
+
data = client.fetch("api/v1/eng-intel/custom-metrics", params={})
|
|
227
|
+
for definition in data.get("customMetrics", []):
|
|
228
|
+
key = definition["key"]
|
|
229
|
+
_file_name(directory, key, definition, "json")
|
|
230
|
+
|
|
223
231
|
backupTypes = sorted([
|
|
224
232
|
"catalog",
|
|
225
233
|
"catalogs",
|
|
234
|
+
"custom-metric-definitions",
|
|
226
235
|
"entity-relationship-types",
|
|
227
236
|
"entity-relationships",
|
|
228
237
|
"entity-types",
|
|
@@ -273,6 +282,7 @@ def export(
|
|
|
273
282
|
Exports the following objects:
|
|
274
283
|
- catalog
|
|
275
284
|
- catalogs
|
|
285
|
+
- custom-metric-definitions
|
|
276
286
|
- entity-types
|
|
277
287
|
- entity-relationship-types
|
|
278
288
|
- entity-relationships
|
|
@@ -293,7 +303,7 @@ def export(
|
|
|
293
303
|
- api-keys
|
|
294
304
|
- custom-events
|
|
295
305
|
- custom-metadata created by the public API
|
|
296
|
-
- custom-metrics
|
|
306
|
+
- custom-metrics data points (definitions are backed up; per-entity data points are not)
|
|
297
307
|
- dependencies created by the API
|
|
298
308
|
- deploys
|
|
299
309
|
- docs created by the API
|
|
@@ -312,6 +322,10 @@ def export(
|
|
|
312
322
|
_create_directory(directory)
|
|
313
323
|
if "catalog" in export_types:
|
|
314
324
|
_export_catalog(ctx, directory, catalog_types)
|
|
325
|
+
if "catalogs" in export_types:
|
|
326
|
+
_export_catalog_pages(ctx, directory)
|
|
327
|
+
if "custom-metric-definitions" in export_types:
|
|
328
|
+
_export_custom_metric_definitions(ctx, directory)
|
|
315
329
|
if "entity-types" in export_types:
|
|
316
330
|
_export_entity_types(ctx, directory)
|
|
317
331
|
if "entity-relationship-types" in export_types:
|
|
@@ -326,8 +340,6 @@ def export(
|
|
|
326
340
|
_export_scorecards(ctx, directory)
|
|
327
341
|
if "workflows" in export_types:
|
|
328
342
|
_export_workflows(ctx, directory)
|
|
329
|
-
if "catalogs" in export_types:
|
|
330
|
-
_export_catalog_pages(ctx, directory)
|
|
331
343
|
|
|
332
344
|
print("\nExport complete!")
|
|
333
345
|
print("Contents available in " + directory)
|
|
@@ -489,6 +501,33 @@ def _import_entity_relationships(ctx, directory):
|
|
|
489
501
|
|
|
490
502
|
return ("entity-relationships", len(results) - failed_count, [(fp, et, em) for rt, fp, et, em in results if et])
|
|
491
503
|
|
|
504
|
+
def _import_custom_metric_definitions(ctx, directory):
|
|
505
|
+
imported = 0
|
|
506
|
+
failed = []
|
|
507
|
+
if os.path.isdir(directory):
|
|
508
|
+
print("Processing: " + directory)
|
|
509
|
+
client = ctx.obj["client"]
|
|
510
|
+
for filename in sorted(os.listdir(directory)):
|
|
511
|
+
if not filename.endswith(".json"):
|
|
512
|
+
continue
|
|
513
|
+
file_path = os.path.join(directory, filename)
|
|
514
|
+
if not os.path.isfile(file_path):
|
|
515
|
+
continue
|
|
516
|
+
try:
|
|
517
|
+
print(" Importing: " + filename)
|
|
518
|
+
with open(file_path) as f:
|
|
519
|
+
definition = json.load(f)
|
|
520
|
+
client.post("api/v1/eng-intel/custom-metrics", data=definition)
|
|
521
|
+
imported += 1
|
|
522
|
+
except Exception as e:
|
|
523
|
+
if "409" in str(e):
|
|
524
|
+
print(f" Definition {filename} already exists, skipping")
|
|
525
|
+
imported += 1
|
|
526
|
+
else:
|
|
527
|
+
print(f" Failed: {type(e).__name__} - {str(e)}")
|
|
528
|
+
failed.append((file_path, type(e).__name__, str(e)))
|
|
529
|
+
return ("custom-metric-definitions", imported, failed)
|
|
530
|
+
|
|
492
531
|
def _import_custom_metrics(ctx, directory):
|
|
493
532
|
imported = 0
|
|
494
533
|
failed = []
|
|
@@ -846,6 +885,10 @@ def import_tenant(
|
|
|
846
885
|
):
|
|
847
886
|
"""
|
|
848
887
|
Import data into tenant
|
|
888
|
+
|
|
889
|
+
If the import directory contains a custom-metric-definitions/ subdirectory,
|
|
890
|
+
definitions are created before custom-metrics data points are imported.
|
|
891
|
+
Existing definitions (HTTP 409) are skipped silently and counted as successes.
|
|
849
892
|
"""
|
|
850
893
|
|
|
851
894
|
client = ctx.obj["client"]
|
|
@@ -857,6 +900,7 @@ def import_tenant(
|
|
|
857
900
|
all_stats.append(_import_entity_relationship_types(ctx, directory + "/entity-relationship-types"))
|
|
858
901
|
all_stats.append(_import_catalog(ctx, directory + "/catalog"))
|
|
859
902
|
all_stats.append(_import_entity_relationships(ctx, directory + "/entity-relationships"))
|
|
903
|
+
all_stats.append(_import_custom_metric_definitions(ctx, directory + "/custom-metric-definitions"))
|
|
860
904
|
all_stats.append(_import_custom_metrics(ctx, directory + "/custom-metrics"))
|
|
861
905
|
all_stats.append(_import_plugins(ctx, directory + "/plugins"))
|
|
862
906
|
all_stats.append(_import_scorecards(ctx, directory + "/scorecards"))
|
|
@@ -910,6 +954,8 @@ def import_tenant(
|
|
|
910
954
|
elif import_type == "entity-relationships":
|
|
911
955
|
# These need special handling - would need the relationship type
|
|
912
956
|
print(f"# Manual retry needed for entity-relationships: {file_path}")
|
|
957
|
+
elif import_type == "custom-metric-definitions":
|
|
958
|
+
print(f"cortex custom-metrics definition-create -f \"{file_path}\"")
|
|
913
959
|
elif import_type == "custom-metrics":
|
|
914
960
|
print(f"# Manual retry needed for custom-metrics: {file_path}")
|
|
915
961
|
elif import_type == "plugins":
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
from collections import defaultdict
|
|
2
2
|
from datetime import datetime
|
|
3
|
+
import json
|
|
3
4
|
import typer
|
|
5
|
+
from typing import Optional
|
|
4
6
|
from typing_extensions import Annotated
|
|
7
|
+
from rich import print_json
|
|
5
8
|
|
|
6
9
|
app = typer.Typer(help="Custom metrics commands")
|
|
7
10
|
|
|
@@ -131,3 +134,109 @@ def delete(
|
|
|
131
134
|
params = _convert_datetime_to_string(params)
|
|
132
135
|
|
|
133
136
|
r = client.delete("api/v1/eng-intel/custom-metrics/" + custom_metric_key + "/entity/" + tag, params=params)
|
|
137
|
+
|
|
138
|
+
@app.command()
|
|
139
|
+
def definition_create(
|
|
140
|
+
ctx: typer.Context,
|
|
141
|
+
file_input: Annotated[typer.FileText, typer.Option("--file", "-f", help="JSON file containing the metric definition; can be passed as stdin with -, example: -f-")] = None,
|
|
142
|
+
key: Optional[str] = typer.Option(None, "--key", "-k", help="Unique metric key (2-255 chars, letters/digits/hyphens, alphanumeric start/end)"),
|
|
143
|
+
name: Optional[str] = typer.Option(None, "--name", "-n", help="Display name for the metric"),
|
|
144
|
+
valence: Optional[str] = typer.Option(None, "--valence", "-V", help="Whether higher values are preferable: POSITIVE, NEGATIVE, or NEUTRAL"),
|
|
145
|
+
category: Optional[str] = typer.Option(None, "--category", "-c", help="Grouping label"),
|
|
146
|
+
description: Optional[str] = typer.Option(None, "--description", "-d", help="What the metric measures"),
|
|
147
|
+
is_draft: bool = typer.Option(False, "--is-draft", help="If true, metric accepts data but is hidden from Eng Intelligence"),
|
|
148
|
+
):
|
|
149
|
+
"""
|
|
150
|
+
Create a custom metric definition
|
|
151
|
+
"""
|
|
152
|
+
|
|
153
|
+
client = ctx.obj["client"]
|
|
154
|
+
|
|
155
|
+
if file_input:
|
|
156
|
+
data = json.loads("".join([line for line in file_input]))
|
|
157
|
+
else:
|
|
158
|
+
if not key or not name or not valence:
|
|
159
|
+
raise typer.BadParameter("--key, --name, and --valence are required when --file is not provided")
|
|
160
|
+
data = {
|
|
161
|
+
"key": key,
|
|
162
|
+
"name": name,
|
|
163
|
+
"valence": valence,
|
|
164
|
+
"category": category,
|
|
165
|
+
"description": description,
|
|
166
|
+
"isDraft": is_draft,
|
|
167
|
+
"type": "PUBLIC_API"
|
|
168
|
+
}
|
|
169
|
+
# Remove keys whose value is None
|
|
170
|
+
data = {k: v for k, v in data.items() if v is not None}
|
|
171
|
+
|
|
172
|
+
result = client.post("api/v1/eng-intel/custom-metrics", data=data)
|
|
173
|
+
print_json(data=result)
|
|
174
|
+
|
|
175
|
+
@app.command()
|
|
176
|
+
def definition_list(
|
|
177
|
+
ctx: typer.Context,
|
|
178
|
+
page: int | None = typer.Option(None, "--page", "-p", help="Page number, 0-indexed — omit to fetch all pages"),
|
|
179
|
+
page_size: int | None = typer.Option(None, "--page-size", "-z", help="Page size for results"),
|
|
180
|
+
prt: bool = typer.Option(True, "--print", help="If result should be printed to the terminal", hidden=True),
|
|
181
|
+
):
|
|
182
|
+
"""List custom metric definitions"""
|
|
183
|
+
|
|
184
|
+
client = ctx.obj["client"]
|
|
185
|
+
|
|
186
|
+
params = {}
|
|
187
|
+
if page_size is not None:
|
|
188
|
+
params["pageSize"] = page_size
|
|
189
|
+
|
|
190
|
+
client.fetch_or_get("api/v1/eng-intel/custom-metrics", page, prt, params=params)
|
|
191
|
+
|
|
192
|
+
@app.command()
|
|
193
|
+
def definition_get(
|
|
194
|
+
ctx: typer.Context,
|
|
195
|
+
key: str = typer.Option(..., "--key", "-k", help="Metric key"),
|
|
196
|
+
):
|
|
197
|
+
"""Get a custom metric definition"""
|
|
198
|
+
|
|
199
|
+
client = ctx.obj["client"]
|
|
200
|
+
|
|
201
|
+
result = client.get("api/v1/eng-intel/custom-metrics/" + key)
|
|
202
|
+
print_json(data=result)
|
|
203
|
+
|
|
204
|
+
@app.command()
|
|
205
|
+
def definition_update(
|
|
206
|
+
ctx: typer.Context,
|
|
207
|
+
key: str = typer.Option(..., "--key", "-k", help="Metric key to update"),
|
|
208
|
+
file_input: Annotated[typer.FileText, typer.Option("--file", "-f", help="JSON file with updated definition; can be passed as stdin with -, example: -f-")] = None,
|
|
209
|
+
name: Optional[str] = typer.Option(None, "--name", "-n", help="Display name for the metric"),
|
|
210
|
+
valence: Optional[str] = typer.Option(None, "--valence", "-V", help="POSITIVE, NEGATIVE, or NEUTRAL"),
|
|
211
|
+
category: Optional[str] = typer.Option(None, "--category", "-c", help="Grouping label"),
|
|
212
|
+
description: Optional[str] = typer.Option(None, "--description", "-d", help="What the metric measures"),
|
|
213
|
+
):
|
|
214
|
+
"""Update a custom metric definition"""
|
|
215
|
+
|
|
216
|
+
client = ctx.obj["client"]
|
|
217
|
+
|
|
218
|
+
if file_input:
|
|
219
|
+
data = json.loads("".join([line for line in file_input]))
|
|
220
|
+
else:
|
|
221
|
+
data = {
|
|
222
|
+
"name": name,
|
|
223
|
+
"valence": valence,
|
|
224
|
+
"category": category,
|
|
225
|
+
"description": description,
|
|
226
|
+
}
|
|
227
|
+
# Strip None-valued keys
|
|
228
|
+
data = {k: v for k, v in data.items() if v is not None}
|
|
229
|
+
|
|
230
|
+
result = client.put("api/v1/eng-intel/custom-metrics/" + key, data=data)
|
|
231
|
+
print_json(data=result)
|
|
232
|
+
|
|
233
|
+
@app.command()
|
|
234
|
+
def definition_delete(
|
|
235
|
+
ctx: typer.Context,
|
|
236
|
+
key: str = typer.Option(..., "--key", "-k", help="Metric key to delete"),
|
|
237
|
+
):
|
|
238
|
+
"""Delete a custom metric definition"""
|
|
239
|
+
|
|
240
|
+
client = ctx.obj["client"]
|
|
241
|
+
|
|
242
|
+
client.delete("api/v1/eng-intel/custom-metrics/" + key)
|
|
@@ -65,11 +65,6 @@ Register every employee as a Cortex entity linked to their team, push weekly Cla
|
|
|
65
65
|
| Sync script | `scripts/sync-claude-spend.py` |
|
|
66
66
|
| GH Actions workflow | `.github/workflows/sync-claude-spend.yaml` |
|
|
67
67
|
|
|
68
|
-
## Prerequisites
|
|
69
|
-
|
|
70
|
-
Before installing, create the `ai-spend` custom metric definition in your Cortex instance:
|
|
71
|
-
**Eng Intel → Custom Metrics → New Metric**, key: `ai-spend`.
|
|
72
|
-
|
|
73
68
|
## Installation
|
|
74
69
|
|
|
75
70
|
```
|
|
@@ -161,5 +156,5 @@ The sample entities are fictional. Add your real employees as catalog entities w
|
|
|
161
156
|
|
|
162
157
|
- Users who authenticate Claude Code with a personal API key (not Enterprise OAuth) show $0 spend in the Analytics API and are skipped automatically.
|
|
163
158
|
- Cost data may take up to 24 hours to appear; dates at least 30 days old are considered final for billing purposes.
|
|
164
|
-
- The `ai-spend` custom metric definition
|
|
159
|
+
- The `ai-spend` custom metric definition is installed automatically via `custom-metric-definitions/ai-spend.json` when you run `cortex solutions install -s ai-spend`.
|
|
165
160
|
- The scorecard's Bronze rule uses a `P1Y` lookback to accommodate sample data. Once your weekly sync is running consistently, consider tightening it to `P8D` to ensure the rule only passes when data is fresh. The Silver and Gold rules use `P8D` and can similarly be adjusted to match your sync frequency.
|
|
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.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/entity_relationship_types.py
RENAMED
|
File without changes
|
{cortexapps_cli-1.51.0 → cortexapps_cli-1.52.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
|
|
File without changes
|
|
File without changes
|
{cortexapps_cli-1.51.0 → cortexapps_cli-1.52.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
|
|
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.51.0 → cortexapps_cli-1.52.0}/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.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/packages_commands/go.py
RENAMED
|
File without changes
|
{cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/packages_commands/java.py
RENAMED
|
File without changes
|
{cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/packages_commands/node.py
RENAMED
|
File without changes
|
{cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/packages_commands/nuget.py
RENAMED
|
File without changes
|
{cortexapps_cli-1.51.0 → cortexapps_cli-1.52.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
|
{cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/commands/users_commands/roles.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
|
{cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-agents/README.md
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
|
{cortexapps_cli-1.51.0 → cortexapps_cli-1.52.0}/cortexapps_cli/solutions/ai-skills/README.md
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
|