diff --git a/GITALY_SERVER_VERSION b/GITALY_SERVER_VERSION index e6d9d1fa8c5..a7bfedf4e61 100644 --- a/GITALY_SERVER_VERSION +++ b/GITALY_SERVER_VERSION @@ -1 +1 @@ -57048c3d003ebf72ba8342a03b2f6d510193e49e +36aaf4e475fdcc4ae89f14772662fa89125d7716 diff --git a/app/models/ci/secure_file.rb b/app/models/ci/secure_file.rb index 18f0093ea41..47af0e14142 100644 --- a/app/models/ci/secure_file.rb +++ b/app/models/ci/secure_file.rb @@ -11,10 +11,13 @@ module Ci self.limit_scope = :project self.limit_name = 'project_ci_secure_files' + attr_accessor :file_checksum + belongs_to :project, optional: false validates :file, presence: true, file_size: { maximum: FILE_SIZE_LIMIT } validates :checksum, :file_store, :name, :permissions, :project_id, presence: true + validate :validate_upload_checksum, on: :create before_validation :assign_checksum @@ -33,5 +36,11 @@ module Ci def assign_checksum self.checksum = file.checksum if file.present? && file_changed? end + + def validate_upload_checksum + unless self.file_checksum.nil? + errors.add(:file_checksum, _("Secure Files|File did not match the provided checksum")) unless self.file_checksum == self.checksum + end + end end end diff --git a/doc/administration/packages/index.md b/doc/administration/packages/index.md index abf5c46114b..b122cb9db90 100644 --- a/doc/administration/packages/index.md +++ b/doc/administration/packages/index.md @@ -10,9 +10,7 @@ GitLab Packages allows organizations to use GitLab as a private repository for a variety of common package managers. Users are able to build and publish packages, which can be easily consumed as a dependency in downstream projects. -The Packages feature allows GitLab to act as a repository for the following: - -The Package Registry supports the following formats: +The Packages feature allows GitLab to act as a repository and supports the following formats: | Package type | GitLab version | |-------------------------------------------------------------------|----------------| diff --git a/doc/api/secure_files.md b/doc/api/secure_files.md index 96190920a33..826a5de3489 100644 --- a/doc/api/secure_files.md +++ b/doc/api/secure_files.md @@ -101,12 +101,13 @@ POST /projects/:project_id/secure_files Supported attributes: -| Attribute | Type | Required | Description | -|---------------|----------------|------------------------|-------------| -| `project_id` | integer/string | **{check-circle}** Yes | The ID or [URL-encoded path of the project](index.md#namespaced-path-encoding) owned by the authenticated user. | -| `name` | string | **{check-circle}** Yes | The `name` of the file being uploaded. | -| `file` | file | **{check-circle}** Yes | The `file` being uploaded. | -| `permissions` | string | **{dotted-circle}** No | The file is created with the specified permissions when created in the CI/CD job. Available types are: `read_only` (default), `read_write`, and `execute`. | +| Attribute | Type | Required | Description | +|-----------------|----------------|------------------------|-------------| +| `project_id` | integer/string | **{check-circle}** Yes | The ID or [URL-encoded path of the project](index.md#namespaced-path-encoding) owned by the authenticated user. | +| `name` | string | **{check-circle}** Yes | The `name` of the file being uploaded. | +| `file` | file | **{check-circle}** Yes | The `file` being uploaded. | +| `file_checksum` | file | **{dotted-circle}** No | An optional sha256 checksum of the file to be uploaded. If provided, the checksum must match the uploaded file, or the upload will fail to validate. [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/355653) in GitLab 14.10. | +| `permissions` | string | **{dotted-circle}** No | The file is created with the specified permissions when created in the CI/CD job. Available types are: `read_only` (default), `read_write`, and `execute`. | Example request: diff --git a/doc/tutorials/how_git_works.md b/doc/tutorials/how_git_works.md new file mode 100644 index 00000000000..8ca9af5f83e --- /dev/null +++ b/doc/tutorials/how_git_works.md @@ -0,0 +1,267 @@ +--- +stage: none +group: unassigned +info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments +--- + +# Make your first Git commit + +This tutorial is going to teach you a little bit about how Git works, and walk +you through the steps of creating your own project and editing a file. + +When you're done, you'll have a project where you can practice using Git. + +## What you need + +Before you begin: + +- [Install Git on your local machine](../topics/git/how_to_install_git/index.md). +- Ensure you can sign in to an instance of GitLab. If your organization doesn't + have GitLab, create an account on GitLab.com. +- [Create SSH keys and add them to GitLab](../ssh/index.md). SSH keys are how you + securely communicate between your computer and GitLab. + +## What is Git? + +Before we jump into steps, let's go over some basic Git concepts. + +Git is a version control system. It's used to track changes to files. + +You store files, like code or documents, in a Git *repository*. When you want to edit the files, you +*clone* the repository to your computer, make the changes, and *push* your changes +back to the repository. In GitLab, a Git repository is located in +a *project*. + +Each time you push a change, Git records it as a unique *commit*. These commits make up +the history of when and how a file changed, and who changed it. + +```mermaid +graph LR + subgraph Repository commit history + A(Author: Alex
Date: 3 Jan at 1PM
Commit message: Added sales figures for January
Commit ID: 123abc12) ---> B + B(Author: Sam
Date: 4 Jan at 10AM
Commit message: Removed outdated marketing information
Commit ID: aabb1122) ---> C + C(Author: Zhang
Date: 5 Jan at 3PM
Commit message: Added a new 'Invoices' file
Commit ID: ddee4455) + end +``` + +When you work in a Git repository, you work in *branches*. By default, the contents +of a repository are in a default branch. To make changes, you: + +1. Create your own branch, which is a snapshot of the default branch at the time + you create it. +1. Make changes and push them to your branch. Each push creates a commit. +1. When you're ready, *merge* your branch into the default branch. + +```mermaid +flowchart LR + subgraph Default branch + A[Commit] --> B[Commit] --> C[Commit] --> D[Commit] + end + subgraph My branch + B --1. Create my branch--> E(Commit) + E --2. Add my commit--> F(Commit) + F --2. Add my commit--> G(Commit) + G --3. Merge my branch to default--> D + end +``` + +If this all feels a bit overwhelming, hang in there. You're about to see these concepts in action. + +## Steps + +Here's an overview of what we're going to do: + +1. [Create a sample project](#create-a-sample-project). +1. [Clone the repository](#clone-the-repository). +1. [Create a branch and make your changes](#create-a-branch-and-make-changes). +1. [Commit and push your changes](#commit-and-push-your-changes). +1. [Merge your changes](#merge-your-changes). +1. [View your changes in GitLab](#view-your-changes-in-gitlab). + +### Create a sample project + +To start, create a sample project in GitLab. + +1. In GitLab, on the top bar, select **Menu > Projects > Create new project**. +1. Select **Create blank project**. +1. For **Project name**, enter `My sample project`. The project slug is generated for you. + This slug is the URL you can use to access the project after it's created. +1. Ensure **Initialize repository with a README** is selected. + How you complete the other fields is up to you. +1. Select **Create project**. + +### Clone the repository + +Now you can clone the repository in your project. *Cloning* a repository means you're creating +a copy on your computer, or wherever you want to store and work with the files. + +1. On your project page, select **Clone**. Copy the URL for **Clone with SSH**. + + ![Clone a project with SSH](img/clone_project_v14_9.png) + +1. Open a terminal on your computer and go to the directory + where you want to clone the files. + +1. Enter `git clone` and paste the URL: + + ```shell + git clone git@gitlab.com:gitlab-example/my-sample-project.git + ``` + +1. Go to the directory: + + ```shell + cd my-sample-project + ``` + +1. By default, you've cloned the default branch for the repository. Usually this + branch is `main`. To be sure, get the name of the default branch: + + ```shell + git branch + ``` + + The branch you're on is marked with an asterisk. + Press `Q` on your keyboard to return to the main terminal + window. + +### Create a branch and make changes + +Now that you have a copy of the repository, create your own branch so you can +work on your changes independently. + +1. Create a new branch called `example-tutorial-branch`. + + ```shell + git checkout -b example-tutorial-branch + ``` + +1. In a text editor like Visual Studio Code, Sublime, `vi`, or any other editor, + open the README.md file and add this text: + + ```plaintext + Hello world! I'm using Git! + ``` + +1. Save the file. + +1. Git keeps track of changed files. To confirm which files have changed, get + the status. + + ```shell + git status + ``` + + You should get output similar to the following: + + ```shell + On branch example-tutorial-branch + Changes not staged for commit: + (use "git add ..." to update what will be committed) + (use "git restore ..." to discard changes in working directory) + modified: README.md + + no changes added to commit (use "git add" and/or "git commit -a") + ``` + +### Commit and push your changes + +You've made changes to a file in your repository. Now it's time to record +those changes by making your first commit. + +1. Add the `README.md` file to the *staging* area. The staging area is where you + put files before you commit them. + + ```shell + git add README.md + ``` + +1. Confirm the file is staged: + + ```shell + git status + ``` + + You should get output similar to the following, and the filename should be in + green text. + + ```shell + On branch example-tutorial-branch + Changes to be committed: + (use "git restore --staged ..." to unstage) + modified: README.md + ``` + +1. Now commit the staged file, and include a message + that describes the change you made. Make sure you surround the message in double + quotes ("). + + ```shell + git commit -m "I added text to the README file" + ``` + +1. The change has been committed to your branch, but your branch and its commits + are still only available on your computer. No one else has access to them yet. + Push your branch to GitLab: + + ```shell + git push origin example-tutorial-branch + ``` + +Your branch is now available on GitLab and visible to other users in your project. + +![Branches dropdown list](img/branches_dropdown_v14_10.png) + +### Merge your changes + +Now you're ready to merge the changes from your `example-tutorial-branch` branch +to the default branch (`main`). + +1. Check out the default branch for your repository. + + ```shell + git checkout main + ``` + +1. Merge your branch into the default branch. + + ```shell + git merge example-tutorial-branch + ``` + +1. Push the changes. + + ```shell + git push + ``` + +NOTE: +For this tutorial, you merge your branch directly to the default branch for your +repository. In GitLab, you typically use a [merge request](../user/project/merge_requests/) +to merge your branch. + +### View your changes in GitLab + +You did it! You updated the `README.md` file in your branch, and you merged those changes +into the `main` branch. + +Let's look in the UI and confirm it. + +1. In your project, scroll down and view the `README.md` file. + Your changes should be visible. +1. Above the list of files, select **History**. + Your commit and commit message should display. + +Now you can change back to your personal branch (`git checkout example-tutorial-branch`) +and continue updating or even creating files. Type `git status` to view the status +of your changes and commit with abandon. + +Don't worry if you mess things up. Everything in Git can be reverted, and if you +find you can't recover, you can always create a new branch and start again. + +Nice work. + +## Find more Git learning resources + +- Get a complete introduction to Git in the [Git for GitLab](https://www.youtube.com/watch?v=4lxvVj7wlZw) beginner's course (1h 33m). +- Find other tutorials about Git and GitLab on the [tutorials page](index.md). diff --git a/doc/tutorials/img/branches_dropdown_v14_10.png b/doc/tutorials/img/branches_dropdown_v14_10.png new file mode 100644 index 00000000000..9d132c2a11d Binary files /dev/null and b/doc/tutorials/img/branches_dropdown_v14_10.png differ diff --git a/doc/tutorials/img/clone_project_v14_9.png b/doc/tutorials/img/clone_project_v14_9.png new file mode 100644 index 00000000000..98666c95ba3 Binary files /dev/null and b/doc/tutorials/img/clone_project_v14_9.png differ diff --git a/lib/api/ci/secure_files.rb b/lib/api/ci/secure_files.rb index d5b21e2ef29..f0712ca30f8 100644 --- a/lib/api/ci/secure_files.rb +++ b/lib/api/ci/secure_files.rb @@ -62,12 +62,14 @@ module API requires :name, type: String, desc: 'The name of the file' requires :file, types: [Rack::Multipart::UploadedFile, ::API::Validations::Types::WorkhorseFile], desc: 'The secure file to be uploaded' optional :permissions, type: String, desc: 'The file permissions', default: 'read_only', values: %w[read_only read_write execute] + optional :file_checksum, type: String, desc: 'An optional sha256 checksum of the file to be uploaded' end route_setting :authentication, basic_auth_personal_access_token: true, job_token_allowed: true post ':id/secure_files' do secure_file = user_project.secure_files.new( name: params[:name], - permissions: params[:permissions] || :read_only + permissions: params[:permissions] || :read_only, + file_checksum: params[:file_checksum] ) secure_file.file = params[:file] diff --git a/lib/gitlab/usage_data_queries.rb b/lib/gitlab/usage_data_queries.rb index 54c130060e0..d40ac71afc6 100644 --- a/lib/gitlab/usage_data_queries.rb +++ b/lib/gitlab/usage_data_queries.rb @@ -50,7 +50,7 @@ module Gitlab def alt_usage_data(value = nil, fallback: FALLBACK, &block) if block_given? - { alt_usage_data_block: "non-SQL usage data block" } + { alt_usage_data_block: block.to_s } else { alt_usage_data_value: value } end @@ -58,9 +58,9 @@ module Gitlab def redis_usage_data(counter = nil, &block) if block_given? - { redis_usage_data_block: "non-SQL usage data block" } + { redis_usage_data_block: block.to_s } elsif counter.present? - { redis_usage_data_counter: counter.to_s } + { redis_usage_data_counter: counter } end end @@ -74,15 +74,6 @@ module Gitlab def epics_deepest_relationship_level { epics_deepest_relationship_level: 0 } end - - # Do not include Devise omniauth providers for consistency between local and CI-run specs - def auth_providers - AuthenticationEvent::STATIC_PROVIDERS - end - - def omniauth_provider_names - [] - end end end end diff --git a/lib/tasks/gitlab/usage_data.rake b/lib/tasks/gitlab/usage_data.rake index 6cd1f45f7dc..9f064ef4c0c 100644 --- a/lib/tasks/gitlab/usage_data.rake +++ b/lib/tasks/gitlab/usage_data.rake @@ -51,17 +51,6 @@ namespace :gitlab do File.write(Gitlab::UsageDataCounters::CiTemplateUniqueCounter::KNOWN_EVENTS_FILE_PATH, banner + YAML.dump(all_includes).gsub(/ *$/m, '')) end - desc 'GitLab | UsageDataMetrics | Generate raw SQL metrics queries fixture for RSpec' - task generate_sql_metrics_fixture: :environment do - path = Rails.root.join('spec/fixtures/lib/gitlab/usage/sql_metrics_queries.json') - - queries = Timecop.freeze(2021, 1, 1) do - Gitlab::Usage::ServicePingReport.for(output: :metrics_queries) - end - - File.write(path, Gitlab::Json.pretty_generate(queries)) - end - def ci_template_includes_hash(source, template_directory = nil) Gitlab::UsageDataCounters::CiTemplateUniqueCounter.ci_templates("lib/gitlab/ci/templates/#{template_directory}").map do |template| expanded_template_name = Gitlab::UsageDataCounters::CiTemplateUniqueCounter.expand_template_name("#{template_directory}/#{template}") diff --git a/locale/gitlab.pot b/locale/gitlab.pot index 3dd57a94315..00cb4029660 100644 --- a/locale/gitlab.pot +++ b/locale/gitlab.pot @@ -32856,6 +32856,9 @@ msgstr "" msgid "Secure Files" msgstr "" +msgid "Secure Files|File did not match the provided checksum" +msgstr "" + msgid "Secure token that identifies an external storage request." msgstr "" diff --git a/spec/fixtures/lib/gitlab/usage/sql_metrics_queries.json b/spec/fixtures/lib/gitlab/usage/sql_metrics_queries.json deleted file mode 100644 index 21eb39b1813..00000000000 --- a/spec/fixtures/lib/gitlab/usage/sql_metrics_queries.json +++ /dev/null @@ -1,2209 +0,0 @@ -{ - "recorded_at": "2021-01-01 00:00:00 UTC", - "uuid": "d78a1ca1-e25b-4bc8-92ad-be3caf9673da", - "hostname": "localhost", - "version": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "installation_type": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "active_user_count": "SELECT COUNT(\"users\".\"id\") FROM \"users\" WHERE (\"users\".\"state\" IN ('active')) AND (\"users\".\"user_type\" IS NULL OR \"users\".\"user_type\" IN (6, 4))", - "edition": "EE Free", - "license": { - }, - "settings": { - "ldap_encrypted_secrets_enabled": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "smtp_encrypted_secrets_enabled": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "operating_system": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "gitaly_apdex": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "collected_data_categories": [ - "standard", - "subscription", - "operational", - "optional" - ], - "service_ping_features_enabled": false, - "snowplow_enabled": false, - "snowplow_configured_to_gitlab_collector": false, - "certificate_based_clusters_ff": true - }, - "counts": { - "assignee_lists": "SELECT COUNT(\"lists\".\"id\") FROM \"lists\" WHERE \"lists\".\"list_type\" = 3", - "ci_builds": "SELECT COUNT(\"ci_builds\".\"id\") FROM \"ci_builds\" WHERE \"ci_builds\".\"type\" = 'Ci::Build'", - "ci_internal_pipelines": "SELECT COUNT(\"ci_pipelines\".\"id\") FROM \"ci_pipelines\" WHERE (\"ci_pipelines\".\"source\" IN (1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15) OR \"ci_pipelines\".\"source\" IS NULL)", - "ci_external_pipelines": "SELECT COUNT(\"ci_pipelines\".\"id\") FROM \"ci_pipelines\" WHERE \"ci_pipelines\".\"source\" = 6", - "ci_pipeline_config_auto_devops": "SELECT COUNT(\"ci_pipelines\".\"id\") FROM \"ci_pipelines\" WHERE \"ci_pipelines\".\"config_source\" = 2", - "ci_pipeline_config_repository": "SELECT COUNT(\"ci_pipelines\".\"id\") FROM \"ci_pipelines\" WHERE \"ci_pipelines\".\"config_source\" = 1", - "ci_triggers": "SELECT COUNT(\"ci_triggers\".\"id\") FROM \"ci_triggers\"", - "ci_pipeline_schedules": "SELECT COUNT(\"ci_pipeline_schedules\".\"id\") FROM \"ci_pipeline_schedules\"", - "auto_devops_enabled": "SELECT COUNT(\"project_auto_devops\".\"id\") FROM \"project_auto_devops\" WHERE \"project_auto_devops\".\"enabled\" = TRUE", - "auto_devops_disabled": "SELECT COUNT(\"project_auto_devops\".\"id\") FROM \"project_auto_devops\" WHERE \"project_auto_devops\".\"enabled\" = FALSE", - "deploy_keys": "SELECT COUNT(\"keys\".\"id\") FROM \"keys\" WHERE \"keys\".\"type\" = 'DeployKey'", - "deployments": "SELECT COUNT(\"deployments\".\"id\") FROM \"deployments\"", - "successful_deployments": "SELECT COUNT(\"deployments\".\"id\") FROM \"deployments\" WHERE \"deployments\".\"status\" = 2", - "failed_deployments": "SELECT COUNT(\"deployments\".\"id\") FROM \"deployments\" WHERE \"deployments\".\"status\" = 3", - "feature_flags": "SELECT COUNT(\"operations_feature_flags\".\"id\") FROM \"operations_feature_flags\"", - "environments": "SELECT COUNT(\"environments\".\"id\") FROM \"environments\"", - "clusters": "SELECT COUNT(\"clusters\".\"id\") FROM \"clusters\"", - "clusters_enabled": "SELECT COUNT(\"clusters\".\"id\") FROM \"clusters\" WHERE \"clusters\".\"enabled\" = TRUE", - "project_clusters_enabled": "SELECT COUNT(\"clusters\".\"id\") FROM \"clusters\" WHERE \"clusters\".\"enabled\" = TRUE AND \"clusters\".\"cluster_type\" = 3", - "group_clusters_enabled": "SELECT COUNT(\"clusters\".\"id\") FROM \"clusters\" WHERE \"clusters\".\"enabled\" = TRUE AND \"clusters\".\"cluster_type\" = 2", - "instance_clusters_enabled": "SELECT COUNT(\"clusters\".\"id\") FROM \"clusters\" WHERE \"clusters\".\"enabled\" = TRUE AND \"clusters\".\"cluster_type\" = 1", - "clusters_disabled": "SELECT COUNT(\"clusters\".\"id\") FROM \"clusters\" WHERE \"clusters\".\"enabled\" = FALSE", - "project_clusters_disabled": "SELECT COUNT(\"clusters\".\"id\") FROM \"clusters\" WHERE \"clusters\".\"enabled\" = FALSE AND \"clusters\".\"cluster_type\" = 3", - "group_clusters_disabled": "SELECT COUNT(\"clusters\".\"id\") FROM \"clusters\" WHERE \"clusters\".\"enabled\" = FALSE AND \"clusters\".\"cluster_type\" = 2", - "instance_clusters_disabled": "SELECT COUNT(\"clusters\".\"id\") FROM \"clusters\" WHERE \"clusters\".\"enabled\" = FALSE AND \"clusters\".\"cluster_type\" = 1", - "clusters_platforms_eks": "SELECT COUNT(\"clusters\".\"id\") FROM \"clusters\" INNER JOIN \"cluster_providers_aws\" ON \"cluster_providers_aws\".\"cluster_id\" = \"clusters\".\"id\" WHERE \"clusters\".\"provider_type\" = 2 AND (\"cluster_providers_aws\".\"status\" IN (3)) AND \"clusters\".\"enabled\" = TRUE", - "clusters_platforms_gke": "SELECT COUNT(\"clusters\".\"id\") FROM \"clusters\" INNER JOIN \"cluster_providers_gcp\" ON \"cluster_providers_gcp\".\"cluster_id\" = \"clusters\".\"id\" WHERE \"clusters\".\"provider_type\" = 1 AND (\"cluster_providers_gcp\".\"status\" IN (3)) AND \"clusters\".\"enabled\" = TRUE", - "clusters_platforms_user": "SELECT COUNT(\"clusters\".\"id\") FROM \"clusters\" WHERE \"clusters\".\"provider_type\" = 0 AND \"clusters\".\"enabled\" = TRUE", - "clusters_management_project": "SELECT COUNT(\"clusters\".\"id\") FROM \"clusters\" WHERE \"clusters\".\"management_project_id\" IS NOT NULL", - "clusters_integrations_elastic_stack": "SELECT COUNT(\"clusters_integration_elasticstack\".\"cluster_id\") FROM \"clusters_integration_elasticstack\" WHERE \"clusters_integration_elasticstack\".\"enabled\" = TRUE", - "clusters_integrations_prometheus": "SELECT COUNT(\"clusters_integration_prometheus\".\"cluster_id\") FROM \"clusters_integration_prometheus\" WHERE \"clusters_integration_prometheus\".\"enabled\" = TRUE", - "kubernetes_agents": "SELECT COUNT(\"cluster_agents\".\"id\") FROM \"cluster_agents\"", - "kubernetes_agents_with_token": "SELECT COUNT(DISTINCT \"cluster_agent_tokens\".\"agent_id\") FROM \"cluster_agent_tokens\"", - "in_review_folder": "SELECT COUNT(\"environments\".\"id\") FROM \"environments\" WHERE \"environments\".\"environment_type\" = 'review'", - "grafana_integrated_projects": "SELECT COUNT(\"grafana_integrations\".\"id\") FROM \"grafana_integrations\" WHERE \"grafana_integrations\".\"enabled\" = TRUE", - "groups": "SELECT COUNT(\"namespaces\".\"id\") FROM \"namespaces\" WHERE \"namespaces\".\"type\" = 'Group'", - "issues": "SELECT COUNT(\"issues\".\"id\") FROM \"issues\"", - "issues_created_from_gitlab_error_tracking_ui": "SELECT COUNT(\"sentry_issues\".\"id\") FROM \"sentry_issues\"", - "issues_with_associated_zoom_link": "SELECT COUNT(\"zoom_meetings\".\"id\") FROM \"zoom_meetings\" WHERE \"zoom_meetings\".\"issue_status\" = 1", - "issues_using_zoom_quick_actions": "SELECT COUNT(DISTINCT \"zoom_meetings\".\"issue_id\") FROM \"zoom_meetings\"", - "issues_with_embedded_grafana_charts_approx": "SELECT COUNT(\"issues\".\"id\") FROM \"issues\" JOIN grafana_integrations USING (project_id) WHERE (issues.description LIKE '%' || grafana_integrations.grafana_url || '%') AND \"grafana_integrations\".\"enabled\" = TRUE", - "issues_created_from_alerts": "SELECT (SELECT COUNT(\"issues\".\"id\") FROM \"issues\" INNER JOIN \"alert_management_alerts\" ON \"alert_management_alerts\".\"issue_id\" = \"issues\".\"id\") + (SELECT COUNT(\"issues\".\"id\") FROM \"issues\" INNER JOIN \"issues_self_managed_prometheus_alert_events\" ON \"issues_self_managed_prometheus_alert_events\".\"issue_id\" = \"issues\".\"id\") + (SELECT COUNT(\"issues\".\"id\") FROM \"issues\" INNER JOIN \"issues_prometheus_alert_events\" ON \"issues_prometheus_alert_events\".\"issue_id\" = \"issues\".\"id\")", - "issues_created_gitlab_alerts": "SELECT COUNT(\"issues\".\"id\") FROM \"issues\" INNER JOIN \"alert_management_alerts\" ON \"alert_management_alerts\".\"issue_id\" = \"issues\".\"id\" WHERE \"issues\".\"author_id\" != 125", - "issues_created_manually_from_alerts": "SELECT COUNT(\"issues\".\"id\") FROM \"issues\" INNER JOIN \"alert_management_alerts\" ON \"alert_management_alerts\".\"issue_id\" = \"issues\".\"id\" WHERE \"issues\".\"author_id\" != 125", - "incident_issues": "SELECT COUNT(\"issues\".\"id\") FROM \"issues\" WHERE \"issues\".\"issue_type\" = 1", - "alert_bot_incident_issues": "SELECT COUNT(\"issues\".\"id\") FROM \"issues\" WHERE \"issues\".\"author_id\" = 125", - "keys": "SELECT COUNT(\"keys\".\"id\") FROM \"keys\"", - "label_lists": "SELECT COUNT(\"lists\".\"id\") FROM \"lists\" WHERE \"lists\".\"list_type\" = 1", - "lfs_objects": "SELECT COUNT(\"lfs_objects\".\"id\") FROM \"lfs_objects\"", - "milestone_lists": "SELECT COUNT(\"lists\".\"id\") FROM \"lists\" WHERE \"lists\".\"list_type\" = 4", - "milestones": "SELECT COUNT(\"milestones\".\"id\") FROM \"milestones\"", - "projects_with_packages": "SELECT COUNT(DISTINCT \"packages_packages\".\"project_id\") FROM \"packages_packages\"", - "packages": "SELECT COUNT(\"packages_packages\".\"id\") FROM \"packages_packages\"", - "pages_domains": "SELECT COUNT(\"pages_domains\".\"id\") FROM \"pages_domains\"", - "pool_repositories": "SELECT COUNT(\"pool_repositories\".\"id\") FROM \"pool_repositories\"", - "projects": "SELECT COUNT(\"projects\".\"id\") FROM \"projects\"", - "projects_creating_incidents": "SELECT COUNT(DISTINCT \"issues\".\"project_id\") FROM \"issues\" WHERE \"issues\".\"issue_type\" = 1", - "projects_imported_from_github": "SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'github'", - "projects_with_repositories_enabled": "SELECT COUNT(\"project_features\".\"id\") FROM \"project_features\" WHERE (repository_access_level > 0)", - "projects_with_tracing_enabled": "SELECT COUNT(\"project_tracing_settings\".\"id\") FROM \"project_tracing_settings\"", - "projects_with_error_tracking_enabled": "SELECT COUNT(\"project_error_tracking_settings\".\"project_id\") FROM \"project_error_tracking_settings\" WHERE \"project_error_tracking_settings\".\"enabled\" = TRUE", - "projects_with_alerts_created": "SELECT COUNT(DISTINCT \"alert_management_alerts\".\"project_id\") FROM \"alert_management_alerts\"", - "projects_with_enabled_alert_integrations": "SELECT COUNT(DISTINCT \"alert_management_http_integrations\".\"project_id\") FROM \"alert_management_http_integrations\" WHERE \"alert_management_http_integrations\".\"active\" = TRUE", - "projects_with_terraform_reports": "SELECT COUNT(DISTINCT \"ci_job_artifacts\".\"project_id\") FROM \"ci_job_artifacts\" WHERE \"ci_job_artifacts\".\"file_type\" = 18", - "projects_with_terraform_states": "SELECT COUNT(DISTINCT \"terraform_states\".\"project_id\") FROM \"terraform_states\"", - "protected_branches": "SELECT COUNT(\"protected_branches\".\"id\") FROM \"protected_branches\"", - "protected_branches_except_default": "SELECT COUNT(\"protected_branches\".\"id\") FROM \"protected_branches\" WHERE NOT ((\"protected_branches\".\"name\" IN ('main', 'master') OR \"protected_branches\".\"name\" IS NULL))", - "releases": "SELECT COUNT(\"releases\".\"id\") FROM \"releases\"", - "remote_mirrors": "SELECT COUNT(\"remote_mirrors\".\"id\") FROM \"remote_mirrors\"", - "personal_snippets": "SELECT COUNT(\"snippets\".\"id\") FROM \"snippets\" WHERE \"snippets\".\"type\" = 'PersonalSnippet'", - "project_snippets": "SELECT COUNT(\"snippets\".\"id\") FROM \"snippets\" WHERE \"snippets\".\"type\" = 'ProjectSnippet'", - "suggestions": "SELECT COUNT(\"suggestions\".\"id\") FROM \"suggestions\"", - "terraform_reports": "SELECT COUNT(\"ci_job_artifacts\".\"id\") FROM \"ci_job_artifacts\" WHERE \"ci_job_artifacts\".\"file_type\" = 18", - "terraform_states": "SELECT COUNT(\"terraform_states\".\"id\") FROM \"terraform_states\"", - "todos": "SELECT COUNT(\"todos\".\"id\") FROM \"todos\"", - "uploads": "SELECT COUNT(\"uploads\".\"id\") FROM \"uploads\"", - "web_hooks": "SELECT COUNT(\"web_hooks\".\"id\") FROM \"web_hooks\"", - "labels": "SELECT COUNT(\"labels\".\"id\") FROM \"labels\" ORDER BY \"labels\".\"title\" ASC", - "merge_requests": "SELECT COUNT(\"merge_requests\".\"id\") FROM \"merge_requests\"", - "notes": "SELECT COUNT(\"notes\".\"id\") FROM \"notes\"", - "ci_runners": "SELECT COUNT(\"ci_runners\".\"id\") FROM \"ci_runners\"", - "ci_runners_instance_type_active": "SELECT COUNT(\"ci_runners\".\"id\") FROM \"ci_runners\" WHERE \"ci_runners\".\"runner_type\" = 1 AND \"ci_runners\".\"active\" = TRUE", - "ci_runners_group_type_active": "SELECT COUNT(\"ci_runners\".\"id\") FROM \"ci_runners\" WHERE \"ci_runners\".\"runner_type\" = 2 AND \"ci_runners\".\"active\" = TRUE", - "ci_runners_project_type_active": "SELECT COUNT(\"ci_runners\".\"id\") FROM \"ci_runners\" WHERE \"ci_runners\".\"runner_type\" = 3 AND \"ci_runners\".\"active\" = TRUE", - "ci_runners_instance_type_active_online": "SELECT COUNT(\"ci_runners\".\"id\") FROM \"ci_runners\" WHERE \"ci_runners\".\"runner_type\" = 1 AND \"ci_runners\".\"active\" = TRUE AND (contacted_at > '2020-12-31 22:00:00')", - "ci_runners_group_type_active_online": "SELECT COUNT(\"ci_runners\".\"id\") FROM \"ci_runners\" WHERE \"ci_runners\".\"runner_type\" = 2 AND \"ci_runners\".\"active\" = TRUE AND (contacted_at > '2020-12-31 22:00:00')", - "ci_runners_project_type_active_online": "SELECT COUNT(\"ci_runners\".\"id\") FROM \"ci_runners\" WHERE \"ci_runners\".\"runner_type\" = 3 AND \"ci_runners\".\"active\" = TRUE AND (contacted_at > '2020-12-31 22:00:00')", - "projects_asana_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Asana'", - "groups_asana_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Asana'", - "instances_asana_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::Asana'", - "projects_inheriting_asana_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Asana'", - "groups_inheriting_asana_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Asana'", - "projects_assembla_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Assembla'", - "groups_assembla_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Assembla'", - "instances_assembla_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::Assembla'", - "projects_inheriting_assembla_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Assembla'", - "groups_inheriting_assembla_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Assembla'", - "projects_bamboo_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Bamboo'", - "groups_bamboo_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Bamboo'", - "instances_bamboo_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::Bamboo'", - "projects_inheriting_bamboo_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Bamboo'", - "groups_inheriting_bamboo_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Bamboo'", - "projects_bugzilla_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Bugzilla'", - "groups_bugzilla_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Bugzilla'", - "instances_bugzilla_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::Bugzilla'", - "projects_inheriting_bugzilla_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Bugzilla'", - "groups_inheriting_bugzilla_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Bugzilla'", - "projects_buildkite_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Buildkite'", - "groups_buildkite_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Buildkite'", - "instances_buildkite_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::Buildkite'", - "projects_inheriting_buildkite_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Buildkite'", - "groups_inheriting_buildkite_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Buildkite'", - "projects_campfire_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Campfire'", - "groups_campfire_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Campfire'", - "instances_campfire_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::Campfire'", - "projects_inheriting_campfire_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Campfire'", - "groups_inheriting_campfire_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Campfire'", - "projects_confluence_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Confluence'", - "groups_confluence_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Confluence'", - "instances_confluence_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::Confluence'", - "projects_inheriting_confluence_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Confluence'", - "groups_inheriting_confluence_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Confluence'", - "projects_custom_issue_tracker_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::CustomIssueTracker'", - "groups_custom_issue_tracker_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::CustomIssueTracker'", - "instances_custom_issue_tracker_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::CustomIssueTracker'", - "projects_inheriting_custom_issue_tracker_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::CustomIssueTracker'", - "groups_inheriting_custom_issue_tracker_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::CustomIssueTracker'", - "projects_datadog_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Datadog'", - "groups_datadog_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Datadog'", - "instances_datadog_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::Datadog'", - "projects_inheriting_datadog_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Datadog'", - "groups_inheriting_datadog_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Datadog'", - "projects_discord_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Discord'", - "groups_discord_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Discord'", - "instances_discord_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::Discord'", - "projects_inheriting_discord_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Discord'", - "groups_inheriting_discord_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Discord'", - "projects_drone_ci_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::DroneCi'", - "groups_drone_ci_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::DroneCi'", - "instances_drone_ci_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::DroneCi'", - "projects_inheriting_drone_ci_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::DroneCi'", - "groups_inheriting_drone_ci_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::DroneCi'", - "projects_emails_on_push_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::EmailsOnPush'", - "groups_emails_on_push_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::EmailsOnPush'", - "instances_emails_on_push_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::EmailsOnPush'", - "projects_inheriting_emails_on_push_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::EmailsOnPush'", - "groups_inheriting_emails_on_push_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::EmailsOnPush'", - "projects_ewm_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Ewm'", - "groups_ewm_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Ewm'", - "instances_ewm_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::Ewm'", - "projects_inheriting_ewm_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Ewm'", - "groups_inheriting_ewm_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Ewm'", - "projects_external_wiki_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::ExternalWiki'", - "groups_external_wiki_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::ExternalWiki'", - "instances_external_wiki_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::ExternalWiki'", - "projects_inheriting_external_wiki_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::ExternalWiki'", - "groups_inheriting_external_wiki_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::ExternalWiki'", - "projects_flowdock_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Flowdock'", - "groups_flowdock_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Flowdock'", - "instances_flowdock_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::Flowdock'", - "projects_inheriting_flowdock_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Flowdock'", - "groups_inheriting_flowdock_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Flowdock'", - "projects_github_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Github'", - "groups_github_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Github'", - "instances_github_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::Github'", - "projects_inheriting_github_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Github'", - "groups_inheriting_github_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Github'", - "projects_gitlab_slack_application_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::GitlabSlackApplication'", - "groups_gitlab_slack_application_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::GitlabSlackApplication'", - "instances_gitlab_slack_application_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::GitlabSlackApplication'", - "projects_inheriting_gitlab_slack_application_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::GitlabSlackApplication'", - "groups_inheriting_gitlab_slack_application_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::GitlabSlackApplication'", - "projects_hangouts_chat_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::HangoutsChat'", - "groups_hangouts_chat_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::HangoutsChat'", - "instances_hangouts_chat_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::HangoutsChat'", - "projects_inheriting_hangouts_chat_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::HangoutsChat'", - "groups_inheriting_hangouts_chat_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::HangoutsChat'", - "projects_harbor_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Harbor'", - "groups_harbor_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Harbor'", - "instances_harbor_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::Harbor'", - "projects_inheriting_harbor_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Harbor'", - "groups_inheriting_harbor_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Harbor'", - "projects_irker_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Irker'", - "groups_irker_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Irker'", - "instances_irker_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::Irker'", - "projects_inheriting_irker_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Irker'", - "groups_inheriting_irker_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Irker'", - "projects_jenkins_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Jenkins'", - "groups_jenkins_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Jenkins'", - "instances_jenkins_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::Jenkins'", - "projects_inheriting_jenkins_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Jenkins'", - "groups_inheriting_jenkins_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Jenkins'", - "projects_jira_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Jira'", - "groups_jira_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Jira'", - "instances_jira_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::Jira'", - "projects_inheriting_jira_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Jira'", - "groups_inheriting_jira_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Jira'", - "projects_mattermost_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Mattermost'", - "groups_mattermost_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Mattermost'", - "instances_mattermost_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::Mattermost'", - "projects_inheriting_mattermost_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Mattermost'", - "groups_inheriting_mattermost_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Mattermost'", - "projects_mattermost_slash_commands_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::MattermostSlashCommands'", - "groups_mattermost_slash_commands_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::MattermostSlashCommands'", - "instances_mattermost_slash_commands_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::MattermostSlashCommands'", - "projects_inheriting_mattermost_slash_commands_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::MattermostSlashCommands'", - "groups_inheriting_mattermost_slash_commands_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::MattermostSlashCommands'", - "projects_microsoft_teams_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::MicrosoftTeams'", - "groups_microsoft_teams_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::MicrosoftTeams'", - "instances_microsoft_teams_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::MicrosoftTeams'", - "projects_inheriting_microsoft_teams_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::MicrosoftTeams'", - "groups_inheriting_microsoft_teams_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::MicrosoftTeams'", - "projects_packagist_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Packagist'", - "groups_packagist_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Packagist'", - "instances_packagist_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::Packagist'", - "projects_inheriting_packagist_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Packagist'", - "groups_inheriting_packagist_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Packagist'", - "projects_pipelines_email_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::PipelinesEmail'", - "groups_pipelines_email_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::PipelinesEmail'", - "instances_pipelines_email_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::PipelinesEmail'", - "projects_inheriting_pipelines_email_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::PipelinesEmail'", - "groups_inheriting_pipelines_email_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::PipelinesEmail'", - "projects_pivotaltracker_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Pivotaltracker'", - "groups_pivotaltracker_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Pivotaltracker'", - "instances_pivotaltracker_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::Pivotaltracker'", - "projects_inheriting_pivotaltracker_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Pivotaltracker'", - "groups_inheriting_pivotaltracker_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Pivotaltracker'", - "projects_prometheus_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Prometheus'", - "groups_prometheus_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Prometheus'", - "instances_prometheus_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::Prometheus'", - "projects_inheriting_prometheus_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Prometheus'", - "groups_inheriting_prometheus_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Prometheus'", - "projects_pushover_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Pushover'", - "groups_pushover_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Pushover'", - "instances_pushover_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::Pushover'", - "projects_inheriting_pushover_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Pushover'", - "groups_inheriting_pushover_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Pushover'", - "projects_redmine_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Redmine'", - "groups_redmine_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Redmine'", - "instances_redmine_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::Redmine'", - "projects_inheriting_redmine_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Redmine'", - "groups_inheriting_redmine_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Redmine'", - "projects_shimo_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Shimo'", - "groups_shimo_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Shimo'", - "instances_shimo_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::Shimo'", - "projects_inheriting_shimo_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Shimo'", - "groups_inheriting_shimo_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Shimo'", - "projects_slack_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Slack'", - "groups_slack_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Slack'", - "instances_slack_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::Slack'", - "projects_inheriting_slack_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Slack'", - "groups_inheriting_slack_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Slack'", - "projects_slack_slash_commands_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::SlackSlashCommands'", - "groups_slack_slash_commands_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::SlackSlashCommands'", - "instances_slack_slash_commands_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::SlackSlashCommands'", - "projects_inheriting_slack_slash_commands_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::SlackSlashCommands'", - "groups_inheriting_slack_slash_commands_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::SlackSlashCommands'", - "projects_teamcity_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Teamcity'", - "groups_teamcity_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Teamcity'", - "instances_teamcity_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::Teamcity'", - "projects_inheriting_teamcity_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Teamcity'", - "groups_inheriting_teamcity_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Teamcity'", - "projects_unify_circuit_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::UnifyCircuit'", - "groups_unify_circuit_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::UnifyCircuit'", - "instances_unify_circuit_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::UnifyCircuit'", - "projects_inheriting_unify_circuit_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::UnifyCircuit'", - "groups_inheriting_unify_circuit_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::UnifyCircuit'", - "projects_webex_teams_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::WebexTeams'", - "groups_webex_teams_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::WebexTeams'", - "instances_webex_teams_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::WebexTeams'", - "projects_inheriting_webex_teams_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::WebexTeams'", - "groups_inheriting_webex_teams_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::WebexTeams'", - "projects_youtrack_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Youtrack'", - "groups_youtrack_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Youtrack'", - "instances_youtrack_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::Youtrack'", - "projects_inheriting_youtrack_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Youtrack'", - "groups_inheriting_youtrack_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Youtrack'", - "projects_zentao_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Zentao'", - "groups_zentao_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Zentao'", - "instances_zentao_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"instance\" = TRUE AND \"integrations\".\"type_new\" = 'Integrations::Zentao'", - "projects_inheriting_zentao_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"project_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Zentao'", - "groups_inheriting_zentao_active": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"active\" = TRUE AND \"integrations\".\"group_id\" IS NOT NULL AND \"integrations\".\"inherit_from_id\" IS NOT NULL AND \"integrations\".\"type_new\" = 'Integrations::Zentao'", - "projects_jira_server_active": 0, - "projects_jira_cloud_active": 0, - "projects_jira_dvcs_cloud_active": "SELECT COUNT(\"project_feature_usages\".\"project_id\") FROM \"project_feature_usages\" WHERE \"project_feature_usages\".\"jira_dvcs_cloud_last_sync_at\" IS NOT NULL", - "projects_jira_dvcs_server_active": "SELECT COUNT(\"project_feature_usages\".\"project_id\") FROM \"project_feature_usages\" WHERE \"project_feature_usages\".\"jira_dvcs_server_last_sync_at\" IS NOT NULL", - "projects_jira_issuelist_active": "SELECT COUNT(DISTINCT \"integrations\".\"id\") FROM \"integrations\" LEFT OUTER JOIN \"jira_tracker_data\" ON \"jira_tracker_data\".\"service_id\" = \"integrations\".\"id\" WHERE \"integrations\".\"type_new\" = 'Integrations::Jira' AND \"integrations\".\"active\" = TRUE AND \"jira_tracker_data\".\"issues_enabled\" = TRUE", - "jira_imports_total_imported_count": "SELECT COUNT(\"jira_imports\".\"id\") FROM \"jira_imports\" WHERE \"jira_imports\".\"status\" = 4", - "jira_imports_projects_count": "SELECT COUNT(DISTINCT \"jira_imports\".\"project_id\") FROM \"jira_imports\" WHERE \"jira_imports\".\"status\" = 4", - "jira_imports_total_imported_issues_count": "SELECT SUM(\"jira_imports\".\"imported_issues_count\") FROM \"jira_imports\" WHERE \"jira_imports\".\"status\" = 4", - "redis_usage_data_counter": "Gitlab::UsageDataCounters::LicenseTestingCounter", - "user_preferences_user_gitpod_enabled": "SELECT COUNT(\"user_preferences\".\"id\") FROM \"user_preferences\" INNER JOIN \"users\" ON \"users\".\"id\" = \"user_preferences\".\"user_id\" WHERE \"user_preferences\".\"gitpod_enabled\" = TRUE AND (\"users\".\"state\" IN ('active')) AND (\"users\".\"user_type\" IS NULL OR \"users\".\"user_type\" IN (6, 4))", - "user_preferences_group_overview_details": "SELECT COUNT(\"users\".\"id\") FROM \"users\" WHERE (\"users\".\"state\" IN ('active')) AND (\"users\".\"user_type\" IS NULL OR \"users\".\"user_type\" IN (6, 4)) AND (group_view = 1 OR group_view IS NULL)", - "user_preferences_group_overview_security_dashboard": "SELECT COUNT(\"users\".\"id\") FROM \"users\" WHERE (\"users\".\"state\" IN ('active')) AND (\"users\".\"user_type\" IS NULL OR \"users\".\"user_type\" IN (6, 4)) AND \"users\".\"group_view\" = 2", - "projects_with_expiration_policy_disabled": "SELECT COUNT(DISTINCT \"container_expiration_policies\".\"project_id\") FROM \"container_expiration_policies\" WHERE \"container_expiration_policies\".\"enabled\" = FALSE", - "projects_with_expiration_policy_enabled": "SELECT COUNT(DISTINCT \"container_expiration_policies\".\"project_id\") FROM \"container_expiration_policies\" WHERE \"container_expiration_policies\".\"enabled\" = TRUE", - "projects_with_expiration_policy_enabled_with_keep_n_set_to_1": "SELECT COUNT(DISTINCT \"container_expiration_policies\".\"project_id\") FROM \"container_expiration_policies\" WHERE \"container_expiration_policies\".\"enabled\" = TRUE AND \"container_expiration_policies\".\"keep_n\" = 1", - "projects_with_expiration_policy_enabled_with_keep_n_set_to_5": "SELECT COUNT(DISTINCT \"container_expiration_policies\".\"project_id\") FROM \"container_expiration_policies\" WHERE \"container_expiration_policies\".\"enabled\" = TRUE AND \"container_expiration_policies\".\"keep_n\" = 5", - "projects_with_expiration_policy_enabled_with_keep_n_set_to_10": "SELECT COUNT(DISTINCT \"container_expiration_policies\".\"project_id\") FROM \"container_expiration_policies\" WHERE \"container_expiration_policies\".\"enabled\" = TRUE AND \"container_expiration_policies\".\"keep_n\" = 10", - "projects_with_expiration_policy_enabled_with_keep_n_set_to_25": "SELECT COUNT(DISTINCT \"container_expiration_policies\".\"project_id\") FROM \"container_expiration_policies\" WHERE \"container_expiration_policies\".\"enabled\" = TRUE AND \"container_expiration_policies\".\"keep_n\" = 25", - "projects_with_expiration_policy_enabled_with_keep_n_set_to_50": "SELECT COUNT(DISTINCT \"container_expiration_policies\".\"project_id\") FROM \"container_expiration_policies\" WHERE \"container_expiration_policies\".\"enabled\" = TRUE AND \"container_expiration_policies\".\"keep_n\" = 50", - "projects_with_expiration_policy_enabled_with_keep_n_set_to_100": "SELECT COUNT(DISTINCT \"container_expiration_policies\".\"project_id\") FROM \"container_expiration_policies\" WHERE \"container_expiration_policies\".\"enabled\" = TRUE AND \"container_expiration_policies\".\"keep_n\" = 100", - "projects_with_expiration_policy_enabled_with_cadence_set_to_1d": "SELECT COUNT(DISTINCT \"container_expiration_policies\".\"project_id\") FROM \"container_expiration_policies\" WHERE \"container_expiration_policies\".\"enabled\" = TRUE AND \"container_expiration_policies\".\"cadence\" = '1d'", - "projects_with_expiration_policy_enabled_with_cadence_set_to_7d": "SELECT COUNT(DISTINCT \"container_expiration_policies\".\"project_id\") FROM \"container_expiration_policies\" WHERE \"container_expiration_policies\".\"enabled\" = TRUE AND \"container_expiration_policies\".\"cadence\" = '7d'", - "projects_with_expiration_policy_enabled_with_cadence_set_to_14d": "SELECT COUNT(DISTINCT \"container_expiration_policies\".\"project_id\") FROM \"container_expiration_policies\" WHERE \"container_expiration_policies\".\"enabled\" = TRUE AND \"container_expiration_policies\".\"cadence\" = '14d'", - "projects_with_expiration_policy_enabled_with_cadence_set_to_1month": "SELECT COUNT(DISTINCT \"container_expiration_policies\".\"project_id\") FROM \"container_expiration_policies\" WHERE \"container_expiration_policies\".\"enabled\" = TRUE AND \"container_expiration_policies\".\"cadence\" = '1month'", - "projects_with_expiration_policy_enabled_with_cadence_set_to_3month": "SELECT COUNT(DISTINCT \"container_expiration_policies\".\"project_id\") FROM \"container_expiration_policies\" WHERE \"container_expiration_policies\".\"enabled\" = TRUE AND \"container_expiration_policies\".\"cadence\" = '3month'", - "projects_with_expiration_policy_enabled_with_older_than_set_to_7d": "SELECT COUNT(DISTINCT \"container_expiration_policies\".\"project_id\") FROM \"container_expiration_policies\" WHERE \"container_expiration_policies\".\"enabled\" = TRUE AND \"container_expiration_policies\".\"older_than\" = '7d'", - "projects_with_expiration_policy_enabled_with_older_than_set_to_14d": "SELECT COUNT(DISTINCT \"container_expiration_policies\".\"project_id\") FROM \"container_expiration_policies\" WHERE \"container_expiration_policies\".\"enabled\" = TRUE AND \"container_expiration_policies\".\"older_than\" = '14d'", - "projects_with_expiration_policy_enabled_with_older_than_set_to_30d": "SELECT COUNT(DISTINCT \"container_expiration_policies\".\"project_id\") FROM \"container_expiration_policies\" WHERE \"container_expiration_policies\".\"enabled\" = TRUE AND \"container_expiration_policies\".\"older_than\" = '30d'", - "projects_with_expiration_policy_enabled_with_older_than_set_to_60d": "SELECT COUNT(DISTINCT \"container_expiration_policies\".\"project_id\") FROM \"container_expiration_policies\" WHERE \"container_expiration_policies\".\"enabled\" = TRUE AND \"container_expiration_policies\".\"older_than\" = '60d'", - "projects_with_expiration_policy_enabled_with_older_than_set_to_90d": "SELECT COUNT(DISTINCT \"container_expiration_policies\".\"project_id\") FROM \"container_expiration_policies\" WHERE \"container_expiration_policies\".\"enabled\" = TRUE AND \"container_expiration_policies\".\"older_than\" = '90d'", - "projects_with_expiration_policy_enabled_with_keep_n_unset": "SELECT COUNT(DISTINCT \"container_expiration_policies\".\"project_id\") FROM \"container_expiration_policies\" WHERE \"container_expiration_policies\".\"enabled\" = TRUE AND \"container_expiration_policies\".\"keep_n\" IS NULL", - "projects_with_expiration_policy_enabled_with_older_than_unset": "SELECT COUNT(DISTINCT \"container_expiration_policies\".\"project_id\") FROM \"container_expiration_policies\" WHERE \"container_expiration_policies\".\"enabled\" = TRUE AND \"container_expiration_policies\".\"older_than\" IS NULL", - "service_desk_enabled_projects": "SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"service_desk_enabled\" = TRUE", - "service_desk_issues": "SELECT COUNT(\"issues\".\"id\") FROM \"issues\" WHERE \"issues\".\"project_id\" IN (SELECT \"projects\".\"id\" FROM \"projects\" WHERE \"projects\".\"service_desk_enabled\" = TRUE) AND \"issues\".\"author_id\" = 126 AND \"issues\".\"confidential\" = TRUE", - "in_product_marketing_email_create_0_sent": "SELECT COUNT(\"in_product_marketing_emails\".\"id\") FROM \"in_product_marketing_emails\" GROUP BY \"in_product_marketing_emails\".\"track\", \"in_product_marketing_emails\".\"series\"", - "in_product_marketing_email_create_0_cta_clicked": "SELECT COUNT(\"in_product_marketing_emails\".\"id\") FROM \"in_product_marketing_emails\" WHERE \"in_product_marketing_emails\".\"cta_clicked_at\" IS NOT NULL GROUP BY \"in_product_marketing_emails\".\"track\", \"in_product_marketing_emails\".\"series\"", - "in_product_marketing_email_create_1_sent": "SELECT COUNT(\"in_product_marketing_emails\".\"id\") FROM \"in_product_marketing_emails\" GROUP BY \"in_product_marketing_emails\".\"track\", \"in_product_marketing_emails\".\"series\"", - "in_product_marketing_email_create_1_cta_clicked": "SELECT COUNT(\"in_product_marketing_emails\".\"id\") FROM \"in_product_marketing_emails\" WHERE \"in_product_marketing_emails\".\"cta_clicked_at\" IS NOT NULL GROUP BY \"in_product_marketing_emails\".\"track\", \"in_product_marketing_emails\".\"series\"", - "in_product_marketing_email_create_2_sent": "SELECT COUNT(\"in_product_marketing_emails\".\"id\") FROM \"in_product_marketing_emails\" GROUP BY \"in_product_marketing_emails\".\"track\", \"in_product_marketing_emails\".\"series\"", - "in_product_marketing_email_create_2_cta_clicked": "SELECT COUNT(\"in_product_marketing_emails\".\"id\") FROM \"in_product_marketing_emails\" WHERE \"in_product_marketing_emails\".\"cta_clicked_at\" IS NOT NULL GROUP BY \"in_product_marketing_emails\".\"track\", \"in_product_marketing_emails\".\"series\"", - "in_product_marketing_email_verify_0_sent": "SELECT COUNT(\"in_product_marketing_emails\".\"id\") FROM \"in_product_marketing_emails\" GROUP BY \"in_product_marketing_emails\".\"track\", \"in_product_marketing_emails\".\"series\"", - "in_product_marketing_email_verify_0_cta_clicked": "SELECT COUNT(\"in_product_marketing_emails\".\"id\") FROM \"in_product_marketing_emails\" WHERE \"in_product_marketing_emails\".\"cta_clicked_at\" IS NOT NULL GROUP BY \"in_product_marketing_emails\".\"track\", \"in_product_marketing_emails\".\"series\"", - "in_product_marketing_email_verify_1_sent": "SELECT COUNT(\"in_product_marketing_emails\".\"id\") FROM \"in_product_marketing_emails\" GROUP BY \"in_product_marketing_emails\".\"track\", \"in_product_marketing_emails\".\"series\"", - "in_product_marketing_email_verify_1_cta_clicked": "SELECT COUNT(\"in_product_marketing_emails\".\"id\") FROM \"in_product_marketing_emails\" WHERE \"in_product_marketing_emails\".\"cta_clicked_at\" IS NOT NULL GROUP BY \"in_product_marketing_emails\".\"track\", \"in_product_marketing_emails\".\"series\"", - "in_product_marketing_email_verify_2_sent": "SELECT COUNT(\"in_product_marketing_emails\".\"id\") FROM \"in_product_marketing_emails\" GROUP BY \"in_product_marketing_emails\".\"track\", \"in_product_marketing_emails\".\"series\"", - "in_product_marketing_email_verify_2_cta_clicked": "SELECT COUNT(\"in_product_marketing_emails\".\"id\") FROM \"in_product_marketing_emails\" WHERE \"in_product_marketing_emails\".\"cta_clicked_at\" IS NOT NULL GROUP BY \"in_product_marketing_emails\".\"track\", \"in_product_marketing_emails\".\"series\"", - "in_product_marketing_email_trial_0_sent": "SELECT COUNT(\"in_product_marketing_emails\".\"id\") FROM \"in_product_marketing_emails\" GROUP BY \"in_product_marketing_emails\".\"track\", \"in_product_marketing_emails\".\"series\"", - "in_product_marketing_email_trial_0_cta_clicked": "SELECT COUNT(\"in_product_marketing_emails\".\"id\") FROM \"in_product_marketing_emails\" WHERE \"in_product_marketing_emails\".\"cta_clicked_at\" IS NOT NULL GROUP BY \"in_product_marketing_emails\".\"track\", \"in_product_marketing_emails\".\"series\"", - "in_product_marketing_email_trial_1_sent": "SELECT COUNT(\"in_product_marketing_emails\".\"id\") FROM \"in_product_marketing_emails\" GROUP BY \"in_product_marketing_emails\".\"track\", \"in_product_marketing_emails\".\"series\"", - "in_product_marketing_email_trial_1_cta_clicked": "SELECT COUNT(\"in_product_marketing_emails\".\"id\") FROM \"in_product_marketing_emails\" WHERE \"in_product_marketing_emails\".\"cta_clicked_at\" IS NOT NULL GROUP BY \"in_product_marketing_emails\".\"track\", \"in_product_marketing_emails\".\"series\"", - "in_product_marketing_email_trial_2_sent": "SELECT COUNT(\"in_product_marketing_emails\".\"id\") FROM \"in_product_marketing_emails\" GROUP BY \"in_product_marketing_emails\".\"track\", \"in_product_marketing_emails\".\"series\"", - "in_product_marketing_email_trial_2_cta_clicked": "SELECT COUNT(\"in_product_marketing_emails\".\"id\") FROM \"in_product_marketing_emails\" WHERE \"in_product_marketing_emails\".\"cta_clicked_at\" IS NOT NULL GROUP BY \"in_product_marketing_emails\".\"track\", \"in_product_marketing_emails\".\"series\"", - "in_product_marketing_email_team_0_sent": "SELECT COUNT(\"in_product_marketing_emails\".\"id\") FROM \"in_product_marketing_emails\" GROUP BY \"in_product_marketing_emails\".\"track\", \"in_product_marketing_emails\".\"series\"", - "in_product_marketing_email_team_0_cta_clicked": "SELECT COUNT(\"in_product_marketing_emails\".\"id\") FROM \"in_product_marketing_emails\" WHERE \"in_product_marketing_emails\".\"cta_clicked_at\" IS NOT NULL GROUP BY \"in_product_marketing_emails\".\"track\", \"in_product_marketing_emails\".\"series\"", - "in_product_marketing_email_team_1_sent": "SELECT COUNT(\"in_product_marketing_emails\".\"id\") FROM \"in_product_marketing_emails\" GROUP BY \"in_product_marketing_emails\".\"track\", \"in_product_marketing_emails\".\"series\"", - "in_product_marketing_email_team_1_cta_clicked": "SELECT COUNT(\"in_product_marketing_emails\".\"id\") FROM \"in_product_marketing_emails\" WHERE \"in_product_marketing_emails\".\"cta_clicked_at\" IS NOT NULL GROUP BY \"in_product_marketing_emails\".\"track\", \"in_product_marketing_emails\".\"series\"", - "in_product_marketing_email_team_2_sent": "SELECT COUNT(\"in_product_marketing_emails\".\"id\") FROM \"in_product_marketing_emails\" GROUP BY \"in_product_marketing_emails\".\"track\", \"in_product_marketing_emails\".\"series\"", - "in_product_marketing_email_team_2_cta_clicked": "SELECT COUNT(\"in_product_marketing_emails\".\"id\") FROM \"in_product_marketing_emails\" WHERE \"in_product_marketing_emails\".\"cta_clicked_at\" IS NOT NULL GROUP BY \"in_product_marketing_emails\".\"track\", \"in_product_marketing_emails\".\"series\"", - "in_product_marketing_email_experience_0_sent": "SELECT COUNT(\"in_product_marketing_emails\".\"id\") FROM \"in_product_marketing_emails\" GROUP BY \"in_product_marketing_emails\".\"track\", \"in_product_marketing_emails\".\"series\"", - "in_product_marketing_email_team_short_0_sent": "SELECT COUNT(\"in_product_marketing_emails\".\"id\") FROM \"in_product_marketing_emails\" GROUP BY \"in_product_marketing_emails\".\"track\", \"in_product_marketing_emails\".\"series\"", - "in_product_marketing_email_team_short_0_cta_clicked": "SELECT COUNT(\"in_product_marketing_emails\".\"id\") FROM \"in_product_marketing_emails\" WHERE \"in_product_marketing_emails\".\"cta_clicked_at\" IS NOT NULL GROUP BY \"in_product_marketing_emails\".\"track\", \"in_product_marketing_emails\".\"series\"", - "in_product_marketing_email_trial_short_0_sent": "SELECT COUNT(\"in_product_marketing_emails\".\"id\") FROM \"in_product_marketing_emails\" GROUP BY \"in_product_marketing_emails\".\"track\", \"in_product_marketing_emails\".\"series\"", - "in_product_marketing_email_trial_short_0_cta_clicked": "SELECT COUNT(\"in_product_marketing_emails\".\"id\") FROM \"in_product_marketing_emails\" WHERE \"in_product_marketing_emails\".\"cta_clicked_at\" IS NOT NULL GROUP BY \"in_product_marketing_emails\".\"track\", \"in_product_marketing_emails\".\"series\"", - "in_product_marketing_email_admin_verify_0_sent": "SELECT COUNT(\"in_product_marketing_emails\".\"id\") FROM \"in_product_marketing_emails\" GROUP BY \"in_product_marketing_emails\".\"track\", \"in_product_marketing_emails\".\"series\"", - "in_product_marketing_email_admin_verify_0_cta_clicked": "SELECT COUNT(\"in_product_marketing_emails\".\"id\") FROM \"in_product_marketing_emails\" WHERE \"in_product_marketing_emails\".\"cta_clicked_at\" IS NOT NULL GROUP BY \"in_product_marketing_emails\".\"track\", \"in_product_marketing_emails\".\"series\"", - "snippets": "SELECT (SELECT COUNT(\"snippets\".\"id\") FROM \"snippets\" WHERE \"snippets\".\"type\" = 'PersonalSnippet') + (SELECT COUNT(\"snippets\".\"id\") FROM \"snippets\" WHERE \"snippets\".\"type\" = 'ProjectSnippet')", - "confidential_epics": "SELECT COUNT(\"epics\".\"id\") FROM \"epics\" WHERE \"epics\".\"confidential\" = TRUE", - "epics": "SELECT COUNT(\"epics\".\"id\") FROM \"epics\"", - "epic_issues": "SELECT COUNT(\"epic_issues\".\"id\") FROM \"epic_issues\"", - "geo_nodes": "SELECT COUNT(\"geo_nodes\".\"id\") FROM \"geo_nodes\"", - "geo_event_log_max_id": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "ldap_group_links": "SELECT COUNT(\"ldap_group_links\".\"id\") FROM \"ldap_group_links\"", - "issues_with_health_status": "SELECT COUNT(\"issues\".\"id\") FROM \"issues\" WHERE \"issues\".\"health_status\" IS NOT NULL", - "ldap_keys": "SELECT COUNT(\"keys\".\"id\") FROM \"keys\" WHERE \"keys\".\"type\" = 'LDAPKey'", - "ldap_users": "SELECT COUNT(\"users\".\"users.id\") FROM \"users\" INNER JOIN \"identities\" ON \"identities\".\"user_id\" = \"users\".\"id\" WHERE (identities.provider LIKE 'ldap%')", - "merged_merge_requests_using_approval_rules": "SELECT COUNT(\"merge_requests\".\"id\") FROM \"merge_requests\" INNER JOIN \"approval_merge_request_rules\" ON \"approval_merge_request_rules\".\"merge_request_id\" = \"merge_requests\".\"id\" WHERE (\"merge_requests\".\"state_id\" IN (3))", - "merged_merge_requests_using_approval_rules_distinct": "SELECT COUNT(DISTINCT \"merge_requests\".\"id\") FROM \"merge_requests\" INNER JOIN \"approval_merge_request_rules\" ON \"approval_merge_request_rules\".\"merge_request_id\" = \"merge_requests\".\"id\" WHERE (\"merge_requests\".\"state_id\" IN (3))", - "projects_mirrored_with_pipelines_enabled": "SELECT COUNT(\"projects\".\"id\") FROM \"projects\" INNER JOIN \"project_features\" ON \"project_features\".\"project_id\" = \"projects\".\"id\" WHERE \"projects\".\"mirror\" = TRUE AND \"projects\".\"mirror_trigger_builds\" = TRUE AND \"project_features\".\"builds_access_level\" = 20", - "projects_reporting_ci_cd_back_to_github": "SELECT COUNT(\"integrations\".\"id\") FROM \"integrations\" WHERE \"integrations\".\"type_new\" = 'Integrations::Github' AND \"integrations\".\"active\" = TRUE", - "status_page_projects": "SELECT COUNT(\"status_page_settings\".\"project_id\") FROM \"status_page_settings\" WHERE \"status_page_settings\".\"enabled\" = TRUE", - "status_page_issues": "SELECT COUNT(\"issues\".\"id\") FROM \"issues\" INNER JOIN \"projects\" ON \"projects\".\"id\" = \"issues\".\"project_id\" INNER JOIN \"status_page_settings\" ON \"status_page_settings\".\"project_id\" = \"projects\".\"id\" INNER JOIN \"status_page_published_incidents\" ON \"status_page_published_incidents\".\"issue_id\" = \"issues\".\"id\" WHERE \"status_page_settings\".\"enabled\" = TRUE AND (NOT EXISTS (SELECT 1 FROM \"banned_users\" WHERE (issues.author_id = banned_users.user_id))) AND \"issues\".\"confidential\" = FALSE", - "template_repositories": "SELECT (SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"namespace_id\" = 0) + (SELECT COUNT(\"projects\".\"id\") FROM \"projects\" INNER JOIN namespaces ON projects.namespace_id = namespaces.custom_project_templates_group_id)", - "container_scanning_jobs": "SELECT COUNT(\"ci_builds\".\"id\") FROM \"ci_builds\" WHERE \"ci_builds\".\"type\" = 'Ci::Build' AND \"ci_builds\".\"name\" = 'container_scanning'", - "dast_jobs": "SELECT COUNT(\"ci_builds\".\"id\") FROM \"ci_builds\" WHERE \"ci_builds\".\"type\" = 'Ci::Build' AND \"ci_builds\".\"name\" = 'dast'", - "dependency_scanning_jobs": "SELECT COUNT(\"ci_builds\".\"id\") FROM \"ci_builds\" WHERE \"ci_builds\".\"type\" = 'Ci::Build' AND \"ci_builds\".\"name\" = 'dependency_scanning'", - "sast_jobs": "SELECT COUNT(\"ci_builds\".\"id\") FROM \"ci_builds\" WHERE \"ci_builds\".\"type\" = 'Ci::Build' AND \"ci_builds\".\"name\" = 'sast'", - "secret_detection_jobs": "SELECT COUNT(\"ci_builds\".\"id\") FROM \"ci_builds\" WHERE \"ci_builds\".\"type\" = 'Ci::Build' AND \"ci_builds\".\"name\" = 'secret_detection'", - "coverage_fuzzing_jobs": "SELECT COUNT(\"ci_builds\".\"id\") FROM \"ci_builds\" WHERE \"ci_builds\".\"type\" = 'Ci::Build' AND \"ci_builds\".\"name\" = 'coverage_fuzzing'", - "api_fuzzing_jobs": "SELECT COUNT(\"ci_builds\".\"id\") FROM \"ci_builds\" WHERE \"ci_builds\".\"type\" = 'Ci::Build' AND \"ci_builds\".\"name\" = 'apifuzzer_fuzz'", - "api_fuzzing_dnd_jobs": "SELECT COUNT(\"ci_builds\".\"id\") FROM \"ci_builds\" WHERE \"ci_builds\".\"type\" = 'Ci::Build' AND \"ci_builds\".\"name\" = 'apifuzzer_fuzz_dnd'", - "license_management_jobs": "SELECT COUNT(\"ci_builds\".\"id\") FROM \"ci_builds\" WHERE \"ci_builds\".\"type\" = 'Ci::Build' AND \"ci_builds\".\"name\" IN ('license_management', 'license_scanning')", - "dast_on_demand_pipelines": "SELECT COUNT(\"ci_pipelines\".\"id\") FROM \"ci_pipelines\" WHERE \"ci_pipelines\".\"source\" = 13", - "epics_deepest_relationship_level": 0, - "operations_dashboard_default_dashboard": "SELECT COUNT(\"users\".\"id\") FROM \"users\" WHERE (\"users\".\"state\" IN ('active')) AND (\"users\".\"user_type\" IS NULL OR \"users\".\"user_type\" IN (6, 4)) AND \"users\".\"dashboard\" = 8", - "operations_dashboard_users_with_projects_added": "SELECT COUNT(DISTINCT \"users_ops_dashboard_projects\".\"user_id\") FROM \"users_ops_dashboard_projects\" INNER JOIN \"users\" ON \"users\".\"id\" = \"users_ops_dashboard_projects\".\"user_id\" WHERE (\"users\".\"state\" IN ('active')) AND (\"users\".\"user_type\" IS NULL OR \"users\".\"user_type\" IN (6, 4))", - "projects_with_external_status_checks": "SELECT COUNT(DISTINCT \"external_status_checks\".\"project_id\") FROM \"external_status_checks\"", - "external_status_checks": "SELECT COUNT(\"external_status_checks\".\"id\") FROM \"external_status_checks\"", - "boards": "SELECT COUNT(\"boards\".\"id\") FROM \"boards\"", - "source_code_pushes": 0 - }, - "counts_monthly": { - "deployments": "SELECT COUNT(\"deployments\".\"id\") FROM \"deployments\" WHERE \"deployments\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "successful_deployments": "SELECT COUNT(\"deployments\".\"id\") FROM \"deployments\" WHERE \"deployments\".\"status\" = 2 AND \"deployments\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "failed_deployments": "SELECT COUNT(\"deployments\".\"id\") FROM \"deployments\" WHERE \"deployments\".\"status\" = 3 AND \"deployments\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "projects": "SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "packages": "SELECT COUNT(\"packages_packages\".\"id\") FROM \"packages_packages\" WHERE \"packages_packages\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "personal_snippets": "SELECT COUNT(\"snippets\".\"id\") FROM \"snippets\" WHERE \"snippets\".\"type\" = 'PersonalSnippet' AND \"snippets\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "project_snippets": "SELECT COUNT(\"snippets\".\"id\") FROM \"snippets\" WHERE \"snippets\".\"type\" = 'ProjectSnippet' AND \"snippets\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "projects_with_alerts_created": "SELECT COUNT(DISTINCT \"alert_management_alerts\".\"project_id\") FROM \"alert_management_alerts\" WHERE \"alert_management_alerts\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "promoted_issues": -1000, - "snippets": "SELECT (SELECT COUNT(\"snippets\".\"id\") FROM \"snippets\" WHERE \"snippets\".\"type\" = 'PersonalSnippet' AND \"snippets\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00') + (SELECT COUNT(\"snippets\".\"id\") FROM \"snippets\" WHERE \"snippets\".\"type\" = 'ProjectSnippet' AND \"snippets\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00')", - "aggregated_metrics": { - "code_review_group_monthly_active_users": 0, - "code_review_category_monthly_active_users": 0, - "code_review_extension_category_monthly_active_users": 0, - "compliance_features_track_unique_visits_union": 0, - "incident_management_alerts_total_unique_counts": 0, - "incident_management_incidents_total_unique_counts": 0, - "i_testing_paid_monthly_active_user_total": 0 - } - }, - "counts_weekly": { - "aggregated_metrics": { - "code_review_group_monthly_active_users": 0, - "code_review_category_monthly_active_users": 0, - "code_review_extension_category_monthly_active_users": 0, - "compliance_features_track_unique_visits_union": 0, - "incident_management_alerts_total_unique_counts": 0, - "incident_management_incidents_total_unique_counts": 0, - "i_testing_paid_monthly_active_user_total": 0 - } - }, - "instance_auto_devops_enabled": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "container_registry_enabled": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "dependency_proxy_enabled": false, - "gitlab_shared_runners_enabled": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "gravatar_enabled": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "ldap_enabled": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "mattermost_enabled": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "omniauth_enabled": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "prometheus_enabled": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "prometheus_metrics_enabled": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "reply_by_email_enabled": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "signup_enabled": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "web_ide_clientside_preview_enabled": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "grafana_link_enabled": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "gitpod_enabled": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "elasticsearch_enabled": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "license_trial_ends_on": null, - "geo_enabled": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "user_cap_feature_enabled": null, - "git": { - "version": { - "alt_usage_data_block": "non-SQL usage data block" - } - }, - "gitaly": { - "version": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "servers": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "clusters": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "filesystems": { - "alt_usage_data_block": "non-SQL usage data block" - } - }, - "gitlab_pages": { - "enabled": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "version": { - "alt_usage_data_block": "non-SQL usage data block" - } - }, - "container_registry_server": { - "vendor": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "version": { - "alt_usage_data_block": "non-SQL usage data block" - } - }, - "database": { - "adapter": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "version": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "pg_system_id": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "flavor": { - "alt_usage_data_block": "non-SQL usage data block" - } - }, - "mail": { - "smtp_server": { - "alt_usage_data_block": "non-SQL usage data block" - } - }, - "advanced_search": { - "distribution": "NA", - "version": "NA", - "build_type": "NA", - "lucene_version": "NA" - }, - "object_store": { - "artifacts": { - "enabled": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "object_store": { - "enabled": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "direct_upload": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "background_upload": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "provider": { - "alt_usage_data_block": "non-SQL usage data block" - } - } - }, - "external_diffs": { - "enabled": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "object_store": { - "enabled": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "direct_upload": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "background_upload": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "provider": { - "alt_usage_data_block": "non-SQL usage data block" - } - } - }, - "lfs": { - "enabled": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "object_store": { - "enabled": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "direct_upload": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "background_upload": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "provider": { - "alt_usage_data_block": "non-SQL usage data block" - } - } - }, - "uploads": { - "enabled": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "object_store": { - "enabled": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "direct_upload": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "background_upload": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "provider": { - "alt_usage_data_block": "non-SQL usage data block" - } - } - }, - "packages": { - "enabled": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "object_store": { - "enabled": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "direct_upload": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "background_upload": { - "alt_usage_data_block": "non-SQL usage data block" - }, - "provider": { - "alt_usage_data_block": "non-SQL usage data block" - } - } - } - }, - "topology": { - "duration_s": 0.0011761150090023875, - "failures": [ - - ] - }, - "usage_activity_by_stage": { - "configure": { - "clusters_management_project": "SELECT COUNT(DISTINCT \"clusters\".\"user_id\") FROM \"clusters\" WHERE \"clusters\".\"management_project_id\" IS NOT NULL", - "clusters_disabled": "SELECT COUNT(DISTINCT \"clusters\".\"user_id\") FROM \"clusters\" WHERE \"clusters\".\"enabled\" = FALSE", - "clusters_enabled": "SELECT COUNT(DISTINCT \"clusters\".\"user_id\") FROM \"clusters\" WHERE \"clusters\".\"enabled\" = TRUE", - "clusters_platforms_gke": "SELECT COUNT(DISTINCT \"clusters\".\"user_id\") FROM \"clusters\" INNER JOIN \"cluster_providers_gcp\" ON \"cluster_providers_gcp\".\"cluster_id\" = \"clusters\".\"id\" WHERE \"clusters\".\"provider_type\" = 1 AND (\"cluster_providers_gcp\".\"status\" IN (3)) AND \"clusters\".\"enabled\" = TRUE", - "clusters_platforms_eks": "SELECT COUNT(DISTINCT \"clusters\".\"user_id\") FROM \"clusters\" INNER JOIN \"cluster_providers_aws\" ON \"cluster_providers_aws\".\"cluster_id\" = \"clusters\".\"id\" WHERE \"clusters\".\"provider_type\" = 2 AND (\"cluster_providers_aws\".\"status\" IN (3)) AND \"clusters\".\"enabled\" = TRUE", - "clusters_platforms_user": "SELECT COUNT(DISTINCT \"clusters\".\"user_id\") FROM \"clusters\" WHERE \"clusters\".\"provider_type\" = 0 AND \"clusters\".\"enabled\" = TRUE", - "instance_clusters_disabled": "SELECT COUNT(DISTINCT \"clusters\".\"user_id\") FROM \"clusters\" WHERE \"clusters\".\"enabled\" = FALSE AND \"clusters\".\"cluster_type\" = 1", - "instance_clusters_enabled": "SELECT COUNT(DISTINCT \"clusters\".\"user_id\") FROM \"clusters\" WHERE \"clusters\".\"enabled\" = TRUE AND \"clusters\".\"cluster_type\" = 1", - "group_clusters_disabled": "SELECT COUNT(DISTINCT \"clusters\".\"user_id\") FROM \"clusters\" WHERE \"clusters\".\"enabled\" = FALSE AND \"clusters\".\"cluster_type\" = 2", - "group_clusters_enabled": "SELECT COUNT(DISTINCT \"clusters\".\"user_id\") FROM \"clusters\" WHERE \"clusters\".\"enabled\" = TRUE AND \"clusters\".\"cluster_type\" = 2", - "project_clusters_disabled": "SELECT COUNT(DISTINCT \"clusters\".\"user_id\") FROM \"clusters\" WHERE \"clusters\".\"enabled\" = FALSE AND \"clusters\".\"cluster_type\" = 3", - "project_clusters_enabled": "SELECT COUNT(DISTINCT \"clusters\".\"user_id\") FROM \"clusters\" WHERE \"clusters\".\"enabled\" = TRUE AND \"clusters\".\"cluster_type\" = 3", - "projects_slack_notifications_active": "SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" INNER JOIN \"integrations\" ON \"integrations\".\"project_id\" = \"projects\".\"id\" AND \"integrations\".\"type_new\" = 'Integrations::Slack'", - "projects_slack_slash_active": "SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" INNER JOIN \"integrations\" ON \"integrations\".\"project_id\" = \"projects\".\"id\" AND \"integrations\".\"type_new\" = 'Integrations::SlackSlashCommands'" - }, - "create": { - "deploy_keys": "SELECT COUNT(DISTINCT \"keys\".\"user_id\") FROM \"keys\" WHERE \"keys\".\"type\" = 'DeployKey'", - "keys": "SELECT COUNT(DISTINCT \"keys\".\"user_id\") FROM \"keys\" WHERE (\"keys\".\"type\" IN ('LDAPKey', 'Key') OR \"keys\".\"type\" IS NULL)", - "merge_requests": "SELECT COUNT(DISTINCT \"merge_requests\".\"author_id\") FROM \"merge_requests\"", - "projects_with_disable_overriding_approvers_per_merge_request": "SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"disable_overriding_approvers_per_merge_request\" = TRUE", - "projects_without_disable_overriding_approvers_per_merge_request": "SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE (\"projects\".\"disable_overriding_approvers_per_merge_request\" = FALSE OR \"projects\".\"disable_overriding_approvers_per_merge_request\" IS NULL)", - "remote_mirrors": "SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" INNER JOIN \"remote_mirrors\" ON \"remote_mirrors\".\"project_id\" = \"projects\".\"id\" WHERE \"remote_mirrors\".\"enabled\" = TRUE", - "snippets": "SELECT COUNT(DISTINCT \"snippets\".\"author_id\") FROM \"snippets\"", - "projects_enforcing_code_owner_approval": "SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" INNER JOIN \"protected_branches\" ON \"protected_branches\".\"project_id\" = \"projects\".\"id\" WHERE \"protected_branches\".\"code_owner_approval_required\" = TRUE", - "projects_with_sectional_code_owner_rules": "SELECT COUNT(DISTINCT \"approval_merge_request_rules\".\"merge_requests.target_project_id\") FROM \"approval_merge_request_rules\" INNER JOIN \"merge_requests\" ON \"merge_requests\".\"id\" = \"approval_merge_request_rules\".\"merge_request_id\" WHERE \"approval_merge_request_rules\".\"rule_type\" = 2 AND \"approval_merge_request_rules\".\"section\" != 'codeowners'", - "merge_requests_with_added_rules": "SELECT COUNT(DISTINCT \"approval_merge_request_rules\".\"merge_request_id\") FROM \"approval_merge_request_rules\" LEFT OUTER JOIN \"approval_merge_request_rule_sources\" ON \"approval_merge_request_rule_sources\".\"approval_merge_request_rule_id\" = \"approval_merge_request_rules\".\"id\" WHERE \"approval_merge_request_rule_sources\".\"approval_merge_request_rule_id\" IS NULL", - "merge_requests_with_optional_codeowners": "SELECT COUNT(DISTINCT \"approval_merge_request_rules\".\"merge_request_id\") FROM \"approval_merge_request_rules\" WHERE \"approval_merge_request_rules\".\"rule_type\" = 2 AND \"approval_merge_request_rules\".\"approvals_required\" = 0", - "merge_requests_with_overridden_project_rules": "SELECT COUNT(DISTINCT \"approval_merge_request_rules\".\"merge_request_id\") FROM \"approval_merge_request_rules\" WHERE ((EXISTS (\n SELECT\n 1\n FROM\n approval_merge_request_rule_sources\n WHERE\n approval_merge_request_rule_sources.approval_merge_request_rule_id = approval_merge_request_rules.id\n AND NOT EXISTS (\n SELECT\n 1\n FROM\n approval_project_rules\n WHERE\n approval_project_rules.id = approval_merge_request_rule_sources.approval_project_rule_id\n AND EXISTS (\n SELECT\n 1\n FROM\n projects\n WHERE\n projects.id = approval_project_rules.project_id\n AND projects.disable_overriding_approvers_per_merge_request = FALSE))))\n OR(\"approval_merge_request_rules\".\"modified_from_project_rule\" = TRUE)\n)", - "merge_requests_with_required_codeowners": "SELECT COUNT(DISTINCT \"approval_merge_request_rules\".\"merge_request_id\") FROM \"approval_merge_request_rules\" WHERE \"approval_merge_request_rules\".\"rule_type\" = 2 AND (approvals_required > 0)", - "projects_imported_from_github": "SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'github'", - "projects_with_repositories_enabled": "SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" INNER JOIN \"project_features\" ON \"project_features\".\"project_id\" = \"projects\".\"id\" WHERE \"project_features\".\"repository_access_level\" = 20", - "protected_branches": "SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" INNER JOIN \"protected_branches\" ON \"protected_branches\".\"project_id\" = \"projects\".\"id\"", - "users_using_path_locks": "SELECT COUNT(DISTINCT \"path_locks\".\"user_id\") FROM \"path_locks\"", - "users_using_lfs_locks": "SELECT COUNT(DISTINCT \"lfs_file_locks\".\"user_id\") FROM \"lfs_file_locks\"", - "total_number_of_path_locks": "SELECT COUNT(\"path_locks\".\"id\") FROM \"path_locks\"", - "total_number_of_locked_files": "SELECT COUNT(\"lfs_file_locks\".\"id\") FROM \"lfs_file_locks\"", - "approval_project_rules": "SELECT COUNT(\"approval_project_rules\".\"id\") FROM \"approval_project_rules\"", - "approval_project_rules_with_target_branch": "SELECT COUNT(\"approval_project_rules_protected_branches\".\"approval_project_rule_id\") FROM \"approval_project_rules_protected_branches\"", - "approval_project_rules_with_more_approvers_than_required": "SELECT COUNT(*) FROM (SELECT COUNT(\"approval_project_rules\".\"id\") FROM \"approval_project_rules\" INNER JOIN approval_project_rules_users ON approval_project_rules_users.approval_project_rule_id = approval_project_rules.id WHERE \"approval_project_rules\".\"rule_type\" = 0 GROUP BY \"approval_project_rules\".\"id\" HAVING (COUNT(approval_project_rules_users) > approvals_required)) subquery", - "approval_project_rules_with_less_approvers_than_required": "SELECT COUNT(*) FROM (SELECT COUNT(\"approval_project_rules\".\"id\") FROM \"approval_project_rules\" INNER JOIN approval_project_rules_users ON approval_project_rules_users.approval_project_rule_id = approval_project_rules.id WHERE \"approval_project_rules\".\"rule_type\" = 0 GROUP BY \"approval_project_rules\".\"id\" HAVING (COUNT(approval_project_rules_users) < approvals_required)) subquery", - "approval_project_rules_with_exact_required_approvers": "SELECT COUNT(*) FROM (SELECT COUNT(\"approval_project_rules\".\"id\") FROM \"approval_project_rules\" INNER JOIN approval_project_rules_users ON approval_project_rules_users.approval_project_rule_id = approval_project_rules.id WHERE \"approval_project_rules\".\"rule_type\" = 0 GROUP BY \"approval_project_rules\".\"id\" HAVING (COUNT(approval_project_rules_users) = approvals_required)) subquery" - }, - "enablement": { - }, - "manage": { - "events": -1, - "groups": "SELECT COUNT(DISTINCT \"members\".\"user_id\") FROM \"members\" WHERE \"members\".\"type\" = 'GroupMember' AND \"members\".\"source_type\" = 'Namespace'", - "users_created": "SELECT COUNT(\"users\".\"id\") FROM \"users\"", - "omniauth_providers": [ - - ], - "user_auth_by_provider": { - "two-factor": "SELECT COUNT(DISTINCT \"authentication_events\".\"user_id\") FROM \"authentication_events\" WHERE \"authentication_events\".\"result\" = 1 AND \"authentication_events\".\"provider\" = 'two-factor'", - "two-factor-via-u2f-device": "SELECT COUNT(DISTINCT \"authentication_events\".\"user_id\") FROM \"authentication_events\" WHERE \"authentication_events\".\"result\" = 1 AND \"authentication_events\".\"provider\" = 'two-factor-via-u2f-device'", - "two-factor-via-webauthn-device": "SELECT COUNT(DISTINCT \"authentication_events\".\"user_id\") FROM \"authentication_events\" WHERE \"authentication_events\".\"result\" = 1 AND \"authentication_events\".\"provider\" = 'two-factor-via-webauthn-device'", - "standard": "SELECT COUNT(DISTINCT \"authentication_events\".\"user_id\") FROM \"authentication_events\" WHERE \"authentication_events\".\"result\" = 1 AND \"authentication_events\".\"provider\" = 'standard'" - }, - "unique_users_all_imports": "SELECT (SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" WHERE \"projects\".\"import_type\" IS NOT NULL) + (SELECT COUNT(DISTINCT \"bulk_imports\".\"user_id\") FROM \"bulk_imports\") + (SELECT COUNT(DISTINCT \"jira_imports\".\"user_id\") FROM \"jira_imports\") + (SELECT COUNT(DISTINCT \"csv_issue_imports\".\"user_id\") FROM \"csv_issue_imports\") + (SELECT COUNT(DISTINCT \"group_import_states\".\"user_id\") FROM \"group_import_states\")", - "bulk_imports": { - "gitlab_v1": "SELECT COUNT(\"bulk_imports\".\"id\") FROM \"bulk_imports\" WHERE \"bulk_imports\".\"source_type\" = 0" - }, - "project_imports": { - "gitlab_project": "SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'gitlab_project' AND \"projects\".\"import_type\" IS NOT NULL", - "gitlab": "SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'gitlab' AND \"projects\".\"import_type\" IS NOT NULL", - "github": "SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'github' AND \"projects\".\"import_type\" IS NOT NULL", - "bitbucket": "SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'bitbucket' AND \"projects\".\"import_type\" IS NOT NULL", - "bitbucket_server": "SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'bitbucket_server' AND \"projects\".\"import_type\" IS NOT NULL", - "gitea": "SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'gitea' AND \"projects\".\"import_type\" IS NOT NULL", - "git": "SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'git' AND \"projects\".\"import_type\" IS NOT NULL", - "manifest": "SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'manifest' AND \"projects\".\"import_type\" IS NOT NULL", - "gitlab_migration": "SELECT COUNT(\"bulk_import_entities\".\"id\") FROM \"bulk_import_entities\" WHERE \"bulk_import_entities\".\"source_type\" = 1", - "total": "SELECT (SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'gitlab_project' AND \"projects\".\"import_type\" IS NOT NULL) + (SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'gitlab' AND \"projects\".\"import_type\" IS NOT NULL) + (SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'github' AND \"projects\".\"import_type\" IS NOT NULL) + (SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'bitbucket' AND \"projects\".\"import_type\" IS NOT NULL) + (SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'bitbucket_server' AND \"projects\".\"import_type\" IS NOT NULL) + (SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'gitea' AND \"projects\".\"import_type\" IS NOT NULL) + (SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'git' AND \"projects\".\"import_type\" IS NOT NULL) + (SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'manifest' AND \"projects\".\"import_type\" IS NOT NULL) + (SELECT COUNT(\"bulk_import_entities\".\"id\") FROM \"bulk_import_entities\" WHERE \"bulk_import_entities\".\"source_type\" = 1)" - }, - "issue_imports": { - "jira": "SELECT COUNT(\"jira_imports\".\"id\") FROM \"jira_imports\"", - "fogbugz": "SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'fogbugz' AND \"projects\".\"import_type\" IS NOT NULL", - "phabricator": "SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'phabricator' AND \"projects\".\"import_type\" IS NOT NULL", - "csv": "SELECT COUNT(\"csv_issue_imports\".\"id\") FROM \"csv_issue_imports\"" - }, - "group_imports": { - "group_import": "SELECT COUNT(\"group_import_states\".\"group_id\") FROM \"group_import_states\"", - "gitlab_migration": "SELECT COUNT(\"bulk_import_entities\".\"id\") FROM \"bulk_import_entities\" WHERE \"bulk_import_entities\".\"source_type\" = 0" - }, - "ldap_keys": "SELECT COUNT(DISTINCT \"keys\".\"user_id\") FROM \"keys\" WHERE \"keys\".\"type\" = 'LDAPKey'", - "ldap_users": "SELECT COUNT(DISTINCT \"members\".\"user_id\") FROM \"members\" WHERE \"members\".\"type\" = 'GroupMember' AND \"members\".\"source_type\" = 'Namespace' AND \"members\".\"ldap\" = TRUE", - "value_stream_management_customized_group_stages": "SELECT COUNT(\"analytics_cycle_analytics_group_stages\".\"id\") FROM \"analytics_cycle_analytics_group_stages\" WHERE \"analytics_cycle_analytics_group_stages\".\"custom\" = TRUE", - "projects_with_compliance_framework": "SELECT COUNT(\"project_compliance_framework_settings\".\"project_id\") FROM \"project_compliance_framework_settings\"", - "custom_compliance_frameworks": "SELECT COUNT(\"compliance_management_frameworks\".\"id\") FROM \"compliance_management_frameworks\"", - "compliance_frameworks_with_pipeline": "SELECT COUNT(\"compliance_management_frameworks\".\"id\") FROM \"compliance_management_frameworks\" WHERE \"compliance_management_frameworks\".\"pipeline_configuration_full_path\" IS NOT NULL", - "ldap_servers": 0, - "ldap_group_sync_enabled": false, - "ldap_admin_sync_enabled": false, - "group_saml_enabled": false, - "audit_event_destinations": "SELECT COUNT(\"audit_events_external_audit_event_destinations\".\"id\") FROM \"audit_events_external_audit_event_destinations\"", - "groups_with_event_streaming_destinations": "SELECT COUNT(DISTINCT \"namespaces\".\"id\") FROM \"namespaces\" INNER JOIN \"audit_events_external_audit_event_destinations\" ON \"audit_events_external_audit_event_destinations\".\"namespace_id\" = \"namespaces\".\"id\" WHERE \"namespaces\".\"type\" = 'Group'" - }, - "monitor": { - "clusters": "SELECT COUNT(DISTINCT \"clusters\".\"user_id\") FROM \"clusters\"", - "clusters_integrations_prometheus": "SELECT COUNT(DISTINCT \"clusters_integration_prometheus\".\"clusters.user_id\") FROM \"clusters_integration_prometheus\" INNER JOIN \"clusters\" ON \"clusters\".\"id\" = \"clusters_integration_prometheus\".\"cluster_id\" WHERE \"clusters_integration_prometheus\".\"enabled\" = TRUE", - "operations_dashboard_default_dashboard": "SELECT COUNT(\"users\".\"id\") FROM \"users\" WHERE (\"users\".\"state\" IN ('active')) AND (\"users\".\"user_type\" IS NULL OR \"users\".\"user_type\" IN (6, 4)) AND \"users\".\"dashboard\" = 8", - "projects_with_tracing_enabled": "SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" INNER JOIN \"project_tracing_settings\" ON \"project_tracing_settings\".\"project_id\" = \"projects\".\"id\"", - "projects_with_error_tracking_enabled": "SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" INNER JOIN \"project_error_tracking_settings\" ON \"project_error_tracking_settings\".\"project_id\" = \"projects\".\"id\" WHERE \"project_error_tracking_settings\".\"enabled\" = TRUE", - "projects_with_incidents": "SELECT COUNT(DISTINCT \"issues\".\"project_id\") FROM \"issues\" WHERE \"issues\".\"issue_type\" = 1", - "projects_with_alert_incidents": "SELECT COUNT(DISTINCT \"issues\".\"project_id\") FROM \"issues\" INNER JOIN \"alert_management_alerts\" ON \"alert_management_alerts\".\"issue_id\" = \"issues\".\"id\" WHERE \"issues\".\"issue_type\" = 1", - "projects_with_enabled_alert_integrations_histogram": "WITH \"count_cte\" AS MATERIALIZED (SELECT COUNT(*) AS count_grouped FROM \"alert_management_http_integrations\" WHERE \"alert_management_http_integrations\".\"active\" = TRUE GROUP BY \"alert_management_http_integrations\".\"project_id\") SELECT WIDTH_BUCKET(\"count_cte\".\"count_grouped\", 1, 100, 99) AS buckets, \"count_cte\".\"count\" FROM \"count_cte\" GROUP BY buckets ORDER BY buckets", - "operations_dashboard_users_with_projects_added": "SELECT COUNT(DISTINCT \"users_ops_dashboard_projects\".\"user_id\") FROM \"users_ops_dashboard_projects\" INNER JOIN \"users\" ON \"users\".\"id\" = \"users_ops_dashboard_projects\".\"user_id\" WHERE (\"users\".\"state\" IN ('active')) AND (\"users\".\"user_type\" IS NULL OR \"users\".\"user_type\" IN (6, 4))", - "projects_incident_sla_enabled": "SELECT COUNT(\"projects\".\"id\") FROM \"projects\" INNER JOIN \"project_incident_management_settings\" ON \"project_incident_management_settings\".\"project_id\" = \"projects\".\"id\" WHERE \"project_incident_management_settings\".\"sla_timer\" = TRUE" - }, - "package": { - "projects_with_packages": "SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" INNER JOIN \"packages_packages\" ON \"packages_packages\".\"project_id\" = \"projects\".\"id\"" - }, - "plan": { - "issues": "SELECT COUNT(DISTINCT \"issues\".\"author_id\") FROM \"issues\"", - "notes": "SELECT COUNT(DISTINCT \"notes\".\"author_id\") FROM \"notes\"", - "projects": "SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\"", - "todos": "SELECT COUNT(DISTINCT \"todos\".\"author_id\") FROM \"todos\"", - "service_desk_enabled_projects": "SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" WHERE \"projects\".\"service_desk_enabled\" = TRUE", - "service_desk_issues": "SELECT COUNT(\"issues\".\"id\") FROM \"issues\" WHERE \"issues\".\"author_id\" = 126", - "projects_jira_active": "SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" INNER JOIN \"integrations\" ON \"integrations\".\"project_id\" = \"projects\".\"id\" WHERE \"integrations\".\"type_new\" = 'Integrations::Jira' AND \"integrations\".\"active\" = TRUE", - "projects_jira_dvcs_cloud_active": "SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" INNER JOIN \"integrations\" ON \"integrations\".\"project_id\" = \"projects\".\"id\" INNER JOIN \"project_feature_usages\" ON \"project_feature_usages\".\"project_id\" = \"projects\".\"id\" WHERE \"integrations\".\"type_new\" = 'Integrations::Jira' AND \"integrations\".\"active\" = TRUE AND \"project_feature_usages\".\"jira_dvcs_cloud_last_sync_at\" IS NOT NULL", - "projects_jira_dvcs_server_active": "SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" INNER JOIN \"integrations\" ON \"integrations\".\"project_id\" = \"projects\".\"id\" INNER JOIN \"project_feature_usages\" ON \"project_feature_usages\".\"project_id\" = \"projects\".\"id\" WHERE \"integrations\".\"type_new\" = 'Integrations::Jira' AND \"integrations\".\"active\" = TRUE AND \"project_feature_usages\".\"jira_dvcs_server_last_sync_at\" IS NOT NULL", - "assignee_lists": "SELECT COUNT(DISTINCT \"lists\".\"user_id\") FROM \"lists\" WHERE \"lists\".\"list_type\" = 3", - "epics": "SELECT COUNT(DISTINCT \"epics\".\"author_id\") FROM \"epics\"", - "label_lists": "SELECT COUNT(DISTINCT \"lists\".\"user_id\") FROM \"lists\" WHERE \"lists\".\"list_type\" = 1", - "milestone_lists": "SELECT COUNT(DISTINCT \"lists\".\"user_id\") FROM \"lists\" WHERE \"lists\".\"list_type\" = 4" - }, - "release": { - "deployments": "SELECT COUNT(DISTINCT \"deployments\".\"user_id\") FROM \"deployments\"", - "failed_deployments": "SELECT COUNT(DISTINCT \"deployments\".\"user_id\") FROM \"deployments\" WHERE \"deployments\".\"status\" = 3", - "releases": "SELECT COUNT(DISTINCT \"releases\".\"author_id\") FROM \"releases\"", - "successful_deployments": "SELECT COUNT(DISTINCT \"deployments\".\"user_id\") FROM \"deployments\" WHERE \"deployments\".\"status\" = 2", - "releases_with_milestones": "SELECT COUNT(DISTINCT \"releases\".\"author_id\") FROM \"releases\" INNER JOIN \"milestone_releases\" ON \"milestone_releases\".\"release_id\" = \"releases\".\"id\"", - "projects_mirrored_with_pipelines_enabled": "SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" INNER JOIN \"project_features\" ON \"project_features\".\"project_id\" = \"projects\".\"id\" WHERE \"projects\".\"mirror\" = TRUE AND \"projects\".\"mirror_trigger_builds\" = TRUE AND \"project_features\".\"builds_access_level\" = 20", - "releases_with_group_milestones": "SELECT COUNT(DISTINCT \"releases\".\"author_id\") FROM \"releases\" INNER JOIN \"milestone_releases\" ON \"milestone_releases\".\"release_id\" = \"releases\".\"id\" INNER JOIN \"milestones\" ON \"milestones\".\"id\" = \"milestone_releases\".\"milestone_id\" WHERE \"milestones\".\"group_id\" IS NOT NULL" - }, - "secure": { - "user_preferences_group_overview_security_dashboard": "SELECT COUNT(\"users\".\"id\") FROM \"users\" WHERE (\"users\".\"state\" IN ('active')) AND (\"users\".\"user_type\" IS NULL OR \"users\".\"user_type\" IN (6, 4)) AND \"users\".\"group_view\" = 2", - "user_container_scanning_jobs": "SELECT COUNT(DISTINCT \"ci_builds\".\"user_id\") FROM \"ci_builds\" WHERE \"ci_builds\".\"type\" = 'Ci::Build' AND \"ci_builds\".\"name\" = 'container_scanning'", - "user_dast_jobs": "SELECT COUNT(DISTINCT \"ci_builds\".\"user_id\") FROM \"ci_builds\" WHERE \"ci_builds\".\"type\" = 'Ci::Build' AND \"ci_builds\".\"name\" = 'dast'", - "user_dependency_scanning_jobs": "SELECT COUNT(DISTINCT \"ci_builds\".\"user_id\") FROM \"ci_builds\" WHERE \"ci_builds\".\"type\" = 'Ci::Build' AND \"ci_builds\".\"name\" = 'dependency_scanning'", - "user_license_management_jobs": "SELECT COUNT(DISTINCT \"ci_builds\".\"user_id\") FROM \"ci_builds\" WHERE \"ci_builds\".\"type\" = 'Ci::Build' AND \"ci_builds\".\"name\" = 'license_management'", - "user_sast_jobs": "SELECT COUNT(DISTINCT \"ci_builds\".\"user_id\") FROM \"ci_builds\" WHERE \"ci_builds\".\"type\" = 'Ci::Build' AND \"ci_builds\".\"name\" = 'sast'", - "user_secret_detection_jobs": "SELECT COUNT(DISTINCT \"ci_builds\".\"user_id\") FROM \"ci_builds\" WHERE \"ci_builds\".\"type\" = 'Ci::Build' AND \"ci_builds\".\"name\" = 'secret_detection'", - "user_coverage_fuzzing_jobs": "SELECT COUNT(DISTINCT \"ci_builds\".\"user_id\") FROM \"ci_builds\" WHERE \"ci_builds\".\"type\" = 'Ci::Build' AND \"ci_builds\".\"name\" = 'coverage_fuzzing'", - "user_api_fuzzing_jobs": "SELECT COUNT(DISTINCT \"ci_builds\".\"user_id\") FROM \"ci_builds\" WHERE \"ci_builds\".\"type\" = 'Ci::Build' AND \"ci_builds\".\"name\" = 'apifuzzer_fuzz'", - "user_api_fuzzing_dnd_jobs": "SELECT COUNT(DISTINCT \"ci_builds\".\"user_id\") FROM \"ci_builds\" WHERE \"ci_builds\".\"type\" = 'Ci::Build' AND \"ci_builds\".\"name\" = 'apifuzzer_fuzz_dnd'", - "sast_scans": "SELECT COUNT(\"security_scans\".\"build_id\") FROM \"security_scans\" WHERE \"security_scans\".\"scan_type\" = 1", - "dependency_scanning_scans": "SELECT COUNT(\"security_scans\".\"build_id\") FROM \"security_scans\" WHERE \"security_scans\".\"scan_type\" = 2", - "container_scanning_scans": "SELECT COUNT(\"security_scans\".\"build_id\") FROM \"security_scans\" WHERE \"security_scans\".\"scan_type\" = 3", - "dast_scans": "SELECT COUNT(\"security_scans\".\"build_id\") FROM \"security_scans\" WHERE \"security_scans\".\"scan_type\" = 4", - "secret_detection_scans": "SELECT COUNT(\"security_scans\".\"build_id\") FROM \"security_scans\" WHERE \"security_scans\".\"scan_type\" = 5", - "coverage_fuzzing_scans": "SELECT COUNT(\"security_scans\".\"build_id\") FROM \"security_scans\" WHERE \"security_scans\".\"scan_type\" = 6", - "api_fuzzing_scans": "SELECT COUNT(\"security_scans\".\"build_id\") FROM \"security_scans\" WHERE \"security_scans\".\"scan_type\" = 7", - "cluster_image_scanning_scans": "SELECT COUNT(\"security_scans\".\"build_id\") FROM \"security_scans\" WHERE \"security_scans\".\"scan_type\" = 8", - "user_unique_users_all_secure_scanners": "SELECT COUNT(DISTINCT \"ci_builds\".\"user_id\") FROM \"ci_builds\" WHERE \"ci_builds\".\"type\" = 'Ci::Build' AND \"ci_builds\".\"name\" IN ('container_scanning', 'dast', 'dependency_scanning', 'license_management', 'license_scanning', 'sast', 'secret_detection', 'coverage_fuzzing', 'apifuzzer_fuzz', 'apifuzzer_fuzz_dnd')" - }, - "verify": { - "ci_builds": "SELECT COUNT(DISTINCT \"ci_builds\".\"user_id\") FROM \"ci_builds\" WHERE \"ci_builds\".\"type\" = 'Ci::Build'", - "ci_external_pipelines": "SELECT COUNT(DISTINCT \"ci_pipelines\".\"user_id\") FROM \"ci_pipelines\" WHERE \"ci_pipelines\".\"source\" = 6", - "ci_internal_pipelines": "SELECT COUNT(DISTINCT \"ci_pipelines\".\"user_id\") FROM \"ci_pipelines\" WHERE (\"ci_pipelines\".\"source\" IN (1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15) OR \"ci_pipelines\".\"source\" IS NULL)", - "ci_pipeline_config_auto_devops": "SELECT COUNT(DISTINCT \"ci_pipelines\".\"user_id\") FROM \"ci_pipelines\" WHERE \"ci_pipelines\".\"config_source\" = 2", - "ci_pipeline_config_repository": "SELECT COUNT(DISTINCT \"ci_pipelines\".\"user_id\") FROM \"ci_pipelines\" WHERE \"ci_pipelines\".\"config_source\" = 1", - "ci_pipeline_schedules": "SELECT COUNT(DISTINCT \"ci_pipeline_schedules\".\"owner_id\") FROM \"ci_pipeline_schedules\"", - "ci_pipelines": "SELECT COUNT(DISTINCT \"ci_pipelines\".\"user_id\") FROM \"ci_pipelines\"", - "ci_triggers": "SELECT COUNT(DISTINCT \"ci_triggers\".\"owner_id\") FROM \"ci_triggers\"", - "projects_reporting_ci_cd_back_to_github": "SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" INNER JOIN \"integrations\" ON \"integrations\".\"project_id\" = \"projects\".\"id\" AND \"integrations\".\"type_new\" = 'Integrations::Github' WHERE \"integrations\".\"type_new\" = 'Integrations::Github' AND \"integrations\".\"pipeline_events\" = TRUE AND \"integrations\".\"active\" = TRUE" - } - }, - "usage_activity_by_stage_monthly": { - "configure": { - "clusters_management_project": "SELECT COUNT(DISTINCT \"clusters\".\"user_id\") FROM \"clusters\" WHERE \"clusters\".\"management_project_id\" IS NOT NULL AND \"clusters\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "clusters_disabled": "SELECT COUNT(DISTINCT \"clusters\".\"user_id\") FROM \"clusters\" WHERE \"clusters\".\"enabled\" = FALSE AND \"clusters\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "clusters_enabled": "SELECT COUNT(DISTINCT \"clusters\".\"user_id\") FROM \"clusters\" WHERE \"clusters\".\"enabled\" = TRUE AND \"clusters\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "clusters_platforms_gke": "SELECT COUNT(DISTINCT \"clusters\".\"user_id\") FROM \"clusters\" INNER JOIN \"cluster_providers_gcp\" ON \"cluster_providers_gcp\".\"cluster_id\" = \"clusters\".\"id\" WHERE \"clusters\".\"provider_type\" = 1 AND (\"cluster_providers_gcp\".\"status\" IN (3)) AND \"clusters\".\"enabled\" = TRUE AND \"clusters\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "clusters_platforms_eks": "SELECT COUNT(DISTINCT \"clusters\".\"user_id\") FROM \"clusters\" INNER JOIN \"cluster_providers_aws\" ON \"cluster_providers_aws\".\"cluster_id\" = \"clusters\".\"id\" WHERE \"clusters\".\"provider_type\" = 2 AND (\"cluster_providers_aws\".\"status\" IN (3)) AND \"clusters\".\"enabled\" = TRUE AND \"clusters\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "clusters_platforms_user": "SELECT COUNT(DISTINCT \"clusters\".\"user_id\") FROM \"clusters\" WHERE \"clusters\".\"provider_type\" = 0 AND \"clusters\".\"enabled\" = TRUE AND \"clusters\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "instance_clusters_disabled": "SELECT COUNT(DISTINCT \"clusters\".\"user_id\") FROM \"clusters\" WHERE \"clusters\".\"enabled\" = FALSE AND \"clusters\".\"cluster_type\" = 1 AND \"clusters\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "instance_clusters_enabled": "SELECT COUNT(DISTINCT \"clusters\".\"user_id\") FROM \"clusters\" WHERE \"clusters\".\"enabled\" = TRUE AND \"clusters\".\"cluster_type\" = 1 AND \"clusters\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "group_clusters_disabled": "SELECT COUNT(DISTINCT \"clusters\".\"user_id\") FROM \"clusters\" WHERE \"clusters\".\"enabled\" = FALSE AND \"clusters\".\"cluster_type\" = 2 AND \"clusters\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "group_clusters_enabled": "SELECT COUNT(DISTINCT \"clusters\".\"user_id\") FROM \"clusters\" WHERE \"clusters\".\"enabled\" = TRUE AND \"clusters\".\"cluster_type\" = 2 AND \"clusters\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "project_clusters_disabled": "SELECT COUNT(DISTINCT \"clusters\".\"user_id\") FROM \"clusters\" WHERE \"clusters\".\"enabled\" = FALSE AND \"clusters\".\"cluster_type\" = 3 AND \"clusters\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "project_clusters_enabled": "SELECT COUNT(DISTINCT \"clusters\".\"user_id\") FROM \"clusters\" WHERE \"clusters\".\"enabled\" = TRUE AND \"clusters\".\"cluster_type\" = 3 AND \"clusters\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "projects_slack_notifications_active": "SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" INNER JOIN \"integrations\" ON \"integrations\".\"project_id\" = \"projects\".\"id\" AND \"integrations\".\"type_new\" = 'Integrations::Slack' WHERE \"projects\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "projects_slack_slash_active": "SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" INNER JOIN \"integrations\" ON \"integrations\".\"project_id\" = \"projects\".\"id\" AND \"integrations\".\"type_new\" = 'Integrations::SlackSlashCommands' WHERE \"projects\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'" - }, - "create": { - "deploy_keys": "SELECT COUNT(DISTINCT \"keys\".\"user_id\") FROM \"keys\" WHERE \"keys\".\"type\" = 'DeployKey' AND \"keys\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "keys": "SELECT COUNT(DISTINCT \"keys\".\"user_id\") FROM \"keys\" WHERE (\"keys\".\"type\" IN ('LDAPKey', 'Key') OR \"keys\".\"type\" IS NULL) AND \"keys\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "merge_requests": "SELECT COUNT(DISTINCT \"merge_requests\".\"author_id\") FROM \"merge_requests\" WHERE \"merge_requests\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "projects_with_disable_overriding_approvers_per_merge_request": "SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00' AND \"projects\".\"disable_overriding_approvers_per_merge_request\" = TRUE", - "projects_without_disable_overriding_approvers_per_merge_request": "SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00' AND (\"projects\".\"disable_overriding_approvers_per_merge_request\" = FALSE OR \"projects\".\"disable_overriding_approvers_per_merge_request\" IS NULL)", - "remote_mirrors": "SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" INNER JOIN \"remote_mirrors\" ON \"remote_mirrors\".\"project_id\" = \"projects\".\"id\" WHERE \"remote_mirrors\".\"enabled\" = TRUE AND \"projects\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "snippets": "SELECT COUNT(DISTINCT \"snippets\".\"author_id\") FROM \"snippets\" WHERE \"snippets\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "merge_requests_users": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "action_monthly_active_users_project_repo": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "action_monthly_active_users_design_management": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "action_monthly_active_users_wiki_repo": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "action_monthly_active_users_git_write": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "action_monthly_active_users_web_ide_edit": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "action_monthly_active_users_sfe_edit": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "action_monthly_active_users_snippet_editor_edit": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "action_monthly_active_users_sse_edit": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "action_monthly_active_users_ide_edit": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "projects_enforcing_code_owner_approval": "SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" INNER JOIN \"protected_branches\" ON \"protected_branches\".\"project_id\" = \"projects\".\"id\" WHERE \"protected_branches\".\"code_owner_approval_required\" = TRUE AND \"projects\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "projects_with_sectional_code_owner_rules": "SELECT COUNT(DISTINCT \"approval_merge_request_rules\".\"merge_requests.target_project_id\") FROM \"approval_merge_request_rules\" INNER JOIN \"merge_requests\" ON \"merge_requests\".\"id\" = \"approval_merge_request_rules\".\"merge_request_id\" WHERE \"approval_merge_request_rules\".\"rule_type\" = 2 AND \"approval_merge_request_rules\".\"section\" != 'codeowners' AND \"approval_merge_request_rules\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "merge_requests_with_added_rules": "SELECT COUNT(DISTINCT \"approval_merge_request_rules\".\"merge_request_id\") FROM \"approval_merge_request_rules\" LEFT OUTER JOIN \"approval_merge_request_rule_sources\" ON \"approval_merge_request_rule_sources\".\"approval_merge_request_rule_id\" = \"approval_merge_request_rules\".\"id\" WHERE \"approval_merge_request_rules\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00' AND \"approval_merge_request_rule_sources\".\"approval_merge_request_rule_id\" IS NULL", - "merge_requests_with_optional_codeowners": "SELECT COUNT(DISTINCT \"approval_merge_request_rules\".\"merge_request_id\") FROM \"approval_merge_request_rules\" WHERE \"approval_merge_request_rules\".\"rule_type\" = 2 AND \"approval_merge_request_rules\".\"approvals_required\" = 0 AND \"approval_merge_request_rules\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "merge_requests_with_overridden_project_rules": "SELECT COUNT(DISTINCT \"approval_merge_request_rules\".\"merge_request_id\") FROM \"approval_merge_request_rules\" WHERE \"approval_merge_request_rules\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00' AND ((EXISTS (\n SELECT\n 1\n FROM\n approval_merge_request_rule_sources\n WHERE\n approval_merge_request_rule_sources.approval_merge_request_rule_id = approval_merge_request_rules.id\n AND NOT EXISTS (\n SELECT\n 1\n FROM\n approval_project_rules\n WHERE\n approval_project_rules.id = approval_merge_request_rule_sources.approval_project_rule_id\n AND EXISTS (\n SELECT\n 1\n FROM\n projects\n WHERE\n projects.id = approval_project_rules.project_id\n AND projects.disable_overriding_approvers_per_merge_request = FALSE))))\n OR(\"approval_merge_request_rules\".\"modified_from_project_rule\" = TRUE)\n)", - "merge_requests_with_required_codeowners": "SELECT COUNT(DISTINCT \"approval_merge_request_rules\".\"merge_request_id\") FROM \"approval_merge_request_rules\" WHERE \"approval_merge_request_rules\".\"rule_type\" = 2 AND (approvals_required > 0) AND \"approval_merge_request_rules\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "projects_imported_from_github": "SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'github' AND \"projects\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "projects_with_repositories_enabled": "SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" INNER JOIN \"project_features\" ON \"project_features\".\"project_id\" = \"projects\".\"id\" WHERE \"project_features\".\"repository_access_level\" = 20 AND \"projects\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "protected_branches": "SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" INNER JOIN \"protected_branches\" ON \"protected_branches\".\"project_id\" = \"projects\".\"id\" WHERE \"projects\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "users_using_path_locks": "SELECT COUNT(DISTINCT \"path_locks\".\"user_id\") FROM \"path_locks\" WHERE \"path_locks\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "users_using_lfs_locks": "SELECT COUNT(DISTINCT \"lfs_file_locks\".\"user_id\") FROM \"lfs_file_locks\" WHERE \"lfs_file_locks\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "total_number_of_path_locks": "SELECT COUNT(\"path_locks\".\"id\") FROM \"path_locks\" WHERE \"path_locks\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "total_number_of_locked_files": "SELECT COUNT(\"lfs_file_locks\".\"id\") FROM \"lfs_file_locks\" WHERE \"lfs_file_locks\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "approval_project_rules": "SELECT COUNT(\"approval_project_rules\".\"id\") FROM \"approval_project_rules\"", - "approval_project_rules_with_target_branch": "SELECT COUNT(\"approval_project_rules_protected_branches\".\"approval_project_rule_id\") FROM \"approval_project_rules_protected_branches\"", - "approval_project_rules_with_more_approvers_than_required": "SELECT COUNT(*) FROM (SELECT COUNT(\"approval_project_rules\".\"id\") FROM \"approval_project_rules\" INNER JOIN approval_project_rules_users ON approval_project_rules_users.approval_project_rule_id = approval_project_rules.id WHERE \"approval_project_rules\".\"rule_type\" = 0 GROUP BY \"approval_project_rules\".\"id\" HAVING (COUNT(approval_project_rules_users) > approvals_required)) subquery", - "approval_project_rules_with_less_approvers_than_required": "SELECT COUNT(*) FROM (SELECT COUNT(\"approval_project_rules\".\"id\") FROM \"approval_project_rules\" INNER JOIN approval_project_rules_users ON approval_project_rules_users.approval_project_rule_id = approval_project_rules.id WHERE \"approval_project_rules\".\"rule_type\" = 0 GROUP BY \"approval_project_rules\".\"id\" HAVING (COUNT(approval_project_rules_users) < approvals_required)) subquery", - "approval_project_rules_with_exact_required_approvers": "SELECT COUNT(*) FROM (SELECT COUNT(\"approval_project_rules\".\"id\") FROM \"approval_project_rules\" INNER JOIN approval_project_rules_users ON approval_project_rules_users.approval_project_rule_id = approval_project_rules.id WHERE \"approval_project_rules\".\"rule_type\" = 0 GROUP BY \"approval_project_rules\".\"id\" HAVING (COUNT(approval_project_rules_users) = approvals_required)) subquery" - }, - "enablement": { - }, - "manage": { - "events": "SELECT COUNT(DISTINCT \"events\".\"author_id\") FROM \"events\" WHERE \"events\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "groups": "SELECT COUNT(DISTINCT \"members\".\"user_id\") FROM \"members\" WHERE \"members\".\"type\" = 'GroupMember' AND \"members\".\"source_type\" = 'Namespace' AND \"members\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "users_created": "SELECT COUNT(\"users\".\"id\") FROM \"users\" WHERE \"users\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "omniauth_providers": [ - - ], - "user_auth_by_provider": { - "two-factor": "SELECT COUNT(DISTINCT \"authentication_events\".\"user_id\") FROM \"authentication_events\" WHERE \"authentication_events\".\"result\" = 1 AND \"authentication_events\".\"provider\" = 'two-factor' AND \"authentication_events\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "two-factor-via-u2f-device": "SELECT COUNT(DISTINCT \"authentication_events\".\"user_id\") FROM \"authentication_events\" WHERE \"authentication_events\".\"result\" = 1 AND \"authentication_events\".\"provider\" = 'two-factor-via-u2f-device' AND \"authentication_events\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "two-factor-via-webauthn-device": "SELECT COUNT(DISTINCT \"authentication_events\".\"user_id\") FROM \"authentication_events\" WHERE \"authentication_events\".\"result\" = 1 AND \"authentication_events\".\"provider\" = 'two-factor-via-webauthn-device' AND \"authentication_events\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "standard": "SELECT COUNT(DISTINCT \"authentication_events\".\"user_id\") FROM \"authentication_events\" WHERE \"authentication_events\".\"result\" = 1 AND \"authentication_events\".\"provider\" = 'standard' AND \"authentication_events\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'" - }, - "unique_users_all_imports": "SELECT (SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" WHERE \"projects\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00' AND \"projects\".\"import_type\" IS NOT NULL) + (SELECT COUNT(DISTINCT \"bulk_imports\".\"user_id\") FROM \"bulk_imports\" WHERE \"bulk_imports\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00') + (SELECT COUNT(DISTINCT \"jira_imports\".\"user_id\") FROM \"jira_imports\" WHERE \"jira_imports\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00') + (SELECT COUNT(DISTINCT \"csv_issue_imports\".\"user_id\") FROM \"csv_issue_imports\" WHERE \"csv_issue_imports\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00') + (SELECT COUNT(DISTINCT \"group_import_states\".\"user_id\") FROM \"group_import_states\" WHERE \"group_import_states\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00')", - "bulk_imports": { - "gitlab_v1": "SELECT COUNT(\"bulk_imports\".\"id\") FROM \"bulk_imports\" WHERE \"bulk_imports\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00' AND \"bulk_imports\".\"source_type\" = 0" - }, - "project_imports": { - "gitlab_project": "SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'gitlab_project' AND \"projects\".\"import_type\" IS NOT NULL", - "gitlab": "SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'gitlab' AND \"projects\".\"import_type\" IS NOT NULL", - "github": "SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'github' AND \"projects\".\"import_type\" IS NOT NULL", - "bitbucket": "SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'bitbucket' AND \"projects\".\"import_type\" IS NOT NULL", - "bitbucket_server": "SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'bitbucket_server' AND \"projects\".\"import_type\" IS NOT NULL", - "gitea": "SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'gitea' AND \"projects\".\"import_type\" IS NOT NULL", - "git": "SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'git' AND \"projects\".\"import_type\" IS NOT NULL", - "manifest": "SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'manifest' AND \"projects\".\"import_type\" IS NOT NULL", - "gitlab_migration": "SELECT COUNT(\"bulk_import_entities\".\"id\") FROM \"bulk_import_entities\" WHERE \"bulk_import_entities\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00' AND \"bulk_import_entities\".\"source_type\" = 1", - "total": "SELECT (SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'gitlab_project' AND \"projects\".\"import_type\" IS NOT NULL) + (SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'gitlab' AND \"projects\".\"import_type\" IS NOT NULL) + (SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'github' AND \"projects\".\"import_type\" IS NOT NULL) + (SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'bitbucket' AND \"projects\".\"import_type\" IS NOT NULL) + (SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'bitbucket_server' AND \"projects\".\"import_type\" IS NOT NULL) + (SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'gitea' AND \"projects\".\"import_type\" IS NOT NULL) + (SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'git' AND \"projects\".\"import_type\" IS NOT NULL) + (SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'manifest' AND \"projects\".\"import_type\" IS NOT NULL) + (SELECT COUNT(\"bulk_import_entities\".\"id\") FROM \"bulk_import_entities\" WHERE \"bulk_import_entities\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00' AND \"bulk_import_entities\".\"source_type\" = 1)" - }, - "issue_imports": { - "jira": "SELECT COUNT(\"jira_imports\".\"id\") FROM \"jira_imports\" WHERE \"jira_imports\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "fogbugz": "SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'fogbugz' AND \"projects\".\"import_type\" IS NOT NULL", - "phabricator": "SELECT COUNT(\"projects\".\"id\") FROM \"projects\" WHERE \"projects\".\"import_type\" = 'phabricator' AND \"projects\".\"import_type\" IS NOT NULL", - "csv": "SELECT COUNT(\"csv_issue_imports\".\"id\") FROM \"csv_issue_imports\" WHERE \"csv_issue_imports\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'" - }, - "group_imports": { - "group_import": "SELECT COUNT(\"group_import_states\".\"group_id\") FROM \"group_import_states\" WHERE \"group_import_states\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "gitlab_migration": "SELECT COUNT(\"bulk_import_entities\".\"id\") FROM \"bulk_import_entities\" WHERE \"bulk_import_entities\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00' AND \"bulk_import_entities\".\"source_type\" = 0" - }, - "ldap_keys": "SELECT COUNT(DISTINCT \"keys\".\"user_id\") FROM \"keys\" WHERE \"keys\".\"type\" = 'LDAPKey' AND \"keys\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "ldap_users": "SELECT COUNT(DISTINCT \"members\".\"user_id\") FROM \"members\" WHERE \"members\".\"type\" = 'GroupMember' AND \"members\".\"source_type\" = 'Namespace' AND \"members\".\"ldap\" = TRUE AND \"members\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "value_stream_management_customized_group_stages": "SELECT COUNT(\"analytics_cycle_analytics_group_stages\".\"id\") FROM \"analytics_cycle_analytics_group_stages\" WHERE \"analytics_cycle_analytics_group_stages\".\"custom\" = TRUE", - "projects_with_compliance_framework": "SELECT COUNT(\"project_compliance_framework_settings\".\"project_id\") FROM \"project_compliance_framework_settings\"", - "custom_compliance_frameworks": "SELECT COUNT(\"compliance_management_frameworks\".\"id\") FROM \"compliance_management_frameworks\"", - "compliance_frameworks_with_pipeline": "SELECT COUNT(\"compliance_management_frameworks\".\"id\") FROM \"compliance_management_frameworks\" WHERE \"compliance_management_frameworks\".\"pipeline_configuration_full_path\" IS NOT NULL", - "ldap_servers": 0, - "ldap_group_sync_enabled": false, - "ldap_admin_sync_enabled": false, - "group_saml_enabled": false, - "audit_event_destinations": "SELECT COUNT(\"audit_events_external_audit_event_destinations\".\"id\") FROM \"audit_events_external_audit_event_destinations\" WHERE \"audit_events_external_audit_event_destinations\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "groups_with_event_streaming_destinations": "SELECT COUNT(DISTINCT \"namespaces\".\"id\") FROM \"namespaces\" INNER JOIN \"audit_events_external_audit_event_destinations\" ON \"audit_events_external_audit_event_destinations\".\"namespace_id\" = \"namespaces\".\"id\" WHERE \"namespaces\".\"type\" = 'Group' AND \"namespaces\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'" - }, - "monitor": { - "clusters": "SELECT COUNT(DISTINCT \"clusters\".\"user_id\") FROM \"clusters\" WHERE \"clusters\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "clusters_integrations_prometheus": "SELECT COUNT(DISTINCT \"clusters_integration_prometheus\".\"clusters.user_id\") FROM \"clusters_integration_prometheus\" INNER JOIN \"clusters\" ON \"clusters\".\"id\" = \"clusters_integration_prometheus\".\"cluster_id\" WHERE \"clusters_integration_prometheus\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00' AND \"clusters_integration_prometheus\".\"enabled\" = TRUE", - "operations_dashboard_default_dashboard": "SELECT COUNT(\"users\".\"id\") FROM \"users\" WHERE (\"users\".\"state\" IN ('active')) AND (\"users\".\"user_type\" IS NULL OR \"users\".\"user_type\" IN (6, 4)) AND \"users\".\"dashboard\" = 8 AND \"users\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "projects_with_tracing_enabled": "SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" INNER JOIN \"project_tracing_settings\" ON \"project_tracing_settings\".\"project_id\" = \"projects\".\"id\" WHERE \"projects\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "projects_with_error_tracking_enabled": "SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" INNER JOIN \"project_error_tracking_settings\" ON \"project_error_tracking_settings\".\"project_id\" = \"projects\".\"id\" WHERE \"project_error_tracking_settings\".\"enabled\" = TRUE AND \"projects\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "projects_with_incidents": "SELECT COUNT(DISTINCT \"issues\".\"project_id\") FROM \"issues\" WHERE \"issues\".\"issue_type\" = 1 AND \"issues\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "projects_with_alert_incidents": "SELECT COUNT(DISTINCT \"issues\".\"project_id\") FROM \"issues\" INNER JOIN \"alert_management_alerts\" ON \"alert_management_alerts\".\"issue_id\" = \"issues\".\"id\" WHERE \"issues\".\"issue_type\" = 1 AND \"issues\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "operations_dashboard_users_with_projects_added": "SELECT COUNT(DISTINCT \"users_ops_dashboard_projects\".\"user_id\") FROM \"users_ops_dashboard_projects\" INNER JOIN \"users\" ON \"users\".\"id\" = \"users_ops_dashboard_projects\".\"user_id\" WHERE (\"users\".\"state\" IN ('active')) AND (\"users\".\"user_type\" IS NULL OR \"users\".\"user_type\" IN (6, 4)) AND \"users_ops_dashboard_projects\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'" - }, - "package": { - "projects_with_packages": "SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" INNER JOIN \"packages_packages\" ON \"packages_packages\".\"project_id\" = \"projects\".\"id\" WHERE \"projects\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'" - }, - "plan": { - "issues": "SELECT COUNT(DISTINCT \"issues\".\"author_id\") FROM \"issues\" WHERE \"issues\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "notes": "SELECT COUNT(DISTINCT \"notes\".\"author_id\") FROM \"notes\" WHERE \"notes\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "projects": "SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" WHERE \"projects\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "todos": "SELECT COUNT(DISTINCT \"todos\".\"author_id\") FROM \"todos\" WHERE \"todos\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "service_desk_enabled_projects": "SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" WHERE \"projects\".\"service_desk_enabled\" = TRUE AND \"projects\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "service_desk_issues": "SELECT COUNT(\"issues\".\"id\") FROM \"issues\" WHERE \"issues\".\"author_id\" = 126 AND \"issues\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "projects_jira_active": "SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" INNER JOIN \"integrations\" ON \"integrations\".\"project_id\" = \"projects\".\"id\" WHERE \"integrations\".\"type_new\" = 'Integrations::Jira' AND \"integrations\".\"active\" = TRUE AND \"projects\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "projects_jira_dvcs_cloud_active": "SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" INNER JOIN \"integrations\" ON \"integrations\".\"project_id\" = \"projects\".\"id\" INNER JOIN \"project_feature_usages\" ON \"project_feature_usages\".\"project_id\" = \"projects\".\"id\" WHERE \"integrations\".\"type_new\" = 'Integrations::Jira' AND \"integrations\".\"active\" = TRUE AND \"project_feature_usages\".\"jira_dvcs_cloud_last_sync_at\" IS NOT NULL AND \"projects\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "projects_jira_dvcs_server_active": "SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" INNER JOIN \"integrations\" ON \"integrations\".\"project_id\" = \"projects\".\"id\" INNER JOIN \"project_feature_usages\" ON \"project_feature_usages\".\"project_id\" = \"projects\".\"id\" WHERE \"integrations\".\"type_new\" = 'Integrations::Jira' AND \"integrations\".\"active\" = TRUE AND \"project_feature_usages\".\"jira_dvcs_server_last_sync_at\" IS NOT NULL AND \"projects\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "assignee_lists": "SELECT COUNT(DISTINCT \"lists\".\"user_id\") FROM \"lists\" WHERE \"lists\".\"list_type\" = 3 AND \"lists\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "epics": "SELECT COUNT(DISTINCT \"epics\".\"author_id\") FROM \"epics\" WHERE \"epics\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "label_lists": "SELECT COUNT(DISTINCT \"lists\".\"user_id\") FROM \"lists\" WHERE \"lists\".\"list_type\" = 1 AND \"lists\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "milestone_lists": "SELECT COUNT(DISTINCT \"lists\".\"user_id\") FROM \"lists\" WHERE \"lists\".\"list_type\" = 4 AND \"lists\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'" - }, - "release": { - "deployments": "SELECT COUNT(DISTINCT \"deployments\".\"user_id\") FROM \"deployments\" WHERE \"deployments\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "failed_deployments": "SELECT COUNT(DISTINCT \"deployments\".\"user_id\") FROM \"deployments\" WHERE \"deployments\".\"status\" = 3 AND \"deployments\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "releases": "SELECT COUNT(DISTINCT \"releases\".\"author_id\") FROM \"releases\" WHERE \"releases\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "successful_deployments": "SELECT COUNT(DISTINCT \"deployments\".\"user_id\") FROM \"deployments\" WHERE \"deployments\".\"status\" = 2 AND \"deployments\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "releases_with_milestones": "SELECT COUNT(DISTINCT \"releases\".\"author_id\") FROM \"releases\" INNER JOIN \"milestone_releases\" ON \"milestone_releases\".\"release_id\" = \"releases\".\"id\" WHERE \"releases\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "projects_mirrored_with_pipelines_enabled": "SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" INNER JOIN \"project_features\" ON \"project_features\".\"project_id\" = \"projects\".\"id\" WHERE \"projects\".\"mirror\" = TRUE AND \"projects\".\"mirror_trigger_builds\" = TRUE AND \"project_features\".\"builds_access_level\" = 20 AND \"projects\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "releases_with_group_milestones": "SELECT COUNT(DISTINCT \"releases\".\"author_id\") FROM \"releases\" INNER JOIN \"milestone_releases\" ON \"milestone_releases\".\"release_id\" = \"releases\".\"id\" INNER JOIN \"milestones\" ON \"milestones\".\"id\" = \"milestone_releases\".\"milestone_id\" WHERE \"milestones\".\"group_id\" IS NOT NULL AND \"releases\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'" - }, - "secure": { - "user_preferences_group_overview_security_dashboard": "SELECT COUNT(\"users\".\"id\") FROM \"users\" WHERE (\"users\".\"state\" IN ('active')) AND (\"users\".\"user_type\" IS NULL OR \"users\".\"user_type\" IN (6, 4)) AND \"users\".\"group_view\" = 2 AND \"users\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "user_container_scanning_jobs": "SELECT COUNT(DISTINCT \"ci_builds\".\"user_id\") FROM \"ci_builds\" WHERE \"ci_builds\".\"type\" = 'Ci::Build' AND \"ci_builds\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00' AND \"ci_builds\".\"name\" = 'container_scanning'", - "user_dast_jobs": "SELECT COUNT(DISTINCT \"ci_builds\".\"user_id\") FROM \"ci_builds\" WHERE \"ci_builds\".\"type\" = 'Ci::Build' AND \"ci_builds\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00' AND \"ci_builds\".\"name\" = 'dast'", - "user_dependency_scanning_jobs": "SELECT COUNT(DISTINCT \"ci_builds\".\"user_id\") FROM \"ci_builds\" WHERE \"ci_builds\".\"type\" = 'Ci::Build' AND \"ci_builds\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00' AND \"ci_builds\".\"name\" = 'dependency_scanning'", - "user_license_management_jobs": "SELECT COUNT(DISTINCT \"ci_builds\".\"user_id\") FROM \"ci_builds\" WHERE \"ci_builds\".\"type\" = 'Ci::Build' AND \"ci_builds\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00' AND \"ci_builds\".\"name\" = 'license_management'", - "user_sast_jobs": "SELECT COUNT(DISTINCT \"ci_builds\".\"user_id\") FROM \"ci_builds\" WHERE \"ci_builds\".\"type\" = 'Ci::Build' AND \"ci_builds\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00' AND \"ci_builds\".\"name\" = 'sast'", - "user_secret_detection_jobs": "SELECT COUNT(DISTINCT \"ci_builds\".\"user_id\") FROM \"ci_builds\" WHERE \"ci_builds\".\"type\" = 'Ci::Build' AND \"ci_builds\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00' AND \"ci_builds\".\"name\" = 'secret_detection'", - "user_coverage_fuzzing_jobs": "SELECT COUNT(DISTINCT \"ci_builds\".\"user_id\") FROM \"ci_builds\" WHERE \"ci_builds\".\"type\" = 'Ci::Build' AND \"ci_builds\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00' AND \"ci_builds\".\"name\" = 'coverage_fuzzing'", - "user_api_fuzzing_jobs": "SELECT COUNT(DISTINCT \"ci_builds\".\"user_id\") FROM \"ci_builds\" WHERE \"ci_builds\".\"type\" = 'Ci::Build' AND \"ci_builds\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00' AND \"ci_builds\".\"name\" = 'apifuzzer_fuzz'", - "user_api_fuzzing_dnd_jobs": "SELECT COUNT(DISTINCT \"ci_builds\".\"user_id\") FROM \"ci_builds\" WHERE \"ci_builds\".\"type\" = 'Ci::Build' AND \"ci_builds\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00' AND \"ci_builds\".\"name\" = 'apifuzzer_fuzz_dnd'", - "sast_pipeline": 0, - "dependency_scanning_pipeline": 0, - "container_scanning_pipeline": 0, - "dast_pipeline": 0, - "secret_detection_pipeline": 0, - "coverage_fuzzing_pipeline": 0, - "api_fuzzing_pipeline": 0, - "cluster_image_scanning_pipeline": 0, - "sast_scans": "SELECT COUNT(\"security_scans\".\"build_id\") FROM \"security_scans\" WHERE \"security_scans\".\"scan_type\" = 1 AND \"security_scans\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "dependency_scanning_scans": "SELECT COUNT(\"security_scans\".\"build_id\") FROM \"security_scans\" WHERE \"security_scans\".\"scan_type\" = 2 AND \"security_scans\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "container_scanning_scans": "SELECT COUNT(\"security_scans\".\"build_id\") FROM \"security_scans\" WHERE \"security_scans\".\"scan_type\" = 3 AND \"security_scans\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "dast_scans": "SELECT COUNT(\"security_scans\".\"build_id\") FROM \"security_scans\" WHERE \"security_scans\".\"scan_type\" = 4 AND \"security_scans\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "secret_detection_scans": "SELECT COUNT(\"security_scans\".\"build_id\") FROM \"security_scans\" WHERE \"security_scans\".\"scan_type\" = 5 AND \"security_scans\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "coverage_fuzzing_scans": "SELECT COUNT(\"security_scans\".\"build_id\") FROM \"security_scans\" WHERE \"security_scans\".\"scan_type\" = 6 AND \"security_scans\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "api_fuzzing_scans": "SELECT COUNT(\"security_scans\".\"build_id\") FROM \"security_scans\" WHERE \"security_scans\".\"scan_type\" = 7 AND \"security_scans\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "cluster_image_scanning_scans": "SELECT COUNT(\"security_scans\".\"build_id\") FROM \"security_scans\" WHERE \"security_scans\".\"scan_type\" = 8 AND \"security_scans\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "user_unique_users_all_secure_scanners": "SELECT COUNT(DISTINCT \"ci_builds\".\"user_id\") FROM \"ci_builds\" WHERE \"ci_builds\".\"type\" = 'Ci::Build' AND \"ci_builds\".\"name\" IN ('container_scanning', 'dast', 'dependency_scanning', 'license_management', 'license_scanning', 'sast', 'secret_detection', 'coverage_fuzzing', 'apifuzzer_fuzz', 'apifuzzer_fuzz_dnd') AND \"ci_builds\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'" - }, - "verify": { - "ci_builds": "SELECT COUNT(DISTINCT \"ci_builds\".\"user_id\") FROM \"ci_builds\" WHERE \"ci_builds\".\"type\" = 'Ci::Build' AND \"ci_builds\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "ci_external_pipelines": "SELECT COUNT(DISTINCT \"ci_pipelines\".\"user_id\") FROM \"ci_pipelines\" WHERE \"ci_pipelines\".\"source\" = 6 AND \"ci_pipelines\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "ci_internal_pipelines": "SELECT COUNT(DISTINCT \"ci_pipelines\".\"user_id\") FROM \"ci_pipelines\" WHERE (\"ci_pipelines\".\"source\" IN (1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15) OR \"ci_pipelines\".\"source\" IS NULL) AND \"ci_pipelines\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "ci_pipeline_config_auto_devops": "SELECT COUNT(DISTINCT \"ci_pipelines\".\"user_id\") FROM \"ci_pipelines\" WHERE \"ci_pipelines\".\"config_source\" = 2 AND \"ci_pipelines\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "ci_pipeline_config_repository": "SELECT COUNT(DISTINCT \"ci_pipelines\".\"user_id\") FROM \"ci_pipelines\" WHERE \"ci_pipelines\".\"config_source\" = 1 AND \"ci_pipelines\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "ci_pipeline_schedules": "SELECT COUNT(DISTINCT \"ci_pipeline_schedules\".\"owner_id\") FROM \"ci_pipeline_schedules\" WHERE \"ci_pipeline_schedules\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "ci_pipelines": "SELECT COUNT(DISTINCT \"ci_pipelines\".\"user_id\") FROM \"ci_pipelines\" WHERE \"ci_pipelines\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "ci_triggers": "SELECT COUNT(DISTINCT \"ci_triggers\".\"owner_id\") FROM \"ci_triggers\" WHERE \"ci_triggers\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'", - "projects_reporting_ci_cd_back_to_github": "SELECT COUNT(DISTINCT \"projects\".\"creator_id\") FROM \"projects\" INNER JOIN \"integrations\" ON \"integrations\".\"project_id\" = \"projects\".\"id\" AND \"integrations\".\"type_new\" = 'Integrations::Github' WHERE \"integrations\".\"type_new\" = 'Integrations::Github' AND \"integrations\".\"pipeline_events\" = TRUE AND \"integrations\".\"active\" = TRUE AND \"projects\".\"created_at\" BETWEEN '2020-12-02 00:00:00' AND '2020-12-30 00:00:00'" - } - }, - "analytics_unique_visits": { - "users_viewing_analytics_group_devops_adoption": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "i_analytics_dev_ops_adoption": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "i_analytics_dev_ops_score": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "p_analytics_merge_request": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "i_analytics_instance_statistics": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "g_analytics_contribution": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "g_analytics_insights": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "g_analytics_issues": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "g_analytics_productivity": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "g_analytics_valuestream": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "p_analytics_pipelines": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "p_analytics_code_reviews": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "p_analytics_valuestream": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "p_analytics_insights": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "p_analytics_issues": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "p_analytics_repo": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "i_analytics_cohorts": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "p_analytics_ci_cd_pipelines": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "p_analytics_ci_cd_deployment_frequency": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "p_analytics_ci_cd_lead_time": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "analytics_unique_visits_for_any_target": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "analytics_unique_visits_for_any_target_monthly": { - "redis_usage_data_block": "non-SQL usage data block" - } - }, - "compliance_unique_visits": { - "g_compliance_dashboard": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "g_compliance_audit_events": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "i_compliance_audit_events": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "i_compliance_credential_inventory": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "a_compliance_audit_events_api": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "compliance_unique_visits_for_any_target": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "compliance_unique_visits_for_any_target_monthly": { - "redis_usage_data_block": "non-SQL usage data block" - } - }, - "search_unique_visits": { - "i_search_total": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "i_search_advanced": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "i_search_paid": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "search_unique_visits_for_any_target_weekly": { - "redis_usage_data_block": "non-SQL usage data block" - }, - "search_unique_visits_for_any_target_monthly": { - "redis_usage_data_block": "non-SQL usage data block" - } - }, - "redis_hll_counters": { - "error_tracking": { - "error_tracking_view_details_weekly": 0, - "error_tracking_view_details_monthly": 0, - "error_tracking_view_list_weekly": 0, - "error_tracking_view_list_monthly": 0, - "error_tracking_total_unique_counts_weekly": 0, - "error_tracking_total_unique_counts_monthly": 0 - }, - "epics_usage": { - "g_project_management_epic_created_weekly": 0, - "g_project_management_epic_created_monthly": 0, - "project_management_users_unchecking_epic_task_weekly": 0, - "project_management_users_unchecking_epic_task_monthly": 0, - "project_management_users_checking_epic_task_weekly": 0, - "project_management_users_checking_epic_task_monthly": 0, - "g_project_management_users_updating_epic_titles_weekly": 0, - "g_project_management_users_updating_epic_titles_monthly": 0, - "g_project_management_users_updating_epic_descriptions_weekly": 0, - "g_project_management_users_updating_epic_descriptions_monthly": 0, - "g_project_management_users_creating_epic_notes_weekly": 0, - "g_project_management_users_creating_epic_notes_monthly": 0, - "g_project_management_users_updating_epic_notes_weekly": 0, - "g_project_management_users_updating_epic_notes_monthly": 0, - "g_project_management_users_destroying_epic_notes_weekly": 0, - "g_project_management_users_destroying_epic_notes_monthly": 0, - "g_project_management_users_awarding_epic_emoji_weekly": 0, - "g_project_management_users_awarding_epic_emoji_monthly": 0, - "g_project_management_users_removing_epic_emoji_weekly": 0, - "g_project_management_users_removing_epic_emoji_monthly": 0, - "g_project_management_users_setting_epic_start_date_as_fixed_weekly": 0, - "g_project_management_users_setting_epic_start_date_as_fixed_monthly": 0, - "g_project_management_users_updating_fixed_epic_start_date_weekly": 0, - "g_project_management_users_updating_fixed_epic_start_date_monthly": 0, - "g_project_management_users_setting_epic_start_date_as_inherited_weekly": 0, - "g_project_management_users_setting_epic_start_date_as_inherited_monthly": 0, - "g_project_management_users_setting_epic_due_date_as_fixed_weekly": 0, - "g_project_management_users_setting_epic_due_date_as_fixed_monthly": 0, - "g_project_management_users_updating_fixed_epic_due_date_weekly": 0, - "g_project_management_users_updating_fixed_epic_due_date_monthly": 0, - "g_project_management_users_setting_epic_due_date_as_inherited_weekly": 0, - "g_project_management_users_setting_epic_due_date_as_inherited_monthly": 0, - "g_project_management_epic_issue_added_weekly": 0, - "g_project_management_epic_issue_added_monthly": 0, - "g_project_management_epic_issue_removed_weekly": 0, - "g_project_management_epic_issue_removed_monthly": 0, - "g_project_management_epic_issue_moved_from_project_weekly": 0, - "g_project_management_epic_issue_moved_from_project_monthly": 0, - "g_project_management_users_updating_epic_parent_weekly": 0, - "g_project_management_users_updating_epic_parent_monthly": 0, - "g_project_management_epic_closed_weekly": 0, - "g_project_management_epic_closed_monthly": 0, - "g_project_management_epic_reopened_weekly": 0, - "g_project_management_epic_reopened_monthly": 0, - "g_project_management_issue_promoted_to_epic_weekly": 0, - "g_project_management_issue_promoted_to_epic_monthly": 0, - "g_project_management_users_setting_epic_confidential_weekly": 0, - "g_project_management_users_setting_epic_confidential_monthly": 0, - "g_project_management_users_setting_epic_visible_weekly": 0, - "g_project_management_users_setting_epic_visible_monthly": 0, - "g_project_management_epic_users_changing_labels_weekly": 0, - "g_project_management_epic_users_changing_labels_monthly": 0, - "g_project_management_epic_destroyed_weekly": 0, - "g_project_management_epic_destroyed_monthly": 0, - "g_project_management_epic_cross_referenced_weekly": 0, - "g_project_management_epic_cross_referenced_monthly": 0, - "g_project_management_users_epic_issue_added_from_epic_weekly": 0, - "g_project_management_users_epic_issue_added_from_epic_monthly": 0, - "epics_usage_total_unique_counts_weekly": 0, - "epics_usage_total_unique_counts_monthly": 0 - }, - "importer": { - "github_import_project_start_weekly": 0, - "github_import_project_start_monthly": 0, - "github_import_project_success_weekly": 0, - "github_import_project_success_monthly": 0, - "github_import_project_failure_weekly": 0, - "github_import_project_failure_monthly": 0 - }, - "ci_users": { - "ci_users_executing_deployment_job_weekly": 0, - "ci_users_executing_deployment_job_monthly": 0 - }, - "analytics": { - "users_viewing_analytics_group_devops_adoption_weekly": 0, - "users_viewing_analytics_group_devops_adoption_monthly": 0, - "i_analytics_dev_ops_adoption_weekly": 0, - "i_analytics_dev_ops_adoption_monthly": 0, - "i_analytics_dev_ops_score_weekly": 0, - "i_analytics_dev_ops_score_monthly": 0, - "p_analytics_merge_request_weekly": 0, - "p_analytics_merge_request_monthly": 0, - "i_analytics_instance_statistics_weekly": 0, - "i_analytics_instance_statistics_monthly": 0, - "g_analytics_contribution_weekly": 0, - "g_analytics_contribution_monthly": 0, - "g_analytics_insights_weekly": 0, - "g_analytics_insights_monthly": 0, - "g_analytics_issues_weekly": 0, - "g_analytics_issues_monthly": 0, - "g_analytics_productivity_weekly": 0, - "g_analytics_productivity_monthly": 0, - "g_analytics_valuestream_weekly": 0, - "g_analytics_valuestream_monthly": 0, - "p_analytics_pipelines_weekly": 0, - "p_analytics_pipelines_monthly": 0, - "p_analytics_code_reviews_weekly": 0, - "p_analytics_code_reviews_monthly": 0, - "p_analytics_valuestream_weekly": 0, - "p_analytics_valuestream_monthly": 0, - "p_analytics_insights_weekly": 0, - "p_analytics_insights_monthly": 0, - "p_analytics_issues_weekly": 0, - "p_analytics_issues_monthly": 0, - "p_analytics_repo_weekly": 0, - "p_analytics_repo_monthly": 0, - "i_analytics_cohorts_weekly": 0, - "i_analytics_cohorts_monthly": 0, - "p_analytics_ci_cd_pipelines_weekly": 0, - "p_analytics_ci_cd_pipelines_monthly": 0, - "p_analytics_ci_cd_deployment_frequency_weekly": 0, - "p_analytics_ci_cd_deployment_frequency_monthly": 0, - "p_analytics_ci_cd_lead_time_weekly": 0, - "p_analytics_ci_cd_lead_time_monthly": 0, - "analytics_total_unique_counts_weekly": 0, - "analytics_total_unique_counts_monthly": 0 - }, - "epic_boards_usage": { - "g_project_management_users_creating_epic_boards_weekly": 0, - "g_project_management_users_creating_epic_boards_monthly": 0, - "g_project_management_users_viewing_epic_boards_weekly": 0, - "g_project_management_users_viewing_epic_boards_monthly": 0, - "g_project_management_users_updating_epic_board_names_weekly": 0, - "g_project_management_users_updating_epic_board_names_monthly": 0, - "epic_boards_usage_total_unique_counts_weekly": 0, - "epic_boards_usage_total_unique_counts_monthly": 0 - }, - "quickactions": { - "i_quickactions_approve_weekly": 0, - "i_quickactions_approve_monthly": 0, - "i_quickactions_unapprove_weekly": 0, - "i_quickactions_unapprove_monthly": 0, - "i_quickactions_assign_single_weekly": 0, - "i_quickactions_assign_single_monthly": 0, - "i_quickactions_assign_multiple_weekly": 0, - "i_quickactions_assign_multiple_monthly": 0, - "i_quickactions_assign_self_weekly": 0, - "i_quickactions_assign_self_monthly": 0, - "i_quickactions_assign_reviewer_weekly": 0, - "i_quickactions_assign_reviewer_monthly": 0, - "i_quickactions_award_weekly": 0, - "i_quickactions_award_monthly": 0, - "i_quickactions_board_move_weekly": 0, - "i_quickactions_board_move_monthly": 0, - "i_quickactions_child_epic_weekly": 0, - "i_quickactions_child_epic_monthly": 0, - "i_quickactions_clear_weight_weekly": 0, - "i_quickactions_clear_weight_monthly": 0, - "i_quickactions_clear_health_status_weekly": 0, - "i_quickactions_clear_health_status_monthly": 0, - "i_quickactions_clone_weekly": 0, - "i_quickactions_clone_monthly": 0, - "i_quickactions_close_weekly": 0, - "i_quickactions_close_monthly": 0, - "i_quickactions_confidential_weekly": 0, - "i_quickactions_confidential_monthly": 0, - "i_quickactions_copy_metadata_merge_request_weekly": 0, - "i_quickactions_copy_metadata_merge_request_monthly": 0, - "i_quickactions_copy_metadata_issue_weekly": 0, - "i_quickactions_copy_metadata_issue_monthly": 0, - "i_quickactions_create_merge_request_weekly": 0, - "i_quickactions_create_merge_request_monthly": 0, - "i_quickactions_done_weekly": 0, - "i_quickactions_done_monthly": 0, - "i_quickactions_draft_weekly": 0, - "i_quickactions_draft_monthly": 0, - "i_quickactions_due_weekly": 0, - "i_quickactions_due_monthly": 0, - "i_quickactions_duplicate_weekly": 0, - "i_quickactions_duplicate_monthly": 0, - "i_quickactions_epic_weekly": 0, - "i_quickactions_epic_monthly": 0, - "i_quickactions_estimate_weekly": 0, - "i_quickactions_estimate_monthly": 0, - "i_quickactions_iteration_weekly": 0, - "i_quickactions_iteration_monthly": 0, - "i_quickactions_label_weekly": 0, - "i_quickactions_label_monthly": 0, - "i_quickactions_lock_weekly": 0, - "i_quickactions_lock_monthly": 0, - "i_quickactions_merge_weekly": 0, - "i_quickactions_merge_monthly": 0, - "i_quickactions_milestone_weekly": 0, - "i_quickactions_milestone_monthly": 0, - "i_quickactions_move_weekly": 0, - "i_quickactions_move_monthly": 0, - "i_quickactions_parent_epic_weekly": 0, - "i_quickactions_parent_epic_monthly": 0, - "i_quickactions_promote_weekly": 0, - "i_quickactions_promote_monthly": 0, - "i_quickactions_promote_to_incident_weekly": 0, - "i_quickactions_promote_to_incident_monthly": 0, - "i_quickactions_page_weekly": 0, - "i_quickactions_page_monthly": 0, - "i_quickactions_publish_weekly": 0, - "i_quickactions_publish_monthly": 0, - "i_quickactions_reassign_weekly": 0, - "i_quickactions_reassign_monthly": 0, - "i_quickactions_reassign_reviewer_weekly": 0, - "i_quickactions_reassign_reviewer_monthly": 0, - "i_quickactions_rebase_weekly": 0, - "i_quickactions_rebase_monthly": 0, - "i_quickactions_relabel_weekly": 0, - "i_quickactions_relabel_monthly": 0, - "i_quickactions_relate_weekly": 0, - "i_quickactions_relate_monthly": 0, - "i_quickactions_remove_child_epic_weekly": 0, - "i_quickactions_remove_child_epic_monthly": 0, - "i_quickactions_remove_due_date_weekly": 0, - "i_quickactions_remove_due_date_monthly": 0, - "i_quickactions_remove_epic_weekly": 0, - "i_quickactions_remove_epic_monthly": 0, - "i_quickactions_remove_estimate_weekly": 0, - "i_quickactions_remove_estimate_monthly": 0, - "i_quickactions_remove_iteration_weekly": 0, - "i_quickactions_remove_iteration_monthly": 0, - "i_quickactions_remove_milestone_weekly": 0, - "i_quickactions_remove_milestone_monthly": 0, - "i_quickactions_remove_parent_epic_weekly": 0, - "i_quickactions_remove_parent_epic_monthly": 0, - "i_quickactions_remove_time_spent_weekly": 0, - "i_quickactions_remove_time_spent_monthly": 0, - "i_quickactions_remove_zoom_weekly": 0, - "i_quickactions_remove_zoom_monthly": 0, - "i_quickactions_reopen_weekly": 0, - "i_quickactions_reopen_monthly": 0, - "i_quickactions_severity_weekly": 0, - "i_quickactions_severity_monthly": 0, - "i_quickactions_shrug_weekly": 0, - "i_quickactions_shrug_monthly": 0, - "i_quickactions_spend_subtract_weekly": 0, - "i_quickactions_spend_subtract_monthly": 0, - "i_quickactions_spend_add_weekly": 0, - "i_quickactions_spend_add_monthly": 0, - "i_quickactions_submit_review_weekly": 0, - "i_quickactions_submit_review_monthly": 0, - "i_quickactions_subscribe_weekly": 0, - "i_quickactions_subscribe_monthly": 0, - "i_quickactions_tableflip_weekly": 0, - "i_quickactions_tableflip_monthly": 0, - "i_quickactions_tag_weekly": 0, - "i_quickactions_tag_monthly": 0, - "i_quickactions_target_branch_weekly": 0, - "i_quickactions_target_branch_monthly": 0, - "i_quickactions_title_weekly": 0, - "i_quickactions_title_monthly": 0, - "i_quickactions_todo_weekly": 0, - "i_quickactions_todo_monthly": 0, - "i_quickactions_unassign_specific_weekly": 0, - "i_quickactions_unassign_specific_monthly": 0, - "i_quickactions_unassign_all_weekly": 0, - "i_quickactions_unassign_all_monthly": 0, - "i_quickactions_unassign_reviewer_weekly": 0, - "i_quickactions_unassign_reviewer_monthly": 0, - "i_quickactions_unlabel_specific_weekly": 0, - "i_quickactions_unlabel_specific_monthly": 0, - "i_quickactions_unlabel_all_weekly": 0, - "i_quickactions_unlabel_all_monthly": 0, - "i_quickactions_unlock_weekly": 0, - "i_quickactions_unlock_monthly": 0, - "i_quickactions_unsubscribe_weekly": 0, - "i_quickactions_unsubscribe_monthly": 0, - "i_quickactions_weight_weekly": 0, - "i_quickactions_weight_monthly": 0, - "i_quickactions_health_status_weekly": 0, - "i_quickactions_health_status_monthly": 0, - "i_quickactions_wip_weekly": 0, - "i_quickactions_wip_monthly": 0, - "i_quickactions_zoom_weekly": 0, - "i_quickactions_zoom_monthly": 0, - "i_quickactions_invite_email_single_weekly": 0, - "i_quickactions_invite_email_single_monthly": 0, - "i_quickactions_invite_email_multiple_weekly": 0, - "i_quickactions_invite_email_multiple_monthly": 0, - "i_quickactions_add_contacts_weekly": 0, - "i_quickactions_add_contacts_monthly": 0, - "i_quickactions_remove_contacts_weekly": 0, - "i_quickactions_remove_contacts_monthly": 0, - "i_quickactions_attention_weekly": 0, - "i_quickactions_attention_monthly": 0, - "i_quickactions_remove_attention_weekly": 0, - "i_quickactions_remove_attention_monthly": 0, - "quickactions_total_unique_counts_weekly": 0, - "quickactions_total_unique_counts_monthly": 0 - }, - "compliance": { - "g_compliance_dashboard_weekly": 0, - "g_compliance_dashboard_monthly": 0, - "g_compliance_audit_events_weekly": 0, - "g_compliance_audit_events_monthly": 0, - "i_compliance_audit_events_weekly": 0, - "i_compliance_audit_events_monthly": 0, - "i_compliance_credential_inventory_weekly": 0, - "i_compliance_credential_inventory_monthly": 0, - "a_compliance_audit_events_api_weekly": 0, - "a_compliance_audit_events_api_monthly": 0, - "compliance_total_unique_counts_weekly": 0, - "compliance_total_unique_counts_monthly": 0 - }, - "ide_edit": { - "g_edit_by_web_ide_weekly": 0, - "g_edit_by_web_ide_monthly": 0, - "g_edit_by_sfe_weekly": 0, - "g_edit_by_sfe_monthly": 0, - "g_edit_by_sse_weekly": 0, - "g_edit_by_sse_monthly": 0, - "g_edit_by_snippet_ide_weekly": 0, - "g_edit_by_snippet_ide_monthly": 0, - "ide_edit_total_unique_counts_weekly": 0, - "ide_edit_total_unique_counts_monthly": 0 - }, - "search": { - "i_search_total_weekly": 0, - "i_search_total_monthly": 0, - "i_search_advanced_weekly": 0, - "i_search_advanced_monthly": 0, - "i_search_paid_weekly": 0, - "i_search_paid_monthly": 0, - "search_total_unique_counts_weekly": 0, - "search_total_unique_counts_monthly": 0 - }, - "source_code": { - "wiki_action_weekly": 0, - "wiki_action_monthly": 0, - "design_action_weekly": 0, - "design_action_monthly": 0, - "project_action_weekly": 0, - "project_action_monthly": 0, - "git_write_action_weekly": 0, - "git_write_action_monthly": 0, - "merge_request_action_weekly": 0, - "merge_request_action_monthly": 0, - "i_source_code_code_intelligence_weekly": 0, - "i_source_code_code_intelligence_monthly": 0 - }, - "incident_management": { - "incident_management_alert_status_changed_weekly": 0, - "incident_management_alert_status_changed_monthly": 0, - "incident_management_alert_assigned_weekly": 0, - "incident_management_alert_assigned_monthly": 0, - "incident_management_alert_todo_weekly": 0, - "incident_management_alert_todo_monthly": 0, - "incident_management_incident_created_weekly": 0, - "incident_management_incident_created_monthly": 0, - "incident_management_incident_reopened_weekly": 0, - "incident_management_incident_reopened_monthly": 0, - "incident_management_incident_closed_weekly": 0, - "incident_management_incident_closed_monthly": 0, - "incident_management_incident_assigned_weekly": 0, - "incident_management_incident_assigned_monthly": 0, - "incident_management_incident_todo_weekly": 0, - "incident_management_incident_todo_monthly": 0, - "incident_management_incident_comment_weekly": 0, - "incident_management_incident_comment_monthly": 0, - "incident_management_incident_zoom_meeting_weekly": 0, - "incident_management_incident_zoom_meeting_monthly": 0, - "incident_management_incident_published_weekly": 0, - "incident_management_incident_published_monthly": 0, - "incident_management_incident_relate_weekly": 0, - "incident_management_incident_relate_monthly": 0, - "incident_management_incident_unrelate_weekly": 0, - "incident_management_incident_unrelate_monthly": 0, - "incident_management_incident_change_confidential_weekly": 0, - "incident_management_incident_change_confidential_monthly": 0, - "incident_management_total_unique_counts_weekly": 0, - "incident_management_total_unique_counts_monthly": 0 - }, - "incident_management_alerts": { - "incident_management_alert_create_incident_weekly": 0, - "incident_management_alert_create_incident_monthly": 0 - }, - "incident_management_oncall": { - "i_incident_management_oncall_notification_sent_weekly": 0, - "i_incident_management_oncall_notification_sent_monthly": 0 - }, - "testing": { - "i_testing_test_case_parsed_weekly": 0, - "i_testing_test_case_parsed_monthly": 0, - "i_testing_metrics_report_widget_total_weekly": 0, - "i_testing_metrics_report_widget_total_monthly": 0, - "i_testing_group_code_coverage_visit_total_weekly": 0, - "i_testing_group_code_coverage_visit_total_monthly": 0, - "i_testing_full_code_quality_report_total_weekly": 0, - "i_testing_full_code_quality_report_total_monthly": 0, - "i_testing_web_performance_widget_total_weekly": 0, - "i_testing_web_performance_widget_total_monthly": 0, - "i_testing_group_code_coverage_project_click_total_weekly": 0, - "i_testing_group_code_coverage_project_click_total_monthly": 0, - "i_testing_load_performance_widget_total_weekly": 0, - "i_testing_load_performance_widget_total_monthly": 0, - "i_testing_metrics_report_artifact_uploaders_weekly": 0, - "i_testing_metrics_report_artifact_uploaders_monthly": 0, - "i_testing_summary_widget_total_weekly": 0, - "i_testing_summary_widget_total_monthly": 0, - "users_expanding_testing_code_quality_report_weekly": 0, - "users_expanding_testing_code_quality_report_monthly": 0, - "users_expanding_testing_accessibility_report_weekly": 0, - "users_expanding_testing_accessibility_report_monthly": 0, - "users_expanding_testing_license_compliance_report_weekly": 0, - "users_expanding_testing_license_compliance_report_monthly": 0, - "users_visiting_testing_license_compliance_full_report_weekly": 0, - "users_visiting_testing_license_compliance_full_report_monthly": 0, - "users_visiting_testing_manage_license_compliance_weekly": 0, - "users_visiting_testing_manage_license_compliance_monthly": 0, - "users_clicking_license_testing_visiting_external_website_weekly": 0, - "users_clicking_license_testing_visiting_external_website_monthly": 0, - "testing_total_unique_counts_weekly": 0, - "testing_total_unique_counts_monthly": 0 - }, - "issues_edit": { - "g_project_management_issue_title_changed_weekly": 0, - "g_project_management_issue_title_changed_monthly": 0, - "g_project_management_issue_description_changed_weekly": 0, - "g_project_management_issue_description_changed_monthly": 0, - "g_project_management_issue_assignee_changed_weekly": 0, - "g_project_management_issue_assignee_changed_monthly": 0, - "g_project_management_issue_made_confidential_weekly": 0, - "g_project_management_issue_made_confidential_monthly": 0, - "g_project_management_issue_made_visible_weekly": 0, - "g_project_management_issue_made_visible_monthly": 0, - "g_project_management_issue_created_weekly": 0, - "g_project_management_issue_created_monthly": 0, - "g_project_management_issue_closed_weekly": 0, - "g_project_management_issue_closed_monthly": 0, - "g_project_management_issue_reopened_weekly": 0, - "g_project_management_issue_reopened_monthly": 0, - "g_project_management_issue_label_changed_weekly": 0, - "g_project_management_issue_label_changed_monthly": 0, - "g_project_management_issue_milestone_changed_weekly": 0, - "g_project_management_issue_milestone_changed_monthly": 0, - "g_project_management_issue_iteration_changed_weekly": 0, - "g_project_management_issue_iteration_changed_monthly": 0, - "g_project_management_issue_weight_changed_weekly": 0, - "g_project_management_issue_weight_changed_monthly": 0, - "g_project_management_issue_cross_referenced_weekly": 0, - "g_project_management_issue_cross_referenced_monthly": 0, - "g_project_management_issue_moved_weekly": 0, - "g_project_management_issue_moved_monthly": 0, - "g_project_management_issue_related_weekly": 0, - "g_project_management_issue_related_monthly": 0, - "g_project_management_issue_unrelated_weekly": 0, - "g_project_management_issue_unrelated_monthly": 0, - "g_project_management_issue_marked_as_duplicate_weekly": 0, - "g_project_management_issue_marked_as_duplicate_monthly": 0, - "g_project_management_issue_locked_weekly": 0, - "g_project_management_issue_locked_monthly": 0, - "g_project_management_issue_unlocked_weekly": 0, - "g_project_management_issue_unlocked_monthly": 0, - "g_project_management_issue_added_to_epic_weekly": 0, - "g_project_management_issue_added_to_epic_monthly": 0, - "g_project_management_issue_removed_from_epic_weekly": 0, - "g_project_management_issue_removed_from_epic_monthly": 0, - "g_project_management_issue_changed_epic_weekly": 0, - "g_project_management_issue_changed_epic_monthly": 0, - "g_project_management_issue_designs_added_weekly": 0, - "g_project_management_issue_designs_added_monthly": 0, - "g_project_management_issue_designs_modified_weekly": 0, - "g_project_management_issue_designs_modified_monthly": 0, - "g_project_management_issue_designs_removed_weekly": 0, - "g_project_management_issue_designs_removed_monthly": 0, - "g_project_management_issue_due_date_changed_weekly": 0, - "g_project_management_issue_due_date_changed_monthly": 0, - "g_project_management_issue_time_estimate_changed_weekly": 0, - "g_project_management_issue_time_estimate_changed_monthly": 0, - "g_project_management_issue_time_spent_changed_weekly": 0, - "g_project_management_issue_time_spent_changed_monthly": 0, - "g_project_management_issue_comment_added_weekly": 0, - "g_project_management_issue_comment_added_monthly": 0, - "g_project_management_issue_comment_edited_weekly": 0, - "g_project_management_issue_comment_edited_monthly": 0, - "g_project_management_issue_comment_removed_weekly": 0, - "g_project_management_issue_comment_removed_monthly": 0, - "g_project_management_issue_health_status_changed_weekly": 0, - "g_project_management_issue_health_status_changed_monthly": 0, - "g_project_management_issue_cloned_weekly": 0, - "g_project_management_issue_cloned_monthly": 0, - "issues_edit_total_unique_counts_weekly": 0, - "issues_edit_total_unique_counts_monthly": 0 - }, - "ci_secrets_management": { - "i_ci_secrets_management_vault_build_created_weekly": 0, - "i_ci_secrets_management_vault_build_created_monthly": 0 - }, - "snippets": { - "i_snippets_show_weekly": 0, - "i_snippets_show_monthly": 0 - }, - "terraform": { - "p_terraform_state_api_unique_users_weekly": 0, - "p_terraform_state_api_unique_users_monthly": 0 - }, - "pipeline_authoring": { - "o_pipeline_authoring_unique_users_committing_ciconfigfile_weekly": 0, - "o_pipeline_authoring_unique_users_committing_ciconfigfile_monthly": 0, - "o_pipeline_authoring_unique_users_pushing_mr_ciconfigfile_weekly": 0, - "o_pipeline_authoring_unique_users_pushing_mr_ciconfigfile_monthly": 0, - "pipeline_authoring_total_unique_counts_weekly": 0, - "pipeline_authoring_total_unique_counts_monthly": 0 - }, - "secure": { - "users_expanding_secure_security_report_weekly": 0, - "users_expanding_secure_security_report_monthly": 0 - }, - "network_policies": { - "clusters_using_network_policies_ui_weekly": 0, - "clusters_using_network_policies_ui_monthly": 0 - }, - "geo": { - "g_geo_proxied_requests_weekly": 0, - "g_geo_proxied_requests_monthly": 0 - }, - "growth": { - "users_clicking_registration_features_offer_weekly": 0, - "users_clicking_registration_features_offer_monthly": 0 - }, - "deploy_token_packages": { - "i_package_composer_deploy_token_monthly": 0, - "i_package_conan_deploy_token_weekly": 0, - "i_package_conan_deploy_token_monthly": 0, - "i_package_generic_deploy_token_weekly": 0, - "i_package_generic_deploy_token_monthly": 0, - "i_package_helm_deploy_token_weekly": 0, - "i_package_helm_deploy_token_monthly": 0, - "i_package_maven_deploy_token_weekly": 0, - "i_package_maven_deploy_token_monthly": 0, - "i_package_npm_deploy_token_weekly": 0, - "i_package_npm_deploy_token_monthly": 0, - "i_package_nuget_deploy_token_weekly": 0, - "i_package_nuget_deploy_token_monthly": 0, - "i_package_pypi_deploy_token_weekly": 0, - "i_package_pypi_deploy_token_monthly": 0, - "i_package_rubygems_deploy_token_weekly": 0, - "i_package_rubygems_deploy_token_monthly": 0, - "i_package_terraform_module_deploy_token_weekly": 0, - "i_package_terraform_module_deploy_token_monthly": 0, - "deploy_token_packages_total_unique_counts_weekly": 0, - "deploy_token_packages_total_unique_counts_monthly": 0 - }, - "user_packages": { - "i_package_composer_user_weekly": 0, - "i_package_composer_user_monthly": 0, - "i_package_conan_user_weekly": 0, - "i_package_conan_user_monthly": 0, - "i_package_generic_user_weekly": 0, - "i_package_generic_user_monthly": 0, - "i_package_helm_user_weekly": 0, - "i_package_helm_user_monthly": 0, - "i_package_maven_user_weekly": 0, - "i_package_maven_user_monthly": 0, - "i_package_npm_user_weekly": 0, - "i_package_npm_user_monthly": 0, - "i_package_nuget_user_weekly": 0, - "i_package_nuget_user_monthly": 0, - "i_package_pypi_user_weekly": 0, - "i_package_pypi_user_monthly": 0, - "i_package_rubygems_user_weekly": 0, - "i_package_rubygems_user_monthly": 0, - "i_package_terraform_module_user_weekly": 0, - "i_package_terraform_module_user_monthly": 0, - "user_packages_total_unique_counts_weekly": 0, - "user_packages_total_unique_counts_monthly": 0 - }, - "ci_templates": { - "p_ci_templates_terraform_base_latest_weekly": 0, - "p_ci_templates_terraform_base_latest_monthly": 0, - "p_ci_templates_terraform_base_weekly": 0, - "p_ci_templates_terraform_base_monthly": 0, - "p_ci_templates_dotnet_weekly": 0, - "p_ci_templates_dotnet_monthly": 0, - "p_ci_templates_nodejs_weekly": 0, - "p_ci_templates_nodejs_monthly": 0, - "p_ci_templates_openshift_weekly": 0, - "p_ci_templates_openshift_monthly": 0, - "p_ci_templates_auto_devops_weekly": 0, - "p_ci_templates_auto_devops_monthly": 0, - "p_ci_templates_bash_weekly": 0, - "p_ci_templates_bash_monthly": 0, - "p_ci_templates_rust_weekly": 0, - "p_ci_templates_rust_monthly": 0, - "p_ci_templates_elixir_weekly": 0, - "p_ci_templates_elixir_monthly": 0, - "p_ci_templates_clojure_weekly": 0, - "p_ci_templates_clojure_monthly": 0, - "p_ci_templates_crystal_weekly": 0, - "p_ci_templates_crystal_monthly": 0, - "p_ci_templates_getting_started_weekly": 0, - "p_ci_templates_getting_started_monthly": 0, - "p_ci_templates_code_quality_weekly": 0, - "p_ci_templates_code_quality_monthly": 0, - "p_ci_templates_verify_load_performance_testing_weekly": 0, - "p_ci_templates_verify_load_performance_testing_monthly": 0, - "p_ci_templates_verify_accessibility_weekly": 0, - "p_ci_templates_verify_accessibility_monthly": 0, - "p_ci_templates_verify_failfast_weekly": 0, - "p_ci_templates_verify_failfast_monthly": 0, - "p_ci_templates_verify_browser_performance_weekly": 0, - "p_ci_templates_verify_browser_performance_monthly": 0, - "p_ci_templates_verify_browser_performance_latest_weekly": 0, - "p_ci_templates_verify_browser_performance_latest_monthly": 0, - "p_ci_templates_grails_weekly": 0, - "p_ci_templates_grails_monthly": 0, - "p_ci_templates_security_sast_weekly": 0, - "p_ci_templates_security_sast_monthly": 0, - "p_ci_templates_security_dast_runner_validation_weekly": 0, - "p_ci_templates_security_dast_runner_validation_monthly": 0, - "p_ci_templates_security_dast_on_demand_scan_weekly": 0, - "p_ci_templates_security_dast_on_demand_scan_monthly": 0, - "p_ci_templates_security_secret_detection_weekly": 0, - "p_ci_templates_security_secret_detection_monthly": 0, - "p_ci_templates_security_license_scanning_weekly": 0, - "p_ci_templates_security_license_scanning_monthly": 0, - "p_ci_templates_security_dast_on_demand_api_scan_weekly": 0, - "p_ci_templates_security_dast_on_demand_api_scan_monthly": 0, - "p_ci_templates_security_coverage_fuzzing_weekly": 0, - "p_ci_templates_security_coverage_fuzzing_monthly": 0, - "p_ci_templates_security_api_fuzzing_latest_weekly": 0, - "p_ci_templates_security_api_fuzzing_latest_monthly": 0, - "p_ci_templates_security_secure_binaries_weekly": 0, - "p_ci_templates_security_secure_binaries_monthly": 0, - "p_ci_templates_security_dast_api_weekly": 0, - "p_ci_templates_security_dast_api_monthly": 0, - "p_ci_templates_security_container_scanning_weekly": 0, - "p_ci_templates_security_container_scanning_monthly": 0, - "p_ci_templates_security_dast_latest_weekly": 0, - "p_ci_templates_security_dast_latest_monthly": 0, - "p_ci_templates_security_dependency_scanning_weekly": 0, - "p_ci_templates_security_dependency_scanning_monthly": 0, - "p_ci_templates_security_dast_api_latest_weekly": 0, - "p_ci_templates_security_dast_api_latest_monthly": 0, - "p_ci_templates_security_api_fuzzing_weekly": 0, - "p_ci_templates_security_api_fuzzing_monthly": 0, - "p_ci_templates_security_dast_weekly": 0, - "p_ci_templates_security_dast_monthly": 0, - "p_ci_templates_security_sast_iac_latest_weekly": 0, - "p_ci_templates_security_sast_iac_latest_monthly": 0, - "p_ci_templates_security_cluster_image_scanning_weekly": 0, - "p_ci_templates_security_cluster_image_scanning_monthly": 0, - "p_ci_templates_qualys_iac_security_weekly": 0, - "p_ci_templates_qualys_iac_security_monthly": 0, - "p_ci_templates_ios_fastlane_weekly": 0, - "p_ci_templates_ios_fastlane_monthly": 0, - "p_ci_templates_composer_weekly": 0, - "p_ci_templates_composer_monthly": 0, - "p_ci_templates_c_weekly": 0, - "p_ci_templates_c_monthly": 0, - "p_ci_templates_python_weekly": 0, - "p_ci_templates_python_monthly": 0, - "p_ci_templates_android_fastlane_weekly": 0, - "p_ci_templates_android_fastlane_monthly": 0, - "p_ci_templates_android_latest_weekly": 0, - "p_ci_templates_android_latest_monthly": 0, - "p_ci_templates_django_weekly": 0, - "p_ci_templates_django_monthly": 0, - "p_ci_templates_maven_weekly": 0, - "p_ci_templates_maven_monthly": 0, - "p_ci_templates_flutter_weekly": 0, - "p_ci_templates_flutter_monthly": 0, - "p_ci_templates_workflows_branch_pipelines_weekly": 0, - "p_ci_templates_workflows_branch_pipelines_monthly": 0, - "p_ci_templates_workflows_mergerequest_pipelines_weekly": 0, - "p_ci_templates_workflows_mergerequest_pipelines_monthly": 0, - "p_ci_templates_laravel_weekly": 0, - "p_ci_templates_laravel_monthly": 0, - "p_ci_templates_kaniko_weekly": 0, - "p_ci_templates_kaniko_monthly": 0, - "p_ci_templates_managed_cluster_applications_weekly": 0, - "p_ci_templates_managed_cluster_applications_monthly": 0, - "p_ci_templates_php_weekly": 0, - "p_ci_templates_php_monthly": 0, - "p_ci_templates_packer_weekly": 0, - "p_ci_templates_packer_monthly": 0, - "p_ci_templates_terraform_weekly": 0, - "p_ci_templates_terraform_monthly": 0, - "p_ci_templates_mono_weekly": 0, - "p_ci_templates_mono_monthly": 0, - "p_ci_templates_serverless_weekly": 0, - "p_ci_templates_serverless_monthly": 0, - "p_ci_templates_go_weekly": 0, - "p_ci_templates_go_monthly": 0, - "p_ci_templates_scala_weekly": 0, - "p_ci_templates_scala_monthly": 0, - "p_ci_templates_latex_weekly": 0, - "p_ci_templates_latex_monthly": 0, - "p_ci_templates_android_weekly": 0, - "p_ci_templates_android_monthly": 0, - "p_ci_templates_indeni_cloudrail_weekly": 0, - "p_ci_templates_indeni_cloudrail_monthly": 0, - "p_ci_templates_deploy_ecs_weekly": 0, - "p_ci_templates_deploy_ecs_monthly": 0, - "p_ci_templates_aws_cf_provision_and_deploy_ec2_weekly": 0, - "p_ci_templates_aws_cf_provision_and_deploy_ec2_monthly": 0, - "p_ci_templates_aws_deploy_ecs_weekly": 0, - "p_ci_templates_aws_deploy_ecs_monthly": 0, - "p_ci_templates_gradle_weekly": 0, - "p_ci_templates_gradle_monthly": 0, - "p_ci_templates_chef_weekly": 0, - "p_ci_templates_chef_monthly": 0, - "p_ci_templates_jobs_dast_default_branch_deploy_weekly": 0, - "p_ci_templates_jobs_dast_default_branch_deploy_monthly": 0, - "p_ci_templates_jobs_load_performance_testing_weekly": 0, - "p_ci_templates_jobs_load_performance_testing_monthly": 0, - "p_ci_templates_jobs_helm_2to3_weekly": 0, - "p_ci_templates_jobs_helm_2to3_monthly": 0, - "p_ci_templates_jobs_sast_weekly": 0, - "p_ci_templates_jobs_sast_monthly": 0, - "p_ci_templates_jobs_secret_detection_weekly": 0, - "p_ci_templates_jobs_secret_detection_monthly": 0, - "p_ci_templates_jobs_license_scanning_weekly": 0, - "p_ci_templates_jobs_license_scanning_monthly": 0, - "p_ci_templates_jobs_code_intelligence_weekly": 0, - "p_ci_templates_jobs_code_intelligence_monthly": 0, - "p_ci_templates_jobs_code_quality_weekly": 0, - "p_ci_templates_jobs_code_quality_monthly": 0, - "p_ci_templates_jobs_deploy_ecs_weekly": 0, - "p_ci_templates_jobs_deploy_ecs_monthly": 0, - "p_ci_templates_jobs_deploy_ec2_weekly": 0, - "p_ci_templates_jobs_deploy_ec2_monthly": 0, - "p_ci_templates_jobs_deploy_weekly": 0, - "p_ci_templates_jobs_deploy_monthly": 0, - "p_ci_templates_jobs_build_weekly": 0, - "p_ci_templates_jobs_build_monthly": 0, - "p_ci_templates_jobs_browser_performance_testing_weekly": 0, - "p_ci_templates_jobs_browser_performance_testing_monthly": 0, - "p_ci_templates_jobs_test_weekly": 0, - "p_ci_templates_jobs_test_monthly": 0, - "p_ci_templates_jobs_dependency_scanning_weekly": 0, - "p_ci_templates_jobs_dependency_scanning_monthly": 0, - "p_ci_templates_jobs_deploy_latest_weekly": 0, - "p_ci_templates_jobs_deploy_latest_monthly": 0, - "p_ci_templates_jobs_browser_performance_testing_latest_weekly": 0, - "p_ci_templates_jobs_browser_performance_testing_latest_monthly": 0, - "p_ci_templates_jobs_cf_provision_weekly": 0, - "p_ci_templates_jobs_cf_provision_monthly": 0, - "p_ci_templates_jobs_build_latest_weekly": 0, - "p_ci_templates_jobs_build_latest_monthly": 0, - "p_ci_templates_jobs_sast_iac_latest_weekly": 0, - "p_ci_templates_jobs_sast_iac_latest_monthly": 0, - "p_ci_templates_terraform_latest_weekly": 0, - "p_ci_templates_terraform_latest_monthly": 0, - "p_ci_templates_swift_weekly": 0, - "p_ci_templates_swift_monthly": 0, - "p_ci_templates_pages_jekyll_weekly": 0, - "p_ci_templates_pages_jekyll_monthly": 0, - "p_ci_templates_pages_harp_weekly": 0, - "p_ci_templates_pages_harp_monthly": 0, - "p_ci_templates_pages_octopress_weekly": 0, - "p_ci_templates_pages_octopress_monthly": 0, - "p_ci_templates_pages_brunch_weekly": 0, - "p_ci_templates_pages_brunch_monthly": 0, - "p_ci_templates_pages_doxygen_weekly": 0, - "p_ci_templates_pages_doxygen_monthly": 0, - "p_ci_templates_pages_hyde_weekly": 0, - "p_ci_templates_pages_hyde_monthly": 0, - "p_ci_templates_pages_lektor_weekly": 0, - "p_ci_templates_pages_lektor_monthly": 0, - "p_ci_templates_pages_jbake_weekly": 0, - "p_ci_templates_pages_jbake_monthly": 0, - "p_ci_templates_pages_hexo_weekly": 0, - "p_ci_templates_pages_hexo_monthly": 0, - "p_ci_templates_pages_middleman_weekly": 0, - "p_ci_templates_pages_middleman_monthly": 0, - "p_ci_templates_pages_hugo_weekly": 0, - "p_ci_templates_pages_hugo_monthly": 0, - "p_ci_templates_pages_pelican_weekly": 0, - "p_ci_templates_pages_pelican_monthly": 0, - "p_ci_templates_pages_nanoc_weekly": 0, - "p_ci_templates_pages_nanoc_monthly": 0, - "p_ci_templates_pages_swaggerui_weekly": 0, - "p_ci_templates_pages_swaggerui_monthly": 0, - "p_ci_templates_pages_jigsaw_weekly": 0, - "p_ci_templates_pages_jigsaw_monthly": 0, - "p_ci_templates_pages_metalsmith_weekly": 0, - "p_ci_templates_pages_metalsmith_monthly": 0, - "p_ci_templates_pages_gatsby_weekly": 0, - "p_ci_templates_pages_gatsby_monthly": 0, - "p_ci_templates_pages_html_weekly": 0, - "p_ci_templates_pages_html_monthly": 0, - "p_ci_templates_dart_weekly": 0, - "p_ci_templates_dart_monthly": 0, - "p_ci_templates_docker_weekly": 0, - "p_ci_templates_docker_monthly": 0, - "p_ci_templates_julia_weekly": 0, - "p_ci_templates_julia_monthly": 0, - "p_ci_templates_npm_weekly": 0, - "p_ci_templates_npm_monthly": 0, - "p_ci_templates_dotnet_core_weekly": 0, - "p_ci_templates_dotnet_core_monthly": 0, - "p_ci_templates_5_minute_production_app_weekly": 0, - "p_ci_templates_5_minute_production_app_monthly": 0, - "p_ci_templates_ruby_weekly": 0, - "p_ci_templates_ruby_monthly": 0, - "p_ci_templates_implicit_auto_devops_weekly": 0, - "p_ci_templates_implicit_auto_devops_monthly": 0, - "p_ci_templates_implicit_jobs_dast_default_branch_deploy_weekly": 0, - "p_ci_templates_implicit_jobs_dast_default_branch_deploy_monthly": 0, - "p_ci_templates_implicit_jobs_load_performance_testing_weekly": 0, - "p_ci_templates_implicit_jobs_load_performance_testing_monthly": 0, - "p_ci_templates_implicit_jobs_helm_2to3_weekly": 0, - "p_ci_templates_implicit_jobs_helm_2to3_monthly": 0, - "p_ci_templates_implicit_jobs_sast_weekly": 0, - "p_ci_templates_implicit_jobs_sast_monthly": 0, - "p_ci_templates_implicit_jobs_secret_detection_weekly": 0, - "p_ci_templates_implicit_jobs_secret_detection_monthly": 0, - "p_ci_templates_implicit_jobs_license_scanning_weekly": 0, - "p_ci_templates_implicit_jobs_license_scanning_monthly": 0, - "p_ci_templates_implicit_jobs_code_intelligence_weekly": 0, - "p_ci_templates_implicit_jobs_code_intelligence_monthly": 0, - "p_ci_templates_implicit_jobs_code_quality_weekly": 0, - "p_ci_templates_implicit_jobs_code_quality_monthly": 0, - "p_ci_templates_implicit_jobs_deploy_ecs_weekly": 0, - "p_ci_templates_implicit_jobs_deploy_ecs_monthly": 0, - "p_ci_templates_implicit_jobs_deploy_ec2_weekly": 0, - "p_ci_templates_implicit_jobs_deploy_ec2_monthly": 0, - "p_ci_templates_implicit_jobs_deploy_weekly": 0, - "p_ci_templates_implicit_jobs_deploy_monthly": 0, - "p_ci_templates_implicit_jobs_build_weekly": 0, - "p_ci_templates_implicit_jobs_build_monthly": 0, - "p_ci_templates_implicit_jobs_browser_performance_testing_weekly": 0, - "p_ci_templates_implicit_jobs_browser_performance_testing_monthly": 0, - "p_ci_templates_implicit_jobs_test_weekly": 0, - "p_ci_templates_implicit_jobs_test_monthly": 0, - "p_ci_templates_implicit_jobs_dependency_scanning_weekly": 0, - "p_ci_templates_implicit_jobs_dependency_scanning_monthly": 0, - "p_ci_templates_implicit_jobs_deploy_latest_weekly": 0, - "p_ci_templates_implicit_jobs_deploy_latest_monthly": 0, - "p_ci_templates_implicit_jobs_browser_performance_testing_latest_weekly": 0, - "p_ci_templates_implicit_jobs_browser_performance_testing_latest_monthly": 0, - "p_ci_templates_implicit_jobs_cf_provision_weekly": 0, - "p_ci_templates_implicit_jobs_cf_provision_monthly": 0, - "p_ci_templates_implicit_jobs_build_latest_weekly": 0, - "p_ci_templates_implicit_jobs_build_latest_monthly": 0, - "p_ci_templates_implicit_jobs_sast_iac_latest_weekly": 0, - "p_ci_templates_implicit_jobs_sast_iac_latest_monthly": 0, - "p_ci_templates_implicit_security_sast_weekly": 0, - "p_ci_templates_implicit_security_sast_monthly": 0, - "p_ci_templates_implicit_security_dast_runner_validation_weekly": 0, - "p_ci_templates_implicit_security_dast_runner_validation_monthly": 0, - "p_ci_templates_implicit_security_dast_on_demand_scan_weekly": 0, - "p_ci_templates_implicit_security_dast_on_demand_scan_monthly": 0, - "p_ci_templates_implicit_security_secret_detection_weekly": 0, - "p_ci_templates_implicit_security_secret_detection_monthly": 0, - "p_ci_templates_implicit_security_license_scanning_weekly": 0, - "p_ci_templates_implicit_security_license_scanning_monthly": 0, - "p_ci_templates_implicit_security_dast_on_demand_api_scan_weekly": 0, - "p_ci_templates_implicit_security_dast_on_demand_api_scan_monthly": 0, - "p_ci_templates_implicit_security_coverage_fuzzing_weekly": 0, - "p_ci_templates_implicit_security_coverage_fuzzing_monthly": 0, - "p_ci_templates_implicit_security_api_fuzzing_latest_weekly": 0, - "p_ci_templates_implicit_security_api_fuzzing_latest_monthly": 0, - "p_ci_templates_implicit_security_secure_binaries_weekly": 0, - "p_ci_templates_implicit_security_secure_binaries_monthly": 0, - "p_ci_templates_implicit_security_dast_api_weekly": 0, - "p_ci_templates_implicit_security_dast_api_monthly": 0, - "p_ci_templates_implicit_security_container_scanning_weekly": 0, - "p_ci_templates_implicit_security_container_scanning_monthly": 0, - "p_ci_templates_implicit_security_dast_latest_weekly": 0, - "p_ci_templates_implicit_security_dast_latest_monthly": 0, - "p_ci_templates_implicit_security_dependency_scanning_weekly": 0, - "p_ci_templates_implicit_security_dependency_scanning_monthly": 0, - "p_ci_templates_implicit_security_dast_api_latest_weekly": 0, - "p_ci_templates_implicit_security_dast_api_latest_monthly": 0, - "p_ci_templates_implicit_security_api_fuzzing_weekly": 0, - "p_ci_templates_implicit_security_api_fuzzing_monthly": 0, - "p_ci_templates_implicit_security_dast_weekly": 0, - "p_ci_templates_implicit_security_dast_monthly": 0, - "p_ci_templates_implicit_security_sast_iac_latest_weekly": 0, - "p_ci_templates_implicit_security_sast_iac_latest_monthly": 0, - "p_ci_templates_implicit_security_cluster_image_scanning_weekly": 0, - "p_ci_templates_implicit_security_cluster_image_scanning_monthly": 0 - }, - "code_review": { - "i_code_review_mr_diffs_weekly": 0, - "i_code_review_mr_diffs_monthly": 0, - "i_code_review_user_single_file_diffs_weekly": 0, - "i_code_review_user_single_file_diffs_monthly": 0, - "i_code_review_mr_single_file_diffs_weekly": 0, - "i_code_review_mr_single_file_diffs_monthly": 0, - "i_code_review_user_toggled_task_item_status_weekly": 0, - "i_code_review_user_toggled_task_item_status_monthly": 0, - "i_code_review_user_create_mr_weekly": 0, - "i_code_review_user_create_mr_monthly": 0, - "i_code_review_user_close_mr_weekly": 0, - "i_code_review_user_close_mr_monthly": 0, - "i_code_review_user_reopen_mr_weekly": 0, - "i_code_review_user_reopen_mr_monthly": 0, - "i_code_review_user_approve_mr_weekly": 0, - "i_code_review_user_approve_mr_monthly": 0, - "i_code_review_user_unapprove_mr_weekly": 0, - "i_code_review_user_unapprove_mr_monthly": 0, - "i_code_review_user_resolve_thread_weekly": 0, - "i_code_review_user_resolve_thread_monthly": 0, - "i_code_review_user_unresolve_thread_weekly": 0, - "i_code_review_user_unresolve_thread_monthly": 0, - "i_code_review_edit_mr_title_weekly": 0, - "i_code_review_edit_mr_title_monthly": 0, - "i_code_review_edit_mr_desc_weekly": 0, - "i_code_review_edit_mr_desc_monthly": 0, - "i_code_review_user_merge_mr_weekly": 0, - "i_code_review_user_merge_mr_monthly": 0, - "i_code_review_user_create_mr_comment_weekly": 0, - "i_code_review_user_create_mr_comment_monthly": 0, - "i_code_review_user_edit_mr_comment_weekly": 0, - "i_code_review_user_edit_mr_comment_monthly": 0, - "i_code_review_user_remove_mr_comment_weekly": 0, - "i_code_review_user_remove_mr_comment_monthly": 0, - "i_code_review_user_create_review_note_weekly": 0, - "i_code_review_user_create_review_note_monthly": 0, - "i_code_review_user_publish_review_weekly": 0, - "i_code_review_user_publish_review_monthly": 0, - "i_code_review_user_create_multiline_mr_comment_weekly": 0, - "i_code_review_user_create_multiline_mr_comment_monthly": 0, - "i_code_review_user_edit_multiline_mr_comment_weekly": 0, - "i_code_review_user_edit_multiline_mr_comment_monthly": 0, - "i_code_review_user_remove_multiline_mr_comment_weekly": 0, - "i_code_review_user_remove_multiline_mr_comment_monthly": 0, - "i_code_review_user_add_suggestion_weekly": 0, - "i_code_review_user_add_suggestion_monthly": 0, - "i_code_review_user_apply_suggestion_weekly": 0, - "i_code_review_user_apply_suggestion_monthly": 0, - "i_code_review_user_assigned_weekly": 0, - "i_code_review_user_assigned_monthly": 0, - "i_code_review_user_marked_as_draft_weekly": 0, - "i_code_review_user_marked_as_draft_monthly": 0, - "i_code_review_user_unmarked_as_draft_weekly": 0, - "i_code_review_user_unmarked_as_draft_monthly": 0, - "i_code_review_user_review_requested_weekly": 0, - "i_code_review_user_review_requested_monthly": 0, - "i_code_review_user_approval_rule_added_weekly": 0, - "i_code_review_user_approval_rule_added_monthly": 0, - "i_code_review_user_approval_rule_deleted_weekly": 0, - "i_code_review_user_approval_rule_deleted_monthly": 0, - "i_code_review_user_approval_rule_edited_weekly": 0, - "i_code_review_user_approval_rule_edited_monthly": 0, - "i_code_review_user_vs_code_api_request_weekly": 0, - "i_code_review_user_vs_code_api_request_monthly": 0, - "i_code_review_user_jetbrains_api_request_weekly": 0, - "i_code_review_user_jetbrains_api_request_monthly": 0, - "i_code_review_user_create_mr_from_issue_weekly": 0, - "i_code_review_user_create_mr_from_issue_monthly": 0, - "i_code_review_user_mr_discussion_locked_weekly": 0, - "i_code_review_user_mr_discussion_locked_monthly": 0, - "i_code_review_user_mr_discussion_unlocked_weekly": 0, - "i_code_review_user_mr_discussion_unlocked_monthly": 0, - "i_code_review_user_time_estimate_changed_weekly": 0, - "i_code_review_user_time_estimate_changed_monthly": 0, - "i_code_review_user_time_spent_changed_weekly": 0, - "i_code_review_user_time_spent_changed_monthly": 0, - "i_code_review_user_assignees_changed_weekly": 0, - "i_code_review_user_assignees_changed_monthly": 0, - "i_code_review_user_reviewers_changed_weekly": 0, - "i_code_review_user_reviewers_changed_monthly": 0, - "i_code_review_user_milestone_changed_weekly": 0, - "i_code_review_user_milestone_changed_monthly": 0, - "i_code_review_user_labels_changed_weekly": 0, - "i_code_review_user_labels_changed_monthly": 0, - "i_code_review_click_diff_view_setting_weekly": 0, - "i_code_review_click_diff_view_setting_monthly": 0, - "i_code_review_click_single_file_mode_setting_weekly": 0, - "i_code_review_click_single_file_mode_setting_monthly": 0, - "i_code_review_click_file_browser_setting_weekly": 0, - "i_code_review_click_file_browser_setting_monthly": 0, - "i_code_review_click_whitespace_setting_weekly": 0, - "i_code_review_click_whitespace_setting_monthly": 0, - "i_code_review_diff_view_inline_weekly": 0, - "i_code_review_diff_view_inline_monthly": 0, - "i_code_review_diff_view_parallel_weekly": 0, - "i_code_review_diff_view_parallel_monthly": 0, - "i_code_review_file_browser_tree_view_weekly": 0, - "i_code_review_file_browser_tree_view_monthly": 0, - "i_code_review_file_browser_list_view_weekly": 0, - "i_code_review_file_browser_list_view_monthly": 0, - "i_code_review_diff_show_whitespace_weekly": 0, - "i_code_review_diff_show_whitespace_monthly": 0, - "i_code_review_diff_hide_whitespace_weekly": 0, - "i_code_review_diff_hide_whitespace_monthly": 0, - "i_code_review_diff_single_file_weekly": 0, - "i_code_review_diff_single_file_monthly": 0, - "i_code_review_diff_multiple_files_weekly": 0, - "i_code_review_diff_multiple_files_monthly": 0, - "i_code_review_user_load_conflict_ui_weekly": 0, - "i_code_review_user_load_conflict_ui_monthly": 0, - "i_code_review_user_resolve_conflict_weekly": 0, - "i_code_review_user_resolve_conflict_monthly": 0, - "i_code_review_user_searches_diff_weekly": 0, - "i_code_review_user_searches_diff_monthly": 0, - "i_code_review_total_suggestions_applied_weekly": 0, - "i_code_review_total_suggestions_applied_monthly": 0, - "i_code_review_total_suggestions_added_weekly": 0, - "i_code_review_total_suggestions_added_monthly": 0, - "i_code_review_user_resolve_thread_in_issue_weekly": 0, - "i_code_review_user_resolve_thread_in_issue_monthly": 0, - "i_code_review_widget_nothing_merge_click_new_file_weekly": 0, - "i_code_review_widget_nothing_merge_click_new_file_monthly": 0, - "i_code_review_post_merge_delete_branch_weekly": 0, - "i_code_review_post_merge_delete_branch_monthly": 0, - "i_code_review_post_merge_click_revert_weekly": 0, - "i_code_review_post_merge_click_revert_monthly": 0, - "i_code_review_post_merge_click_cherry_pick_weekly": 0, - "i_code_review_post_merge_click_cherry_pick_monthly": 0, - "i_code_review_post_merge_submit_revert_modal_weekly": 0, - "i_code_review_post_merge_submit_revert_modal_monthly": 0, - "i_code_review_post_merge_submit_cherry_pick_modal_weekly": 0, - "i_code_review_post_merge_submit_cherry_pick_modal_monthly": 0, - "code_review_total_unique_counts_weekly": 0, - "code_review_total_unique_counts_monthly": 0 - }, - "ecosystem": { - "i_ecosystem_jira_service_close_issue_weekly": 0, - "i_ecosystem_jira_service_close_issue_monthly": 0, - "i_ecosystem_jira_service_cross_reference_weekly": 0, - "i_ecosystem_jira_service_cross_reference_monthly": 0, - "i_ecosystem_jira_service_list_issues_weekly": 0, - "i_ecosystem_jira_service_list_issues_monthly": 0, - "i_ecosystem_jira_service_create_issue_weekly": 0, - "i_ecosystem_jira_service_create_issue_monthly": 0, - "i_ecosystem_slack_service_issue_notification_weekly": 0, - "i_ecosystem_slack_service_issue_notification_monthly": 0, - "i_ecosystem_slack_service_push_notification_weekly": 0, - "i_ecosystem_slack_service_push_notification_monthly": 0, - "i_ecosystem_slack_service_deployment_notification_weekly": 0, - "i_ecosystem_slack_service_deployment_notification_monthly": 0, - "i_ecosystem_slack_service_wiki_page_notification_weekly": 0, - "i_ecosystem_slack_service_wiki_page_notification_monthly": 0, - "i_ecosystem_slack_service_merge_request_notification_weekly": 0, - "i_ecosystem_slack_service_merge_request_notification_monthly": 0, - "i_ecosystem_slack_service_note_notification_weekly": 0, - "i_ecosystem_slack_service_note_notification_monthly": 0, - "i_ecosystem_slack_service_tag_push_notification_weekly": 0, - "i_ecosystem_slack_service_tag_push_notification_monthly": 0, - "i_ecosystem_slack_service_confidential_note_notification_weekly": 0, - "i_ecosystem_slack_service_confidential_note_notification_monthly": 0, - "i_ecosystem_slack_service_confidential_issue_notification_weekly": 0, - "i_ecosystem_slack_service_confidential_issue_notification_monthly": 0, - "ecosystem_total_unique_counts_weekly": 0, - "ecosystem_total_unique_counts_monthly": 0 - }, - "work_items": { - "users_updating_work_item_title_weekly": 0, - "users_updating_work_item_title_monthly": 0, - "users_creating_work_items_weekly": 0, - "users_creating_work_items_monthly": 0 - } - }, - "recording_ce_finished_at": "2021-01-01 00:00:00 UTC", - "recording_ee_finished_at": "2021-01-01 00:00:00 UTC" -} \ No newline at end of file diff --git a/spec/lib/gitlab/usage_data_queries_spec.rb b/spec/lib/gitlab/usage_data_queries_spec.rb index 88322e1b971..c3ac9d7db90 100644 --- a/spec/lib/gitlab/usage_data_queries_spec.rb +++ b/spec/lib/gitlab/usage_data_queries_spec.rb @@ -34,14 +34,14 @@ RSpec.describe Gitlab::UsageDataQueries do describe '.redis_usage_data' do subject(:redis_usage_data) { described_class.redis_usage_data { 42 } } - it 'returns a stringified class for redis_usage_data with a counter call' do + it 'returns a class for redis_usage_data with a counter call' do expect(described_class.redis_usage_data(Gitlab::UsageDataCounters::WikiPageCounter)) - .to eq(redis_usage_data_counter: "Gitlab::UsageDataCounters::WikiPageCounter") + .to eq(redis_usage_data_counter: Gitlab::UsageDataCounters::WikiPageCounter) end - it 'returns a placeholder string for redis_usage_data with a block' do + it 'returns a stringified block for redis_usage_data with a block' do is_expected.to include(:redis_usage_data_block) - expect(redis_usage_data[:redis_usage_data_block]).to eq('non-SQL usage data block') + expect(redis_usage_data[:redis_usage_data_block]).to start_with('#