CINXE.COM
Metric Definitions - List - REST API (Azure Monitor) | Microsoft Learn
<!DOCTYPE html><html class="hasSidebar hasPageActions hasBreadcrumb reference reference has-default-focus theme-light" lang="en-us" dir="ltr" data-authenticated="false" data-auth-status-determined="false" data-target="docs" x-ms-format-detection="none"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta property="og:title" content="Metric Definitions - List - REST API (Azure Monitor)" /> <meta property="og:type" content="website" /> <meta property="og:url" content="https://learn.microsoft.com/en-us/rest/api/monitor/metric-definitions/list?view=rest-monitor-2023-10-01" /><meta property="og:description" content="Learn more about Monitor service - Lists the metric definitions for the resource. " /><meta property="og:image" content="https://learn.microsoft.com/en-us/media/open-graph-image.png" /> <meta property="og:image:alt" content="Microsoft Learn" /> <meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:site" content="@MicrosoftLearn" /> <meta name="color-scheme" content="light dark"><meta name="author" content="nickwalkmsft" /> <meta name="breadcrumb_path" content="../../../breadcrumb/toc.json" /> <meta name="default_moniker" content="rest-monitor-2023-10-01" /> <meta name="depot_name" content="Azure.AzureRestApi" /> <meta name="description" content="Learn more about Monitor service - Lists the metric definitions for the resource. " /> <meta name="document_id" content="f9d09888-abd2-e111-bde0-5fa546e02d33" /> <meta name="document_version_independent_id" content="7cf30f76-ced2-8113-f6ed-1082d67dbaf1" /> <meta name="enable_rest_try_it" content="true" /> <meta name="feedback_help_link_type" content="" /> <meta name="feedback_help_link_url" content="" /> <meta name="feedback_product_url" content="" /> <meta name="feedback_system" content="None" /> <meta name="git_commit_id" content="150c83b6ed228ef48136028c0da9433808017057" /> <meta name="gitcommit" content="https://github.com/Azure/azure-docs-rest-apis/blob/150c83b6ed228ef48136028c0da9433808017057/docs-ref-autogen/monitor/rest-monitor-2018-01-01/Metric-Definitions/List.yml" /> <meta name="locale" content="en-us" /> <meta name="manager" content="smmark" /> <meta name="moniker_definition_rel" content="../../../.monikers.Azure.AzureRestApi.json" /> <meta name="monikers" content="rest-monitor-2018-01-01" /> <meta name="ms.author" content="nickwalk" /> <meta name="ms.date" content="05/07/2024" /> <meta name="ms.devlang" content="rest-api" /> <meta name="ms.service" content="azure-monitor" /> <meta name="ms.topic" content="reference" /> <meta name="original_content_git_url" content="https://github.com/Azure/azure-docs-rest-apis/blob/live/docs-ref-autogen/monitor/rest-monitor-2018-01-01/Metric-Definitions/List.yml" /> <meta name="page_kind" content="operation" /> <meta name="page_type" content="rest" /> <meta name="products" content="https://authoring-docs-microsoft.poolparty.biz/devrel/07bb3e10-d135-43ff-bc8b-360497cb39fa" /> <meta name="rest_product" content="Azure" /> <meta name="schema" content="RESTOperation" /> <meta name="site_name" content="Docs" /> <meta name="toc_rel" content="../../azure/toc.json" /> <meta name="uhfHeaderId" content="azure" /> <meta name="uid" content="management.azure.com.monitor.metricdefinitions.list" /> <meta name="updated_at" content="2024-10-29 10:10 PM" /> <meta name="persistent_id" content="5f9eeb81-a5b3-ea1f-a1c4-c703061914a3" /> <meta name="cmProducts" content="https://authoring-docs-microsoft.poolparty.biz/devrel/07bb3e10-d135-43ff-bc8b-360497cb39fa" data-source="generated" /> <meta name="spProducts" content="https://authoring-docs-microsoft.poolparty.biz/devrel/12e559b9-eaf6-4aee-9af7-62334e15f863" data-source="generated" /> <meta name="scope" content="Azure, REST" /><meta name="github_feedback_content_git_url" content="https://github.com/Azure/azure-docs-rest-apis/blob/main/docs-ref-autogen/monitor/rest-monitor-2018-01-01/Metric-Definitions/List.yml" /><link href="https://learn.microsoft.com/en-us/rest/api/monitor/metric-definitions/list?view=rest-monitor-2023-10-01" rel="canonical"><title>Metric Definitions - List - REST API (Azure Monitor) | Microsoft Learn</title><link rel="stylesheet" href="/static/assets/0.4.028726178/styles/site-ltr.css"> <script id="msdocs-script"> var msDocs = {environment: { supportLevel: 'production', accessLevel: 'online', reviewFeatures: false, systemContent: true, azurePortalHostname: 'portal.azure.com', legacyHosting: false, siteName: 'learn', },data: { timeOrigin: Date.now(), contentLocale: 'en-us', contentDir: 'ltr', userLocale: 'en-us', userDir: 'ltr', pageTemplate: 'Reference', brand: 'azure', context: {}, hasBinaryRating: true, feedbackHelpLinkType:'', feedbackHelpLinkUrl:'', standardFeedback: false, showFeedbackReport: false, enableTutorialFeedback: false, feedbackSystem: 'None', feedbackGitHubRepo: '', feedbackProductUrl: '',extendBreadcrumb: true,isEditDisplayable: false, hideViewSource: false, hasPageActions: true, hasPrintButton: true, hasBookmark: true, hasShare: true, isPermissioned: false, isPrivateUnauthorized: false,hasRecommendations: false,contributors: [{ name: "VSC-Service-Account", url: "https://github.com/VSC-Service-Account" }],}, functions:{} }; </script><script src="https://wcpstatic.microsoft.com/mscc/lib/v2/wcp-consent.js"></script> <script src="https://js.monitor.azure.com/scripts/c/ms.jsll-4.min.js"></script><script src="/static/assets/0.4.028726178/global/deprecation.js"></script><script src="/static/assets/0.4.028726178/scripts/en-us/index-docs.js"></script></head> <body lang="en-us" dir="ltr"> <div class="header-holder has-default-focus"> <a href="#main" style="z-index: 1070" class="outline-color-text visually-hidden-until-focused position-fixed inner-focus focus-visible top-0 left-0 right-0 padding-xs text-align-center has-body-background" tabindex="1">Skip to main content</a><a href="#side-doc-outline" style="z-index: 1070" class="outline-color-text visually-hidden-until-focused position-fixed inner-focus focus-visible top-0 left-0 right-0 padding-xs text-align-center has-body-background" tabindex="2">Skip to in-page navigation</a><div hidden id="cookie-consent-holder" data-test-id="cookie-consent-container"></div> <div id="unsupported-browser" style=" background-color: white; color: black; padding: 16px; border-bottom: 1px solid grey;" hidden > <div style="max-width: 800px; margin: 0 auto;"> <p style="font-size: 24px">This browser is no longer supported.</p> <p style="font-size: 16px; margin-top: 16px;">Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.</p> <div style="margin-top: 12px;"> <a href="https://go.microsoft.com/fwlink/p/?LinkID=2092881 " style=" background-color: #0078d4; border: 1px solid #0078d4; color: white; padding: 6px 12px; border-radius: 2px; display: inline-block; ">Download Microsoft Edge</a> <a href="https://learn.microsoft.com/en-us/lifecycle/faq/internet-explorer-microsoft-edge" style=" background-color: white; padding: 6px 12px; border: 1px solid #505050; color: #171717; border-radius: 2px; display: inline-block; ">More info about Internet Explorer and Microsoft Edge</a> </div> </div> </div> <!-- liquid-tag banners global --> <!-- site header --> <header id="ms--site-header" data-test-id="site-header-wrapper" role="banner" itemscope="itemscope" itemtype="http://schema.org/Organization"> <div id="ms--mobile-nav" class="site-header display-none-tablet padding-inline-none gap-none" data-bi-name="mobile-header" data-test-id="mobile-header"></div> <div id="ms--primary-nav" class="site-header display-none display-flex-tablet" data-bi-name="L1-header" data-test-id="primary-header"></div> <div id="ms--secondary-nav" class="site-header display-none display-flex-tablet" data-bi-name="L2-header" data-test-id="secondary-header"></div> </header><div id="content-header" class="content-header uhf-container has-padding has-default-focus border-bottom-none" data-bi-name="content-header"> <div class="content-header-controls margin-xxs margin-inline-sm-tablet"> <button type="button" class="contents-button button button-sm margin-right-xxs" data-bi-name="contents-expand" aria-haspopup="true" data-contents-button> <span class="icon"><span class="docon docon-menu" aria-hidden="true"></span></span> <span class="contents-expand-title">Table of contents</span> </button> <button type="button" class="ap-collapse-behavior ap-expanded button button-sm" data-bi-name="ap-collapse" aria-controls="action-panel"> <span class="icon"><span class="docon docon-exit-mode" aria-hidden="true"></span></span> <span>Exit focus mode</span> </button> </div> </div><div id="disclaimer-holder" class="has-overflow-hidden has-default-focus"> <!-- liquid-tag banners sectional --> </div> </div> <div class="mainContainer uhf-container has-default-focus" data-bi-name="body"> <div class="columns has-large-gaps is-gapless-mobile "><div id="left-container" class="left-container is-hidden-mobile column is-one-third-tablet is-one-quarter-desktop"> <nav id="affixed-left-container" class="margin-top-sm-tablet position-sticky display-flex flex-direction-column" aria-label="Primary"></nav> </div><!-- .primary-holder --> <section class="primary-holder column is-two-thirds-tablet is-three-quarters-desktop"> <!--div.columns --> <div class="columns is-gapless-mobile has-large-gaps "><div id="main-column" class="column is-full is-8-desktop"> <main id="main" class="" role="main" data-bi-name="content" lang="en-us" dir="ltr"><!-- article-header --> <div id="article-header" class="background-color-body margin-top-sm-tablet margin-bottom-xs display-none-print"> <div class="display-flex align-items-center "><details id="article-header-breadcrumbs-overflow-popover" class="popover" data-for="article-header-breadcrumbs"> <summary class="button button-clear button-primary button-sm inner-focus" aria-label="All breadcrumbs"> <span class="icon"> <span class="docon docon-more"></span> </span> </summary> <div id="article-header-breadcrumbs-overflow" class="popover-content padding-none"> </div> </details> <bread-crumbs id="article-header-breadcrumbs" data-test-id="article-header-breadcrumbs" class="overflow-hidden flex-grow-1 margin-right-sm margin-right-md-tablet margin-right-lg-desktop margin-left-negative-xxs padding-left-xxs"></bread-crumbs><div id="article-header-page-actions" class="opacity-none margin-left-auto display-flex flex-wrap-no-wrap align-items-stretch"><a id="lang-link-tablet" class="button button-primary button-clear button-sm display-none display-inline-flex-tablet" title="Read in English" data-bi-name="language-toggle" data-read-in-link hidden> <span class="icon margin-none" aria-hidden="true" data-read-in-link-icon> <span class="docon docon-locale-globe"></span> </span> <span class="is-visually-hidden" data-read-in-link-text>Read in English</span> </a><button type="button" class="collection button button-clear button-sm button-primary display-none display-inline-flex-tablet" data-list-type="collection" data-bi-name="collection" title="Add to collection"> <span class="icon margin-none" aria-hidden="true"> <span class="docon docon-circle-addition"></span> </span> <span class="collection-status is-visually-hidden">Save</span> </button><a data-contenteditbtn class="button button-clear button-sm text-decoration-none button-primary display-none display-inline-flex-tablet" aria-label="Edit" title="Edit This Document" data-bi-name="edit" hidden href="https://github.com/Azure/azure-docs-rest-apis/blob/main/docs-ref-autogen/monitor/rest-monitor-2018-01-01/Metric-Definitions/List.yml" data-original_content_git_url="https://github.com/Azure/azure-docs-rest-apis/blob/live/docs-ref-autogen/monitor/rest-monitor-2018-01-01/Metric-Definitions/List.yml" data-original_content_git_url_template="{repo}/blob/{branch}/docs-ref-autogen/monitor/rest-monitor-2018-01-01/Metric-Definitions/List.yml" data-pr_repo="" data-pr_branch=""> <span class="icon margin-none" aria-hidden="true"> <span class="docon docon-edit-outline"></span> </span> </a> <details class="popover popover-right" id="article-header-page-actions-overflow"> <summary class="justify-content-flex-start button button-clear button-sm button-primary" aria-label="More actions" title="More actions"> <span class="icon" aria-hidden="true"> <span class="docon docon-more-vertical"></span> </span> </summary> <div class="popover-content padding-xs"><button data-page-action-item="overflow-mobile" type="button" class="justify-content-flex-start button-block button-sm has-inner-focus button button-clear display-none-tablet" data-bi-name="contents-expand" data-contents-button data-popover-close> <span class="icon"> <span class="docon docon-editor-list-bullet" aria-hidden="true"></span> </span><span class="contents-expand-title">Table of contents</span></button><a id="lang-link-overflow" class="justify-content-flex-start button-sm has-inner-focus button button-clear button-block display-none-tablet" title="Read in English" data-bi-name="language-toggle" data-page-action-item="overflow-mobile" data-check-hidden="true" data-read-in-link hidden > <span class="icon" aria-hidden="true" data-read-in-link-icon> <span class="docon docon-locale-globe"></span> </span> <span data-read-in-link-text>Read in English</span> </a><button type="button" class="collection justify-content-flex-start button button-clear button-sm has-inner-focus button-block display-none-tablet" data-list-type="collection" data-bi-name="collection" title="Save" data-page-action-item="overflow-mobile" data-check-hidden="true" data-popover-close> <span class="icon" aria-hidden="true"> <span class="docon docon-circle-addition"></span> </span> <span class="collection-status">Save</span> </button> <button type="button" class="collection justify-content-flex-start button button-clear button-sm has-inner-focus button-block display-none-tablet" data-list-type="plan" data-bi-name="plan" title="Add to Plan" data-page-action-item="overflow-mobile" data-check-hidden="true" data-popover-close hidden> <span class="icon" aria-hidden="true"> <span class="docon docon-circle-addition"></span> </span> <span class="plan-status">Add to Plan</span> </button><a data-contenteditbtn class="button button-clear button-block button-sm has-inner-focus justify-content-flex-start text-decoration-none display-none-tablet" aria-label="Edit" title="Edit This Document" data-bi-name="edit" hidden href="https://github.com/Azure/azure-docs-rest-apis/blob/main/docs-ref-autogen/monitor/rest-monitor-2018-01-01/Metric-Definitions/List.yml" data-original_content_git_url="https://github.com/Azure/azure-docs-rest-apis/blob/live/docs-ref-autogen/monitor/rest-monitor-2018-01-01/Metric-Definitions/List.yml" data-original_content_git_url_template="{repo}/blob/{branch}/docs-ref-autogen/monitor/rest-monitor-2018-01-01/Metric-Definitions/List.yml" data-pr_repo="" data-pr_branch=""> <span class="icon" aria-hidden="true"> <span class="docon docon-edit-outline"></span> </span> <span>Edit</span> </a><div aria-hidden="true" class="margin-none" data-page-action-item="overflow-all"></div> <hr class="display-none-tablet margin-bottom-xxs margin-top-xxs" /> <h4 class="font-size-sm padding-left-xxs">Share via</h4> <a class="button button-clear button-sm button-block has-inner-focus text-decoration-none justify-content-flex-start share-facebook" data-bi-name="facebook" data-page-action-item="overflow-all"> <span class="icon" aria-hidden="true"> <span class="docon docon-facebook-share font-size-md color-primary"></span> </span> <span class="margin-left-xxs">Facebook</span> </a> <a class="button button-clear button-sm has-inner-focus button-block text-decoration-none justify-content-flex-start share-twitter" data-bi-name="twitter" data-page-action-item="overflow-all"> <span class="icon" aria-hidden="true"> <span class="docon docon-xlogo-share font-size-xxs"></span> </span> <span class="margin-left-xxs">x.com</span> </a> <a class="button button-clear button-sm has-inner-focus button-block text-decoration-none justify-content-flex-start share-linkedin" data-bi-name="linkedin" data-page-action-item="overflow-all"> <span class="icon" aria-hidden="true"> <span class="docon docon-linked-in-logo font-size-sm color-primary"></span> </span> <span class="margin-left-xxs">LinkedIn</span> </a> <a class="button button-clear button-sm button-block has-inner-focus text-decoration-none justify-content-flex-start margin-bottom-xxs share-email" data-bi-name="email" data-page-action-item="overflow-all"> <span class="icon" aria-hidden="true"> <span class="docon docon-mail-message font-size-sm color-primary"></span> </span> <span class="margin-left-xxs">Email</span> </a><hr /> <button class="button button-block button-clear button-sm justify-content-flex-start has-inner-focus margin-top-xxs" title="Print" type="button" aria-label="Print" data-bi-name="print" data-page-action-item="overflow-all" data-popover-close data-print-page data-check-hidden="true"> <span class="icon" aria-hidden="true"> <span class="docon docon-print font-size-sm color-primary"></span> </span> <span class="margin-left-xxs">Print</span> </button> </div> </details> </div></div> </div> <!-- end article-header --><div> <button type="button" class="border contents-button button button-clear button-sm is-hidden-tablet has-inner-focus" data-bi-name="contents-expand" data-contents-button hidden> <span class="icon"> <span class="docon docon-editor-list-bullet" aria-hidden="true"></span> </span><span class="contents-expand-title">Table of contents</span></button> </div><!-- end mobile-contents button --> <div class="content "><!-- <content> --> <script> msDocs.data.restAPIData = {"httpVerb":"GET","path":"https://management.azure.com/{resourceUri}/providers/Microsoft.Insights/metricDefinitions?api-version=2018-01-01","uriParameters":[{"name":"resourceUri","in":"path","isRequired":true,"type":"string","skipUrlEncoding":true},{"name":"api-version","in":"query","isRequired":true,"type":"string"}],"requestHeader":[],"requestBody":null,"security":[{"type":"oauth2","name":"azure_auth","flow":"implicit","authorizationUrl":"https://login.microsoftonline.com/common/oauth2/authorize","scopes":[{"name":"user_impersonation","description":"impersonate your user account"}],"tokenUrl":""}]}; </script> <h1>Metric Definitions - List</h1> <div class="display-flex-tablet justify-content-space-between-tablet"> <ul class="metadata page-metadata align-items-center" data-bi-name="page info"> <li>Reference</li> </ul> <div id="user-feedback" class="margin-block-xxs display-none-print" data-hide-on-archived=""> <button id="user-feedback-button" data-test-id="conceptual-feedback-button" class="button button-sm button-clear button-primary" type="button" data-bi-name="user-feedback-button" data-user-feedback-button=""> <span class="icon" aria-hidden="true"> <span class="docon docon-like"></span> </span> <span>Feedback</span> </button> </div> </div> <div class="metadata" data-bi-name="page info"> <dl class="attributeList"> <dt>Service:</dt> <dd> Monitor </dd> </dl> <dl class="attributeList"> <dt>API Version:</dt> <dd> 2018-01-01 </dd> </dl> </div> <nav id="center-doc-outline" class="doc-outline is-hidden-desktop display-none-print margin-bottom-sm" data-bi-name="intopic toc" aria-label=""> <h2 class="title is-6 margin-block-xs"></h2> </nav> <section class="rest-reference-content"> <p>Lists the metric definitions for the resource.</p> <pre data-interactive="http"><code class="lang-http" dir="ltr">GET https://management.azure.com/{resourceUri}/providers/Microsoft.Insights/metricDefinitions?api-version=2018-01-01</code></pre> <div class="example-block"> <div class="metadata"> With optional parameters: </div> <pre><code class="lang-http" dir="ltr">GET https://management.azure.com/{resourceUri}/providers/Microsoft.Insights/metricDefinitions?api-version=2018-01-01&metricnamespace={metricnamespace}</code></pre> </div> <h2 id="uri-parameters">URI Parameters</h2> <table class="parameters"> <tbody><tr> <th>Name</th> <th>In</th> <th>Required</th> <th>Type</th> <th>Description</th> </tr> <tr> <td> <div class="parameterName">resource<wbr>Uri</div> </td> <td>path</td> <td> True </td> <td> <p> string </p> </td> <td> <p>The identifier of the resource.</p> </td> </tr> <tr> <td> <div class="parameterName">api-version</div> </td> <td>query</td> <td> True </td> <td> <p> string </p> </td> <td> <p>The API version to use for this operation.</p> </td> </tr> <tr> <td> <div class="parameterName">metricnamespace</div> </td> <td>query</td> <td> </td> <td> <p> string </p> </td> <td> <p>Metric namespace to query metric definitions for.</p> </td> </tr> </tbody></table> <h2 id="response">Responses</h2> <table class="parameters definitions"> <tbody><tr> <th>Name</th> <th>Type</th> <th>Description</th> </tr> <tr> <td> 200 OK </td> <td> <p> <a href="#metricdefinitioncollection" data-linktype="self-bookmark">Metric<wbr>Definition<wbr>Collection</a> </p> </td> <td> <p>Successful request to get the list of metric definitions</p> </td> </tr> <tr> <td> Other Status Codes </td> <td> <p> <a href="#errorresponse" data-linktype="self-bookmark">Error<wbr>Response</a> </p> </td> <td> <p>Error response describing why the operation failed.</p> </td> </tr> </tbody></table> <h2 id="security">Security</h2> <h3>azure_auth</h3> <p>Azure Active Directory OAuth2 Flow</p> <p> <span class="font-weight-semibold">Type: </span> oauth2<br> <span class="font-weight-semibold">Flow: </span> implicit<br> <span class="font-weight-semibold">Authorization URL: </span> https://login.microsoftonline.com/common/oauth2/authorize<br> </p> <h4>Scopes</h4> <table> <tbody><tr> <th>Name</th> <th>Description</th> </tr> <tr> <td> user_impersonation </td> <td> impersonate your user account </td> </tr> </tbody></table> <h2 id="examples">Examples</h2> <table class="table"> <tbody><tr> <td> <a href="#get-application-insights-metric-definitions-without-filter" data-linktype="self-bookmark">Get Application Insights Metric Definitions without filter</a> </td> </tr> <tr> <td> <a href="#get-metric-definitions-without-filter" data-linktype="self-bookmark">Get Metric Definitions without filter</a> </td> </tr> <tr> <td> <a href="#get-storagecache-metric-definitions-with-metric-class" data-linktype="self-bookmark">Get Storage<wbr>Cache Metric Definitions with metric class</a> </td> </tr> </tbody></table> <h3 id="get-application-insights-metric-definitions-without-filter">Get Application Insights Metric Definitions without filter</h3> <div class="example-block"> <h4>Sample request</h4> <div class="tabGroup" id="tabgroup_1"> <ul role="tablist"> <li role="presentation"> <a href="#tabpanel_1_HTTP" role="tab" aria-controls="tabpanel_1_HTTP" data-tab="HTTP" tabindex="0" aria-selected="true" data-linktype="self-bookmark">HTTP</a> </li> <li role="presentation"> <a href="#tabpanel_1_Java" role="tab" aria-controls="tabpanel_1_Java" data-tab="Java" tabindex="-1" data-linktype="self-bookmark">Java</a> </li> <li role="presentation"> <a href="#tabpanel_1_Go" role="tab" aria-controls="tabpanel_1_Go" data-tab="Go" tabindex="-1" data-linktype="self-bookmark">Go</a> </li> <li role="presentation"> <a href="#tabpanel_1_JavaScript" role="tab" aria-controls="tabpanel_1_JavaScript" data-tab="JavaScript" tabindex="-1" data-linktype="self-bookmark">JavaScript</a> </li> </ul> <section id="tabpanel_1_HTTP" role="tabpanel" data-tab="HTTP"> <pre><code class="lang-http">GET https://management.azure.com/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/providers/Microsoft.Insights/metricDefinitions?api-version=2018-01-01&metricnamespace=microsoft.insights/components </code></pre> </section> <section id="tabpanel_1_Java" role="tabpanel" data-tab="Java" aria-hidden="true" hidden="hidden"> <pre><code class="lang-java"> /** * Samples for MetricDefinitions List. */ public final class Main { /* * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/ * GetMetricDefinitionsApplicationInsights.json */ /** * Sample code: Get Application Insights Metric Definitions without filter. * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getApplicationInsightsMetricDefinitionsWithoutFilter(com.azure.resourcemanager.AzureResourceManager azure) { azure.diagnosticSettings().manager().serviceClient().getMetricDefinitions().list( "subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions", "microsoft.insights/components", com.azure.core.util.Context.NONE); } } </code></pre> <p>To use the Azure SDK library in your project, see <a href="https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager_2.44.0/sdk/resourcemanager/azure-resourcemanager/README.md" data-linktype="external">this documentation</a>. To provide feedback on this code sample, <a href="https://github.com/Azure/azure-rest-api-specs-examples/issues/new?assignees=&labels=&template=sample_issue_report.yml&title=%5bSample%20Issue%5d" data-linktype="external">open a GitHub issue</a></p> </section> <section id="tabpanel_1_Go" role="tabpanel" data-tab="Go" aria-hidden="true" hidden="hidden"> <pre><code class="lang-go">package armmonitor_test import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricDefinitionsApplicationInsights.json func ExampleMetricDefinitionsClient_NewListPager_getApplicationInsightsMetricDefinitionsWithoutFilter() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armmonitor.NewMetricDefinitionsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions", &armmonitor.MetricDefinitionsClientListOptions{Metricnamespace: to.Ptr("microsoft.insights/components")}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } } </code></pre> <p>To use the Azure SDK library in your project, see <a href="https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fmonitor%2Farmmonitor%2Fv0.8.0/sdk/resourcemanager/monitor/armmonitor/README.md" data-linktype="external">this documentation</a>. To provide feedback on this code sample, <a href="https://github.com/Azure/azure-rest-api-specs-examples/issues/new?assignees=&labels=&template=sample_issue_report.yml&title=%5bSample%20Issue%5d" data-linktype="external">open a GitHub issue</a></p> </section> <section id="tabpanel_1_JavaScript" role="tabpanel" data-tab="JavaScript" aria-hidden="true" hidden="hidden"> <pre><code class="lang-js">const { MonitorClient } = require("@azure/arm-monitor"); const { DefaultAzureCredential } = require("@azure/identity"); /** * This sample demonstrates how to Lists the metric definitions for the resource. * * @summary Lists the metric definitions for the resource. * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricDefinitionsApplicationInsights.json */ async function getApplicationInsightsMetricDefinitionsWithoutFilter() { const subscriptionId = process.env["MONITOR_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; const resourceUri = "subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions"; const metricnamespace = "microsoft.insights/components"; const options = { metricnamespace }; const credential = new DefaultAzureCredential(); const client = new MonitorClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.metricDefinitions.list(resourceUri, options)) { resArray.push(item); } console.log(resArray); } </code></pre> <p>To use the Azure SDK library in your project, see <a href="https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-monitor_8.0.0-beta.4/sdk/monitor/arm-monitor/README.md" data-linktype="external">this documentation</a>. To provide feedback on this code sample, <a href="https://github.com/Azure/azure-rest-api-specs-examples/issues/new?assignees=&labels=&template=sample_issue_report.yml&title=%5bSample%20Issue%5d" data-linktype="external">open a GitHub issue</a></p> </section> </div> </div> <div class="example-block"> <h4>Sample response</h4> <div class="metadata"> <dl class="attributeList"> <dt>Status code: </dt> <dd> 200 </dd> </dl> </div> <pre><code class="lang-json" dir="ltr">{ "value": [ { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/availabilityResults/availabilityPercentage", "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", "namespace": "microsoft.insights/components", "category": "Availability", "name": { "value": "availabilityResults/availabilityPercentage", "localizedValue": "Availability" }, "displayDescription": "Percentage of successfully completed availability tests", "isDimensionRequired": false, "unit": "Percent", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Average" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "availabilityResult/name", "localizedValue": "Test name" }, { "value": "availabilityResult/location", "localizedValue": "Run location" } ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/availabilityResults/count", "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", "namespace": "microsoft.insights/components", "category": "Availability", "name": { "value": "availabilityResults/count", "localizedValue": "Availability tests" }, "displayDescription": "Count of availability tests", "isDimensionRequired": false, "unit": "Count", "primaryAggregationType": "Count", "supportedAggregationTypes": [ "Count" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "availabilityResult/name", "localizedValue": "Test name" }, { "value": "availabilityResult/location", "localizedValue": "Run location" }, { "value": "availabilityResult/success", "localizedValue": "Test result" } ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/availabilityResults/duration", "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", "namespace": "microsoft.insights/components", "category": "Availability", "name": { "value": "availabilityResults/duration", "localizedValue": "Availability test duration" }, "displayDescription": "Availability test duration", "isDimensionRequired": false, "unit": "MilliSeconds", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Average", "Maximum", "Minimum" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "availabilityResult/name", "localizedValue": "Test name" }, { "value": "availabilityResult/location", "localizedValue": "Run location" }, { "value": "availabilityResult/success", "localizedValue": "Test result" } ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/browserTimings/networkDuration", "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", "namespace": "microsoft.insights/components", "category": "Browser", "name": { "value": "browserTimings/networkDuration", "localizedValue": "Page load network connect time" }, "displayDescription": "Time between user request and network connection. Includes DNS lookup and transport connection.", "isDimensionRequired": false, "unit": "MilliSeconds", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Average", "Maximum", "Minimum" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/browserTimings/processingDuration", "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", "namespace": "microsoft.insights/components", "category": "Browser", "name": { "value": "browserTimings/processingDuration", "localizedValue": "Client processing time" }, "displayDescription": "Time between receiving the last byte of a document until the DOM is loaded. Async requests may still be processing.", "isDimensionRequired": false, "unit": "MilliSeconds", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Average", "Maximum", "Minimum" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/browserTimings/receiveDuration", "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", "namespace": "microsoft.insights/components", "category": "Browser", "name": { "value": "browserTimings/receiveDuration", "localizedValue": "Receiving response time" }, "displayDescription": "Time between the first and last bytes, or until disconnection.", "isDimensionRequired": false, "unit": "MilliSeconds", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Average", "Maximum", "Minimum" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/browserTimings/sendDuration", "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", "namespace": "microsoft.insights/components", "category": "Browser", "name": { "value": "browserTimings/sendDuration", "localizedValue": "Send request time" }, "displayDescription": "Time between network connection and receiving the first byte.", "isDimensionRequired": false, "unit": "MilliSeconds", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Average", "Maximum", "Minimum" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/browserTimings/totalDuration", "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", "namespace": "microsoft.insights/components", "category": "Browser", "name": { "value": "browserTimings/totalDuration", "localizedValue": "Browser page load time" }, "displayDescription": "Time from user request until DOM, stylesheets, scripts and images are loaded.", "isDimensionRequired": false, "unit": "MilliSeconds", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Average", "Maximum", "Minimum" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/dependencies/count", "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", "namespace": "microsoft.insights/components", "category": "Server", "name": { "value": "dependencies/count", "localizedValue": "Dependency calls" }, "displayDescription": "Count of calls made by the application to external resources.", "isDimensionRequired": false, "unit": "Count", "primaryAggregationType": "Count", "supportedAggregationTypes": [ "Count" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "dependency/type", "localizedValue": "Dependency type" }, { "value": "dependency/performanceBucket", "localizedValue": "Dependency performance" }, { "value": "dependency/success", "localizedValue": "Successful call" }, { "value": "dependency/target", "localizedValue": "Target of a dependency call" }, { "value": "dependency/resultCode", "localizedValue": "Result code" }, { "value": "operation/synthetic", "localizedValue": "Is traffic synthetic" }, { "value": "cloud/roleInstance", "localizedValue": "Cloud role instance" }, { "value": "cloud/roleName", "localizedValue": "Cloud role name" } ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/dependencies/duration", "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", "namespace": "microsoft.insights/components", "category": "Server", "name": { "value": "dependencies/duration", "localizedValue": "Dependency duration" }, "displayDescription": "Duration of calls made by the application to external resources.", "isDimensionRequired": false, "unit": "MilliSeconds", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Average", "Maximum", "Minimum" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "dependency/type", "localizedValue": "Dependency type" }, { "value": "dependency/performanceBucket", "localizedValue": "Dependency performance" }, { "value": "dependency/success", "localizedValue": "Successful call" }, { "value": "dependency/target", "localizedValue": "Target of a dependency call" }, { "value": "dependency/resultCode", "localizedValue": "Result code" }, { "value": "operation/synthetic", "localizedValue": "Is traffic synthetic" }, { "value": "cloud/roleInstance", "localizedValue": "Cloud role instance" }, { "value": "cloud/roleName", "localizedValue": "Cloud role name" } ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/dependencies/failed", "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", "namespace": "microsoft.insights/components", "category": "Failures", "name": { "value": "dependencies/failed", "localizedValue": "Dependency call failures" }, "displayDescription": "Count of failed dependency calls made by the application to external resources.", "isDimensionRequired": false, "unit": "Count", "primaryAggregationType": "Count", "supportedAggregationTypes": [ "Count" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "dependency/type", "localizedValue": "Dependency type" }, { "value": "dependency/performanceBucket", "localizedValue": "Dependency performance" }, { "value": "dependency/target", "localizedValue": "Target of a dependency call" }, { "value": "dependency/resultCode", "localizedValue": "Result code" }, { "value": "operation/synthetic", "localizedValue": "Is traffic synthetic" }, { "value": "cloud/roleInstance", "localizedValue": "Cloud role instance" }, { "value": "cloud/roleName", "localizedValue": "Cloud role name" } ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/pageViews/count", "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", "namespace": "microsoft.insights/components", "category": "Usage", "name": { "value": "pageViews/count", "localizedValue": "Page views" }, "displayDescription": "Count of page views.", "isDimensionRequired": false, "unit": "Count", "primaryAggregationType": "Count", "supportedAggregationTypes": [ "Count" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "operation/synthetic", "localizedValue": "Is traffic synthetic" }, { "value": "cloud/roleName", "localizedValue": "Cloud role name" } ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/pageViews/duration", "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", "namespace": "microsoft.insights/components", "category": "Usage", "name": { "value": "pageViews/duration", "localizedValue": "Page view load time" }, "displayDescription": "Page view load time", "isDimensionRequired": false, "unit": "MilliSeconds", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Average", "Maximum", "Minimum" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "operation/synthetic", "localizedValue": "Is traffic synthetic" }, { "value": "cloud/roleName", "localizedValue": "Cloud role name" } ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/performanceCounters/requestExecutionTime", "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", "namespace": "microsoft.insights/components", "category": "Performance counters", "name": { "value": "performanceCounters/requestExecutionTime", "localizedValue": "HTTP request execution time" }, "displayDescription": "Execution time of the most recent request.", "isDimensionRequired": false, "unit": "MilliSeconds", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Average", "Maximum", "Minimum" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "cloud/roleInstance", "localizedValue": "Cloud role instance" } ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/performanceCounters/requestsInQueue", "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", "namespace": "microsoft.insights/components", "category": "Performance counters", "name": { "value": "performanceCounters/requestsInQueue", "localizedValue": "HTTP requests in application queue" }, "displayDescription": "Length of the application request queue.", "isDimensionRequired": false, "unit": "Count", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Average", "Maximum", "Minimum" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "cloud/roleInstance", "localizedValue": "Cloud role instance" } ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/performanceCounters/requestsPerSecond", "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", "namespace": "microsoft.insights/components", "category": "Performance counters", "name": { "value": "performanceCounters/requestsPerSecond", "localizedValue": "HTTP request rate" }, "displayDescription": "Rate of all requests to the application per second from ASP.NET.", "isDimensionRequired": false, "unit": "CountPerSecond", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Average", "Maximum", "Minimum" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "cloud/roleInstance", "localizedValue": "Cloud role instance" } ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/performanceCounters/exceptionsPerSecond", "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", "namespace": "microsoft.insights/components", "category": "Performance counters", "name": { "value": "performanceCounters/exceptionsPerSecond", "localizedValue": "Exception rate" }, "displayDescription": "Count of handled and unhandled exceptions reported to windows, including .NET exceptions and unmanaged exceptions that are converted into .NET exceptions.", "isDimensionRequired": false, "unit": "CountPerSecond", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Average", "Maximum", "Minimum" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "cloud/roleInstance", "localizedValue": "Cloud role instance" } ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/performanceCounters/processIOBytesPerSecond", "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", "namespace": "microsoft.insights/components", "category": "Performance counters", "name": { "value": "performanceCounters/processIOBytesPerSecond", "localizedValue": "Process IO rate" }, "displayDescription": "Total bytes per second read and written to files, network and devices.", "isDimensionRequired": false, "unit": "BytesPerSecond", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Average", "Maximum", "Minimum" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "cloud/roleInstance", "localizedValue": "Cloud role instance" } ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/performanceCounters/processCpuPercentage", "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", "namespace": "microsoft.insights/components", "category": "Performance counters", "name": { "value": "performanceCounters/processCpuPercentage", "localizedValue": "Process CPU" }, "displayDescription": "The percentage of elapsed time that all process threads used the processor to execute instructions. This can vary between 0 to 100. This metric indicates the performance of w3wp process alone.", "isDimensionRequired": false, "unit": "Percent", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Average", "Maximum", "Minimum" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "cloud/roleInstance", "localizedValue": "Cloud role instance" } ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/performanceCounters/processorCpuPercentage", "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", "namespace": "microsoft.insights/components", "category": "Performance counters", "name": { "value": "performanceCounters/processorCpuPercentage", "localizedValue": "Processor time" }, "displayDescription": "The percentage of time that the processor spends in non-idle threads.", "isDimensionRequired": false, "unit": "Percent", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Average", "Maximum", "Minimum" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "cloud/roleInstance", "localizedValue": "Cloud role instance" } ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/performanceCounters/memoryAvailableBytes", "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", "namespace": "microsoft.insights/components", "category": "Performance counters", "name": { "value": "performanceCounters/memoryAvailableBytes", "localizedValue": "Available memory" }, "displayDescription": "Physical memory immediately available for allocation to a process or for system use.", "isDimensionRequired": false, "unit": "Bytes", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Average", "Maximum", "Minimum" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "cloud/roleInstance", "localizedValue": "Cloud role instance" } ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/performanceCounters/processPrivateBytes", "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", "namespace": "microsoft.insights/components", "category": "Performance counters", "name": { "value": "performanceCounters/processPrivateBytes", "localizedValue": "Process private bytes" }, "displayDescription": "Memory exclusively assigned to the monitored application's processes.", "isDimensionRequired": false, "unit": "Bytes", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Average", "Maximum", "Minimum" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "cloud/roleInstance", "localizedValue": "Cloud role instance" } ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/requests/duration", "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", "namespace": "microsoft.insights/components", "category": "Server", "name": { "value": "requests/duration", "localizedValue": "Server response time" }, "displayDescription": "Time between receiving an HTTP request and finishing sending the response.", "isDimensionRequired": false, "unit": "MilliSeconds", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Average", "Maximum", "Minimum" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "request/performanceBucket", "localizedValue": "Request performance" }, { "value": "request/resultCode", "localizedValue": "Result code" }, { "value": "operation/synthetic", "localizedValue": "Is traffic synthetic" }, { "value": "cloud/roleInstance", "localizedValue": "Cloud role instance" }, { "value": "request/success", "localizedValue": "Successful request" }, { "value": "cloud/roleName", "localizedValue": "Cloud role name" } ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/requests/count", "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", "namespace": "microsoft.insights/components", "category": "Server", "name": { "value": "requests/count", "localizedValue": "Server requests" }, "displayDescription": "Count of HTTP requests completed.", "isDimensionRequired": false, "unit": "Count", "primaryAggregationType": "Count", "supportedAggregationTypes": [ "Count" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "request/performanceBucket", "localizedValue": "Request performance" }, { "value": "request/resultCode", "localizedValue": "Result code" }, { "value": "operation/synthetic", "localizedValue": "Is traffic synthetic" }, { "value": "cloud/roleInstance", "localizedValue": "Cloud role instance" }, { "value": "request/success", "localizedValue": "Successful request" }, { "value": "cloud/roleName", "localizedValue": "Cloud role name" } ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/requests/failed", "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", "namespace": "microsoft.insights/components", "category": "Failures", "name": { "value": "requests/failed", "localizedValue": "Failed requests" }, "displayDescription": "Count of HTTP requests marked as failed. In most cases these are requests with a response code >= 400 and not equal to 401.", "isDimensionRequired": false, "unit": "Count", "primaryAggregationType": "Count", "supportedAggregationTypes": [ "Count" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "request/performanceBucket", "localizedValue": "Request performance" }, { "value": "request/resultCode", "localizedValue": "Result code" }, { "value": "operation/synthetic", "localizedValue": "Is traffic synthetic" }, { "value": "cloud/roleInstance", "localizedValue": "Cloud role instance" }, { "value": "cloud/roleName", "localizedValue": "Cloud role name" } ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/requests/rate", "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", "namespace": "microsoft.insights/components", "category": "Server", "name": { "value": "requests/rate", "localizedValue": "Server request rate" }, "displayDescription": "Rate of server requests per second", "isDimensionRequired": false, "unit": "CountPerSecond", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Average" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "request/performanceBucket", "localizedValue": "Request performance" }, { "value": "request/resultCode", "localizedValue": "Result code" }, { "value": "operation/synthetic", "localizedValue": "Is traffic synthetic" }, { "value": "cloud/roleInstance", "localizedValue": "Cloud role instance" }, { "value": "request/success", "localizedValue": "Successful request" }, { "value": "cloud/roleName", "localizedValue": "Cloud role name" } ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/exceptions/count", "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", "namespace": "microsoft.insights/components", "category": "Failures", "name": { "value": "exceptions/count", "localizedValue": "Exceptions" }, "displayDescription": "Combined count of all uncaught exceptions.", "isDimensionRequired": false, "unit": "Count", "primaryAggregationType": "Count", "supportedAggregationTypes": [ "Count" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "cloud/roleName", "localizedValue": "Cloud role name" }, { "value": "cloud/roleInstance", "localizedValue": "Cloud role instance" }, { "value": "client/type", "localizedValue": "Device type" } ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/exceptions/browser", "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", "namespace": "microsoft.insights/components", "category": "Failures", "name": { "value": "exceptions/browser", "localizedValue": "Browser exceptions" }, "displayDescription": "Count of uncaught exceptions thrown in the browser.", "isDimensionRequired": false, "unit": "Count", "primaryAggregationType": "Count", "supportedAggregationTypes": [ "Count" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "cloud/roleName", "localizedValue": "Cloud role name" } ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/exceptions/server", "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", "namespace": "microsoft.insights/components", "category": "Failures", "name": { "value": "exceptions/server", "localizedValue": "Server exceptions" }, "displayDescription": "Count of uncaught exceptions thrown in the server application.", "isDimensionRequired": false, "unit": "Count", "primaryAggregationType": "Count", "supportedAggregationTypes": [ "Count" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "cloud/roleName", "localizedValue": "Cloud role name" }, { "value": "cloud/roleInstance", "localizedValue": "Cloud role instance" } ] }, { "id": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions/traces/count", "resourceId": "/subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", "namespace": "microsoft.insights/components", "category": "Usage", "name": { "value": "traces/count", "localizedValue": "Traces" }, "displayDescription": "Trace document count", "isDimensionRequired": false, "unit": "Count", "primaryAggregationType": "Count", "supportedAggregationTypes": [ "Count" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "trace/severityLevel", "localizedValue": "Severity level" }, { "value": "operation/synthetic", "localizedValue": "Is traffic synthetic" }, { "value": "cloud/roleName", "localizedValue": "Cloud role name" }, { "value": "cloud/roleInstance", "localizedValue": "Cloud role instance" } ] } ] }</code></pre> </div> <h3 id="get-metric-definitions-without-filter">Get Metric Definitions without filter</h3> <div class="example-block"> <h4>Sample request</h4> <div class="tabGroup" id="tabgroup_1"> <ul role="tablist"> <li role="presentation"> <a href="#tabpanel_1_HTTP" role="tab" aria-controls="tabpanel_1_HTTP" data-tab="HTTP" tabindex="0" aria-selected="true" data-linktype="self-bookmark">HTTP</a> </li> <li role="presentation"> <a href="#tabpanel_1_Java" role="tab" aria-controls="tabpanel_1_Java" data-tab="Java" tabindex="-1" data-linktype="self-bookmark">Java</a> </li> <li role="presentation"> <a href="#tabpanel_1_Go" role="tab" aria-controls="tabpanel_1_Go" data-tab="Go" tabindex="-1" data-linktype="self-bookmark">Go</a> </li> <li role="presentation"> <a href="#tabpanel_1_JavaScript" role="tab" aria-controls="tabpanel_1_JavaScript" data-tab="JavaScript" tabindex="-1" data-linktype="self-bookmark">JavaScript</a> </li> </ul> <section id="tabpanel_1_HTTP" role="tabpanel" data-tab="HTTP"> <pre><code class="lang-http">GET https://management.azure.com/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricDefinitions/providers/Microsoft.Insights/metricDefinitions?api-version=2018-01-01&metricnamespace=Microsoft.Web/sites </code></pre> </section> <section id="tabpanel_1_Java" role="tabpanel" data-tab="Java" aria-hidden="true" hidden="hidden"> <pre><code class="lang-java"> /** * Samples for MetricDefinitions List. */ public final class Main { /* * x-ms-original-file: * specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricDefinitions.json */ /** * Sample code: Get Metric Definitions without filter. * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getMetricDefinitionsWithoutFilter(com.azure.resourcemanager.AzureResourceManager azure) { azure.diagnosticSettings().manager().serviceClient().getMetricDefinitions().list( "subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricDefinitions", "Microsoft.Web/sites", com.azure.core.util.Context.NONE); } } </code></pre> <p>To use the Azure SDK library in your project, see <a href="https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager_2.44.0/sdk/resourcemanager/azure-resourcemanager/README.md" data-linktype="external">this documentation</a>. To provide feedback on this code sample, <a href="https://github.com/Azure/azure-rest-api-specs-examples/issues/new?assignees=&labels=&template=sample_issue_report.yml&title=%5bSample%20Issue%5d" data-linktype="external">open a GitHub issue</a></p> </section> <section id="tabpanel_1_Go" role="tabpanel" data-tab="Go" aria-hidden="true" hidden="hidden"> <pre><code class="lang-go">package armmonitor_test import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricDefinitions.json func ExampleMetricDefinitionsClient_NewListPager_getMetricDefinitionsWithoutFilter() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armmonitor.NewMetricDefinitionsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricDefinitions", &armmonitor.MetricDefinitionsClientListOptions{Metricnamespace: to.Ptr("Microsoft.Web/sites")}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } } </code></pre> <p>To use the Azure SDK library in your project, see <a href="https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fmonitor%2Farmmonitor%2Fv0.8.0/sdk/resourcemanager/monitor/armmonitor/README.md" data-linktype="external">this documentation</a>. To provide feedback on this code sample, <a href="https://github.com/Azure/azure-rest-api-specs-examples/issues/new?assignees=&labels=&template=sample_issue_report.yml&title=%5bSample%20Issue%5d" data-linktype="external">open a GitHub issue</a></p> </section> <section id="tabpanel_1_JavaScript" role="tabpanel" data-tab="JavaScript" aria-hidden="true" hidden="hidden"> <pre><code class="lang-js">const { MonitorClient } = require("@azure/arm-monitor"); const { DefaultAzureCredential } = require("@azure/identity"); /** * This sample demonstrates how to Lists the metric definitions for the resource. * * @summary Lists the metric definitions for the resource. * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricDefinitions.json */ async function getMetricDefinitionsWithoutFilter() { const subscriptionId = process.env["MONITOR_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; const resourceUri = "subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricDefinitions"; const metricnamespace = "Microsoft.Web/sites"; const options = { metricnamespace }; const credential = new DefaultAzureCredential(); const client = new MonitorClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.metricDefinitions.list(resourceUri, options)) { resArray.push(item); } console.log(resArray); } </code></pre> <p>To use the Azure SDK library in your project, see <a href="https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-monitor_8.0.0-beta.4/sdk/monitor/arm-monitor/README.md" data-linktype="external">this documentation</a>. To provide feedback on this code sample, <a href="https://github.com/Azure/azure-rest-api-specs-examples/issues/new?assignees=&labels=&template=sample_issue_report.yml&title=%5bSample%20Issue%5d" data-linktype="external">open a GitHub issue</a></p> </section> </div> </div> <div class="example-block"> <h4>Sample response</h4> <div class="metadata"> <dl class="attributeList"> <dt>Status code: </dt> <dd> 200 </dd> </dl> </div> <pre><code class="lang-json" dir="ltr">{ "value": [ { "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/CpuTime", "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", "namespace": "Microsoft.Web/sites", "name": { "value": "CpuTime", "localizedValue": "CPU Time" }, "isDimensionRequired": false, "unit": "Seconds", "primaryAggregationType": "Total", "supportedAggregationTypes": [ "None", "Average", "Minimum", "Maximum", "Total", "Count" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "Instance", "localizedValue": "Instance" } ] }, { "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Requests", "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", "namespace": "Microsoft.Web/sites", "name": { "value": "Requests", "localizedValue": "Requests" }, "isDimensionRequired": false, "unit": "Count", "primaryAggregationType": "Total", "supportedAggregationTypes": [ "None", "Average", "Minimum", "Maximum", "Total", "Count" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "Instance", "localizedValue": "Instance" } ] }, { "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/BytesReceived", "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", "namespace": "Microsoft.Web/sites", "name": { "value": "BytesReceived", "localizedValue": "Data In" }, "isDimensionRequired": false, "unit": "Bytes", "primaryAggregationType": "Total", "supportedAggregationTypes": [ "None", "Average", "Minimum", "Maximum", "Total", "Count" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "Instance", "localizedValue": "Instance" } ] }, { "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/BytesSent", "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", "namespace": "Microsoft.Web/sites", "name": { "value": "BytesSent", "localizedValue": "Data Out" }, "isDimensionRequired": false, "unit": "Bytes", "primaryAggregationType": "Total", "supportedAggregationTypes": [ "None", "Average", "Minimum", "Maximum", "Total", "Count" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "Instance", "localizedValue": "Instance" } ] }, { "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http101", "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", "namespace": "Microsoft.Web/sites", "name": { "value": "Http101", "localizedValue": "Http 101" }, "isDimensionRequired": false, "unit": "Count", "primaryAggregationType": "Total", "supportedAggregationTypes": [ "None", "Average", "Minimum", "Maximum", "Total", "Count" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "Instance", "localizedValue": "Instance" } ] }, { "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http2xx", "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", "namespace": "Microsoft.Web/sites", "name": { "value": "Http2xx", "localizedValue": "Http 2xx" }, "isDimensionRequired": false, "unit": "Count", "primaryAggregationType": "Total", "supportedAggregationTypes": [ "None", "Average", "Minimum", "Maximum", "Total", "Count" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "Instance", "localizedValue": "Instance" } ] }, { "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http3xx", "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", "namespace": "Microsoft.Web/sites", "name": { "value": "Http3xx", "localizedValue": "Http 3xx" }, "isDimensionRequired": false, "unit": "Count", "primaryAggregationType": "Total", "supportedAggregationTypes": [ "None", "Average", "Minimum", "Maximum", "Total", "Count" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "Instance", "localizedValue": "Instance" } ] }, { "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http401", "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", "namespace": "Microsoft.Web/sites", "name": { "value": "Http401", "localizedValue": "Http 401" }, "isDimensionRequired": false, "unit": "Count", "primaryAggregationType": "Total", "supportedAggregationTypes": [ "None", "Average", "Minimum", "Maximum", "Total", "Count" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "Instance", "localizedValue": "Instance" } ] }, { "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http403", "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", "namespace": "Microsoft.Web/sites", "name": { "value": "Http403", "localizedValue": "Http 403" }, "isDimensionRequired": false, "unit": "Count", "primaryAggregationType": "Total", "supportedAggregationTypes": [ "None", "Average", "Minimum", "Maximum", "Total", "Count" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "Instance", "localizedValue": "Instance" } ] }, { "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http404", "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", "namespace": "Microsoft.Web/sites", "name": { "value": "Http404", "localizedValue": "Http 404" }, "isDimensionRequired": false, "unit": "Count", "primaryAggregationType": "Total", "supportedAggregationTypes": [ "None", "Average", "Minimum", "Maximum", "Total", "Count" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "Instance", "localizedValue": "Instance" } ] }, { "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http406", "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", "namespace": "Microsoft.Web/sites", "name": { "value": "Http406", "localizedValue": "Http 406" }, "isDimensionRequired": false, "unit": "Count", "primaryAggregationType": "Total", "supportedAggregationTypes": [ "None", "Average", "Minimum", "Maximum", "Total", "Count" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "Instance", "localizedValue": "Instance" } ] }, { "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http4xx", "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", "namespace": "Microsoft.Web/sites", "name": { "value": "Http4xx", "localizedValue": "Http 4xx" }, "isDimensionRequired": false, "unit": "Count", "primaryAggregationType": "Total", "supportedAggregationTypes": [ "None", "Average", "Minimum", "Maximum", "Total", "Count" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "Instance", "localizedValue": "Instance" } ] }, { "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http5xx", "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", "namespace": "Microsoft.Web/sites", "name": { "value": "Http5xx", "localizedValue": "Http Server Errors" }, "isDimensionRequired": false, "unit": "Count", "primaryAggregationType": "Total", "supportedAggregationTypes": [ "None", "Average", "Minimum", "Maximum", "Total", "Count" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "Instance", "localizedValue": "Instance" } ] }, { "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/MemoryWorkingSet", "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", "namespace": "Microsoft.Web/sites", "name": { "value": "MemoryWorkingSet", "localizedValue": "Memory working set" }, "isDimensionRequired": false, "unit": "Bytes", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "None", "Average", "Minimum", "Maximum", "Total", "Count" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "Instance", "localizedValue": "Instance" } ] }, { "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/AverageMemoryWorkingSet", "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", "namespace": "Microsoft.Web/sites", "name": { "value": "AverageMemoryWorkingSet", "localizedValue": "Average memory working set" }, "isDimensionRequired": false, "unit": "Bytes", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "None", "Average", "Minimum", "Maximum", "Total", "Count" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "Instance", "localizedValue": "Instance" } ] }, { "id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/AverageResponseTime", "resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest", "namespace": "Microsoft.Web/sites", "name": { "value": "AverageResponseTime", "localizedValue": "Average Response Time" }, "isDimensionRequired": false, "unit": "Seconds", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "None", "Average", "Minimum", "Maximum", "Total", "Count" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "Instance", "localizedValue": "Instance" } ] } ] }</code></pre> <div class="metadata stack"> <dl class="attributeList"> <dt>Status code: </dt> <dd> default </dd> </dl> </div> <pre><code class="lang-json" dir="ltr">{ "code": "BadRequest", "message": "ApiVersion: 2018-01-01 does not support query metricdefinitions at non Arm resource Id level" }</code></pre> </div> <h3 id="get-storagecache-metric-definitions-with-metric-class">Get Storage<wbr>Cache Metric Definitions with metric class</h3> <div class="example-block"> <h4>Sample request</h4> <div class="tabGroup" id="tabgroup_1"> <ul role="tablist"> <li role="presentation"> <a href="#tabpanel_1_HTTP" role="tab" aria-controls="tabpanel_1_HTTP" data-tab="HTTP" tabindex="0" aria-selected="true" data-linktype="self-bookmark">HTTP</a> </li> <li role="presentation"> <a href="#tabpanel_1_Java" role="tab" aria-controls="tabpanel_1_Java" data-tab="Java" tabindex="-1" data-linktype="self-bookmark">Java</a> </li> <li role="presentation"> <a href="#tabpanel_1_Go" role="tab" aria-controls="tabpanel_1_Go" data-tab="Go" tabindex="-1" data-linktype="self-bookmark">Go</a> </li> <li role="presentation"> <a href="#tabpanel_1_JavaScript" role="tab" aria-controls="tabpanel_1_JavaScript" data-tab="JavaScript" tabindex="-1" data-linktype="self-bookmark">JavaScript</a> </li> </ul> <section id="tabpanel_1_HTTP" role="tabpanel" data-tab="HTTP"> <pre><code class="lang-http">GET https://management.azure.com/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache/providers/Microsoft.Insights/metricDefinitions?api-version=2018-01-01&metricnamespace=microsoft.storagecache/caches </code></pre> </section> <section id="tabpanel_1_Java" role="tabpanel" data-tab="Java" aria-hidden="true" hidden="hidden"> <pre><code class="lang-java"> /** * Samples for MetricDefinitions List. */ public final class Main { /* * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/ * GetMetricDefinitionsMetricClass.json */ /** * Sample code: Get StorageCache Metric Definitions with metric class. * * @param azure The entry point for accessing resource management APIs in Azure. */ public static void getStorageCacheMetricDefinitionsWithMetricClass(com.azure.resourcemanager.AzureResourceManager azure) { azure.diagnosticSettings().manager().serviceClient().getMetricDefinitions().list( "subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache", "microsoft.storagecache/caches", com.azure.core.util.Context.NONE); } } </code></pre> <p>To use the Azure SDK library in your project, see <a href="https://github.com/Azure/azure-sdk-for-java/blob/azure-resourcemanager_2.44.0/sdk/resourcemanager/azure-resourcemanager/README.md" data-linktype="external">this documentation</a>. To provide feedback on this code sample, <a href="https://github.com/Azure/azure-rest-api-specs-examples/issues/new?assignees=&labels=&template=sample_issue_report.yml&title=%5bSample%20Issue%5d" data-linktype="external">open a GitHub issue</a></p> </section> <section id="tabpanel_1_Go" role="tabpanel" data-tab="Go" aria-hidden="true" hidden="hidden"> <pre><code class="lang-go">package armmonitor_test import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" ) // Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricDefinitionsMetricClass.json func ExampleMetricDefinitionsClient_NewListPager_getStorageCacheMetricDefinitionsWithMetricClass() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() client, err := armmonitor.NewMetricDefinitionsClient(cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache", &armmonitor.MetricDefinitionsClientListOptions{Metricnamespace: to.Ptr("microsoft.storagecache/caches")}) for pager.More() { nextResult, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range nextResult.Value { // TODO: use page item _ = v } } } </code></pre> <p>To use the Azure SDK library in your project, see <a href="https://github.com/Azure/azure-sdk-for-go/blob/sdk%2Fresourcemanager%2Fmonitor%2Farmmonitor%2Fv0.8.0/sdk/resourcemanager/monitor/armmonitor/README.md" data-linktype="external">this documentation</a>. To provide feedback on this code sample, <a href="https://github.com/Azure/azure-rest-api-specs-examples/issues/new?assignees=&labels=&template=sample_issue_report.yml&title=%5bSample%20Issue%5d" data-linktype="external">open a GitHub issue</a></p> </section> <section id="tabpanel_1_JavaScript" role="tabpanel" data-tab="JavaScript" aria-hidden="true" hidden="hidden"> <pre><code class="lang-js">const { MonitorClient } = require("@azure/arm-monitor"); const { DefaultAzureCredential } = require("@azure/identity"); /** * This sample demonstrates how to Lists the metric definitions for the resource. * * @summary Lists the metric definitions for the resource. * x-ms-original-file: specification/monitor/resource-manager/Microsoft.Insights/stable/2018-01-01/examples/GetMetricDefinitionsMetricClass.json */ async function getStorageCacheMetricDefinitionsWithMetricClass() { const subscriptionId = process.env["MONITOR_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; const resourceUri = "subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache"; const metricnamespace = "microsoft.storagecache/caches"; const options = { metricnamespace }; const credential = new DefaultAzureCredential(); const client = new MonitorClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.metricDefinitions.list(resourceUri, options)) { resArray.push(item); } console.log(resArray); } </code></pre> <p>To use the Azure SDK library in your project, see <a href="https://github.com/Azure/azure-sdk-for-js/blob/%40azure%2Farm-monitor_8.0.0-beta.4/sdk/monitor/arm-monitor/README.md" data-linktype="external">this documentation</a>. To provide feedback on this code sample, <a href="https://github.com/Azure/azure-rest-api-specs-examples/issues/new?assignees=&labels=&template=sample_issue_report.yml&title=%5bSample%20Issue%5d" data-linktype="external">open a GitHub issue</a></p> </section> </div> </div> <div class="example-block"> <h4>Sample response</h4> <div class="metadata"> <dl class="attributeList"> <dt>Status code: </dt> <dd> 200 </dd> </dl> </div> <pre><code class="lang-json" dir="ltr">{ "value": [ { "id": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache/providers/microsoft.insights/metricdefinitions/ClientIOPS", "resourceId": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache", "namespace": "microsoft.storagecache/caches", "metricClass": "Transactions", "name": { "value": "ClientIOPS", "localizedValue": "Total Client IOPS" }, "displayDescription": "The rate of client file operations processed by the Cache.", "isDimensionRequired": false, "unit": "Count", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Minimum", "Maximum", "Average" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ] }, { "id": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache/providers/microsoft.insights/metricdefinitions/ClientLatency", "resourceId": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache", "namespace": "microsoft.storagecache/caches", "metricClass": "Latency", "name": { "value": "ClientLatency", "localizedValue": "Average Client Latency" }, "displayDescription": "Average latency of client file operations to the Cache.", "isDimensionRequired": false, "unit": "MilliSeconds", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Minimum", "Maximum", "Average" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ] }, { "id": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache/providers/microsoft.insights/metricdefinitions/ClientReadIOPS", "resourceId": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache", "namespace": "microsoft.storagecache/caches", "metricClass": "Transactions", "name": { "value": "ClientReadIOPS", "localizedValue": "Client Read IOPS" }, "displayDescription": "Client read operations per second.", "isDimensionRequired": false, "unit": "CountPerSecond", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Minimum", "Maximum", "Average" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ] }, { "id": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache/providers/microsoft.insights/metricdefinitions/ClientReadThroughput", "resourceId": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache", "namespace": "microsoft.storagecache/caches", "metricClass": "Transactions", "name": { "value": "ClientReadThroughput", "localizedValue": "Average Cache Read Throughput" }, "displayDescription": "Client read data transfer rate.", "isDimensionRequired": false, "unit": "BytesPerSecond", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Minimum", "Maximum", "Average" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ] }, { "id": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache/providers/microsoft.insights/metricdefinitions/ClientWriteIOPS", "resourceId": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache", "namespace": "microsoft.storagecache/caches", "metricClass": "Transactions", "name": { "value": "ClientWriteIOPS", "localizedValue": "Client Write IOPS" }, "displayDescription": "Client write operations per second.", "isDimensionRequired": false, "unit": "CountPerSecond", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Minimum", "Maximum", "Average" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ] }, { "id": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache/providers/microsoft.insights/metricdefinitions/ClientWriteThroughput", "resourceId": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache", "namespace": "microsoft.storagecache/caches", "metricClass": "Transactions", "name": { "value": "ClientWriteThroughput", "localizedValue": "Average Cache Write Throughput" }, "displayDescription": "Client write data transfer rate.", "isDimensionRequired": false, "unit": "BytesPerSecond", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Minimum", "Maximum", "Average" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ] }, { "id": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache/providers/microsoft.insights/metricdefinitions/ClientMetadataReadIOPS", "resourceId": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache", "namespace": "microsoft.storagecache/caches", "metricClass": "Transactions", "name": { "value": "ClientMetadataReadIOPS", "localizedValue": "Client Metadata Read IOPS" }, "displayDescription": "The rate of client file operations sent to the Cache, excluding data reads, that do not modify persistent state.", "isDimensionRequired": false, "unit": "CountPerSecond", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Minimum", "Maximum", "Average" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ] }, { "id": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache/providers/microsoft.insights/metricdefinitions/ClientMetadataWriteIOPS", "resourceId": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache", "namespace": "microsoft.storagecache/caches", "metricClass": "Transactions", "name": { "value": "ClientMetadataWriteIOPS", "localizedValue": "Client Metadata Write IOPS" }, "displayDescription": "The rate of client file operations sent to the Cache, excluding data writes, that modify persistent state.", "isDimensionRequired": false, "unit": "CountPerSecond", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Minimum", "Maximum", "Average" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ] }, { "id": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache/providers/microsoft.insights/metricdefinitions/ClientLockIOPS", "resourceId": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache", "namespace": "microsoft.storagecache/caches", "metricClass": "Transactions", "name": { "value": "ClientLockIOPS", "localizedValue": "Client Lock IOPS" }, "displayDescription": "Client file locking operations per second.", "isDimensionRequired": false, "unit": "CountPerSecond", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Minimum", "Maximum", "Average" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ] }, { "id": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache/providers/microsoft.insights/metricdefinitions/StorageTargetHealth", "resourceId": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache", "namespace": "microsoft.storagecache/caches", "metricClass": "Errors", "name": { "value": "StorageTargetHealth", "localizedValue": "Storage Target Health" }, "displayDescription": "Boolean results of connectivity test between the Cache and Storage Targets.", "isDimensionRequired": false, "unit": "Count", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Minimum", "Maximum", "Average" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ] }, { "id": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache/providers/microsoft.insights/metricdefinitions/Uptime", "resourceId": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache", "namespace": "microsoft.storagecache/caches", "metricClass": "Availability", "name": { "value": "Uptime", "localizedValue": "Uptime" }, "displayDescription": "Boolean results of connectivity test between the Cache and monitoring system.", "isDimensionRequired": false, "unit": "Count", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Minimum", "Maximum", "Average" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ] }, { "id": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache/providers/microsoft.insights/metricdefinitions/StorageTargetIOPS", "resourceId": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache", "namespace": "microsoft.storagecache/caches", "metricClass": "Transactions", "name": { "value": "StorageTargetIOPS", "localizedValue": "Total StorageTarget IOPS" }, "displayDescription": "The rate of all file operations the Cache sends to a particular StorageTarget.", "isDimensionRequired": false, "unit": "Count", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Minimum", "Maximum", "Average" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "StorageTarget", "localizedValue": "StorageTarget" } ] }, { "id": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache/providers/microsoft.insights/metricdefinitions/StorageTargetWriteIOPS", "resourceId": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache", "namespace": "microsoft.storagecache/caches", "metricClass": "Transactions", "name": { "value": "StorageTargetWriteIOPS", "localizedValue": "StorageTarget Write IOPS" }, "displayDescription": "The rate of the file write operations the Cache sends to a particular StorageTarget.", "isDimensionRequired": false, "unit": "Count", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Minimum", "Maximum", "Average" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "StorageTarget", "localizedValue": "StorageTarget" } ] }, { "id": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache/providers/microsoft.insights/metricdefinitions/StorageTargetAsyncWriteThroughput", "resourceId": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache", "namespace": "microsoft.storagecache/caches", "metricClass": "Transactions", "name": { "value": "StorageTargetAsyncWriteThroughput", "localizedValue": "StorageTarget Asynchronous Write Throughput" }, "displayDescription": "The rate the Cache asynchronously writes data to a particular StorageTarget. These are opportunistic writes that do not cause clients to block.", "isDimensionRequired": false, "unit": "BytesPerSecond", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Minimum", "Maximum", "Average" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "StorageTarget", "localizedValue": "StorageTarget" } ] }, { "id": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache/providers/microsoft.insights/metricdefinitions/StorageTargetSyncWriteThroughput", "resourceId": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache", "namespace": "microsoft.storagecache/caches", "metricClass": "Transactions", "name": { "value": "StorageTargetSyncWriteThroughput", "localizedValue": "StorageTarget Synchronous Write Throughput" }, "displayDescription": "The rate the Cache synchronously writes data to a particular StorageTarget. These are writes that do cause clients to block.", "isDimensionRequired": false, "unit": "BytesPerSecond", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Minimum", "Maximum", "Average" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "StorageTarget", "localizedValue": "StorageTarget" } ] }, { "id": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache/providers/microsoft.insights/metricdefinitions/StorageTargetTotalWriteThroughput", "resourceId": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache", "namespace": "microsoft.storagecache/caches", "metricClass": "Transactions", "name": { "value": "StorageTargetTotalWriteThroughput", "localizedValue": "StorageTarget Total Write Throughput" }, "displayDescription": "The total rate that the Cache writes data to a particular StorageTarget.", "isDimensionRequired": false, "unit": "BytesPerSecond", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Minimum", "Maximum", "Average" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "StorageTarget", "localizedValue": "StorageTarget" } ] }, { "id": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache/providers/microsoft.insights/metricdefinitions/StorageTargetLatency", "resourceId": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache", "namespace": "microsoft.storagecache/caches", "metricClass": "Transactions", "name": { "value": "StorageTargetLatency", "localizedValue": "StorageTarget Latency" }, "displayDescription": "The average round trip latency of all the file operations the Cache sends to a partricular StorageTarget.", "isDimensionRequired": false, "unit": "MilliSeconds", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Minimum", "Maximum", "Average" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "StorageTarget", "localizedValue": "StorageTarget" } ] }, { "id": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache/providers/microsoft.insights/metricdefinitions/StorageTargetMetadataReadIOPS", "resourceId": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache", "namespace": "microsoft.storagecache/caches", "metricClass": "Transactions", "name": { "value": "StorageTargetMetadataReadIOPS", "localizedValue": "StorageTarget Metadata Read IOPS" }, "displayDescription": "The rate of file operations that do not modify persistent state, and excluding the read operation, that the Cache sends to a particular StorageTarget.", "isDimensionRequired": false, "unit": "CountPerSecond", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Minimum", "Maximum", "Average" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "StorageTarget", "localizedValue": "StorageTarget" } ] }, { "id": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache/providers/microsoft.insights/metricdefinitions/StorageTargetMetadataWriteIOPS", "resourceId": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache", "namespace": "microsoft.storagecache/caches", "metricClass": "Transactions", "name": { "value": "StorageTargetMetadataWriteIOPS", "localizedValue": "StorageTarget Metadata Write IOPS" }, "displayDescription": "The rate of file operations that do modify persistent state and excluding the write operation, that the Cache sends to a particular StorageTarget.", "isDimensionRequired": false, "unit": "CountPerSecond", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Minimum", "Maximum", "Average" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "StorageTarget", "localizedValue": "StorageTarget" } ] }, { "id": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache/providers/microsoft.insights/metricdefinitions/StorageTargetReadIOPS", "resourceId": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache", "namespace": "microsoft.storagecache/caches", "metricClass": "Transactions", "name": { "value": "StorageTargetReadIOPS", "localizedValue": "StorageTarget Read IOPS" }, "displayDescription": "The rate of file read operations the Cache sends to a particular StorageTarget.", "isDimensionRequired": false, "unit": "CountPerSecond", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Minimum", "Maximum", "Average" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "StorageTarget", "localizedValue": "StorageTarget" } ] }, { "id": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache/providers/microsoft.insights/metricdefinitions/StorageTargetReadAheadThroughput", "resourceId": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache", "namespace": "microsoft.storagecache/caches", "metricClass": "Transactions", "name": { "value": "StorageTargetReadAheadThroughput", "localizedValue": "StorageTarget Read Ahead Throughput" }, "displayDescription": "The rate the Cache opportunisticly reads data from the StorageTarget.", "isDimensionRequired": false, "unit": "BytesPerSecond", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Minimum", "Maximum", "Average" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "StorageTarget", "localizedValue": "StorageTarget" } ] }, { "id": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache/providers/microsoft.insights/metricdefinitions/StorageTargetFillThroughput", "resourceId": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache", "namespace": "microsoft.storagecache/caches", "metricClass": "Transactions", "name": { "value": "StorageTargetFillThroughput", "localizedValue": "StorageTarget Fill Throughput" }, "displayDescription": "The rate the Cache reads data from the StorageTarget to handle a cache miss.", "isDimensionRequired": false, "unit": "BytesPerSecond", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Minimum", "Maximum", "Average" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "StorageTarget", "localizedValue": "StorageTarget" } ] }, { "id": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache/providers/microsoft.insights/metricdefinitions/StorageTargetTotalReadThroughput", "resourceId": "/subscriptions/46841c0e-69c8-4b17-af46-6626ecb15fc2/resourceGroups/adgarntptestrg/providers/Microsoft.StorageCache/caches/adgarntptestcache", "namespace": "microsoft.storagecache/caches", "metricClass": "Transactions", "name": { "value": "StorageTargetTotalReadThroughput", "localizedValue": "StorageTarget Total Read Throughput" }, "displayDescription": "The total rate that the Cache reads data from a particular StorageTarget.", "isDimensionRequired": false, "unit": "BytesPerSecond", "primaryAggregationType": "Average", "supportedAggregationTypes": [ "Minimum", "Maximum", "Average" ], "metricAvailabilities": [ { "timeGrain": "PT1M", "retention": "P93D" }, { "timeGrain": "PT5M", "retention": "P93D" }, { "timeGrain": "PT15M", "retention": "P93D" }, { "timeGrain": "PT30M", "retention": "P93D" }, { "timeGrain": "PT1H", "retention": "P93D" }, { "timeGrain": "PT6H", "retention": "P93D" }, { "timeGrain": "PT12H", "retention": "P93D" }, { "timeGrain": "P1D", "retention": "P93D" } ], "dimensions": [ { "value": "StorageTarget", "localizedValue": "StorageTarget" } ] } ] }</code></pre> </div> <h2 id="definitions">Definitions</h2> <table class="table"> <tbody><tr> <th>Name</th> <th>Description</th> </tr> <tr> <td> <a href="#aggregationtype" data-linktype="self-bookmark">Aggregation<wbr>Type</a> </td> <td> <p>the aggregation type of the metric.</p> </td> </tr> <tr> <td> <a href="#errorresponse" data-linktype="self-bookmark">Error<wbr>Response</a> </td> <td> <p>Describes the format of Error response.</p> </td> </tr> <tr> <td> <a href="#localizablestring" data-linktype="self-bookmark">Localizable<wbr>String</a> </td> <td> <p>The localizable string class.</p> </td> </tr> <tr> <td> <a href="#metricavailability" data-linktype="self-bookmark">Metric<wbr>Availability</a> </td> <td> <p>Metric availability specifies the time grain (aggregation interval or frequency) and the retention period for that time grain.</p> </td> </tr> <tr> <td> <a href="#metricclass" data-linktype="self-bookmark">Metric<wbr>Class</a> </td> <td> <p>The class of the metric.</p> </td> </tr> <tr> <td> <a href="#metricdefinition" data-linktype="self-bookmark">Metric<wbr>Definition</a> </td> <td> <p>Metric definition class specifies the metadata for a metric.</p> </td> </tr> <tr> <td> <a href="#metricdefinitioncollection" data-linktype="self-bookmark">Metric<wbr>Definition<wbr>Collection</a> </td> <td> <p>Represents collection of metric definitions.</p> </td> </tr> <tr> <td> <a href="#metricunit" data-linktype="self-bookmark">Metric<wbr>Unit</a> </td> <td> <p>The unit of the metric.</p> </td> </tr> </tbody></table> <h3 id="aggregationtype">Aggregation<wbr>Type</h3> <p>the aggregation type of the metric.</p> <table class="parameters definitions"> <tbody><tr> <th>Name</th> <th>Type</th> <th>Description</th> </tr> <tr> <td> Average </td> <td> <p> string </p> </td> <td> </td> </tr> <tr> <td> Count </td> <td> <p> string </p> </td> <td> </td> </tr> <tr> <td> Maximum </td> <td> <p> string </p> </td> <td> </td> </tr> <tr> <td> Minimum </td> <td> <p> string </p> </td> <td> </td> </tr> <tr> <td> None </td> <td> <p> string </p> </td> <td> </td> </tr> <tr> <td> Total </td> <td> <p> string </p> </td> <td> </td> </tr> </tbody></table> <h3 id="errorresponse">Error<wbr>Response</h3> <p>Describes the format of Error response.</p> <table class="parameters definitions"> <tbody><tr> <th>Name</th> <th>Type</th> <th>Description</th> </tr> <tr> <td> code </td> <td> <p> string </p> </td> <td> <p>Error code</p> </td> </tr> <tr> <td> message </td> <td> <p> string </p> </td> <td> <p>Error message indicating why the operation failed.</p> </td> </tr> </tbody></table> <h3 id="localizablestring">Localizable<wbr>String</h3> <p>The localizable string class.</p> <table class="parameters definitions"> <tbody><tr> <th>Name</th> <th>Type</th> <th>Description</th> </tr> <tr> <td> localizedValue </td> <td> <p> string </p> </td> <td> <p>The display name.</p> </td> </tr> <tr> <td> value </td> <td> <p> string </p> </td> <td> <p>The invariant value.</p> </td> </tr> </tbody></table> <h3 id="metricavailability">Metric<wbr>Availability</h3> <p>Metric availability specifies the time grain (aggregation interval or frequency) and the retention period for that time grain.</p> <table class="parameters definitions"> <tbody><tr> <th>Name</th> <th>Type</th> <th>Description</th> </tr> <tr> <td> retention </td> <td> <p> string </p> </td> <td> <p>the retention period for the metric at the specified timegrain. Expressed as a duration 'PT1M', 'P1D', etc.</p> </td> </tr> <tr> <td> timeGrain </td> <td> <p> string </p> </td> <td> <p>the time grain specifies the aggregation interval for the metric. Expressed as a duration 'PT1M', 'P1D', etc.</p> </td> </tr> </tbody></table> <h3 id="metricclass">Metric<wbr>Class</h3> <p>The class of the metric.</p> <table class="parameters definitions"> <tbody><tr> <th>Name</th> <th>Type</th> <th>Description</th> </tr> <tr> <td> Availability </td> <td> <p> string </p> </td> <td> </td> </tr> <tr> <td> Errors </td> <td> <p> string </p> </td> <td> </td> </tr> <tr> <td> Latency </td> <td> <p> string </p> </td> <td> </td> </tr> <tr> <td> Saturation </td> <td> <p> string </p> </td> <td> </td> </tr> <tr> <td> Transactions </td> <td> <p> string </p> </td> <td> </td> </tr> </tbody></table> <h3 id="metricdefinition">Metric<wbr>Definition</h3> <p>Metric definition class specifies the metadata for a metric.</p> <table class="parameters definitions"> <tbody><tr> <th>Name</th> <th>Type</th> <th>Description</th> </tr> <tr> <td> category </td> <td> <p> string </p> </td> <td> <p>Custom category name for this metric.</p> </td> </tr> <tr> <td> dimensions </td> <td> <p> <a href="#localizablestring" data-linktype="self-bookmark">Localizable<wbr>String</a>[] </p> </td> <td> <p>the name and the display name of the dimension, i.e. it is a localizable string.</p> </td> </tr> <tr> <td> displayDescription </td> <td> <p> string </p> </td> <td> <p>Detailed description of this metric.</p> </td> </tr> <tr> <td> id </td> <td> <p> string </p> </td> <td> <p>the resource identifier of the metric definition.</p> </td> </tr> <tr> <td> isDimensionRequired </td> <td> <p> boolean </p> </td> <td> <p>Flag to indicate whether the dimension is required.</p> </td> </tr> <tr> <td> metricAvailabilities </td> <td> <p> <a href="#metricavailability" data-linktype="self-bookmark">Metric<wbr>Availability</a>[] </p> </td> <td> <p>the collection of what aggregation intervals are available to be queried.</p> </td> </tr> <tr> <td> metricClass </td> <td> <p> <a href="#metricclass" data-linktype="self-bookmark">Metric<wbr>Class</a> </p> </td> <td> <p>The class of the metric.</p> </td> </tr> <tr> <td> name </td> <td> <p> <a href="#localizablestring" data-linktype="self-bookmark">Localizable<wbr>String</a> </p> </td> <td> <p>the name and the display name of the metric, i.e. it is a localizable string.</p> </td> </tr> <tr> <td> namespace </td> <td> <p> string </p> </td> <td> <p>the namespace the metric belongs to.</p> </td> </tr> <tr> <td> primaryAggregationType </td> <td> <p> <a href="#aggregationtype" data-linktype="self-bookmark">Aggregation<wbr>Type</a> </p> </td> <td> <p>the primary aggregation type value defining how to use the values for display.</p> </td> </tr> <tr> <td> resourceId </td> <td> <p> string </p> </td> <td> <p>the resource identifier of the resource that emitted the metric.</p> </td> </tr> <tr> <td> supportedAggregationTypes </td> <td> <p> <a href="#aggregationtype" data-linktype="self-bookmark">Aggregation<wbr>Type</a>[] </p> </td> <td> <p>the collection of what aggregation types are supported.</p> </td> </tr> <tr> <td> unit </td> <td> <p> <a href="#metricunit" data-linktype="self-bookmark">Metric<wbr>Unit</a> </p> </td> <td> <p>The unit of the metric.</p> </td> </tr> </tbody></table> <h3 id="metricdefinitioncollection">Metric<wbr>Definition<wbr>Collection</h3> <p>Represents collection of metric definitions.</p> <table class="parameters definitions"> <tbody><tr> <th>Name</th> <th>Type</th> <th>Description</th> </tr> <tr> <td> value </td> <td> <p> <a href="#metricdefinition" data-linktype="self-bookmark">Metric<wbr>Definition</a>[] </p> </td> <td> <p>the values for the metric definitions.</p> </td> </tr> </tbody></table> <h3 id="metricunit">Metric<wbr>Unit</h3> <p>The unit of the metric.</p> <table class="parameters definitions"> <tbody><tr> <th>Name</th> <th>Type</th> <th>Description</th> </tr> <tr> <td> BitsPerSecond </td> <td> <p> string </p> </td> <td> </td> </tr> <tr> <td> ByteSeconds </td> <td> <p> string </p> </td> <td> </td> </tr> <tr> <td> Bytes </td> <td> <p> string </p> </td> <td> </td> </tr> <tr> <td> BytesPerSecond </td> <td> <p> string </p> </td> <td> </td> </tr> <tr> <td> Cores </td> <td> <p> string </p> </td> <td> </td> </tr> <tr> <td> Count </td> <td> <p> string </p> </td> <td> </td> </tr> <tr> <td> CountPerSecond </td> <td> <p> string </p> </td> <td> </td> </tr> <tr> <td> MilliCores </td> <td> <p> string </p> </td> <td> </td> </tr> <tr> <td> MilliSeconds </td> <td> <p> string </p> </td> <td> </td> </tr> <tr> <td> NanoCores </td> <td> <p> string </p> </td> <td> </td> </tr> <tr> <td> Percent </td> <td> <p> string </p> </td> <td> </td> </tr> <tr> <td> Seconds </td> <td> <p> string </p> </td> <td> </td> </tr> <tr> <td> Unspecified </td> <td> <p> string </p> </td> <td> </td> </tr> </tbody></table> </section> </div><div id="ms--inline-notifications" class="margin-block-xs" data-bi-name="inline-notification"></div><div id="assertive-live-region" role="alert" aria-live="assertive" class="visually-hidden" aria-relevant="additions" aria-atomic="true"></div> <div id="polite-live-region" role="status" aria-live="polite" class="visually-hidden" aria-relevant="additions" aria-atomic="true"></div> <!-- </content> --> </main><!-- recommendations section --><!-- end recommendations section --> <!-- feedback section --><!-- end feedback section --> <!-- feedback report section --><!-- end feedback report section --><div class="border-top is-visible-interactive has-default-focus margin-top-sm "><footer id="footer-interactive" data-bi-name="footer" class="footer-layout"><div class="display-flex gap-xs flex-wrap-wrap is-full-height padding-right-lg-desktop"><a data-mscc-ic="false" class="locale-selector-link button button-sm button-clear flex-shrink-0" href="#" data-bi-name="select-locale"> <span class="icon" aria-hidden="true"> <span class="docon docon-world"></span> </span> <span class="local-selector-link-text"></span></a><div class="ccpa-privacy-link" data-ccpa-privacy-link hidden> <a href="https://aka.ms/yourcaliforniaprivacychoices" class="button button-sm button-clear flex-shrink-0" data-mscc-ic="false" data-bi-name="your-privacy-choices" > <svg role="img" aria-label="California Consumer Privacy Act (CCPA) Opt-Out Icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 14" xml:space="preserve" height="16" width="43" focusable="false" > <title>California Consumer Privacy Act (CCPA) Opt-Out Icon</title> <path d="M7.4 12.8h6.8l3.1-11.6H7.4C4.2 1.2 1.6 3.8 1.6 7s2.6 5.8 5.8 5.8z" style="fill-rule:evenodd;clip-rule:evenodd;fill:#fff"></path> <path d="M22.6 0H7.4c-3.9 0-7 3.1-7 7s3.1 7 7 7h15.2c3.9 0 7-3.1 7-7s-3.2-7-7-7zm-21 7c0-3.2 2.6-5.8 5.8-5.8h9.9l-3.1 11.6H7.4c-3.2 0-5.8-2.6-5.8-5.8z" style="fill-rule:evenodd;clip-rule:evenodd;fill:#06f"></path> <path d="M24.6 4c.2.2.2.6 0 .8L22.5 7l2.2 2.2c.2.2.2.6 0 .8-.2.2-.6.2-.8 0l-2.2-2.2-2.2 2.2c-.2.2-.6.2-.8 0-.2-.2-.2-.6 0-.8L20.8 7l-2.2-2.2c-.2-.2-.2-.6 0-.8.2-.2.6-.2.8 0l2.2 2.2L23.8 4c.2-.2.6-.2.8 0z" style="fill:#fff"></path> <path d="M12.7 4.1c.2.2.3.6.1.8L8.6 9.8c-.1.1-.2.2-.3.2-.2.1-.5.1-.7-.1L5.4 7.7c-.2-.2-.2-.6 0-.8.2-.2.6-.2.8 0L8 8.6l3.8-4.5c.2-.2.6-.2.9 0z" style="fill:#06f"></path> </svg> <span>Your Privacy Choices</span> </a> </div> <div class="flex-shrink-0"> <div class="dropdown has-caret-up"> <button class="dropdown-trigger button button-clear button-sm has-inner-focus theme-dropdown-trigger" aria-controls="theme-menu-interactive" aria-expanded="false" title="Theme" data-bi-name="theme"> <span class="icon"> <span class="docon docon-sun" aria-hidden="true"></span> </span> <span>Theme</span> <span class="icon expanded-indicator" aria-hidden="true"> <span class="docon docon-chevron-down-light"></span> </span> </button> <div class="dropdown-menu" id="theme-menu-interactive" role="menu"> <ul class="theme-selector padding-xxs" role="none"> <li class="theme display-block" role="menuitem"> <button class="button button-clear button-sm theme-control button-block justify-content-flex-start" data-theme-to="light"> <span class="theme-light margin-right-xxs"> <span class="theme-selector-icon border display-inline-block has-body-background" aria-hidden="true"> <svg class="svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 14"> <rect width="22" height="14" class="has-fill-body-background" /> <rect x="5" y="5" width="12" height="4" class="has-fill-secondary" /> <rect x="5" y="2" width="2" height="1" class="has-fill-secondary" /> <rect x="8" y="2" width="2" height="1" class="has-fill-secondary" /> <rect x="11" y="2" width="3" height="1" class="has-fill-secondary" /> <rect x="1" y="1" width="2" height="2" class="has-fill-secondary" /> <rect x="5" y="10" width="7" height="2" rx="0.3" class="has-fill-primary" /> <rect x="19" y="1" width="2" height="2" rx="1" class="has-fill-secondary" /> </svg> </span> </span> <span>Light</span> </button> </li> <li class="theme display-block" role="menuitem"> <button class="button button-clear button-sm theme-control button-block justify-content-flex-start" data-theme-to="dark"> <span class="theme-dark margin-right-xxs"> <span class="border theme-selector-icon display-inline-block has-body-background" aria-hidden="true"> <svg class="svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 14"> <rect width="22" height="14" class="has-fill-body-background" /> <rect x="5" y="5" width="12" height="4" class="has-fill-secondary" /> <rect x="5" y="2" width="2" height="1" class="has-fill-secondary" /> <rect x="8" y="2" width="2" height="1" class="has-fill-secondary" /> <rect x="11" y="2" width="3" height="1" class="has-fill-secondary" /> <rect x="1" y="1" width="2" height="2" class="has-fill-secondary" /> <rect x="5" y="10" width="7" height="2" rx="0.3" class="has-fill-primary" /> <rect x="19" y="1" width="2" height="2" rx="1" class="has-fill-secondary" /> </svg> </span> </span> <span>Dark</span> </button> </li> <li class="theme display-block" role="menuitem"> <button class="button button-clear button-sm theme-control button-block justify-content-flex-start" data-theme-to="high-contrast"> <span class="theme-high-contrast margin-right-xxs"> <span class="border theme-selector-icon display-inline-block has-body-background" aria-hidden="true"> <svg class="svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 14"> <rect width="22" height="14" class="has-fill-body-background" /> <rect x="5" y="5" width="12" height="4" class="has-fill-secondary" /> <rect x="5" y="2" width="2" height="1" class="has-fill-secondary" /> <rect x="8" y="2" width="2" height="1" class="has-fill-secondary" /> <rect x="11" y="2" width="3" height="1" class="has-fill-secondary" /> <rect x="1" y="1" width="2" height="2" class="has-fill-secondary" /> <rect x="5" y="10" width="7" height="2" rx="0.3" class="has-fill-primary" /> <rect x="19" y="1" width="2" height="2" rx="1" class="has-fill-secondary" /> </svg> </span> </span> <span>High contrast</span> </button> </li> </ul> </div> </div> </div> </div> <ul class="links" data-bi-name="footerlinks"> <li class="manage-cookies-holder" hidden></li><li><a class="external-link-indicator" data-mscc-ic="false" href="/en-us/previous-versions/" data-bi-name="archivelink">Previous Versions</a></li> <li><a class="external-link-indicator" data-mscc-ic="false" href="https://techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog" data-bi-name="bloglink">Blog</a></li> <li><a class="external-link-indicator" data-mscc-ic="false" href="/en-us/contribute/" data-bi-name="contributorGuide">Contribute</a></li><li><a class="external-link-indicator" data-mscc-ic="false" href="https://go.microsoft.com/fwlink/?LinkId=521839" data-bi-name="privacy">Privacy</a></li><li><a class="external-link-indicator" data-mscc-ic="false" href="/en-us/legal/termsofuse" data-bi-name="termsofuse">Terms of Use</a></li><li><a class="external-link-indicator" data-mscc-ic="false" href="https://www.microsoft.com/legal/intellectualproperty/Trademarks/" data-bi-name="trademarks">Trademarks</a></li><li>© Microsoft 2024</li> </ul> </footer></div></div><div id="ms--additional-resources" class="right-container column is-4-desktop display-none display-block-desktop" data-bi-name="pageactions" role="complementary" aria-label="Additional resources" > <div id="affixed-right-container" class="margin-top-sm-tablet" data-bi-name="right-column"> <h2 id="ms--additional-resources-heading" class="title is-6 margin-top-md" hidden>Additional resources</h2> <section id="right-rail-events" data-bi-name="events-card" hidden></section> <section id="right-rail-training" data-bi-name="learning-resources-card" hidden></section> <section id="right-rail-recommendations" data-bi-name="recommendations" hidden></section> <nav id="side-doc-outline" class="doc-outline" data-bi-name="intopic toc" aria-label="In this article"> <h3>In this article</h3> </nav> <section id="right-rail-qna" class="margin-top-xxs" data-bi-name="qna-link-card" hidden></section> </div> </div></div> <!--end of div.columns --> </section> <!--end of .primary-holder --> <!-- interactive container --> <aside id="interactive-container" class="interactive-container is-visible-interactive column has-body-background-dark "> </aside> <!-- end of interactive container --> </div> </div> <!--end of .mainContainer --> <section class="border-top has-default-focus is-hidden-interactive margin-top-sm "><footer id="footer" data-bi-name="footer" class="footer-layout uhf-container has-padding" role="contentinfo"><div class="display-flex gap-xs flex-wrap-wrap is-full-height padding-right-lg-desktop"><a data-mscc-ic="false" class="locale-selector-link button button-sm button-clear flex-shrink-0" href="#" data-bi-name="select-locale"> <span class="icon" aria-hidden="true"> <span class="docon docon-world"></span> </span> <span class="local-selector-link-text"></span></a><div class="ccpa-privacy-link" data-ccpa-privacy-link hidden> <a href="https://aka.ms/yourcaliforniaprivacychoices" class="button button-sm button-clear flex-shrink-0" data-mscc-ic="false" data-bi-name="your-privacy-choices" > <svg role="img" aria-label="California Consumer Privacy Act (CCPA) Opt-Out Icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 14" xml:space="preserve" height="16" width="43" focusable="false" > <title>California Consumer Privacy Act (CCPA) Opt-Out Icon</title> <path d="M7.4 12.8h6.8l3.1-11.6H7.4C4.2 1.2 1.6 3.8 1.6 7s2.6 5.8 5.8 5.8z" style="fill-rule:evenodd;clip-rule:evenodd;fill:#fff"></path> <path d="M22.6 0H7.4c-3.9 0-7 3.1-7 7s3.1 7 7 7h15.2c3.9 0 7-3.1 7-7s-3.2-7-7-7zm-21 7c0-3.2 2.6-5.8 5.8-5.8h9.9l-3.1 11.6H7.4c-3.2 0-5.8-2.6-5.8-5.8z" style="fill-rule:evenodd;clip-rule:evenodd;fill:#06f"></path> <path d="M24.6 4c.2.2.2.6 0 .8L22.5 7l2.2 2.2c.2.2.2.6 0 .8-.2.2-.6.2-.8 0l-2.2-2.2-2.2 2.2c-.2.2-.6.2-.8 0-.2-.2-.2-.6 0-.8L20.8 7l-2.2-2.2c-.2-.2-.2-.6 0-.8.2-.2.6-.2.8 0l2.2 2.2L23.8 4c.2-.2.6-.2.8 0z" style="fill:#fff"></path> <path d="M12.7 4.1c.2.2.3.6.1.8L8.6 9.8c-.1.1-.2.2-.3.2-.2.1-.5.1-.7-.1L5.4 7.7c-.2-.2-.2-.6 0-.8.2-.2.6-.2.8 0L8 8.6l3.8-4.5c.2-.2.6-.2.9 0z" style="fill:#06f"></path> </svg> <span>Your Privacy Choices</span> </a> </div> <div class="flex-shrink-0"> <div class="dropdown has-caret-up"> <button class="dropdown-trigger button button-clear button-sm has-inner-focus theme-dropdown-trigger" aria-controls="theme-menu" aria-expanded="false" title="Theme" data-bi-name="theme"> <span class="icon"> <span class="docon docon-sun" aria-hidden="true"></span> </span> <span>Theme</span> <span class="icon expanded-indicator" aria-hidden="true"> <span class="docon docon-chevron-down-light"></span> </span> </button> <div class="dropdown-menu" id="theme-menu" role="menu"> <ul class="theme-selector padding-xxs" role="none"> <li class="theme display-block" role="menuitem"> <button class="button button-clear button-sm theme-control button-block justify-content-flex-start" data-theme-to="light"> <span class="theme-light margin-right-xxs"> <span class="theme-selector-icon border display-inline-block has-body-background" aria-hidden="true"> <svg class="svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 14"> <rect width="22" height="14" class="has-fill-body-background" /> <rect x="5" y="5" width="12" height="4" class="has-fill-secondary" /> <rect x="5" y="2" width="2" height="1" class="has-fill-secondary" /> <rect x="8" y="2" width="2" height="1" class="has-fill-secondary" /> <rect x="11" y="2" width="3" height="1" class="has-fill-secondary" /> <rect x="1" y="1" width="2" height="2" class="has-fill-secondary" /> <rect x="5" y="10" width="7" height="2" rx="0.3" class="has-fill-primary" /> <rect x="19" y="1" width="2" height="2" rx="1" class="has-fill-secondary" /> </svg> </span> </span> <span>Light</span> </button> </li> <li class="theme display-block" role="menuitem"> <button class="button button-clear button-sm theme-control button-block justify-content-flex-start" data-theme-to="dark"> <span class="theme-dark margin-right-xxs"> <span class="border theme-selector-icon display-inline-block has-body-background" aria-hidden="true"> <svg class="svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 14"> <rect width="22" height="14" class="has-fill-body-background" /> <rect x="5" y="5" width="12" height="4" class="has-fill-secondary" /> <rect x="5" y="2" width="2" height="1" class="has-fill-secondary" /> <rect x="8" y="2" width="2" height="1" class="has-fill-secondary" /> <rect x="11" y="2" width="3" height="1" class="has-fill-secondary" /> <rect x="1" y="1" width="2" height="2" class="has-fill-secondary" /> <rect x="5" y="10" width="7" height="2" rx="0.3" class="has-fill-primary" /> <rect x="19" y="1" width="2" height="2" rx="1" class="has-fill-secondary" /> </svg> </span> </span> <span>Dark</span> </button> </li> <li class="theme display-block" role="menuitem"> <button class="button button-clear button-sm theme-control button-block justify-content-flex-start" data-theme-to="high-contrast"> <span class="theme-high-contrast margin-right-xxs"> <span class="border theme-selector-icon display-inline-block has-body-background" aria-hidden="true"> <svg class="svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 14"> <rect width="22" height="14" class="has-fill-body-background" /> <rect x="5" y="5" width="12" height="4" class="has-fill-secondary" /> <rect x="5" y="2" width="2" height="1" class="has-fill-secondary" /> <rect x="8" y="2" width="2" height="1" class="has-fill-secondary" /> <rect x="11" y="2" width="3" height="1" class="has-fill-secondary" /> <rect x="1" y="1" width="2" height="2" class="has-fill-secondary" /> <rect x="5" y="10" width="7" height="2" rx="0.3" class="has-fill-primary" /> <rect x="19" y="1" width="2" height="2" rx="1" class="has-fill-secondary" /> </svg> </span> </span> <span>High contrast</span> </button> </li> </ul> </div> </div> </div> </div> <ul class="links" data-bi-name="footerlinks"> <li class="manage-cookies-holder" hidden></li><li><a class="external-link-indicator" data-mscc-ic="false" href="/en-us/previous-versions/" data-bi-name="archivelink">Previous Versions</a></li> <li><a class="external-link-indicator" data-mscc-ic="false" href="https://techcommunity.microsoft.com/t5/microsoft-learn-blog/bg-p/MicrosoftLearnBlog" data-bi-name="bloglink">Blog</a></li> <li><a class="external-link-indicator" data-mscc-ic="false" href="/en-us/contribute/" data-bi-name="contributorGuide">Contribute</a></li><li><a class="external-link-indicator" data-mscc-ic="false" href="https://go.microsoft.com/fwlink/?LinkId=521839" data-bi-name="privacy">Privacy</a></li><li><a class="external-link-indicator" data-mscc-ic="false" href="/en-us/legal/termsofuse" data-bi-name="termsofuse">Terms of Use</a></li><li><a class="external-link-indicator" data-mscc-ic="false" href="https://www.microsoft.com/legal/intellectualproperty/Trademarks/" data-bi-name="trademarks">Trademarks</a></li><li>© Microsoft 2024</li> </ul> </footer> </section> <div id="action-panel" role="region" aria-label="Action Panel" class="action-panel has-default-focus" tabindex="-1"></div> </body> </html>