Meter operations
Updated at:
Perform Meter operations by using the DataHub C++ SDK.
Parameters
|
Parameter |
Type |
Description |
|
projectName |
string |
The project name. |
|
topicName |
string |
The topic name. |
|
shardId |
string |
The shard ID. |
Example
void GetMeter()
{
try
{
GetMeteringInfoResult GetMeteringInfo = Client.GetMeteringInfo(projectName, topicName, shardId);
}
catch(DatahubException e)
{
cerr << e << endl;
}
}
Note
Asynchronous and synchronous writes are supported starting from SDK version 2.25.
Is this page helpful?