-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Support getting rows as objects and map errors #21997
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
114 changes: 114 additions & 0 deletions
114
...itor/azure-monitor-query/src/main/java/com/azure/monitor/query/models/LogsQueryError.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,114 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| package com.azure.monitor.query.models; | ||
|
|
||
| import java.util.List; | ||
|
|
||
| /** | ||
| * Error details of a failed log query. | ||
| */ | ||
|
|
||
| public final class LogsQueryError { | ||
| /* | ||
| * The error's code. | ||
| */ | ||
| private final String code; | ||
|
|
||
| /* | ||
| * A human readable error message. | ||
| */ | ||
| private final String message; | ||
|
|
||
| /* | ||
| * Indicates which property in the request is responsible for the error. | ||
| */ | ||
| private final String target; | ||
|
|
||
| /* | ||
| * Indicates which value in 'target' is responsible for the error. | ||
| */ | ||
| private final String value; | ||
|
|
||
| /* | ||
| * Indicates resources which were responsible for the error. | ||
| */ | ||
| private final List<String> resources; | ||
|
|
||
| /* | ||
| * Additional properties that can be provided on the error details object | ||
| */ | ||
| private final Object additionalProperties; | ||
|
|
||
| /** | ||
| * Creates an instance of ErrorDetail class. | ||
| * @param code the code value to set. | ||
| * @param message the message value to set. | ||
| * @param target indicates which property in the request is responsible for the error. | ||
| * @param value indicates which value in 'target' is responsible for the error. | ||
| * @param resources indicates resources which were responsible for the error. | ||
| * @param additionalProperties additional properties that can be provided on the error details object | ||
| */ | ||
| public LogsQueryError( | ||
| String code, | ||
| String message, | ||
| String target, | ||
| String value, | ||
| List<String> resources, | ||
| Object additionalProperties) { | ||
| this.code = code; | ||
| this.message = message; | ||
| this.target = target; | ||
| this.value = value; | ||
| this.resources = resources; | ||
| this.additionalProperties = additionalProperties; | ||
| } | ||
|
|
||
| /** | ||
| * Get the code property: The error's code. | ||
| * @return the code value. | ||
| */ | ||
| public String getCode() { | ||
| return this.code; | ||
| } | ||
|
|
||
| /** | ||
| * Get the message property: A human readable error message. | ||
| * @return the message value. | ||
| */ | ||
| public String getMessage() { | ||
| return this.message; | ||
| } | ||
|
|
||
| /** | ||
| * Get the target property: Indicates which property in the request is responsible for the error. | ||
| * @return the target value. | ||
| */ | ||
| public String getTarget() { | ||
| return this.target; | ||
| } | ||
|
|
||
| /** | ||
| * Get the value property: Indicates which value in 'target' is responsible for the error. | ||
| * @return the value value. | ||
| */ | ||
| public String getValue() { | ||
| return this.value; | ||
| } | ||
|
|
||
| /** | ||
| * Get the resources property: Indicates resources which were responsible for the error. | ||
| * @return the resources value. | ||
| */ | ||
| public List<String> getResources() { | ||
| return this.resources; | ||
| } | ||
|
|
||
| /** | ||
| * Get the additionalProperties property: Additional properties that can be provided on the error details object. | ||
| * @return the additionalProperties value. | ||
| */ | ||
| public Object getAdditionalProperties() { | ||
| return this.additionalProperties; | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.