Update monitor related API.

This commit is contained in:
sdk-team
2020-06-16 00:29:30 +08:00
parent a869068f77
commit 6bba61cebe
10 changed files with 60 additions and 1 deletions

View File

@@ -71,3 +71,14 @@ void AddMonitorRequest::setBatchIndicator(int batchIndicator)
setBodyParameter("BatchIndicator", std::to_string(batchIndicator));
}
std::string AddMonitorRequest::getAlgorithmVendor()const
{
return algorithmVendor_;
}
void AddMonitorRequest::setAlgorithmVendor(const std::string& algorithmVendor)
{
algorithmVendor_ = algorithmVendor;
setBodyParameter("AlgorithmVendor", algorithmVendor);
}

View File

@@ -60,6 +60,17 @@ void GetMonitorResultRequest::setStartTime(long startTime)
setBodyParameter("StartTime", std::to_string(startTime));
}
std::string GetMonitorResultRequest::getAlgorithmVendor()const
{
return algorithmVendor_;
}
void GetMonitorResultRequest::setAlgorithmVendor(const std::string& algorithmVendor)
{
algorithmVendor_ = algorithmVendor;
setBodyParameter("AlgorithmVendor", algorithmVendor);
}
std::string GetMonitorResultRequest::getMinRecordId()const
{
return minRecordId_;

View File

@@ -27,6 +27,17 @@ StopMonitorRequest::StopMonitorRequest() :
StopMonitorRequest::~StopMonitorRequest()
{}
std::string StopMonitorRequest::getAlgorithmVendor()const
{
return algorithmVendor_;
}
void StopMonitorRequest::setAlgorithmVendor(const std::string& algorithmVendor)
{
algorithmVendor_ = algorithmVendor;
setBodyParameter("AlgorithmVendor", algorithmVendor);
}
std::string StopMonitorRequest::getTaskId()const
{
return taskId_;

View File

@@ -159,3 +159,14 @@ void UpdateMonitorRequest::setDeviceList(const std::string& deviceList)
setBodyParameter("DeviceList", deviceList);
}
std::string UpdateMonitorRequest::getAlgorithmVendor()const
{
return algorithmVendor_;
}
void UpdateMonitorRequest::setAlgorithmVendor(const std::string& algorithmVendor)
{
algorithmVendor_ = algorithmVendor;
setBodyParameter("AlgorithmVendor", algorithmVendor);
}