Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Send Request notification (#1278)
* Add Send Request notification * Update channels/applicationinsights-channel-js/Tests/Sender.tests.ts
- Loading branch information
Showing
11 changed files
with
247 additions
and
36 deletions.
There are no files selected for viewing
This file contains 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 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 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
46 changes: 46 additions & 0 deletions
46
shared/AppInsightsCore/src/JavaScriptSDK.Enums/SendRequestReason.ts
This file contains 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,46 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
/** | ||
* The EventsDiscardedReason enumeration contains a set of values that specify the reason for discarding an event. | ||
*/ | ||
export const enum SendRequestReason { | ||
/** | ||
* No specific reason was specified | ||
*/ | ||
Undefined = 0, | ||
|
||
/** | ||
* Events are being sent based on the normal event schedule / timer. | ||
*/ | ||
NormalSchedule = 1, | ||
|
||
/** | ||
* A manual flush request was received | ||
*/ | ||
ManualFlush = 1, | ||
|
||
/** | ||
* Unload event is being processed | ||
*/ | ||
Unload = 2, | ||
|
||
/** | ||
* The event(s) being sent are sync events | ||
*/ | ||
SyncEvent = 3, | ||
|
||
/** | ||
* The Channel was resumed | ||
*/ | ||
Resumed = 4, | ||
|
||
/** | ||
* Maximum batch size would be exceeded | ||
*/ | ||
MaxBatchSize = 10, | ||
|
||
/** | ||
* The Maximum number of events have already been queued | ||
*/ | ||
MaxQueuedEvents = 20 | ||
}; |
Oops, something went wrong.