- Fixed the ISO8601 value for
twentyFourHours
toPT24H
, instead of the incorrectP24H
underDurations
object. - Fixed the ISO8601 value for
fortyEightHours
toPT48H
, instead of the incorrectP48H
underDurations
object.
- Added Resource centric query logs api for
LogsIngestionClient
from (1.1.0-beta.1
release).
- Fixed the ISO8601 value for
twentyFourHours
to reflectP24H
, instead ofP1D
underDurations
object.
- Added alias
fortyEightHours
for ISO8601 valueP48H
underDurations
object. - Deprecated alias name
fourtyEightHours
and fixed the ISO8601 value to beP48H
instead ofP2D
underDurations
object.
- Added Resource centric query logs api for
LogsIngestionClient
.
- #23349 Fixed endpoint resolution to allow endpoints from sovereign clouds
- Fixed a typo in the string for user-provided scope for
MetricsQueryClient
andLogsQueryClient
.
- Fixed the
timeInterval
field ofMetricsQueryResult
object to correctly return all the fields ofQueryTimeInterval
.
- Enabled browser support
- Added different result objects
LogsQueryPartialResult
,LogsQuerySuccessfulResult
orLogsQueryError
based on the success scenarios for log queries.
- Renamed
ErrorInfo
toLogsErrorInfo
, which now extends theError
class andcode
as an additional property. Removed all the other properties. query
method inLogsQueryClient
renamed toqueryWorkspace
query
method inMetricsQueryClient
renamed toqueryResource
- Renamed the status types in
LogsQueryResultStatus
.Partial
toPartialFailure
andFailed
toFailure
. - Renamed
timeGrain
inMetricAvailability
togranularity
- Renamed
TimeInterval
toQueryTimeInterval
- Updated constants in
Durations
to camel-case. - Removed
credentialOptions.credentialScopes
property inLogsQueryClientOptions
since scopes other than default are not supported yet. - Removed
throwOnAnyError
flag fromLogsQueryOptions
andLogsQueryBatchOptions
- Removed the error classes
BatchError
andAggregateBatchError
- Updated
LogsQueryBatchResult
object to be a list of objects with the following possible types:LogsQueryPartialResult
LogsQuerySuccessfulResult
LogsQueryError
- Updated
LogsQueryResult
object to be of typeLogsQuerySuccessfulResult
orLogsQueryPartialResult
- Updated
listMetricNamespaces
signature to return the list of appropriateMetricsNamespaces
object type
- Added convenience method
getMetricByName
inMetricsQueryResult
to allow users to fetch results of a particular metric - Added a flag
throwOnAnyFailure
to be set by user for methodsqueryLogs
andqueryLogsBatch
to enable error throwing - Defining
AggregateBatchError
class for throwing batch errors - Added status with potential values
("Partial" | "Success" | "Failed")
for responses ofquery
andqueryBatch
APIs to indicate whether the status of results of each query.
- Updated methods
getMetricDefinitions
andgetMetricNamespaces
to return paginated list of items and renamed tolistMetricDefinitions
andlistMetricNames
respectively - Renamed methods
queryLogs
andqueryLogsBatch
inLogsQueryClient
toquery
andqueryBatch
- Updated the constant names inside
Durations
to drop thelast
prefix - Updated method
queryBatch
to take argument ofQueryBatch
model instead ofQueryLogsBatch
model - Renamed
QueryLogsOptions
toLogsQueryOptions
- Renamed
QueryLogsBatchResult
toLogsQueryBatchResult
- Renamed
QueryMetricsResult
toMetricsQueryResult
- Renamed
QueryLogsResult
toLogsQueryResult
,QueryLogsBatchOptions
toLogsQueryBatchOptions
- Updated type for
timespan
property fromstring
toTimeInterval
type inquery
andqueryBatch
methods ofLogsQueryClient
and inMetricsQueryResult
interface - Renamed
MetricColumn
toLogsColumn
andcolumn
tocolumnDescriptors
inLogsTable
model - Renamed
displayDescription
property todescription
inMetric
andMetricNames
- Flattened the
metricNamespaceName
property forMetricNamespace
- Renamed
innererror
toinnerError
inErrorInfo
- Added
additionalWorkspaces
as an optional parameter toQueryLogsOptions
andBatchQuery
for thequeryLogs
andqueryLogsBatch
API to allow multiple workspaces - Allow returning statistics and visualization information to user for each query result in
QueryLogsBatchResult
- Adding Error information in
QueryLogsResult
.
- Renamed
workspace
toworkspaceId
in querybatch
- The
include-render
header can now be specified viaQueryLogsOption.includeVisualization
, allowing visualization information to be returned inQueryLogsResult.visualization
. The results are currently unmodeled and reflect the underlying JSON structure.
- Fixing issue using non-commercial clouds, where it wasn't possible to pass in an endpoint and custom scope, both of which are needed. PR#15705
- Adding a mitigation for LogsQueryClient.queryLogsBatch() where an invalidly encoded response could lead to no results being surfaced to the user. This should allow for the result to be properly parsed. PR#15718
- Initial release of the monitor-query library, allowing you to query Log Analytics Workspaces for logs and metrics.