Skip to content

@azure/monitor-query_1.0.0

Compare
Choose a tag to compare
@azure-sdk azure-sdk released this 07 Oct 22:18
db4825b

1.0.0 (2021-10-07)

Features Added

  • Enabled browser support
  • Added different result objects LogsQueryPartialResult, LogsQuerySuccessfulResult or LogsQueryError based on the success scenarios for log queries.

Breaking Changes

  • Renamed ErrorInfo to LogsErrorInfo, which now extends the Error class and code as an additional property. Removed all the other properties.
  • query method in LogsQueryClient renamed to queryWorkspace
  • query method in MetricsQueryClient renamed to queryResource
  • Renamed the status types in LogsQueryResultStatus. Partial to PartialFailure and Failed to Failure.
  • Renamed timeGrain in MetricAvailability to granularity
  • Renamed TimeInterval to QueryTimeInterval
  • Updated constants in Durations to camel-case.
  • Removed credentialOptions.credentialScopes property in LogsQueryClientOptions since scopes other than default are not supported yet.
  • Removed throwOnAnyError flag from LogsQueryOptions and LogsQueryBatchOptions
  • Removed the error classes BatchError and AggregateBatchError
  • Updated LogsQueryBatchResult object to be a list of objects with the following possible types:
    • LogsQueryPartialResult
    • LogsQuerySuccessfulResult
    • LogsQueryError
  • Updated LogsQueryResult object to be of type LogsQuerySuccessfulResult or LogsQueryPartialResult

Bugs Fixed

  • Updated listMetricNamespaces signature to return the list of appropriate MetricsNamespaces object type