diff --git a/VERSION b/VERSION index a02af24..b463c01 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.3.40 +0.3.41 diff --git a/src/ULogService/Apis/BindULogServiceGroupToCollectConfRequest.php b/src/ULogService/Apis/BindULogServiceGroupToCollectConfRequest.php new file mode 100644 index 0000000..ceae569 --- /dev/null +++ b/src/ULogService/Apis/BindULogServiceGroupToCollectConfRequest.php @@ -0,0 +1,153 @@ + "BindULogServiceGroupToCollectConf"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("TopicId"); + $this->markRequired("CollectConfId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * TopicId: 日志主题ID + * + * @return string|null + */ + public function getTopicId() + { + return $this->get("TopicId"); + } + + /** + * TopicId: 日志主题ID + * + * @param string $topicId + */ + public function setTopicId($topicId) + { + $this->set("TopicId", $topicId); + } + + /** + * CollectConfId: 采集配置id + * + * @return integer|null + */ + public function getCollectConfId() + { + return $this->get("CollectConfId"); + } + + /** + * CollectConfId: 采集配置id + * + * @param int $collectConfId + */ + public function setCollectConfId($collectConfId) + { + $this->set("CollectConfId", $collectConfId); + } + + /** + * MachineGroupIds: 机器组ID,是一个数组 + * + * @return integer|null + */ + public function getMachineGroupIds() + { + return $this->get("MachineGroupIds"); + } + + /** + * MachineGroupIds: 机器组ID,是一个数组 + * + * @param int $machineGroupIds + */ + public function setMachineGroupIds($machineGroupIds) + { + $this->set("MachineGroupIds", $machineGroupIds); + } +} diff --git a/src/ULogService/Apis/BindULogServiceGroupToCollectConfResponse.php b/src/ULogService/Apis/BindULogServiceGroupToCollectConfResponse.php new file mode 100644 index 0000000..9e260f5 --- /dev/null +++ b/src/ULogService/Apis/BindULogServiceGroupToCollectConfResponse.php @@ -0,0 +1,26 @@ + "CreateULogServiceCollectConf"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("TopicId"); + $this->markRequired("Name"); + $this->markRequired("LogType"); + $this->markRequired("CollectPolicy"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * TopicId: 日志主题ID + * + * @return string|null + */ + public function getTopicId() + { + return $this->get("TopicId"); + } + + /** + * TopicId: 日志主题ID + * + * @param string $topicId + */ + public function setTopicId($topicId) + { + $this->set("TopicId", $topicId); + } + + /** + * Name: 配置名称 + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 配置名称 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * LogType: 日志解析类型,决定了如何结构化日志。可选值: json:json 格式,delimiter:分隔符,full_regex:完全正则,multi_line_full_regex:多行完全正则,multi_line_delimiter: 多行分隔符正则,minimal_list:单行全文日志,multi_line:多行全文日志 + * + * @return string|null + */ + public function getLogType() + { + return $this->get("LogType"); + } + + /** + * LogType: 日志解析类型,决定了如何结构化日志。可选值: json:json 格式,delimiter:分隔符,full_regex:完全正则,multi_line_full_regex:多行完全正则,multi_line_delimiter: 多行分隔符正则,minimal_list:单行全文日志,multi_line:多行全文日志 + * + * @param string $logType + */ + public function setLogType($logType) + { + $this->set("LogType", $logType); + } + + /** + * CollectPolicy: 采集策略。可选值: full (全量采集存量日志), increment (从当前时间点增量采集)。默认为 full。 + * + * @return string|null + */ + public function getCollectPolicy() + { + return $this->get("CollectPolicy"); + } + + /** + * CollectPolicy: 采集策略。可选值: full (全量采集存量日志), increment (从当前时间点增量采集)。默认为 full。 + * + * @param string $collectPolicy + */ + public function setCollectPolicy($collectPolicy) + { + $this->set("CollectPolicy", $collectPolicy); + } + + /** + * Encode: 日志原文的编码格式。可选值: utf-8, gbk。默认为 utf-8。 + * + * @return string|null + */ + public function getEncode() + { + return $this->get("Encode"); + } + + /** + * Encode: 日志原文的编码格式。可选值: utf-8, gbk。默认为 utf-8。 + * + * @param string $encode + */ + public function setEncode($encode) + { + $this->set("Encode", $encode); + } + + /** + * Keys: 索引字段key,是一个数组 + * + * @return string[]|null + */ + public function getKeys() + { + return $this->get("Keys"); + } + + /** + * Keys: 索引字段key,是一个数组 + * + * @param string[] $keys + */ + public function setKeys(array $keys) + { + $this->set("Keys", $keys); + } + + /** + * Delimiter: 当 LogType 为delimiter 或multi_line_delimiter时可选,支持多字符分隔,需要转换成Base64 + * + * @return string|null + */ + public function getDelimiter() + { + return $this->get("Delimiter"); + } + + /** + * Delimiter: 当 LogType 为delimiter 或multi_line_delimiter时可选,支持多字符分隔,需要转换成Base64 + * + * @param string $delimiter + */ + public function setDelimiter($delimiter) + { + $this->set("Delimiter", $delimiter); + } + + /** + * MatchRule: 行首正则表达式。当 logType 为多行模式 (如 multi_line 或 multi_line_full_regex或multi_line_delimiter) 时,用于标识一条新日志的开始。需要转换成Base64 + * + * @return string|null + */ + public function getMatchRule() + { + return $this->get("MatchRule"); + } + + /** + * MatchRule: 行首正则表达式。当 logType 为多行模式 (如 multi_line 或 multi_line_full_regex或multi_line_delimiter) 时,用于标识一条新日志的开始。需要转换成Base64 + * + * @param string $matchRule + */ + public function setMatchRule($matchRule) + { + $this->set("MatchRule", $matchRule); + } + + /** + * ExtractRule: 日志提取正则表达式。当 logType 为正则模式 (如 full_regex,multi_line_full_regex) 时,用于从日志中提取字段。需要转换成Base64 + * + * @return string|null + */ + public function getExtractRule() + { + return $this->get("ExtractRule"); + } + + /** + * ExtractRule: 日志提取正则表达式。当 logType 为正则模式 (如 full_regex,multi_line_full_regex) 时,用于从日志中提取字段。需要转换成Base64 + * + * @param string $extractRule + */ + public function setExtractRule($extractRule) + { + $this->set("ExtractRule", $extractRule); + } + + /** + * UnMatchKey: 如果 UnMatchUpload 为 true,无法解析的日志原文将被存放在此字段指定的 Key 下。默认为 LogParseFailure。 + * + * @return string|null + */ + public function getUnMatchKey() + { + return $this->get("UnMatchKey"); + } + + /** + * UnMatchKey: 如果 UnMatchUpload 为 true,无法解析的日志原文将被存放在此字段指定的 Key 下。默认为 LogParseFailure。 + * + * @param string $unMatchKey + */ + public function setUnMatchKey($unMatchKey) + { + $this->set("UnMatchKey", $unMatchKey); + } + + /** + * FilePaths: + * + * @return CreateULogServiceCollectConfParamFilePaths[]|null + */ + public function getFilePaths() + { + $items = $this->get("FilePaths"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new CreateULogServiceCollectConfParamFilePaths($item)); + } + return $result; + } + + /** + * FilePaths: + * + * @param CreateULogServiceCollectConfParamFilePaths[] $filePaths + */ + public function setFilePaths(array $filePaths) + { + $result = []; + foreach ($filePaths as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/ULogService/Apis/CreateULogServiceCollectConfResponse.php b/src/ULogService/Apis/CreateULogServiceCollectConfResponse.php new file mode 100644 index 0000000..5564d6f --- /dev/null +++ b/src/ULogService/Apis/CreateULogServiceCollectConfResponse.php @@ -0,0 +1,26 @@ + "CreateULogServiceLogSet"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("LogSetName"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * LogSetName: 日志集名称 长度为1~64位 + * + * @return string|null + */ + public function getLogSetName() + { + return $this->get("LogSetName"); + } + + /** + * LogSetName: 日志集名称 长度为1~64位 + * + * @param string $logSetName + */ + public function setLogSetName($logSetName) + { + $this->set("LogSetName", $logSetName); + } + + /** + * LogSetRemark: 日志集备注 长度为0~255位 + * + * @return string|null + */ + public function getLogSetRemark() + { + return $this->get("LogSetRemark"); + } + + /** + * LogSetRemark: 日志集备注 长度为0~255位 + * + * @param string $logSetRemark + */ + public function setLogSetRemark($logSetRemark) + { + $this->set("LogSetRemark", $logSetRemark); + } +} diff --git a/src/ULogService/Apis/CreateULogServiceLogSetResponse.php b/src/ULogService/Apis/CreateULogServiceLogSetResponse.php new file mode 100644 index 0000000..46bb1c1 --- /dev/null +++ b/src/ULogService/Apis/CreateULogServiceLogSetResponse.php @@ -0,0 +1,44 @@ +get("LogSetId"); + } + + /** + * LogSetId: 日志集资源ID + * + * @param string $logSetId + */ + public function setLogSetId($logSetId) + { + $this->set("LogSetId", $logSetId); + } +} diff --git a/src/ULogService/Apis/CreateULogServiceMachineGroupRequest.php b/src/ULogService/Apis/CreateULogServiceMachineGroupRequest.php new file mode 100644 index 0000000..29cd60b --- /dev/null +++ b/src/ULogService/Apis/CreateULogServiceMachineGroupRequest.php @@ -0,0 +1,194 @@ + "CreateULogServiceMachineGroup"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("InstanceId"); + $this->markRequired("Name"); + $this->markRequired("Type"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * InstanceId: 日志服务实例资源ID + * + * @return string|null + */ + public function getInstanceId() + { + return $this->get("InstanceId"); + } + + /** + * InstanceId: 日志服务实例资源ID + * + * @param string $instanceId + */ + public function setInstanceId($instanceId) + { + $this->set("InstanceId", $instanceId); + } + + /** + * Name: 机器组名称;格式校验:^[\w]{1,23}$ + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 机器组名称;格式校验:^[\w]{1,23}$ + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * Type: 采集客户端识别模式;可选值 LABEL | IP; + * + * @return string|null + */ + public function getType() + { + return $this->get("Type"); + } + + /** + * Type: 采集客户端识别模式;可选值 LABEL | IP; + * + * @param string $type + */ + public function setType($type) + { + $this->set("Type", $type); + } + + /** + * Labels: 采集客户端识别标识,是一个数组 + * + * @return string|null + */ + public function getLabels() + { + return $this->get("Labels"); + } + + /** + * Labels: 采集客户端识别标识,是一个数组 + * + * @param string $labels + */ + public function setLabels($labels) + { + $this->set("Labels", $labels); + } + + /** + * Ips: 机器IP,如果Type是IP,那么Ips可以填写IP,是一个数组 + * + * @return string|null + */ + public function getIps() + { + return $this->get("Ips"); + } + + /** + * Ips: 机器IP,如果Type是IP,那么Ips可以填写IP,是一个数组 + * + * @param string $ips + */ + public function setIps($ips) + { + $this->set("Ips", $ips); + } +} diff --git a/src/ULogService/Apis/CreateULogServiceMachineGroupResponse.php b/src/ULogService/Apis/CreateULogServiceMachineGroupResponse.php new file mode 100644 index 0000000..f321300 --- /dev/null +++ b/src/ULogService/Apis/CreateULogServiceMachineGroupResponse.php @@ -0,0 +1,26 @@ + "CreateULogServiceTopic"]); + $this->markRequired("Region"); + $this->markRequired("TopicName"); + $this->markRequired("ReserveAge"); + $this->markRequired("LogSetId"); + $this->markRequired("TopicShardNum"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * TopicName: 主题名称,校验规则"^[\w]{1,64}$" + * + * @return string|null + */ + public function getTopicName() + { + return $this->get("TopicName"); + } + + /** + * TopicName: 主题名称,校验规则"^[\w]{1,64}$" + * + * @param string $topicName + */ + public function setTopicName($topicName) + { + $this->set("TopicName", $topicName); + } + + /** + * ReserveAge: 保存时间 1~730 天 + * + * @return integer|null + */ + public function getReserveAge() + { + return $this->get("ReserveAge"); + } + + /** + * ReserveAge: 保存时间 1~730 天 + * + * @param int $reserveAge + */ + public function setReserveAge($reserveAge) + { + $this->set("ReserveAge", $reserveAge); + } + + /** + * LogSetId: 日志集ID + * + * @return string|null + */ + public function getLogSetId() + { + return $this->get("LogSetId"); + } + + /** + * LogSetId: 日志集ID + * + * @param string $logSetId + */ + public function setLogSetId($logSetId) + { + $this->set("LogSetId", $logSetId); + } + + /** + * TopicShardNum: 分区数量,固定是2 + * + * @return integer|null + */ + public function getTopicShardNum() + { + return $this->get("TopicShardNum"); + } + + /** + * TopicShardNum: 分区数量,固定是2 + * + * @param int $topicShardNum + */ + public function setTopicShardNum($topicShardNum) + { + $this->set("TopicShardNum", $topicShardNum); + } +} diff --git a/src/ULogService/Apis/CreateULogServiceTopicResponse.php b/src/ULogService/Apis/CreateULogServiceTopicResponse.php new file mode 100644 index 0000000..545601a --- /dev/null +++ b/src/ULogService/Apis/CreateULogServiceTopicResponse.php @@ -0,0 +1,44 @@ +get("TopicId"); + } + + /** + * TopicId: 主题ID + * + * @param string $topicId + */ + public function setTopicId($topicId) + { + $this->set("TopicId", $topicId); + } +} diff --git a/src/ULogService/Apis/DeleteULogServiceCollectConfRequest.php b/src/ULogService/Apis/DeleteULogServiceCollectConfRequest.php new file mode 100644 index 0000000..c46e19c --- /dev/null +++ b/src/ULogService/Apis/DeleteULogServiceCollectConfRequest.php @@ -0,0 +1,133 @@ + "DeleteULogServiceCollectConf"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("TopicId"); + $this->markRequired("CollectConfId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * TopicId: 日志主题ID + * + * @return string|null + */ + public function getTopicId() + { + return $this->get("TopicId"); + } + + /** + * TopicId: 日志主题ID + * + * @param string $topicId + */ + public function setTopicId($topicId) + { + $this->set("TopicId", $topicId); + } + + /** + * CollectConfId: 日志主题采集配置ID + * + * @return integer|null + */ + public function getCollectConfId() + { + return $this->get("CollectConfId"); + } + + /** + * CollectConfId: 日志主题采集配置ID + * + * @param int $collectConfId + */ + public function setCollectConfId($collectConfId) + { + $this->set("CollectConfId", $collectConfId); + } +} diff --git a/src/ULogService/Apis/DeleteULogServiceCollectConfResponse.php b/src/ULogService/Apis/DeleteULogServiceCollectConfResponse.php new file mode 100644 index 0000000..6fee7d6 --- /dev/null +++ b/src/ULogService/Apis/DeleteULogServiceCollectConfResponse.php @@ -0,0 +1,26 @@ + "DeleteULogServiceLogSet"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("LogSetId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * LogSetId: 日志集ID + * + * @return string|null + */ + public function getLogSetId() + { + return $this->get("LogSetId"); + } + + /** + * LogSetId: 日志集ID + * + * @param string $logSetId + */ + public function setLogSetId($logSetId) + { + $this->set("LogSetId", $logSetId); + } +} diff --git a/src/ULogService/Apis/DeleteULogServiceLogSetResponse.php b/src/ULogService/Apis/DeleteULogServiceLogSetResponse.php new file mode 100644 index 0000000..0ece2ac --- /dev/null +++ b/src/ULogService/Apis/DeleteULogServiceLogSetResponse.php @@ -0,0 +1,26 @@ + "DeleteULogServiceMachineGroup"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("Id"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * Id: 删除的机器组ID + * + * @return integer|null + */ + public function getId() + { + return $this->get("Id"); + } + + /** + * Id: 删除的机器组ID + * + * @param int $id + */ + public function setId($id) + { + $this->set("Id", $id); + } +} diff --git a/src/ULogService/Apis/DeleteULogServiceMachineGroupResponse.php b/src/ULogService/Apis/DeleteULogServiceMachineGroupResponse.php new file mode 100644 index 0000000..2f549fa --- /dev/null +++ b/src/ULogService/Apis/DeleteULogServiceMachineGroupResponse.php @@ -0,0 +1,26 @@ + "DeleteULogServiceTopic"]); + $this->markRequired("Region"); + $this->markRequired("TopicId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * TopicId: 主题Id + * + * @return string|null + */ + public function getTopicId() + { + return $this->get("TopicId"); + } + + /** + * TopicId: 主题Id + * + * @param string $topicId + */ + public function setTopicId($topicId) + { + $this->set("TopicId", $topicId); + } +} diff --git a/src/ULogService/Apis/DeleteULogServiceTopicResponse.php b/src/ULogService/Apis/DeleteULogServiceTopicResponse.php new file mode 100644 index 0000000..21c3fa2 --- /dev/null +++ b/src/ULogService/Apis/DeleteULogServiceTopicResponse.php @@ -0,0 +1,26 @@ + "DescribeULogServiceMachineGroup"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("Id"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * Id: 机器组ID + * + * @return string|null + */ + public function getId() + { + return $this->get("Id"); + } + + /** + * Id: 机器组ID + * + * @param string $id + */ + public function setId($id) + { + $this->set("Id", $id); + } +} diff --git a/src/ULogService/Apis/DescribeULogServiceMachineGroupResponse.php b/src/ULogService/Apis/DescribeULogServiceMachineGroupResponse.php new file mode 100644 index 0000000..b8fcd34 --- /dev/null +++ b/src/ULogService/Apis/DescribeULogServiceMachineGroupResponse.php @@ -0,0 +1,46 @@ +get("MachineGroup")); + } + + /** + * MachineGroup: 机器组信息 + * + * @param MachineInfo $machineGroup + */ + public function setMachineGroup(array $machineGroup) + { + $this->set("MachineGroup", $machineGroup->getAll()); + } +} diff --git a/src/ULogService/Apis/ListULogServiceCollectConfRequest.php b/src/ULogService/Apis/ListULogServiceCollectConfRequest.php new file mode 100644 index 0000000..76080d8 --- /dev/null +++ b/src/ULogService/Apis/ListULogServiceCollectConfRequest.php @@ -0,0 +1,132 @@ + "ListULogServiceCollectConf"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("TopicId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * TopicId: 日志主题ID + * + * @return integer|null + */ + public function getTopicId() + { + return $this->get("TopicId"); + } + + /** + * TopicId: 日志主题ID + * + * @param int $topicId + */ + public function setTopicId($topicId) + { + $this->set("TopicId", $topicId); + } + + /** + * CollectConfId: 采集配置ID + * + * @return integer|null + */ + public function getCollectConfId() + { + return $this->get("CollectConfId"); + } + + /** + * CollectConfId: 采集配置ID + * + * @param int $collectConfId + */ + public function setCollectConfId($collectConfId) + { + $this->set("CollectConfId", $collectConfId); + } +} diff --git a/src/ULogService/Apis/ListULogServiceCollectConfResponse.php b/src/ULogService/Apis/ListULogServiceCollectConfResponse.php new file mode 100644 index 0000000..6e1aa92 --- /dev/null +++ b/src/ULogService/Apis/ListULogServiceCollectConfResponse.php @@ -0,0 +1,47 @@ +get("CollectConfs")); + } + + /** + * CollectConfs: 日志采集配置列表 + * + * @param CollectConf $collectConfs + */ + public function setCollectConfs(array $collectConfs) + { + $this->set("CollectConfs", $collectConfs->getAll()); + } +} diff --git a/src/ULogService/Apis/ListULogServiceLogSetRequest.php b/src/ULogService/Apis/ListULogServiceLogSetRequest.php new file mode 100644 index 0000000..cba6998 --- /dev/null +++ b/src/ULogService/Apis/ListULogServiceLogSetRequest.php @@ -0,0 +1,91 @@ + "ListULogServiceLogSet"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } +} diff --git a/src/ULogService/Apis/ListULogServiceLogSetResponse.php b/src/ULogService/Apis/ListULogServiceLogSetResponse.php new file mode 100644 index 0000000..1c799ea --- /dev/null +++ b/src/ULogService/Apis/ListULogServiceLogSetResponse.php @@ -0,0 +1,57 @@ +get("Data"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new LogSetInfo($item)); + } + return $result; + } + + /** + * Data: 返回日志主题数据,是一个数组 + * + * @param LogSetInfo[] $data + */ + public function setData(array $data) + { + $result = []; + foreach ($data as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/ULogService/Apis/ListULogServiceMachineGroupRequest.php b/src/ULogService/Apis/ListULogServiceMachineGroupRequest.php new file mode 100644 index 0000000..47903dd --- /dev/null +++ b/src/ULogService/Apis/ListULogServiceMachineGroupRequest.php @@ -0,0 +1,91 @@ + "ListULogServiceMachineGroup"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } +} diff --git a/src/ULogService/Apis/ListULogServiceMachineGroupResponse.php b/src/ULogService/Apis/ListULogServiceMachineGroupResponse.php new file mode 100644 index 0000000..5e62ccc --- /dev/null +++ b/src/ULogService/Apis/ListULogServiceMachineGroupResponse.php @@ -0,0 +1,57 @@ +get("MachineGroups"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new MachineGroup($item)); + } + return $result; + } + + /** + * MachineGroups: 机器组信息列表 + * + * @param MachineGroup[] $machineGroups + */ + public function setMachineGroups(array $machineGroups) + { + $result = []; + foreach ($machineGroups as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/ULogService/Apis/ListULogServiceTopicRequest.php b/src/ULogService/Apis/ListULogServiceTopicRequest.php new file mode 100644 index 0000000..668c67b --- /dev/null +++ b/src/ULogService/Apis/ListULogServiceTopicRequest.php @@ -0,0 +1,131 @@ + "ListULogServiceTopic"]); + $this->markRequired("Region"); + $this->markRequired("LogSetId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * LogSetId: 日志集ID + * + * @return string|null + */ + public function getLogSetId() + { + return $this->get("LogSetId"); + } + + /** + * LogSetId: 日志集ID + * + * @param string $logSetId + */ + public function setLogSetId($logSetId) + { + $this->set("LogSetId", $logSetId); + } + + /** + * Offset: 分页起始条目数, 默认为0 + * + * @return integer|null + */ + public function getOffset() + { + return $this->get("Offset"); + } + + /** + * Offset: 分页起始条目数, 默认为0 + * + * @param int $offset + */ + public function setOffset($offset) + { + $this->set("Offset", $offset); + } + + /** + * Limit: 分页限制数,默认为30 + * + * @return integer|null + */ + public function getLimit() + { + return $this->get("Limit"); + } + + /** + * Limit: 分页限制数,默认为30 + * + * @param int $limit + */ + public function setLimit($limit) + { + $this->set("Limit", $limit); + } +} diff --git a/src/ULogService/Apis/ListULogServiceTopicResponse.php b/src/ULogService/Apis/ListULogServiceTopicResponse.php new file mode 100644 index 0000000..36cc312 --- /dev/null +++ b/src/ULogService/Apis/ListULogServiceTopicResponse.php @@ -0,0 +1,77 @@ +get("Data"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new TopicInfo($item)); + } + return $result; + } + + /** + * Data: 主题列表 + * + * @param TopicInfo[] $data + */ + public function setData(array $data) + { + $result = []; + foreach ($data as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * TotalCount: 主题总数 + * + * @return integer|null + */ + public function getTotalCount() + { + return $this->get("TotalCount"); + } + + /** + * TotalCount: 主题总数 + * + * @param int $totalCount + */ + public function setTotalCount($totalCount) + { + $this->set("TotalCount", $totalCount); + } +} diff --git a/src/ULogService/Apis/QueryULogServiceLogRequest.php b/src/ULogService/Apis/QueryULogServiceLogRequest.php new file mode 100644 index 0000000..1b52f69 --- /dev/null +++ b/src/ULogService/Apis/QueryULogServiceLogRequest.php @@ -0,0 +1,274 @@ + "QueryULogServiceLog"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("QueryCriteria"); + $this->markRequired("SortOrder"); + $this->markRequired("TopicId"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * QueryCriteria: 查询条件,使用Base64编码。目前只支持查询索引,多个索引查询使用AND。比如:index1:http AND index2:http2 + * + * @return string|null + */ + public function getQueryCriteria() + { + return $this->get("QueryCriteria"); + } + + /** + * QueryCriteria: 查询条件,使用Base64编码。目前只支持查询索引,多个索引查询使用AND。比如:index1:http AND index2:http2 + * + * @param string $queryCriteria + */ + public function setQueryCriteria($queryCriteria) + { + $this->set("QueryCriteria", $queryCriteria); + } + + /** + * SortOrder: 日志时间排序;可选值ASC|DESC + * + * @return string|null + */ + public function getSortOrder() + { + return $this->get("SortOrder"); + } + + /** + * SortOrder: 日志时间排序;可选值ASC|DESC + * + * @param string $sortOrder + */ + public function setSortOrder($sortOrder) + { + $this->set("SortOrder", $sortOrder); + } + + /** + * TopicId: 主题ID + * + * @return string|null + */ + public function getTopicId() + { + return $this->get("TopicId"); + } + + /** + * TopicId: 主题ID + * + * @param string $topicId + */ + public function setTopicId($topicId) + { + $this->set("TopicId", $topicId); + } + + /** + * 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); + } + + /** + * Size: 一次返回条数,默认20。仅当检索分析语句不包含SQL时有效。SQL结果条数方式可以在SQL里使用limit语法。 + * + * @return integer|null + */ + public function getSize() + { + return $this->get("Size"); + } + + /** + * Size: 一次返回条数,默认20。仅当检索分析语句不包含SQL时有效。SQL结果条数方式可以在SQL里使用limit语法。 + * + * @param int $size + */ + public function setSize($size) + { + $this->set("Size", $size); + } + + /** + * ScrollId: Deprecated. 滚动加载参数ScrollId + * + * @return string|null + */ + public function getScrollId() + { + return $this->get("ScrollId"); + } + + /** + * ScrollId: Deprecated. 滚动加载参数ScrollId + * + * @param string $scrollId + */ + public function setScrollId($scrollId) + { + $this->set("ScrollId", $scrollId); + } + + /** + * LastId: 滚动加载参数,上一页最后一条数据的ID + * + * @return string|null + */ + public function getLastId() + { + return $this->get("LastId"); + } + + /** + * LastId: 滚动加载参数,上一页最后一条数据的ID + * + * @param string $lastId + */ + public function setLastId($lastId) + { + $this->set("LastId", $lastId); + } + + /** + * LastTimestamp: 滚动加载参数,上一页最后一条数据的timestamp + * + * @return string|null + */ + public function getLastTimestamp() + { + return $this->get("LastTimestamp"); + } + + /** + * LastTimestamp: 滚动加载参数,上一页最后一条数据的timestamp + * + * @param string $lastTimestamp + */ + public function setLastTimestamp($lastTimestamp) + { + $this->set("LastTimestamp", $lastTimestamp); + } +} diff --git a/src/ULogService/Apis/QueryULogServiceLogResponse.php b/src/ULogService/Apis/QueryULogServiceLogResponse.php new file mode 100644 index 0000000..eb3651a --- /dev/null +++ b/src/ULogService/Apis/QueryULogServiceLogResponse.php @@ -0,0 +1,47 @@ +get("Data")); + } + + /** + * Data: 请求结果 + * + * @param LogQueryResult $data + */ + public function setData(array $data) + { + $this->set("Data", $data->getAll()); + } +} diff --git a/src/ULogService/Apis/UpdateULogServiceCollectConfRequest.php b/src/ULogService/Apis/UpdateULogServiceCollectConfRequest.php new file mode 100644 index 0000000..7c11b44 --- /dev/null +++ b/src/ULogService/Apis/UpdateULogServiceCollectConfRequest.php @@ -0,0 +1,328 @@ + "UpdateULogServiceCollectConf"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("TopicId"); + $this->markRequired("CollectConfId"); + $this->markRequired("LogType"); + $this->markRequired("CollectPolicy"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * TopicId: 日志主题ID + * + * @return string|null + */ + public function getTopicId() + { + return $this->get("TopicId"); + } + + /** + * TopicId: 日志主题ID + * + * @param string $topicId + */ + public function setTopicId($topicId) + { + $this->set("TopicId", $topicId); + } + + /** + * CollectConfId: 日志主题采集配置ID + * + * @return integer|null + */ + public function getCollectConfId() + { + return $this->get("CollectConfId"); + } + + /** + * CollectConfId: 日志主题采集配置ID + * + * @param int $collectConfId + */ + public function setCollectConfId($collectConfId) + { + $this->set("CollectConfId", $collectConfId); + } + + /** + * LogType: 日志解析类型,决定了如何结构化日志。可选值: json:json 格式,delimiter:分隔符,full_regex:完全正则,multi_line_full_regex:多行完全正则,multi_line_delimiter: 多行分隔符正则,minimal_list:单行全文日志,multi_line:多行全文日志 + * + * @return string|null + */ + public function getLogType() + { + return $this->get("LogType"); + } + + /** + * LogType: 日志解析类型,决定了如何结构化日志。可选值: json:json 格式,delimiter:分隔符,full_regex:完全正则,multi_line_full_regex:多行完全正则,multi_line_delimiter: 多行分隔符正则,minimal_list:单行全文日志,multi_line:多行全文日志 + * + * @param string $logType + */ + public function setLogType($logType) + { + $this->set("LogType", $logType); + } + + /** + * CollectPolicy: 采集策略。可选值: full (全量采集存量日志), increment (从当前时间点增量采集)。默认为 full。 + * + * @return string|null + */ + public function getCollectPolicy() + { + return $this->get("CollectPolicy"); + } + + /** + * CollectPolicy: 采集策略。可选值: full (全量采集存量日志), increment (从当前时间点增量采集)。默认为 full。 + * + * @param string $collectPolicy + */ + public function setCollectPolicy($collectPolicy) + { + $this->set("CollectPolicy", $collectPolicy); + } + + /** + * Encode: 日志原文的编码格式。可选值: utf-8, gbk。默认为 utf-8。 + * + * @return string|null + */ + public function getEncode() + { + return $this->get("Encode"); + } + + /** + * Encode: 日志原文的编码格式。可选值: utf-8, gbk。默认为 utf-8。 + * + * @param string $encode + */ + public function setEncode($encode) + { + $this->set("Encode", $encode); + } + + /** + * Keys: 索引字段key,是一个数组 + * + * @return string[]|null + */ + public function getKeys() + { + return $this->get("Keys"); + } + + /** + * Keys: 索引字段key,是一个数组 + * + * @param string[] $keys + */ + public function setKeys(array $keys) + { + $this->set("Keys", $keys); + } + + /** + * Delimiter: 当 LogType 为delimiter 或multi_line_delimiter时可选,支持多字符分隔,需要转换成Base64 + * + * @return string|null + */ + public function getDelimiter() + { + return $this->get("Delimiter"); + } + + /** + * Delimiter: 当 LogType 为delimiter 或multi_line_delimiter时可选,支持多字符分隔,需要转换成Base64 + * + * @param string $delimiter + */ + public function setDelimiter($delimiter) + { + $this->set("Delimiter", $delimiter); + } + + /** + * MatchRule: 行首正则表达式。当 logType 为多行模式 (如 multi_line 或 multi_line_full_regex或multi_line_delimiter) 时,用于标识一条新日志的开始。需要转换成Base64 + * + * @return string|null + */ + public function getMatchRule() + { + return $this->get("MatchRule"); + } + + /** + * MatchRule: 行首正则表达式。当 logType 为多行模式 (如 multi_line 或 multi_line_full_regex或multi_line_delimiter) 时,用于标识一条新日志的开始。需要转换成Base64 + * + * @param string $matchRule + */ + public function setMatchRule($matchRule) + { + $this->set("MatchRule", $matchRule); + } + + /** + * ExtractRule: 日志提取正则表达式。当 logType 为正则模式 (如 full_regex,multi_line_full_regex) 时,用于从日志中提取字段。需要转换成Base64 + * + * @return string|null + */ + public function getExtractRule() + { + return $this->get("ExtractRule"); + } + + /** + * ExtractRule: 日志提取正则表达式。当 logType 为正则模式 (如 full_regex,multi_line_full_regex) 时,用于从日志中提取字段。需要转换成Base64 + * + * @param string $extractRule + */ + public function setExtractRule($extractRule) + { + $this->set("ExtractRule", $extractRule); + } + + /** + * UnMatchKey: 如果 UnMatchUpload 为 true,无法解析的日志原文将被存放在此字段指定的 Key 下。默认为 LogParseFailure。 + * + * @return string|null + */ + public function getUnMatchKey() + { + return $this->get("UnMatchKey"); + } + + /** + * UnMatchKey: 如果 UnMatchUpload 为 true,无法解析的日志原文将被存放在此字段指定的 Key 下。默认为 LogParseFailure。 + * + * @param string $unMatchKey + */ + public function setUnMatchKey($unMatchKey) + { + $this->set("UnMatchKey", $unMatchKey); + } + + /** + * FilePaths: + * + * @return UpdateULogServiceCollectConfParamFilePaths[]|null + */ + public function getFilePaths() + { + $items = $this->get("FilePaths"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new UpdateULogServiceCollectConfParamFilePaths($item)); + } + return $result; + } + + /** + * FilePaths: + * + * @param UpdateULogServiceCollectConfParamFilePaths[] $filePaths + */ + public function setFilePaths(array $filePaths) + { + $result = []; + foreach ($filePaths as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } +} diff --git a/src/ULogService/Apis/UpdateULogServiceCollectConfResponse.php b/src/ULogService/Apis/UpdateULogServiceCollectConfResponse.php new file mode 100644 index 0000000..3b939c3 --- /dev/null +++ b/src/ULogService/Apis/UpdateULogServiceCollectConfResponse.php @@ -0,0 +1,26 @@ + "UpdateULogServiceMachineGroup"]); + $this->markRequired("Region"); + $this->markRequired("Zone"); + $this->markRequired("Name"); + $this->markRequired("Type"); + $this->markRequired("Id"); + } + + + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getRegion() + { + return $this->get("Region"); + } + + /** + * Region: 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $region + */ + public function setRegion($region) + { + $this->set("Region", $region); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @return string|null + */ + public function getZone() + { + return $this->get("Zone"); + } + + /** + * Zone: 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * + * @param string $zone + */ + public function setZone($zone) + { + $this->set("Zone", $zone); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @return string|null + */ + public function getProjectId() + { + return $this->get("ProjectId"); + } + + /** + * ProjectId: 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * + * @param string $projectId + */ + public function setProjectId($projectId) + { + $this->set("ProjectId", $projectId); + } + + /** + * Name: 机器组名称; 格式校验:^[\w]{1,255}$ + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 机器组名称; 格式校验:^[\w]{1,255}$ + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * Type: 采集客户端识别模式;可选值 LABEL | IP; + * + * @return string|null + */ + public function getType() + { + return $this->get("Type"); + } + + /** + * Type: 采集客户端识别模式;可选值 LABEL | IP; + * + * @param string $type + */ + public function setType($type) + { + $this->set("Type", $type); + } + + /** + * Id: 机器组ID + * + * @return integer|null + */ + public function getId() + { + return $this->get("Id"); + } + + /** + * Id: 机器组ID + * + * @param int $id + */ + public function setId($id) + { + $this->set("Id", $id); + } + + /** + * Labels: 采集客户端识别标识,数组类型 + * + * @return string|null + */ + public function getLabels() + { + return $this->get("Labels"); + } + + /** + * Labels: 采集客户端识别标识,数组类型 + * + * @param string $labels + */ + public function setLabels($labels) + { + $this->set("Labels", $labels); + } + + /** + * Ips: 机器IP,如果Type是IP,那么Ips可以填写IP,是一个数组 + * + * @return string|null + */ + public function getIps() + { + return $this->get("Ips"); + } + + /** + * Ips: 机器IP,如果Type是IP,那么Ips可以填写IP,是一个数组 + * + * @param string $ips + */ + public function setIps($ips) + { + $this->set("Ips", $ips); + } +} diff --git a/src/ULogService/Apis/UpdateULogServiceMachineGroupResponse.php b/src/ULogService/Apis/UpdateULogServiceMachineGroupResponse.php new file mode 100644 index 0000000..a660dd5 --- /dev/null +++ b/src/ULogService/Apis/UpdateULogServiceMachineGroupResponse.php @@ -0,0 +1,26 @@ +get("Name"); + } + + /** + * Name: 字段名 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * Type: 字段类型 + * + * @return string|null + */ + public function getType() + { + return $this->get("Type"); + } + + /** + * Type: 字段类型 + * + * @param string $type + */ + public function setType($type) + { + $this->set("Type", $type); + } +} diff --git a/src/ULogService/Models/CollectConf.php b/src/ULogService/Models/CollectConf.php new file mode 100644 index 0000000..eae7abb --- /dev/null +++ b/src/ULogService/Models/CollectConf.php @@ -0,0 +1,368 @@ +get("TopicId"); + } + + /** + * TopicId: 日志主题ID + * + * @param int $topicId + */ + public function setTopicId($topicId) + { + $this->set("TopicId", $topicId); + } + + /** + * State: State + * + * @return integer|null + */ + public function getState() + { + return $this->get("State"); + } + + /** + * State: State + * + * @param int $state + */ + public function setState($state) + { + $this->set("State", $state); + } + + /** + * MachineGroups: 机器组ID,是一个数组 + * + * @return MachineGroup[]|null + */ + public function getMachineGroups() + { + $items = $this->get("MachineGroups"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new MachineGroup($item)); + } + return $result; + } + + /** + * MachineGroups: 机器组ID,是一个数组 + * + * @param MachineGroup[] $machineGroups + */ + public function setMachineGroups(array $machineGroups) + { + $result = []; + foreach ($machineGroups as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * Id: Id + * + * @return integer|null + */ + public function getId() + { + return $this->get("Id"); + } + + /** + * Id: Id + * + * @param int $id + */ + public function setId($id) + { + $this->set("Id", $id); + } + + /** + * Name: 日志采集配置名称 + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 日志采集配置名称 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * LogType: 日志解析类型,决定了如何结构化日志。可选值: json:json 格式,delimiter:分隔符,full_regex:完全正则,multi_line_full_regex:多行完全正则,multi_line_delimiter: 多行分隔符正则,minimal_list:单行全文日志,multi_line:多行全文日志 + * + * @return string|null + */ + public function getLogType() + { + return $this->get("LogType"); + } + + /** + * LogType: 日志解析类型,决定了如何结构化日志。可选值: json:json 格式,delimiter:分隔符,full_regex:完全正则,multi_line_full_regex:多行完全正则,multi_line_delimiter: 多行分隔符正则,minimal_list:单行全文日志,multi_line:多行全文日志 + * + * @param string $logType + */ + public function setLogType($logType) + { + $this->set("LogType", $logType); + } + + /** + * CollectPolicy: 采集策略。可选值: full (全量采集存量日志), increment (从当前时间点增量采集)。默认为 full。 + * + * @return string|null + */ + public function getCollectPolicy() + { + return $this->get("CollectPolicy"); + } + + /** + * CollectPolicy: 采集策略。可选值: full (全量采集存量日志), increment (从当前时间点增量采集)。默认为 full。 + * + * @param string $collectPolicy + */ + public function setCollectPolicy($collectPolicy) + { + $this->set("CollectPolicy", $collectPolicy); + } + + /** + * Encode: 日志原文的编码格式。可选值: utf-8, gbk。默认为 utf-8。 + * + * @return string|null + */ + public function getEncode() + { + return $this->get("Encode"); + } + + /** + * Encode: 日志原文的编码格式。可选值: utf-8, gbk。默认为 utf-8。 + * + * @param string $encode + */ + public function setEncode($encode) + { + $this->set("Encode", $encode); + } + + /** + * Keys: 索引字段key,是一个数组 + * + * @return string|null + */ + public function getKeys() + { + return $this->get("Keys"); + } + + /** + * Keys: 索引字段key,是一个数组 + * + * @param string $keys + */ + public function setKeys($keys) + { + $this->set("Keys", $keys); + } + + /** + * Delimiter: 当 LogType 为delimiter 或multi_line_delimiter时可选,支持多字符分隔,需要转换成Base64 + * + * @return string|null + */ + public function getDelimiter() + { + return $this->get("Delimiter"); + } + + /** + * Delimiter: 当 LogType 为delimiter 或multi_line_delimiter时可选,支持多字符分隔,需要转换成Base64 + * + * @param string $delimiter + */ + public function setDelimiter($delimiter) + { + $this->set("Delimiter", $delimiter); + } + + /** + * MatchRule: 行首正则表达式。当 logType 为多行模式 (如 multi_line 或 multi_line_full_regex或multi_line_delimiter) 时,用于标识一条新日志的开始。需要转换成Base64 + * + * @return string|null + */ + public function getMatchRule() + { + return $this->get("MatchRule"); + } + + /** + * MatchRule: 行首正则表达式。当 logType 为多行模式 (如 multi_line 或 multi_line_full_regex或multi_line_delimiter) 时,用于标识一条新日志的开始。需要转换成Base64 + * + * @param string $matchRule + */ + public function setMatchRule($matchRule) + { + $this->set("MatchRule", $matchRule); + } + + /** + * ExtractRule: 日志提取正则表达式。当 logType 为正则模式 (如 full_regex,multi_line_full_regex) 时,用于从日志中提取字段。需要转换成Base64 + * + * @return string|null + */ + public function getExtractRule() + { + return $this->get("ExtractRule"); + } + + /** + * ExtractRule: 日志提取正则表达式。当 logType 为正则模式 (如 full_regex,multi_line_full_regex) 时,用于从日志中提取字段。需要转换成Base64 + * + * @param string $extractRule + */ + public function setExtractRule($extractRule) + { + $this->set("ExtractRule", $extractRule); + } + + /** + * UnMatchKey: 如果 UnMatchUpload 为 true,无法解析的日志原文将被存放在此字段指定的 Key 下。默认为 LogParseFailure。 + * + * @return string|null + */ + public function getUnMatchKey() + { + return $this->get("UnMatchKey"); + } + + /** + * UnMatchKey: 如果 UnMatchUpload 为 true,无法解析的日志原文将被存放在此字段指定的 Key 下。默认为 LogParseFailure。 + * + * @param string $unMatchKey + */ + public function setUnMatchKey($unMatchKey) + { + $this->set("UnMatchKey", $unMatchKey); + } + + /** + * FilePaths: FilePaths + * + * @return FilePath[]|null + */ + public function getFilePaths() + { + $items = $this->get("FilePaths"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new FilePath($item)); + } + return $result; + } + + /** + * FilePaths: FilePaths + * + * @param FilePath[] $filePaths + */ + public function setFilePaths(array $filePaths) + { + $result = []; + foreach ($filePaths as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * CreateTime: CreateTime + * + * @return integer|null + */ + public function getCreateTime() + { + return $this->get("CreateTime"); + } + + /** + * CreateTime: CreateTime + * + * @param int $createTime + */ + public function setCreateTime($createTime) + { + $this->set("CreateTime", $createTime); + } + + /** + * UpdateTime: updateTime + * + * @return integer|null + */ + public function getUpdateTime() + { + return $this->get("UpdateTime"); + } + + /** + * UpdateTime: updateTime + * + * @param int $updateTime + */ + public function setUpdateTime($updateTime) + { + $this->set("UpdateTime", $updateTime); + } +} diff --git a/src/ULogService/Models/FilePath.php b/src/ULogService/Models/FilePath.php new file mode 100644 index 0000000..2b91aea --- /dev/null +++ b/src/ULogService/Models/FilePath.php @@ -0,0 +1,64 @@ +get("Path"); + } + + /** + * Path: 路径 + * + * @param string $path + */ + public function setPath($path) + { + $this->set("Path", $path); + } + + /** + * File: 文件名 + * + * @return string|null + */ + public function getFile() + { + return $this->get("File"); + } + + /** + * File: 文件名 + * + * @param string $file + */ + public function setFile($file) + { + $this->set("File", $file); + } +} diff --git a/src/ULogService/Models/LogAgent.php b/src/ULogService/Models/LogAgent.php new file mode 100644 index 0000000..4d6a33f --- /dev/null +++ b/src/ULogService/Models/LogAgent.php @@ -0,0 +1,144 @@ +get("Label"); + } + + /** + * Label: 主机标签 + * + * @param string $label + */ + public function setLabel($label) + { + $this->set("Label", $label); + } + + /** + * HostIp: 主机IP + * + * @return string|null + */ + public function getHostIp() + { + return $this->get("HostIp"); + } + + /** + * HostIp: 主机IP + * + * @param string $hostIp + */ + public function setHostIp($hostIp) + { + $this->set("HostIp", $hostIp); + } + + /** + * InstanceId: logagent id + * + * @return string|null + */ + public function getInstanceId() + { + return $this->get("InstanceId"); + } + + /** + * InstanceId: logagent id + * + * @param string $instanceId + */ + public function setInstanceId($instanceId) + { + $this->set("InstanceId", $instanceId); + } + + /** + * AgentVersion: LogAgent版本 + * + * @return string|null + */ + public function getAgentVersion() + { + return $this->get("AgentVersion"); + } + + /** + * AgentVersion: LogAgent版本 + * + * @param string $agentVersion + */ + public function setAgentVersion($agentVersion) + { + $this->set("AgentVersion", $agentVersion); + } + + /** + * Status: logagent状态,NORMAL:正常,OFFLINE: 离线 + * + * @return string|null + */ + public function getStatus() + { + return $this->get("Status"); + } + + /** + * Status: logagent状态,NORMAL:正常,OFFLINE: 离线 + * + * @param string $status + */ + public function setStatus($status) + { + $this->set("Status", $status); + } + + /** + * OffLineTime: 离线时间,单位是ms + * + * @return string|null + */ + public function getOffLineTime() + { + return $this->get("OffLineTime"); + } + + /** + * OffLineTime: 离线时间,单位是ms + * + * @param string $offLineTime + */ + public function setOffLineTime($offLineTime) + { + $this->set("OffLineTime", $offLineTime); + } +} diff --git a/src/ULogService/Models/LogContent.php b/src/ULogService/Models/LogContent.php new file mode 100644 index 0000000..f282584 --- /dev/null +++ b/src/ULogService/Models/LogContent.php @@ -0,0 +1,124 @@ +get("LogId"); + } + + /** + * LogId: 日志标识ID + * + * @param string $logId + */ + public function setLogId($logId) + { + $this->set("LogId", $logId); + } + + /** + * HostName: 日志来源主机 + * + * @return string|null + */ + public function getHostName() + { + return $this->get("HostName"); + } + + /** + * HostName: 日志来源主机 + * + * @param string $hostName + */ + public function setHostName($hostName) + { + $this->set("HostName", $hostName); + } + + /** + * FileName: 日志文件路径 + * + * @return string|null + */ + public function getFileName() + { + return $this->get("FileName"); + } + + /** + * FileName: 日志文件路径 + * + * @param string $fileName + */ + public function setFileName($fileName) + { + $this->set("FileName", $fileName); + } + + /** + * Timestamp: 日志时间 + * + * @return integer|null + */ + public function getTimestamp() + { + return $this->get("Timestamp"); + } + + /** + * Timestamp: 日志时间 + * + * @param int $timestamp + */ + public function setTimestamp($timestamp) + { + $this->set("Timestamp", $timestamp); + } + + /** + * LogJson: JSON格式的日志内容 + * + * @return string|null + */ + public function getLogJson() + { + return $this->get("LogJson"); + } + + /** + * LogJson: JSON格式的日志内容 + * + * @param string $logJson + */ + public function setLogJson($logJson) + { + $this->set("LogJson", $logJson); + } +} diff --git a/src/ULogService/Models/LogQueryResult.php b/src/ULogService/Models/LogQueryResult.php new file mode 100644 index 0000000..71f2e37 --- /dev/null +++ b/src/ULogService/Models/LogQueryResult.php @@ -0,0 +1,216 @@ +get("TopicId"); + } + + /** + * TopicId: 所属日志ID + * + * @param string $topicId + */ + public function setTopicId($topicId) + { + $this->set("TopicId", $topicId); + } + + /** + * TopicName: 所属日志名称 + * + * @return string|null + */ + public function getTopicName() + { + return $this->get("TopicName"); + } + + /** + * TopicName: 所属日志名称 + * + * @param string $topicName + */ + public function setTopicName($topicName) + { + $this->set("TopicName", $topicName); + } + + /** + * IsOver: 检索结果是否到底 + * + * @return boolean|null + */ + public function getIsOver() + { + return $this->get("IsOver"); + } + + /** + * IsOver: 检索结果是否到底 + * + * @param boolean $isOver + */ + public function setIsOver($isOver) + { + $this->set("IsOver", $isOver); + } + + /** + * Contents: 日志内容 + * + * @return LogContent|null + */ + public function getContents() + { + return new LogContent($this->get("Contents")); + } + + /** + * Contents: 日志内容 + * + * @param LogContent $contents + */ + public function setContents(array $contents) + { + $this->set("Contents", $contents->getAll()); + } + + /** + * ScrollId: 滚动检索Id Deprecated + * + * @return string|null + */ + public function getScrollId() + { + return $this->get("ScrollId"); + } + + /** + * ScrollId: 滚动检索Id Deprecated + * + * @param string $scrollId + */ + public function setScrollId($scrollId) + { + $this->set("ScrollId", $scrollId); + } + + /** + * LastId: 滚动检索,当前页最后一条数据ID + * + * @return string|null + */ + public function getLastId() + { + return $this->get("LastId"); + } + + /** + * LastId: 滚动检索,当前页最后一条数据ID + * + * @param string $lastId + */ + public function setLastId($lastId) + { + $this->set("LastId", $lastId); + } + + /** + * LastTimestamp: 滚动检索,当前页最后一条数据Timestamp + * + * @return string|null + */ + public function getLastTimestamp() + { + return $this->get("LastTimestamp"); + } + + /** + * LastTimestamp: 滚动检索,当前页最后一条数据Timestamp + * + * @param string $lastTimestamp + */ + public function setLastTimestamp($lastTimestamp) + { + $this->set("LastTimestamp", $lastTimestamp); + } + + /** + * Columns: 当使用SQL语句查询时,数据通过AnalysisRecords字段返回,Columns字段返回的是字段名和类型 + * + * @return AnalysisField[]|null + */ + public function getColumns() + { + $items = $this->get("Columns"); + if ($items == null) { + return []; + } + $result = []; + foreach ($items as $i => $item) { + array_push($result, new AnalysisField($item)); + } + return $result; + } + + /** + * Columns: 当使用SQL语句查询时,数据通过AnalysisRecords字段返回,Columns字段返回的是字段名和类型 + * + * @param AnalysisField[] $columns + */ + public function setColumns(array $columns) + { + $result = []; + foreach ($columns as $i => $item) { + array_push($result, $item->getAll()); + } + return $result; + } + + /** + * AnalysisRecords: 当使用SQL语句查询时,数据通过该字段返回 + * + * @return string[]|null + */ + public function getAnalysisRecords() + { + return $this->get("AnalysisRecords"); + } + + /** + * AnalysisRecords: 当使用SQL语句查询时,数据通过该字段返回 + * + * @param string[] $analysisRecords + */ + public function setAnalysisRecords(array $analysisRecords) + { + $this->set("AnalysisRecords", $analysisRecords); + } +} diff --git a/src/ULogService/Models/LogSetInfo.php b/src/ULogService/Models/LogSetInfo.php new file mode 100644 index 0000000..4993315 --- /dev/null +++ b/src/ULogService/Models/LogSetInfo.php @@ -0,0 +1,124 @@ +get("TopicCount"); + } + + /** + * TopicCount: 日志集下主题数量 + * + * @param int $topicCount + */ + public function setTopicCount($topicCount) + { + $this->set("TopicCount", $topicCount); + } + + /** + * LogSetRemark: 日志集备注 + * + * @return string|null + */ + public function getLogSetRemark() + { + return $this->get("LogSetRemark"); + } + + /** + * LogSetRemark: 日志集备注 + * + * @param string $logSetRemark + */ + public function setLogSetRemark($logSetRemark) + { + $this->set("LogSetRemark", $logSetRemark); + } + + /** + * LogSetName: 日志集名称 + * + * @return string|null + */ + public function getLogSetName() + { + return $this->get("LogSetName"); + } + + /** + * LogSetName: 日志集名称 + * + * @param string $logSetName + */ + public function setLogSetName($logSetName) + { + $this->set("LogSetName", $logSetName); + } + + /** + * CreateTime: 创建时间 + * + * @return integer|null + */ + public function getCreateTime() + { + return $this->get("CreateTime"); + } + + /** + * CreateTime: 创建时间 + * + * @param int $createTime + */ + public function setCreateTime($createTime) + { + $this->set("CreateTime", $createTime); + } + + /** + * UpdateTime: 更新时间 + * + * @return integer|null + */ + public function getUpdateTime() + { + return $this->get("UpdateTime"); + } + + /** + * UpdateTime: 更新时间 + * + * @param int $updateTime + */ + public function setUpdateTime($updateTime) + { + $this->set("UpdateTime", $updateTime); + } +} diff --git a/src/ULogService/Models/MachineGroup.php b/src/ULogService/Models/MachineGroup.php new file mode 100644 index 0000000..a713a14 --- /dev/null +++ b/src/ULogService/Models/MachineGroup.php @@ -0,0 +1,124 @@ +get("Id"); + } + + /** + * Id: 机器组ID + * + * @param string $id + */ + public function setId($id) + { + $this->set("Id", $id); + } + + /** + * Name: 机器组名称 + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 机器组名称 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * Type: 采集器识别类型:LABEL:机器标识,IP:IP类型 + * + * @return string|null + */ + public function getType() + { + return $this->get("Type"); + } + + /** + * Type: 采集器识别类型:LABEL:机器标识,IP:IP类型 + * + * @param string $type + */ + public function setType($type) + { + $this->set("Type", $type); + } + + /** + * CreateTime: 创建时间 + * + * @return integer|null + */ + public function getCreateTime() + { + return $this->get("CreateTime"); + } + + /** + * CreateTime: 创建时间 + * + * @param int $createTime + */ + public function setCreateTime($createTime) + { + $this->set("CreateTime", $createTime); + } + + /** + * UpdateTime: 修改时间 + * + * @return integer|null + */ + public function getUpdateTime() + { + return $this->get("UpdateTime"); + } + + /** + * UpdateTime: 修改时间 + * + * @param int $updateTime + */ + public function setUpdateTime($updateTime) + { + $this->set("UpdateTime", $updateTime); + } +} diff --git a/src/ULogService/Models/MachineInfo.php b/src/ULogService/Models/MachineInfo.php new file mode 100644 index 0000000..32f092e --- /dev/null +++ b/src/ULogService/Models/MachineInfo.php @@ -0,0 +1,144 @@ +get("Id"); + } + + /** + * Id: 机器组ID + * + * @param int $id + */ + public function setId($id) + { + $this->set("Id", $id); + } + + /** + * Name: 机器组名称 + * + * @return string|null + */ + public function getName() + { + return $this->get("Name"); + } + + /** + * Name: 机器组名称 + * + * @param string $name + */ + public function setName($name) + { + $this->set("Name", $name); + } + + /** + * Type: 机器组类型,取值有:LABEL和IP + * + * @return string|null + */ + public function getType() + { + return $this->get("Type"); + } + + /** + * Type: 机器组类型,取值有:LABEL和IP + * + * @param string $type + */ + public function setType($type) + { + $this->set("Type", $type); + } + + /** + * LogAgents: LogAgent信息,数组类型 + * + * @return LogAgent|null + */ + public function getLogAgents() + { + return new LogAgent($this->get("LogAgents")); + } + + /** + * LogAgents: LogAgent信息,数组类型 + * + * @param LogAgent $logAgents + */ + public function setLogAgents(array $logAgents) + { + $this->set("LogAgents", $logAgents->getAll()); + } + + /** + * Labels: 机器组标签,数组类型 + * + * @return string[]|null + */ + public function getLabels() + { + return $this->get("Labels"); + } + + /** + * Labels: 机器组标签,数组类型 + * + * @param string[] $labels + */ + public function setLabels(array $labels) + { + $this->set("Labels", $labels); + } + + /** + * Ips: 机器组Ip,数组类型 + * + * @return string|null + */ + public function getIps() + { + return $this->get("Ips"); + } + + /** + * Ips: 机器组Ip,数组类型 + * + * @param string $ips + */ + public function setIps($ips) + { + $this->set("Ips", $ips); + } +} diff --git a/src/ULogService/Models/TopicInfo.php b/src/ULogService/Models/TopicInfo.php new file mode 100644 index 0000000..4ee27a8 --- /dev/null +++ b/src/ULogService/Models/TopicInfo.php @@ -0,0 +1,144 @@ +get("TopicName"); + } + + /** + * TopicName: 主题名称 + * + * @param string $topicName + */ + public function setTopicName($topicName) + { + $this->set("TopicName", $topicName); + } + + /** + * TopicId: 主题ID + * + * @return string|null + */ + public function getTopicId() + { + return $this->get("TopicId"); + } + + /** + * TopicId: 主题ID + * + * @param string $topicId + */ + public function setTopicId($topicId) + { + $this->set("TopicId", $topicId); + } + + /** + * TopicShardNum: 分区数量,固定是2 + * + * @return integer|null + */ + public function getTopicShardNum() + { + return $this->get("TopicShardNum"); + } + + /** + * TopicShardNum: 分区数量,固定是2 + * + * @param int $topicShardNum + */ + public function setTopicShardNum($topicShardNum) + { + $this->set("TopicShardNum", $topicShardNum); + } + + /** + * ReserveAge: 保存时间 1~730 天 + * + * @return integer|null + */ + public function getReserveAge() + { + return $this->get("ReserveAge"); + } + + /** + * ReserveAge: 保存时间 1~730 天 + * + * @param int $reserveAge + */ + public function setReserveAge($reserveAge) + { + $this->set("ReserveAge", $reserveAge); + } + + /** + * IsReserved: 是否保留:0 - NORMAL, 1 - RESERVED + * + * @return integer|null + */ + public function getIsReserved() + { + return $this->get("IsReserved"); + } + + /** + * IsReserved: 是否保留:0 - NORMAL, 1 - RESERVED + * + * @param int $isReserved + */ + public function setIsReserved($isReserved) + { + $this->set("IsReserved", $isReserved); + } + + /** + * TopicDesc: 主题描述 + * + * @return string|null + */ + public function getTopicDesc() + { + return $this->get("TopicDesc"); + } + + /** + * TopicDesc: 主题描述 + * + * @param string $topicDesc + */ + public function setTopicDesc($topicDesc) + { + $this->set("TopicDesc", $topicDesc); + } +} diff --git a/src/ULogService/Params/CreateULogServiceCollectConfParamFilePaths.php b/src/ULogService/Params/CreateULogServiceCollectConfParamFilePaths.php new file mode 100644 index 0000000..a285052 --- /dev/null +++ b/src/ULogService/Params/CreateULogServiceCollectConfParamFilePaths.php @@ -0,0 +1,64 @@ +get("Path"); + } + + /** + * Path: 定义采集路径,数组类型 + * + * @param string $path + */ + public function setPath($path) + { + $this->set("Path", $path); + } + + /** + * File: 定义采集路径的文件名,数组类型 + * + * @return string|null + */ + public function getFile() + { + return $this->get("File"); + } + + /** + * File: 定义采集路径的文件名,数组类型 + * + * @param string $file + */ + public function setFile($file) + { + $this->set("File", $file); + } +} diff --git a/src/ULogService/Params/UpdateULogServiceCollectConfParamFilePaths.php b/src/ULogService/Params/UpdateULogServiceCollectConfParamFilePaths.php new file mode 100644 index 0000000..70527d9 --- /dev/null +++ b/src/ULogService/Params/UpdateULogServiceCollectConfParamFilePaths.php @@ -0,0 +1,64 @@ +get("Path"); + } + + /** + * Path: 定义采集路径,数组类型 + * + * @param string $path + */ + public function setPath($path) + { + $this->set("Path", $path); + } + + /** + * File: 定义采集路径的文件名,数组类型 + * + * @return string|null + */ + public function getFile() + { + return $this->get("File"); + } + + /** + * File: 定义采集路径的文件名,数组类型 + * + * @param string $file + */ + public function setFile($file) + { + $this->set("File", $file); + } +} diff --git a/src/ULogService/ULogServiceClient.php b/src/ULogService/ULogServiceClient.php new file mode 100644 index 0000000..022a355 --- /dev/null +++ b/src/ULogService/ULogServiceClient.php @@ -0,0 +1,687 @@ + (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "TopicId" => (string) 日志主题ID + * "CollectConfId" => (integer) 采集配置id + * "MachineGroupIds" => (integer) 机器组ID,是一个数组 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return BindULogServiceGroupToCollectConfResponse + * @throws UCloudException + */ + public function bindULogServiceGroupToCollectConf(BindULogServiceGroupToCollectConfRequest $request = null) + { + $resp = $this->invoke($request); + return new BindULogServiceGroupToCollectConfResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * CreateULogServiceCollectConf - 创建日志主题采集配置 + * + * See also: https://docs.ucloud.cn/api/ulogservice-api/create_u_log_service_collect_conf + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "TopicId" => (string) 日志主题ID + * "Name" => (string) 配置名称 + * "LogType" => (string) 日志解析类型,决定了如何结构化日志。可选值: json:json 格式,delimiter:分隔符,full_regex:完全正则,multi_line_full_regex:多行完全正则,multi_line_delimiter: 多行分隔符正则,minimal_list:单行全文日志,multi_line:多行全文日志 + * "CollectPolicy" => (string) 采集策略。可选值: full (全量采集存量日志), increment (从当前时间点增量采集)。默认为 full。 + * "Encode" => (string) 日志原文的编码格式。可选值: utf-8, gbk。默认为 utf-8。 + * "Keys" => (array) 索引字段key,是一个数组 + * "Delimiter" => (string) 当 LogType 为delimiter 或multi_line_delimiter时可选,支持多字符分隔,需要转换成Base64 + * "MatchRule" => (string) 行首正则表达式。当 logType 为多行模式 (如 multi_line 或 multi_line_full_regex或multi_line_delimiter) 时,用于标识一条新日志的开始。需要转换成Base64 + * "ExtractRule" => (string) 日志提取正则表达式。当 logType 为正则模式 (如 full_regex,multi_line_full_regex) 时,用于从日志中提取字段。需要转换成Base64 + * "UnMatchKey" => (string) 如果 UnMatchUpload 为 true,无法解析的日志原文将被存放在此字段指定的 Key 下。默认为 LogParseFailure。 + * "FilePaths" => (array) [ + * [ + * "Path" => (string) 定义采集路径,数组类型 + * "File" => (string) 定义采集路径的文件名,数组类型 + * ] + * ] + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return CreateULogServiceCollectConfResponse + * @throws UCloudException + */ + public function createULogServiceCollectConf(CreateULogServiceCollectConfRequest $request = null) + { + $resp = $this->invoke($request); + return new CreateULogServiceCollectConfResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * CreateULogServiceLogSet - 创建日志集 + * + * See also: https://docs.ucloud.cn/api/ulogservice-api/create_u_log_service_log_set + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "LogSetName" => (string) 日志集名称 长度为1~64位 + * "LogSetRemark" => (string) 日志集备注 长度为0~255位 + * ] + * + * Outputs: + * + * $outputs = [ + * "LogSetId" => (string) 日志集资源ID + * ] + * + * @return CreateULogServiceLogSetResponse + * @throws UCloudException + */ + public function createULogServiceLogSet(CreateULogServiceLogSetRequest $request = null) + { + $resp = $this->invoke($request); + return new CreateULogServiceLogSetResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * CreateULogServiceMachineGroup - 创建机器组 + * + * See also: https://docs.ucloud.cn/api/ulogservice-api/create_u_log_service_machine_group + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "InstanceId" => (string) 日志服务实例资源ID + * "Name" => (string) 机器组名称;格式校验:^[\w]{1,23}$ + * "Type" => (string) 采集客户端识别模式;可选值 LABEL | IP; + * "Labels" => (string) 采集客户端识别标识,是一个数组 + * "Ips" => (string) 机器IP,如果Type是IP,那么Ips可以填写IP,是一个数组 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return CreateULogServiceMachineGroupResponse + * @throws UCloudException + */ + public function createULogServiceMachineGroup(CreateULogServiceMachineGroupRequest $request = null) + { + $resp = $this->invoke($request); + return new CreateULogServiceMachineGroupResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * CreateULogServiceTopic - 创建ULogService主题 + * + * See also: https://docs.ucloud.cn/api/ulogservice-api/create_u_log_service_topic + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "TopicName" => (string) 主题名称,校验规则"^[\w]{1,64}$" + * "ReserveAge" => (integer) 保存时间 1~730 天 + * "LogSetId" => (string) 日志集ID + * "TopicShardNum" => (integer) 分区数量,固定是2 + * ] + * + * Outputs: + * + * $outputs = [ + * "TopicId" => (string) 主题ID + * ] + * + * @return CreateULogServiceTopicResponse + * @throws UCloudException + */ + public function createULogServiceTopic(CreateULogServiceTopicRequest $request = null) + { + $resp = $this->invoke($request); + return new CreateULogServiceTopicResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * DeleteULogServiceCollectConf - 删除日志主题采集配置 + * + * See also: https://docs.ucloud.cn/api/ulogservice-api/delete_u_log_service_collect_conf + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "TopicId" => (string) 日志主题ID + * "CollectConfId" => (integer) 日志主题采集配置ID + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return DeleteULogServiceCollectConfResponse + * @throws UCloudException + */ + public function deleteULogServiceCollectConf(DeleteULogServiceCollectConfRequest $request = null) + { + $resp = $this->invoke($request); + return new DeleteULogServiceCollectConfResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * DeleteULogServiceLogSet - 删除日志集 + * + * See also: https://docs.ucloud.cn/api/ulogservice-api/delete_u_log_service_log_set + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "LogSetId" => (string) 日志集ID + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return DeleteULogServiceLogSetResponse + * @throws UCloudException + */ + public function deleteULogServiceLogSet(DeleteULogServiceLogSetRequest $request = null) + { + $resp = $this->invoke($request); + return new DeleteULogServiceLogSetResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * DeleteULogServiceMachineGroup - 删除机器组 + * + * See also: https://docs.ucloud.cn/api/ulogservice-api/delete_u_log_service_machine_group + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "Id" => (integer) 删除的机器组ID + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return DeleteULogServiceMachineGroupResponse + * @throws UCloudException + */ + public function deleteULogServiceMachineGroup(DeleteULogServiceMachineGroupRequest $request = null) + { + $resp = $this->invoke($request); + return new DeleteULogServiceMachineGroupResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * DeleteULogServiceTopic - 删除ULogService主题 + * + * See also: https://docs.ucloud.cn/api/ulogservice-api/delete_u_log_service_topic + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "TopicId" => (string) 主题Id + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return DeleteULogServiceTopicResponse + * @throws UCloudException + */ + public function deleteULogServiceTopic(DeleteULogServiceTopicRequest $request = null) + { + $resp = $this->invoke($request); + return new DeleteULogServiceTopicResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * DescribeULogServiceMachineGroup - 查询日志采集机器组 + * + * See also: https://docs.ucloud.cn/api/ulogservice-api/describe_u_log_service_machine_group + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "Id" => (string) 机器组ID + * ] + * + * Outputs: + * + * $outputs = [ + * "MachineGroup" => (object) 机器组信息[ + * "Id" => (integer) 机器组ID + * "Name" => (string) 机器组名称 + * "Type" => (string) 机器组类型,取值有:LABEL和IP + * "LogAgents" => (object) LogAgent信息,数组类型[ + * "Label" => (string) 主机标签 + * "HostIp" => (string) 主机IP + * "InstanceId" => (string) logagent id + * "AgentVersion" => (string) LogAgent版本 + * "Status" => (string) logagent状态,NORMAL:正常,OFFLINE: 离线 + * "OffLineTime" => (string) 离线时间,单位是ms + * ] + * "Labels" => (array) 机器组标签,数组类型 + * "Ips" => (string) 机器组Ip,数组类型 + * ] + * ] + * + * @return DescribeULogServiceMachineGroupResponse + * @throws UCloudException + */ + public function describeULogServiceMachineGroup(DescribeULogServiceMachineGroupRequest $request = null) + { + $resp = $this->invoke($request); + return new DescribeULogServiceMachineGroupResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * ListULogServiceCollectConf - 查询日志主题采集配置列表 + * + * See also: https://docs.ucloud.cn/api/ulogservice-api/list_u_log_service_collect_conf + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "TopicId" => (integer) 日志主题ID + * "CollectConfId" => (integer) 采集配置ID + * ] + * + * Outputs: + * + * $outputs = [ + * "CollectConfs" => (object) 日志采集配置列表[ + * "TopicId" => (integer) 日志主题ID + * "State" => (integer) State + * "MachineGroups" => (array) 机器组ID,是一个数组[ + * [ + * "Id" => (string) 机器组ID + * "Name" => (string) 机器组名称 + * "Type" => (string) 采集器识别类型:LABEL:机器标识,IP:IP类型 + * "CreateTime" => (integer) 创建时间 + * "UpdateTime" => (integer) 修改时间 + * ] + * ] + * "Id" => (integer) Id + * "Name" => (string) 日志采集配置名称 + * "LogType" => (string) 日志解析类型,决定了如何结构化日志。可选值: json:json 格式,delimiter:分隔符,full_regex:完全正则,multi_line_full_regex:多行完全正则,multi_line_delimiter: 多行分隔符正则,minimal_list:单行全文日志,multi_line:多行全文日志 + * "CollectPolicy" => (string) 采集策略。可选值: full (全量采集存量日志), increment (从当前时间点增量采集)。默认为 full。 + * "Encode" => (string) 日志原文的编码格式。可选值: utf-8, gbk。默认为 utf-8。 + * "Keys" => (string) 索引字段key,是一个数组 + * "Delimiter" => (string) 当 LogType 为delimiter 或multi_line_delimiter时可选,支持多字符分隔,需要转换成Base64 + * "MatchRule" => (string) 行首正则表达式。当 logType 为多行模式 (如 multi_line 或 multi_line_full_regex或multi_line_delimiter) 时,用于标识一条新日志的开始。需要转换成Base64 + * "ExtractRule" => (string) 日志提取正则表达式。当 logType 为正则模式 (如 full_regex,multi_line_full_regex) 时,用于从日志中提取字段。需要转换成Base64 + * "UnMatchKey" => (string) 如果 UnMatchUpload 为 true,无法解析的日志原文将被存放在此字段指定的 Key 下。默认为 LogParseFailure。 + * "FilePaths" => (array) FilePaths[ + * [ + * "Path" => (string) 路径 + * "File" => (string) 文件名 + * ] + * ] + * "CreateTime" => (integer) CreateTime + * "UpdateTime" => (integer) updateTime + * ] + * ] + * + * @return ListULogServiceCollectConfResponse + * @throws UCloudException + */ + public function listULogServiceCollectConf(ListULogServiceCollectConfRequest $request = null) + { + $resp = $this->invoke($request); + return new ListULogServiceCollectConfResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * ListULogServiceLogSet - 查询日志集列表 + * + * See also: https://docs.ucloud.cn/api/ulogservice-api/list_u_log_service_log_set + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * ] + * + * Outputs: + * + * $outputs = [ + * "Data" => (array) 返回日志主题数据,是一个数组[ + * [ + * "TopicCount" => (integer) 日志集下主题数量 + * "LogSetRemark" => (string) 日志集备注 + * "LogSetName" => (string) 日志集名称 + * "CreateTime" => (integer) 创建时间 + * "UpdateTime" => (integer) 更新时间 + * ] + * ] + * ] + * + * @return ListULogServiceLogSetResponse + * @throws UCloudException + */ + public function listULogServiceLogSet(ListULogServiceLogSetRequest $request = null) + { + $resp = $this->invoke($request); + return new ListULogServiceLogSetResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * ListULogServiceMachineGroup - 查看机器组列表 + * + * See also: https://docs.ucloud.cn/api/ulogservice-api/list_u_log_service_machine_group + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * ] + * + * Outputs: + * + * $outputs = [ + * "MachineGroups" => (array) 机器组信息列表[ + * [ + * "Id" => (string) 机器组ID + * "Name" => (string) 机器组名称 + * "Type" => (string) 采集器识别类型:LABEL:机器标识,IP:IP类型 + * "CreateTime" => (integer) 创建时间 + * "UpdateTime" => (integer) 修改时间 + * ] + * ] + * ] + * + * @return ListULogServiceMachineGroupResponse + * @throws UCloudException + */ + public function listULogServiceMachineGroup(ListULogServiceMachineGroupRequest $request = null) + { + $resp = $this->invoke($request); + return new ListULogServiceMachineGroupResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * ListULogServiceTopic - 获取ULogService主题 + * + * See also: https://docs.ucloud.cn/api/ulogservice-api/list_u_log_service_topic + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "LogSetId" => (string) 日志集ID + * "Offset" => (integer) 分页起始条目数, 默认为0 + * "Limit" => (integer) 分页限制数,默认为30 + * ] + * + * Outputs: + * + * $outputs = [ + * "Data" => (array) 主题列表[ + * [ + * "TopicName" => (string) 主题名称 + * "TopicId" => (string) 主题ID + * "TopicShardNum" => (integer) 分区数量,固定是2 + * "ReserveAge" => (integer) 保存时间 1~730 天 + * "IsReserved" => (integer) 是否保留:0 - NORMAL, 1 - RESERVED + * "TopicDesc" => (string) 主题描述 + * ] + * ] + * "TotalCount" => (integer) 主题总数 + * ] + * + * @return ListULogServiceTopicResponse + * @throws UCloudException + */ + public function listULogServiceTopic(ListULogServiceTopicRequest $request = null) + { + $resp = $this->invoke($request); + return new ListULogServiceTopicResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * QueryULogServiceLog - 查询ULogService日志 + * + * See also: https://docs.ucloud.cn/api/ulogservice-api/query_u_log_service_log + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "QueryCriteria" => (string) 查询条件,使用Base64编码。目前只支持查询索引,多个索引查询使用AND。比如:index1:http AND index2:http2 + * "SortOrder" => (string) 日志时间排序;可选值ASC|DESC + * "TopicId" => (string) 主题ID + * "StartTime" => (integer) 起始日志时间,秒级时间戳 + * "EndTime" => (integer) 终止日志时间,秒级时间戳 + * "Size" => (integer) 一次返回条数,默认20。仅当检索分析语句不包含SQL时有效。SQL结果条数方式可以在SQL里使用limit语法。 + * "ScrollId" => (string) Deprecated. 滚动加载参数ScrollId + * "LastId" => (string) 滚动加载参数,上一页最后一条数据的ID + * "LastTimestamp" => (string) 滚动加载参数,上一页最后一条数据的timestamp + * ] + * + * Outputs: + * + * $outputs = [ + * "Data" => (object) 请求结果[ + * "TopicId" => (string) 所属日志ID + * "TopicName" => (string) 所属日志名称 + * "IsOver" => (boolean) 检索结果是否到底 + * "Contents" => (object) 日志内容[ + * "LogId" => (string) 日志标识ID + * "HostName" => (string) 日志来源主机 + * "FileName" => (string) 日志文件路径 + * "Timestamp" => (integer) 日志时间 + * "LogJson" => (string) JSON格式的日志内容 + * ] + * "ScrollId" => (string) 滚动检索Id Deprecated + * "LastId" => (string) 滚动检索,当前页最后一条数据ID + * "LastTimestamp" => (string) 滚动检索,当前页最后一条数据Timestamp + * "Columns" => (array) 当使用SQL语句查询时,数据通过AnalysisRecords字段返回,Columns字段返回的是字段名和类型[ + * [ + * "Name" => (string) 字段名 + * "Type" => (string) 字段类型 + * ] + * ] + * "AnalysisRecords" => (array) 当使用SQL语句查询时,数据通过该字段返回 + * ] + * ] + * + * @return QueryULogServiceLogResponse + * @throws UCloudException + */ + public function queryULogServiceLog(QueryULogServiceLogRequest $request = null) + { + $resp = $this->invoke($request); + return new QueryULogServiceLogResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * UpdateULogServiceCollectConf - 修改日志主题采集配置 + * + * See also: https://docs.ucloud.cn/api/ulogservice-api/update_u_log_service_collect_conf + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "TopicId" => (string) 日志主题ID + * "CollectConfId" => (integer) 日志主题采集配置ID + * "LogType" => (string) 日志解析类型,决定了如何结构化日志。可选值: json:json 格式,delimiter:分隔符,full_regex:完全正则,multi_line_full_regex:多行完全正则,multi_line_delimiter: 多行分隔符正则,minimal_list:单行全文日志,multi_line:多行全文日志 + * "CollectPolicy" => (string) 采集策略。可选值: full (全量采集存量日志), increment (从当前时间点增量采集)。默认为 full。 + * "Encode" => (string) 日志原文的编码格式。可选值: utf-8, gbk。默认为 utf-8。 + * "Keys" => (array) 索引字段key,是一个数组 + * "Delimiter" => (string) 当 LogType 为delimiter 或multi_line_delimiter时可选,支持多字符分隔,需要转换成Base64 + * "MatchRule" => (string) 行首正则表达式。当 logType 为多行模式 (如 multi_line 或 multi_line_full_regex或multi_line_delimiter) 时,用于标识一条新日志的开始。需要转换成Base64 + * "ExtractRule" => (string) 日志提取正则表达式。当 logType 为正则模式 (如 full_regex,multi_line_full_regex) 时,用于从日志中提取字段。需要转换成Base64 + * "UnMatchKey" => (string) 如果 UnMatchUpload 为 true,无法解析的日志原文将被存放在此字段指定的 Key 下。默认为 LogParseFailure。 + * "FilePaths" => (array) [ + * [ + * "Path" => (string) 定义采集路径,数组类型 + * "File" => (string) 定义采集路径的文件名,数组类型 + * ] + * ] + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return UpdateULogServiceCollectConfResponse + * @throws UCloudException + */ + public function updateULogServiceCollectConf(UpdateULogServiceCollectConfRequest $request = null) + { + $resp = $this->invoke($request); + return new UpdateULogServiceCollectConfResponse($resp->toArray(), $resp->getRequestId()); + } + + /** + * UpdateULogServiceMachineGroup - 更新日志机器组 + * + * See also: https://docs.ucloud.cn/api/ulogservice-api/update_u_log_service_machine_group + * + * Arguments: + * + * $args = [ + * "Region" => (string) 地域。 参见 [地域和可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "Zone" => (string) 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist) + * "ProjectId" => (string) 项目ID。不填写为默认项目,子帐号必须填写。 请参考[GetProjectList接口](https://docs.ucloud.cn/api/summary/get_project_list) + * "Name" => (string) 机器组名称; 格式校验:^[\w]{1,255}$ + * "Type" => (string) 采集客户端识别模式;可选值 LABEL | IP; + * "Id" => (integer) 机器组ID + * "Labels" => (string) 采集客户端识别标识,数组类型 + * "Ips" => (string) 机器IP,如果Type是IP,那么Ips可以填写IP,是一个数组 + * ] + * + * Outputs: + * + * $outputs = [ + * ] + * + * @return UpdateULogServiceMachineGroupResponse + * @throws UCloudException + */ + public function updateULogServiceMachineGroup(UpdateULogServiceMachineGroupRequest $request = null) + { + $resp = $this->invoke($request); + return new UpdateULogServiceMachineGroupResponse($resp->toArray(), $resp->getRequestId()); + } +}