-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add
fetch_metrics()
for HTTP connection managers (#273)
Co-authored-by: Steven Yuan <yuasteve@amazon.com> Co-authored-by: Dengke Tang <815825145@qq.com>
- Loading branch information
1 parent
9d6d175
commit 0829d20
Showing
9 changed files
with
65 additions
and
7 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
26 changes: 26 additions & 0 deletions
26
Source/AwsCommonRuntimeKit/http/HTTPClientConnectionManagerMetrics.swift
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,26 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0. | ||
|
||
public struct HTTPClientConnectionManagerMetrics { | ||
/// The number of additional concurrent requests that can be supported by the HTTP manager without needing to | ||
/// establish additional connections to the target server. | ||
/// | ||
/// For connection manager, it equals to connections that's idle. | ||
/// For stream manager, it equals to the number of streams that are possible to be made without creating new | ||
/// connection, although the implementation can create new connection without fully filling it. | ||
public var availableConcurrency: Int | ||
/// The number of requests that are awaiting concurrency to be made available from the HTTP manager. | ||
public var pendingConcurrencyAcquires: Int | ||
/// The number of connections (HTTP/1.1) or streams (for HTTP/2 via. stream manager) currently vended to user. | ||
public var leasedConcurrency: Int | ||
|
||
public init( | ||
availableConcurrency: Int, | ||
pendingConcurrencyAcquires: Int, | ||
leasedConcurrency: Int | ||
) { | ||
self.availableConcurrency = availableConcurrency | ||
self.pendingConcurrencyAcquires = pendingConcurrencyAcquires | ||
self.leasedConcurrency = leasedConcurrency | ||
} | ||
} |
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
Submodule aws-c-cal
updated
17 files
+9 −0 | .github/workflows/ci.yml | |
+4 −6 | .github/workflows/clang-format.yml | |
+7 −1 | builder.json | |
+47 −0 | format-check.py | |
+0 −25 | format-check.sh | |
+2 −2 | include/aws/cal/private/symmetric_cipher_priv.h | |
+32 −26 | include/aws/cal/symmetric_cipher.h | |
+1 −1 | source/cal.c | |
+16 −15 | source/darwin/commoncrypto_aes.c | |
+8 −10 | source/ecc.c | |
+4 −4 | source/rsa.c | |
+10 −8 | source/symmetric_cipher.c | |
+38 −34 | source/unix/openssl_aes.c | |
+47 −0 | source/unix/openssl_platform_init.c | |
+150 −124 | source/windows/bcrypt_aes.c | |
+3 −0 | tests/CMakeLists.txt | |
+185 −13 | tests/aes256_test.c |
Submodule aws-c-common
updated
83 files