CDI SDK
SDK for transporting chunks of data reliably and with low latency using a polled mode network driver.
Loading...
Searching...
No Matches
cloudwatch_sdk_metrics.h
Go to the documentation of this file.
1// -------------------------------------------------------------------------------------------
2// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
3// This file is part of the AWS CDI-SDK, licensed under the BSD 2-Clause "Simplified" License.
4// License details at: https://github.com/aws/aws-cdi-sdk/blob/mainline/LICENSE
5// -------------------------------------------------------------------------------------------
6
13 #ifndef CDI_CLOUDWATCH_SDK_METRICS_H__
14 #define CDI_CLOUDWATCH_SDK_METRICS_H__
15
16#include "cdi_core_api.h"
17
18 //*********************************************************************************************************************
19 //***************************************** START OF DEFINITIONS AND TYPES ********************************************
20 //*********************************************************************************************************************
21
24
30
56
82
87typedef struct {
92
93//*********************************************************************************************************************
94//******************************************* START OF PUBLIC FUNCTIONS ***********************************************
95//*********************************************************************************************************************
96
97#ifdef __cplusplus
98extern "C" {
99#endif
100
110 CloudWatchSdkMetricsHandle* ret_handle_ptr);
111
120
130 CloudWatchSdkMetricsHandle* ret_handle_ptr);
131
140
150
151#ifdef __cplusplus
152}
153#endif
154
155#endif // CDI_CLOUDWATCH_SDK_METRICS_H__
This file declares the public API data types, structures and functions that comprise the CDI low-leve...
CdiReturnStatus
Values used for API function return codes.
Definition cdi_core_api.h:189
#define CDI_MAX_STREAM_NAME_STRING_LENGTH
Maximum stream name string length.
Definition cdi_core_api.h:132
CdiReturnStatus MetricsGathererCreate(const MetricsGathererConfigData *config_ptr, CloudWatchSdkMetricsHandle *ret_handle_ptr)
Definition cloudwatch_sdk_metrics.cpp:660
struct CloudWatchSdkMetrics * CloudWatchSdkMetricsHandle
Type used as the handle (pointer to an opaque structure) for managing statistics for a connection....
Definition cloudwatch_sdk_metrics.h:29
CdiReturnStatus MetricsSend(CloudWatchSdkMetricsHandle handle, const CloudWatchTransferStats *transfer_stats_ptr)
Definition cloudwatch_sdk_metrics.cpp:690
CdiReturnStatus CloudWatchSdkMetricsCreate(const CdiCloudWatchConfigData *config_ptr, CloudWatchSdkMetricsHandle *ret_handle_ptr)
Definition cloudwatch_sdk_metrics.cpp:635
CdiReturnStatus MetricsGathererDestroy(CloudWatchSdkMetricsHandle handle)
Definition cloudwatch_sdk_metrics.cpp:683
CdiReturnStatus CloudWatchSdkMetricsDestroy(CloudWatchSdkMetricsHandle handle)
Definition cloudwatch_sdk_metrics.cpp:650
struct CloudWatchSdkMetrics CloudWatchSdkMetrics
Forward reference of structure to create pointers later.
Definition cloudwatch_sdk_metrics.h:23
A structure that is used to hold statistics gathering configuration data that is specific to CloudWat...
Definition cdi_core_api.h:852
Transfer statistics data specific to payloads that are reset at the start of each time interval as sp...
Definition cdi_core_api.h:525
Counter based statistics data that contain deltas since the last set was generated.
Definition cloudwatch_sdk_metrics.h:34
int delta_num_payloads_late
Number of payloads that were transmitted late since the connection was created.
Definition cloudwatch_sdk_metrics.h:44
int delta_num_payloads_transferred
Current number of payloads successfully transferred since the connection was created.
Definition cloudwatch_sdk_metrics.h:36
uint64_t delta_num_bytes_transferred
Number of bytes transferred over the stats period.
Definition cloudwatch_sdk_metrics.h:54
int delta_num_payloads_dropped
The number of payloads that have been dropped due to timeout conditions since the connection was crea...
Definition cloudwatch_sdk_metrics.h:41
uint32_t delta_dropped_connection_count
Number of times the connection has been lost.
Definition cloudwatch_sdk_metrics.h:47
uint32_t delta_probe_command_retry_count
Definition cloudwatch_sdk_metrics.h:51
A structure that is used to hold statistics gathering configuration data that is specific to CloudWat...
Definition cloudwatch_sdk_metrics.h:60
int cpu_utilization
CPU load of poll thread in hundreths of a percent.
Definition cloudwatch_sdk_metrics.h:79
bool is_receiver
true if this endpoint is a receiver, false if a transmitter.
Definition cloudwatch_sdk_metrics.h:80
bool connected
true if the connection is up, false if the connection is not connected.
Definition cloudwatch_sdk_metrics.h:78
const char * dimension_connection_str
Pointer to a string that defines a dimension called "Connection" that is associated with each metric.
Definition cloudwatch_sdk_metrics.h:62
CdiPayloadTimeIntervalStats payload_time_interval_stats
Payload time stats.
Definition cloudwatch_sdk_metrics.h:76
CloudWatchCounterBasedDeltas count_based_delta_stats
Counter based stats that contain delta values.
Definition cloudwatch_sdk_metrics.h:75
bool high_resolution
If true, high resolution storage for metrics is used. This means metrics are stored at 1-second resol...
Definition cloudwatch_sdk_metrics.h:73
uint64_t timestamp_in_ms_since_epoch
Time when last statistic of the set was gathered. Units is in milliseconds since epoch.
Definition cloudwatch_sdk_metrics.h:69
A structure that is used to hold statistics gathering configuration data for instantiating a metrics ...
Definition cloudwatch_sdk_metrics.h:87
const char * dimension_domain_str
Pointer to a string that defines a dimension called "Domain" that is associated with each metric....
Definition cloudwatch_sdk_metrics.h:90