Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monitor query readme #16791

Merged
merged 31 commits into from
Aug 9, 2021
Merged

Conversation

KarishmaGhiya
Copy link
Member

@KarishmaGhiya KarishmaGhiya commented Aug 6, 2021

Fixes #15984 and #15983

@ghost ghost added the Monitor Monitor, Monitor Ingestion, Monitor Query label Aug 6, 2021
Copy link
Member

@scottaddie scottaddie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's also include a tree that depicts the metrics response object graph. For example, here's how Python did it: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-query/README.md#handle-metrics-response.

sdk/monitor/monitor-query/README.md Outdated Show resolved Hide resolved
sdk/monitor/monitor-query/README.md Outdated Show resolved Hide resolved
sdk/monitor/monitor-query/README.md Outdated Show resolved Hide resolved
sdk/monitor/monitor-query/README.md Outdated Show resolved Hide resolved
sdk/monitor/monitor-query/README.md Outdated Show resolved Hide resolved
sdk/monitor/monitor-query/README.md Outdated Show resolved Hide resolved
sdk/monitor/monitor-query/samples-dev/logsQueryBatch.ts Outdated Show resolved Hide resolved
sdk/monitor/monitor-query/README.md Outdated Show resolved Hide resolved
KarishmaGhiya and others added 10 commits August 5, 2021 23:23
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
…atch.ts

Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
@KarishmaGhiya
Copy link
Member Author

KarishmaGhiya commented Aug 6, 2021

Why don't the other languages like Python and Java not have these fields in the ​Metric​​ object? These are there in the generated code -
  cc: @srnagar @rakshith91 @scottaddie

/** Detailed description of this metric. */
  displayDescription?string;
  /** 'Success' or the error details on query failures for this metric. */
  errorCode?string;
  /** Error message encountered querying this specific metric. */
  errorMessage?string;

@KarishmaGhiya
Copy link
Member Author

In this issue - #15984 we need to add object hierarchy for LogsQuery Response object too, but I don't see that in Python or Java readme. Can you confirm if we need to add? cc: @scottaddie @srnagar @rakshith91

@rakshith91
Copy link

Can you confirm if we need to add?

yes - we must :)

@rakshith91
Copy link

/** Detailed description of this metric. */
  displayDescription?string;
  /** 'Success' or the error details on query failures for this metric. */
  errorCode?string;
  /** Error message encountered querying this specific metric. */
  errorMessage?string;

interesting - what exactly does it do?

@KarishmaGhiya KarishmaGhiya mentioned this pull request Aug 6, 2021
@KarishmaGhiya
Copy link
Member Author

Added the Metrics response object - @scottaddie

Let's also include a tree that depicts the metrics response object graph. For example, here's how Python did it: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/monitor/azure-monitor-query/README.md#handle-metrics-response.

@KarishmaGhiya KarishmaGhiya dismissed scottaddie’s stale review August 6, 2021 22:46

Addressed the changes requested. Dismissing right now, so this can be merged by EOD today.

@joshfree
Copy link
Member

joshfree commented Aug 6, 2021

@srnagar @pakrym @rakshith91 ptal

Copy link
Member

@scottaddie scottaddie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good after you incorporate my suggestions.

sdk/monitor/monitor-query/README.md Outdated Show resolved Hide resolved
sdk/monitor/monitor-query/README.md Outdated Show resolved Hide resolved
sdk/monitor/monitor-query/README.md Outdated Show resolved Hide resolved
KarishmaGhiya and others added 3 commits August 6, 2021 16:05
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
Co-authored-by: Scott Addie <10702007+scottaddie@users.noreply.github.com>
@joshfree
Copy link
Member

joshfree commented Aug 6, 2021

The Set logs query timeout code block is missing language coloring


### Query metrics

The following example gets metrics for an [Azure Metrics Advisor](https://docs.microsoft.com/azure/applied-ai-services/metrics-advisor/overview) subscription. The resource URI is that of a Metrics Advisor resource.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix link and link name to use Azure Monitor instead of Metrics Advisor

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is used as an example to get the resource URI. Python used eventgrid as the example.

@KarishmaGhiya
Copy link
Member Author

will do a follow up PR to add the link to main branch for multi-workspace sample which is added as part of this PR

@KarishmaGhiya KarishmaGhiya enabled auto-merge (squash) August 9, 2021 08:08
@KarishmaGhiya KarishmaGhiya merged commit 1c10ff3 into Azure:main Aug 9, 2021
openapi-sdkautomation bot pushed a commit to AzureSDKAutomation/azure-sdk-for-js that referenced this pull request Jan 6, 2022
Web ant95 2021 03 01 (Azure#16506)

* Adds base for updating Microsoft.Web from version stable/2021-02-01 to version 2021-03-01

* Updates readme

* Updates API version in new specs and examples

* Re-add Microsoft.CertificateRegistration and Microsoft.DomainRegistration APIs since they do not get pulled in by OpenApiHub (Azure#15917)

* Introduce enterpriseGradeCdnStatus to StaticSites.json (Azure#16080)

* Update StaticSites.json

* Update StaticSites.json

* Onedeploy API swapper spec (Azure#15985)

* Onedeploy API swapper spec

* Adding onedeploy custom keyword

* Formatting onedeploy api indentation

Formatting onedeploy api indentation

* prettifier

Co-authored-by: Calvin Chan <calvinch4n@gmail.com>

* Fix status codes for syncfunctiontriggers (Azure#16413)

* Add GET endpoint at /config/authsettingsv2 for Microsoft.Web (Azure#16427)

* Add GET endpoint at /config/authsettingsv2 for Microsoft.Web

* Fix duplicate operation ids

* Swagger for ASD Transfer out (Azure#16000)

* Add domain transfer out to swagger

* Prettifier

* Add 202 response for webapp restart

* Add certificate listHostnameBindingsOfCertificate

* Formatting

* Swagger for listHostnameBindings endpoint (Azure#16516)

* Swagger for listHostnameBindings endpoint

* Re-add Microsoft.CertificateRegistration and Microsoft.DomainRegistration APIs since they do not get pulled in by OpenApiHub (Azure#15917)

* ops

Co-authored-by: Naveed Aziz <naveeda@microsoft.com>

* User/jennylaw/containerapp (Azure#16657)

* Pre-Prettier-commit

* Adding missing file

* Prettier fixes

* Add missing definitions

* Fix intendation in readme.md

* add suppressions

* Add custom hostname sites endpoint (Azure#16745)

* Add custom hostname sites endpoint

* Fix models

* Swagger Fixes for Container App, KubeEnvironments spec (Azure#16793)

* Pre-Prettier-commit

* Adding missing file

* Prettier fixes

* Add missing definitions

* Fix intendation in readme.md

* add suppressions

* Fix Kube Environments 2021-03-01 contract + add list secrets api to Container Apps Swagger

* Fix sercret read property

* Prettier fix

* Model fix

* Prettier Fix #2

Co-authored-by: Jenny Lawrance <jennylaw@microsoft.com>

* Add long running extension for restart (Azure#16791)

* Remove unused API from ANT95 swagger (Azure#16901)

* Address PR comments (Azure#17019)

* Fixing PR comments (Azure#17127)

* Remove Certificate Hostname bindings API (Azure#17204)

* Remove Certificate Hostname bindings API

* Remove examples file as well

Co-authored-by: mkarmark <mikarmar@microsoft.com>
Co-authored-by: SatishRanjan <SatishRanjan@users.noreply.github.com>
Co-authored-by: Calvin Chan <calvinch4n@gmail.com>
Co-authored-by: Connor McMahon <comcmaho@microsoft.com>
Co-authored-by: JennyLawrance <jennylaw@microsoft.com>
Co-authored-by: Sanchit Mehta <sanchit.mehta602@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Monitor Monitor, Monitor Ingestion, Monitor Query
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorporate Monitor Query Beta-2 UX study feedback into August (Beta-3)
5 participants