Skip to content

Control Document Quotas for QuickPulse#2425

Merged
TimothyMothra merged 37 commits intodevelopfrom
rambhatt/adjustable-document-quotas
Oct 27, 2021
Merged

Control Document Quotas for QuickPulse#2425
TimothyMothra merged 37 commits intodevelopfrom
rambhatt/adjustable-document-quotas

Conversation

@rambhatt-msft
Copy link
Contributor

Fix Issue # .

Changes

(Please provide a brief description of the changes here.)

Checklist

  • I ran Unit Tests locally.
  • CHANGELOG.md updated with one line description of the fix, and a link to the original issue if available.

For significant contributions please make sure you have completed the following items:

  • Design discussion issue #
  • Changes in public surface reviewed

The PR will trigger build, unit tests, and functional tests automatically. Please follow these instructions to build and test locally.

Notes for authors:

  • FxCop and other analyzers will fail the build. To see these errors yourself, compile localy using the Release configuration.

Notes for reviewers:

  • We support comment build triggers
    • /AzurePipelines run will queue all builds
    • /AzurePipelines run <pipeline-name> will queue a specific build

Copy link
Member

@tokaplan tokaplan 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 talk through this and do another round of changes.

@rambhatt-msft rambhatt-msft marked this pull request as ready for review September 29, 2021 18:10
@rambhatt-msft rambhatt-msft changed the title [WIP] Control Document Quotas for QuickPulse Control Document Quotas for QuickPulse Sep 29, 2021
@TimothyMothra TimothyMothra added this to the 2.20 milestone Oct 21, 2021
@rambhatt-msft rambhatt-msft force-pushed the rambhatt/adjustable-document-quotas branch from f6dfc7c to 11fe028 Compare October 25, 2021 22:19
{
Tuple<float, float, float, float, float> initialQuotas;
previousQuotasByStreamId.TryGetValue(documentStreamInfo.Id, out initialQuotas);
previousQuotasByStreamId.TryGetValue(documentStreamInfo.Id, out Tuple<float, float, float, float, float> initialQuotas);
Copy link
Member

Choose a reason for hiding this comment

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

Let's rename initialQuotas in order to make it clear that it comes from the previous quota. Maybe previousQuotas or something like that.

Copy link
Member

Choose a reason for hiding this comment

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

The out var name.

@@ -0,0 +1,22 @@
namespace Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.Implementation.Service_contract
Copy link
Member

Choose a reason for hiding this comment

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

In C#, namespace segments are PascalCase with no underscores or other special symbols. This should be ServiceContract

Copy link
Contributor Author

Choose a reason for hiding this comment

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

old

Copy link
Member

Choose a reason for hiding this comment

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

Nope, it's not old. The namespace is still called Service_contract.

@@ -0,0 +1,22 @@
namespace Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.Implementation.Service_contract
Copy link
Member

Choose a reason for hiding this comment

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

Nope, it's not old. The namespace is still called Service_contract.

{
Tuple<float, float, float, float, float> initialQuotas;
previousQuotasByStreamId.TryGetValue(documentStreamInfo.Id, out initialQuotas);
previousQuotasByStreamId.TryGetValue(documentStreamInfo.Id, out Tuple<float, float, float, float, float> initialQuotas);
Copy link
Member

Choose a reason for hiding this comment

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

The out var name.

@TimothyMothra
Copy link

Please also update the Changelog under the VNext section. :)

Copy link

@TimothyMothra TimothyMothra left a comment

Choose a reason for hiding this comment

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

LGTM. Please update changelog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants