This repository is for active development of the Azure SDK for Java. For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/java/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-java.
MIT License
2.36k
stars
2k
forks
source link
Live Metrics Filtering: Part 1 of 5 - port filtering functionality #43040
Port functionality from filter.ts in node repo to Filter.java. This is responsible for filtering any telemetry item.
New types: TelemetryColumns & it's child classes. These exist to make filtering easier - instead of using TelemetryItems directly, needed some fields to be boolean or numeric.
Added a function for parsing timestamps from filtering configuration (it's in a different format than whats in FormattedDuration.java)
Added util function for converting FormattedDuration string back to microseconds, for filtering of durations.
Added unit tests for Filter.java & the util function
[x] Title of the pull request is clear and informative.
[] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.
Description
This PR includes:
None of this new code is actually used in the QuickPulseDataCollector yet - that's for a future PR. Spec: https://github.com/aep-health-and-standards/Telemetry-Collection-Spec/blob/main/ApplicationInsights/live-metrics-filtering.md
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines