Meter操作

本文为您展示DataHub的 C++ SDKMeter 操作。

参数说明

参数名

参数类型

参数说明

projectName

String

项目名称。

topicName

string

Topic名称

shardId

string

代码示例

void GetMeter()
{
    try
    {
        GetMeteringInfoResult GetMeteringInfo = Client.GetMeteringInfo(projectName, topicName, shardId);

    }
    catch(DatahubException e)
    {
          cerr << e << endl;
    }
}
说明

异步写入、同步写入 从sdk 2.25版本起支持