{"meta":{"title":"Viewing metrics for custom patterns","intro":"Find out how many alerts are being raised and addressed for a custom pattern.","product":"Security and code quality","breadcrumbs":[{"href":"/en/code-security","title":"Security and code quality"},{"href":"/en/code-security/how-tos","title":"How-tos"},{"href":"/en/code-security/how-tos/view-and-interpret-data","title":"View and interpret data"},{"href":"/en/code-security/how-tos/view-and-interpret-data/view-custom-pattern-metrics","title":"View custom pattern metrics"}],"documentType":"article"},"body":"# Viewing metrics for custom patterns\n\nFind out how many alerts are being raised and addressed for a custom pattern.\n\n> \\[!NOTE] Metrics for custom patterns are in public preview and subject to change.\n\nActivity overviews for custom patterns are available at the repository, organization, and enterprise levels. Each overview displays alerts generated and push protection blocks over the last 30 days.\n\n1. Navigate to where the custom pattern was created. A custom pattern can be created in a repository, organization, or enterprise account.\n   * For a repository or organization, display the \"Advanced Security\" settings for the repository or organization where the custom pattern was created. For more information, see [Defining a custom pattern for a repository](/en/code-security/how-tos/secure-your-secrets/customize-leak-detection/define-custom-patterns#defining-a-custom-pattern-for-a-repository) or [Defining a custom pattern for an organization](/en/code-security/how-tos/secure-your-secrets/customize-leak-detection/define-custom-patterns#defining-a-custom-pattern-for-an-organization).\n   * For an enterprise, under \"Policies\" display the \"Advanced Security Code security\" area, and then click **Security features**. For more information, see [Defining a custom pattern for an enterprise account](/en/code-security/how-tos/secure-your-secrets/customize-leak-detection/define-custom-patterns#defining-a-custom-pattern-for-an-enterprise-account).\n2. Under \"Custom patterns\", click the custom pattern you want to view.\n\nThe metrics are displayed under the custom pattern's name."}