Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.3.57
0.3.58
50 changes: 50 additions & 0 deletions src/CloudWatch/Apis/GetProductHighPrecisionMetricsRequest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?php
/**
* Copyright 2026 UCloud Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace UCloud\CloudWatch\Apis;

use UCloud\Core\Request\Request;

class GetProductHighPrecisionMetricsRequest extends Request
{
public function __construct()
{
parent::__construct(["Action" => "GetProductHighPrecisionMetrics"]);
$this->markRequired("ProductKey");
}



/**
* ProductKey: 产品唯一标识,参见 [产品概览](https://docs.ucloud.cn/cloudwatch/metric/intro)
*
* @return string|null
*/
public function getProductKey()
{
return $this->get("ProductKey");
}

/**
* ProductKey: 产品唯一标识,参见 [产品概览](https://docs.ucloud.cn/cloudwatch/metric/intro)
*
* @param string $productKey
*/
public function setProductKey($productKey)
{
$this->set("ProductKey", $productKey);
}
}
49 changes: 49 additions & 0 deletions src/CloudWatch/Apis/GetProductHighPrecisionMetricsResponse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?php
/**
* Copyright 2026 UCloud Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace UCloud\CloudWatch\Apis;

use UCloud\Core\Response\Response;
use UCloud\CloudWatch\Models\GetProductMetricsRespData;
use UCloud\CloudWatch\Models\Metirc;
use UCloud\CloudWatch\Models\MetricUnit;
use UCloud\CloudWatch\Models\MetricUnitConfig;
use UCloud\CloudWatch\Models\ConversionRule;

class GetProductHighPrecisionMetricsResponse extends Response
{


/**
* Data: 返回数据
*
* @return GetProductMetricsRespData|null
*/
public function getData()
{
return new GetProductMetricsRespData($this->get("Data"));
}

/**
* Data: 返回数据
*
* @param GetProductMetricsRespData $data
*/
public function setData(array $data)
{
$this->set("Data", $data->getAll());
}
}
166 changes: 166 additions & 0 deletions src/CloudWatch/Apis/QueryMetricDenseDataRequest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
<?php
/**
* Copyright 2026 UCloud Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace UCloud\CloudWatch\Apis;

use UCloud\Core\Request\Request;
use UCloud\CloudWatch\Params\QueryMetricDenseDataParamMetricInfos;
use UCloud\CloudWatch\Params\QueryMetricDenseDataParamMetricInfosTags;

class QueryMetricDenseDataRequest extends Request
{
public function __construct()
{
parent::__construct(["Action" => "QueryMetricDenseData"]);
$this->markRequired("ProductKey");
$this->markRequired("StartTime");
$this->markRequired("EndTime");
}



/**
* Region: 地域。 全局产品可不传,其他类型必传。
*
* @return string|null
*/
public function getRegion()
{
return $this->get("Region");
}

/**
* Region: 地域。 全局产品可不传,其他类型必传。
*
* @param string $region
*/
public function setRegion($region)
{
$this->set("Region", $region);
}

/**
* ProjectId: 项目ID
*
* @return string|null
*/
public function getProjectId()
{
return $this->get("ProjectId");
}

/**
* ProjectId: 项目ID
*
* @param string $projectId
*/
public function setProjectId($projectId)
{
$this->set("ProjectId", $projectId);
}

/**
* ProductKey: 资源类型
*
* @return string|null
*/
public function getProductKey()
{
return $this->get("ProductKey");
}

/**
* ProductKey: 资源类型
*
* @param string $productKey
*/
public function setProductKey($productKey)
{
$this->set("ProductKey", $productKey);
}

/**
* StartTime: 开始时间戳
*
* @return integer|null
*/
public function getStartTime()
{
return $this->get("StartTime");
}

/**
* StartTime: 开始时间戳
*
* @param int $startTime
*/
public function setStartTime($startTime)
{
$this->set("StartTime", $startTime);
}

/**
* EndTime: 截止时间戳
*
* @return integer|null
*/
public function getEndTime()
{
return $this->get("EndTime");
}

/**
* EndTime: 截止时间戳
*
* @param int $endTime
*/
public function setEndTime($endTime)
{
$this->set("EndTime", $endTime);
}

/**
* MetricInfos:
*
* @return QueryMetricDenseDataParamMetricInfos[]|null
*/
public function getMetricInfos()
{
$items = $this->get("MetricInfos");
if ($items == null) {
return [];
}
$result = [];
foreach ($items as $i => $item) {
array_push($result, new QueryMetricDenseDataParamMetricInfos($item));
}
return $result;
}

/**
* MetricInfos:
*
* @param QueryMetricDenseDataParamMetricInfos[] $metricInfos
*/
public function setMetricInfos(array $metricInfos)
{
$result = [];
foreach ($metricInfos as $i => $item) {
array_push($result, $item->getAll());
}
return $result;
}
}
50 changes: 50 additions & 0 deletions src/CloudWatch/Apis/QueryMetricDenseDataResponse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?php
/**
* Copyright 2026 UCloud Technology Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
namespace UCloud\CloudWatch\Apis;

use UCloud\Core\Response\Response;
use UCloud\CloudWatch\Models\QueryMetricDataResp;
use UCloud\CloudWatch\Models\QueryMetricDataRespItem;
use UCloud\CloudWatch\Models\TagEntry;
use UCloud\CloudWatch\Models\MetricResult;
use UCloud\CloudWatch\Models\TagListItem;
use UCloud\CloudWatch\Models\MetricSample;

class QueryMetricDenseDataResponse extends Response
{


/**
* Data: 返回高精度指标监控数据
*
* @return QueryMetricDataResp|null
*/
public function getData()
{
return new QueryMetricDataResp($this->get("Data"));
}

/**
* Data: 返回高精度指标监控数据
*
* @param QueryMetricDataResp $data
*/
public function setData(array $data)
{
$this->set("Data", $data->getAll());
}
}
Loading
Loading