tencentcloud-sdk-nodejs-intl-en
Version:
1,767 lines (1,491 loc) • 415 kB
JavaScript
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
const AbstractModel = require("../../common/abstract_model");
/**
* UploadLog response structure.
* @class
*/
class UploadLogResponse extends AbstractModel {
constructor(){
super();
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* CreateAlarm response structure.
* @class
*/
class CreateAlarmResponse extends AbstractModel {
constructor(){
super();
/**
* Alarm policy ID.
* @type {string || null}
*/
this.AlarmId = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.AlarmId = 'AlarmId' in params ? params.AlarmId : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* Alarm policy description
* @class
*/
class AlarmInfo extends AbstractModel {
constructor(){
super();
/**
* Alarm policy name
* @type {string || null}
*/
this.Name = null;
/**
* Monitoring object list
* @type {Array.<AlarmTargetInfo> || null}
*/
this.AlarmTargets = null;
/**
* Monitoring task running time point
* @type {MonitorTime || null}
*/
this.MonitorTime = null;
/**
* Single trigger condition. Mutually exclusive with the MultiConditions parameter.
* @type {string || null}
*/
this.Condition = null;
/**
* Alarm persistence cycle. An alarm will be triggered only after the corresponding trigger condition is met for the number of times specified by `TriggerCount`. Value range: 1–10.
* @type {number || null}
*/
this.TriggerCount = null;
/**
* Repeated alarm interval in minutes. Value range: 0–1440.
* @type {number || null}
*/
this.AlarmPeriod = null;
/**
* List of associated alarm notification templates
* @type {Array.<string> || null}
*/
this.AlarmNoticeIds = null;
/**
* Enablement status
* @type {boolean || null}
*/
this.Status = null;
/**
* Alarm policy ID
* @type {string || null}
*/
this.AlarmId = null;
/**
* Creation time
* @type {string || null}
*/
this.CreateTime = null;
/**
* Last update time
* @type {string || null}
*/
this.UpdateTime = null;
/**
* Custom notification template
Note: this field may return `null`, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.MessageTemplate = null;
/**
* Custom callback template
Note: this field may return `null`, indicating that no valid values can be obtained.
* @type {CallBackInfo || null}
*/
this.CallBack = null;
/**
* Multi-Dimensional analysis settings
Note: this field may return `null`, indicating that no valid values can be obtained.
* @type {Array.<AnalysisDimensional> || null}
*/
this.Analysis = null;
/**
* Group trigger status. 1: Enabled, 0: Disabled (default)
Note: This field may return null, indicating that no valid values can be obtained.
* @type {boolean || null}
*/
this.GroupTriggerStatus = null;
/**
* Group Trigger ConditionsNote: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<string> || null}
*/
this.GroupTriggerCondition = null;
/**
* Type of the monitored object. 0: common monitoring objects for execution statements; 1: separately selected monitoring objects for each execution statement.Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.MonitorObjectType = null;
/**
* Alarm severity. 0: warning (Warn); 1: Reminder (Info); 2: urgent (Critical).Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.AlarmLevel = null;
/**
* Multiple trigger conditions. Exclusive with Condition.Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<MultiCondition> || null}
*/
this.MultiConditions = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Name = 'Name' in params ? params.Name : null;
if (params.AlarmTargets) {
this.AlarmTargets = new Array();
for (let z in params.AlarmTargets) {
let obj = new AlarmTargetInfo();
obj.deserialize(params.AlarmTargets[z]);
this.AlarmTargets.push(obj);
}
}
if (params.MonitorTime) {
let obj = new MonitorTime();
obj.deserialize(params.MonitorTime)
this.MonitorTime = obj;
}
this.Condition = 'Condition' in params ? params.Condition : null;
this.TriggerCount = 'TriggerCount' in params ? params.TriggerCount : null;
this.AlarmPeriod = 'AlarmPeriod' in params ? params.AlarmPeriod : null;
this.AlarmNoticeIds = 'AlarmNoticeIds' in params ? params.AlarmNoticeIds : null;
this.Status = 'Status' in params ? params.Status : null;
this.AlarmId = 'AlarmId' in params ? params.AlarmId : null;
this.CreateTime = 'CreateTime' in params ? params.CreateTime : null;
this.UpdateTime = 'UpdateTime' in params ? params.UpdateTime : null;
this.MessageTemplate = 'MessageTemplate' in params ? params.MessageTemplate : null;
if (params.CallBack) {
let obj = new CallBackInfo();
obj.deserialize(params.CallBack)
this.CallBack = obj;
}
if (params.Analysis) {
this.Analysis = new Array();
for (let z in params.Analysis) {
let obj = new AnalysisDimensional();
obj.deserialize(params.Analysis[z]);
this.Analysis.push(obj);
}
}
this.GroupTriggerStatus = 'GroupTriggerStatus' in params ? params.GroupTriggerStatus : null;
this.GroupTriggerCondition = 'GroupTriggerCondition' in params ? params.GroupTriggerCondition : null;
this.MonitorObjectType = 'MonitorObjectType' in params ? params.MonitorObjectType : null;
this.AlarmLevel = 'AlarmLevel' in params ? params.AlarmLevel : null;
if (params.MultiConditions) {
this.MultiConditions = new Array();
for (let z in params.MultiConditions) {
let obj = new MultiCondition();
obj.deserialize(params.MultiConditions[z]);
this.MultiConditions.push(obj);
}
}
}
}
/**
* Log result information
* @class
*/
class LogInfo extends AbstractModel {
constructor(){
super();
/**
* Log time in milliseconds
* @type {number || null}
*/
this.Time = null;
/**
* Log topic ID
* @type {string || null}
*/
this.TopicId = null;
/**
* Log topic name
* @type {string || null}
*/
this.TopicName = null;
/**
* Log source IP
* @type {string || null}
*/
this.Source = null;
/**
* Log filename
* @type {string || null}
*/
this.FileName = null;
/**
* ID of the request package for log reporting
* @type {string || null}
*/
this.PkgId = null;
/**
* Log ID in request package
* @type {string || null}
*/
this.PkgLogId = null;
/**
* Serialized JSON string of log content
Note: this field may return `null`, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.LogJson = null;
/**
* Source host name of logs
Note: This field may return `null`, indicating that no valid value was found.
* @type {string || null}
*/
this.HostName = null;
/**
* Raw log (this parameter has a value only when an exception occurred while creating indexes for logs).
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.RawLog = null;
/**
* The cause of index creation exception (this parameter has a value only when an exception occurred while creating indexes for logs).
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.IndexStatus = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Time = 'Time' in params ? params.Time : null;
this.TopicId = 'TopicId' in params ? params.TopicId : null;
this.TopicName = 'TopicName' in params ? params.TopicName : null;
this.Source = 'Source' in params ? params.Source : null;
this.FileName = 'FileName' in params ? params.FileName : null;
this.PkgId = 'PkgId' in params ? params.PkgId : null;
this.PkgLogId = 'PkgLogId' in params ? params.PkgLogId : null;
this.LogJson = 'LogJson' in params ? params.LogJson : null;
this.HostName = 'HostName' in params ? params.HostName : null;
this.RawLog = 'RawLog' in params ? params.RawLog : null;
this.IndexStatus = 'IndexStatus' in params ? params.IndexStatus : null;
}
}
/**
* DeleteAlarmNotice response structure.
* @class
*/
class DeleteAlarmNoticeResponse extends AbstractModel {
constructor(){
super();
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeLogHistogram request structure.
* @class
*/
class DescribeLogHistogramRequest extends AbstractModel {
constructor(){
super();
/**
* Start time of the log to be queried, which is a Unix timestamp in milliseconds
* @type {number || null}
*/
this.From = null;
/**
* End time of the log to be queried, which is a Unix timestamp in milliseconds
* @type {number || null}
*/
this.To = null;
/**
* Query statement
* @type {string || null}
*/
this.Query = null;
/**
* ID of the log topic to be queried
* @type {string || null}
*/
this.TopicId = null;
/**
* Interval in milliseconds. Condition: (To-From) / Interval <= 200
* @type {number || null}
*/
this.Interval = null;
/**
* Search syntax. Valid values:
`0` (default): Lucene; `1`: CQL
For more information, see <a href="https://intl.cloud.tencent.com/document/product/614/47044?from_cn_redirect=1#RetrievesConditionalRules" target="_blank">Search Syntax</a>.
* @type {number || null}
*/
this.SyntaxRule = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.From = 'From' in params ? params.From : null;
this.To = 'To' in params ? params.To : null;
this.Query = 'Query' in params ? params.Query : null;
this.TopicId = 'TopicId' in params ? params.TopicId : null;
this.Interval = 'Interval' in params ? params.Interval : null;
this.SyntaxRule = 'SyntaxRule' in params ? params.SyntaxRule : null;
}
}
/**
* DeleteAlarmShield request structure.
* @class
*/
class DeleteAlarmShieldRequest extends AbstractModel {
constructor(){
super();
/**
* Blocking rule ID.
* @type {string || null}
*/
this.TaskId = null;
/**
* Notification channel group ID.
* @type {string || null}
*/
this.AlarmNoticeId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.TaskId = 'TaskId' in params ? params.TaskId : null;
this.AlarmNoticeId = 'AlarmNoticeId' in params ? params.AlarmNoticeId : null;
}
}
/**
* DescribeLogContext request structure.
* @class
*/
class DescribeLogContextRequest extends AbstractModel {
constructor(){
super();
/**
* Log topic ID to be queried
* @type {string || null}
*/
this.TopicId = null;
/**
* Log time in the format of YYYY-mm-dd HH:MM:SS.FFF
* @type {string || null}
*/
this.BTime = null;
/**
* Log package sequence number. PkgId in the Results structure of the returned information of SearchLog API.
* @type {string || null}
*/
this.PkgId = null;
/**
* Sequence number of a log within the log package.
The PkgLogId in the Results structure of the SearchLog API returned information.
* @type {number || null}
*/
this.PkgLogId = null;
/**
* The previous ${PrevLogs} logs. Default value: 10.
* @type {number || null}
*/
this.PrevLogs = null;
/**
* The next ${NextLogs} logs. Default value: 10.
* @type {number || null}
*/
this.NextLogs = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.TopicId = 'TopicId' in params ? params.TopicId : null;
this.BTime = 'BTime' in params ? params.BTime : null;
this.PkgId = 'PkgId' in params ? params.PkgId : null;
this.PkgLogId = 'PkgLogId' in params ? params.PkgLogId : null;
this.PrevLogs = 'PrevLogs' in params ? params.PrevLogs : null;
this.NextLogs = 'NextLogs' in params ? params.NextLogs : null;
}
}
/**
* DeleteShipper request structure.
* @class
*/
class DeleteShipperRequest extends AbstractModel {
constructor(){
super();
/**
* Shipping rule ID
* @type {string || null}
*/
this.ShipperId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ShipperId = 'ShipperId' in params ? params.ShipperId : null;
}
}
/**
* DeleteScheduledSql request structure.
* @class
*/
class DeleteScheduledSqlRequest extends AbstractModel {
constructor(){
super();
/**
* Task ID
* @type {string || null}
*/
this.TaskId = null;
/**
* Source Log Topic ID
* @type {string || null}
*/
this.SrcTopicId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.TaskId = 'TaskId' in params ? params.TaskId : null;
this.SrcTopicId = 'SrcTopicId' in params ? params.SrcTopicId : null;
}
}
/**
* Key-value index auto-configuration enables automatic addition of fields from logs into the key-value index, including subsequently added fields in the logs.
* @class
*/
class DynamicIndex extends AbstractModel {
constructor(){
super();
/**
* Key-Value Index Auto-Config Switch
Note: This field may return null, indicating that no valid values can be obtained.
* @type {boolean || null}
*/
this.Status = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Status = 'Status' in params ? params.Status : null;
}
}
/**
* DeleteLogset response structure.
* @class
*/
class DeleteLogsetResponse extends AbstractModel {
constructor(){
super();
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* `Parquet` content description
* @class
*/
class ParquetKeyInfo extends AbstractModel {
constructor(){
super();
/**
* Key name
* @type {string || null}
*/
this.KeyName = null;
/**
* Supported data types: string, boolean, int32, int64, float, and double
* @type {string || null}
*/
this.KeyType = null;
/**
* Assignment information returned upon resolution failure
Note: This field may return `null`, indicating that no valid value can be obtained.
* @type {string || null}
*/
this.KeyNonExistingField = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.KeyName = 'KeyName' in params ? params.KeyName : null;
this.KeyType = 'KeyType' in params ? params.KeyType : null;
this.KeyNonExistingField = 'KeyNonExistingField' in params ? params.KeyNonExistingField : null;
}
}
/**
* DescribeCosRecharges response structure.
* @class
*/
class DescribeCosRechargesResponse extends AbstractModel {
constructor(){
super();
/**
* See the description of the `CosRechargeInfo` structure.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<CosRechargeInfo> || null}
*/
this.Data = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Data) {
this.Data = new Array();
for (let z in params.Data) {
let obj = new CosRechargeInfo();
obj.deserialize(params.Data[z]);
this.Data.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeShipperTasks response structure.
* @class
*/
class DescribeShipperTasksResponse extends AbstractModel {
constructor(){
super();
/**
* Shipping task list
Note: this field may return `null`, indicating that no valid values can be obtained.
* @type {Array.<ShipperTaskInfo> || null}
*/
this.Tasks = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Tasks) {
this.Tasks = new Array();
for (let z in params.Tasks) {
let obj = new ShipperTaskInfo();
obj.deserialize(params.Tasks[z]);
this.Tasks.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* CheckFunction request structure.
* @class
*/
class CheckFunctionRequest extends AbstractModel {
constructor(){
super();
/**
* Processing statement entered by the user
* @type {string || null}
*/
this.EtlContent = null;
/**
* Target topic ID and alias of the data processing task
* @type {Array.<DataTransformResouceInfo> || null}
*/
this.DstResources = null;
/**
* Type of the target topic for data processing. Valid values: 1 (fixed Topic) and 2 (dynamic creation)
* @type {number || null}
*/
this.FuncType = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.EtlContent = 'EtlContent' in params ? params.EtlContent : null;
if (params.DstResources) {
this.DstResources = new Array();
for (let z in params.DstResources) {
let obj = new DataTransformResouceInfo();
obj.deserialize(params.DstResources[z]);
this.DstResources.push(obj);
}
}
this.FuncType = 'FuncType' in params ? params.FuncType : null;
}
}
/**
* Filter
* @class
*/
class Filter extends AbstractModel {
constructor(){
super();
/**
* Field to be filtered
* @type {string || null}
*/
this.Key = null;
/**
* Value to be filtered
* @type {Array.<string> || null}
*/
this.Values = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Key = 'Key' in params ? params.Key : null;
this.Values = 'Values' in params ? params.Values : null;
}
}
/**
* DescribeAlarmShields response structure.
* @class
*/
class DescribeAlarmShieldsResponse extends AbstractModel {
constructor(){
super();
/**
* The total number of rules that meet the criteria
* @type {number || null}
*/
this.TotalCount = null;
/**
* Details of the alarm blocking rules
* @type {Array.<AlarmShieldInfo> || null}
*/
this.AlarmShields = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
if (params.AlarmShields) {
this.AlarmShields = new Array();
for (let z in params.AlarmShields) {
let obj = new AlarmShieldInfo();
obj.deserialize(params.AlarmShields[z]);
this.AlarmShields.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* SearchCosRechargeInfo request structure.
* @class
*/
class SearchCosRechargeInfoRequest extends AbstractModel {
constructor(){
super();
/**
* Log topic ID
* @type {string || null}
*/
this.TopicId = null;
/**
* Logset ID
* @type {string || null}
*/
this.LogsetId = null;
/**
* Delivery Task Name
* @type {string || null}
*/
this.Name = null;
/**
* COS bucket, see the supported [bucket naming conventions](https://intl.cloud.tencent.com/document/product/436/13312?from_cn_redirect=1).
* @type {string || null}
*/
this.Bucket = null;
/**
* The region where the COS bucket is located, see the supported [region list](https://intl.cloud.tencent.com/document/product/436/6224?from_cn_redirect=1).
* @type {string || null}
*/
this.BucketRegion = null;
/**
* The prefix of the folder where COS files are located
* @type {string || null}
*/
this.Prefix = null;
/**
* Compression mode: "", "gzip", "lzop", and "snappy". The default mode is "".
* @type {string || null}
*/
this.Compress = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.TopicId = 'TopicId' in params ? params.TopicId : null;
this.LogsetId = 'LogsetId' in params ? params.LogsetId : null;
this.Name = 'Name' in params ? params.Name : null;
this.Bucket = 'Bucket' in params ? params.Bucket : null;
this.BucketRegion = 'BucketRegion' in params ? params.BucketRegion : null;
this.Prefix = 'Prefix' in params ? params.Prefix : null;
this.Compress = 'Compress' in params ? params.Compress : null;
}
}
/**
* Kafka data import configuration
* @class
*/
class KafkaRechargeInfo extends AbstractModel {
constructor(){
super();
/**
* ID of the Kafka data subscription configuration.Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Id = null;
/**
* Log topic ID
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.TopicId = null;
/**
* Kafka data import task name
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Name = null;
/**
* Kafka type. Valid values: 0 (Tencent Cloud CKafka) and 1 (customer's Kafka).
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.KafkaType = null;
/**
* CKafka instance ID, which is required when `KafkaType` is set to `0`
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.KafkaInstance = null;
/**
* Service address
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ServerAddr = null;
/**
* Whether the service address uses an encrypted connection
Note: This field may return null, indicating that no valid values can be obtained.
* @type {boolean || null}
*/
this.IsEncryptionAddr = null;
/**
* Encryption access protocol, which is required when `IsEncryptionAddr` is set to `true`
* @type {KafkaProtocolInfo || null}
*/
this.Protocol = null;
/**
* List of Kafka topics to import data from. Separate multiple topics with commas (,).
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.UserKafkaTopics = null;
/**
* Kafka consumer group name
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ConsumerGroupName = null;
/**
* Status, 1: running; 2: paused.Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.Status = null;
/**
* Import data position, -2: earliest (default), -1: latestNote: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.Offset = null;
/**
* Creation time
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.CreateTime = null;
/**
* Update time
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.UpdateTime = null;
/**
* Log import rule
Note: This field may return null, indicating that no valid values can be obtained.
* @type {LogRechargeRuleInfo || null}
*/
this.LogRechargeRule = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Id = 'Id' in params ? params.Id : null;
this.TopicId = 'TopicId' in params ? params.TopicId : null;
this.Name = 'Name' in params ? params.Name : null;
this.KafkaType = 'KafkaType' in params ? params.KafkaType : null;
this.KafkaInstance = 'KafkaInstance' in params ? params.KafkaInstance : null;
this.ServerAddr = 'ServerAddr' in params ? params.ServerAddr : null;
this.IsEncryptionAddr = 'IsEncryptionAddr' in params ? params.IsEncryptionAddr : null;
if (params.Protocol) {
let obj = new KafkaProtocolInfo();
obj.deserialize(params.Protocol)
this.Protocol = obj;
}
this.UserKafkaTopics = 'UserKafkaTopics' in params ? params.UserKafkaTopics : null;
this.ConsumerGroupName = 'ConsumerGroupName' in params ? params.ConsumerGroupName : null;
this.Status = 'Status' in params ? params.Status : null;
this.Offset = 'Offset' in params ? params.Offset : null;
this.CreateTime = 'CreateTime' in params ? params.CreateTime : null;
this.UpdateTime = 'UpdateTime' in params ? params.UpdateTime : null;
if (params.LogRechargeRule) {
let obj = new LogRechargeRuleInfo();
obj.deserialize(params.LogRechargeRule)
this.LogRechargeRule = obj;
}
}
}
/**
* ModifyLogset request structure.
* @class
*/
class ModifyLogsetRequest extends AbstractModel {
constructor(){
super();
/**
* Logset ID
* @type {string || null}
*/
this.LogsetId = null;
/**
* Logset name
* @type {string || null}
*/
this.LogsetName = null;
/**
* Tag key-value pair bound to logset. Up to 10 tag key-value pairs are supported, and a resource can be bound to only one tag key at any time.
* @type {Array.<Tag> || null}
*/
this.Tags = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.LogsetId = 'LogsetId' in params ? params.LogsetId : null;
this.LogsetName = 'LogsetName' in params ? params.LogsetName : null;
if (params.Tags) {
this.Tags = new Array();
for (let z in params.Tags) {
let obj = new Tag();
obj.deserialize(params.Tags[z]);
this.Tags.push(obj);
}
}
}
}
/**
* UploadLog request structure.
* @class
*/
class UploadLogRequest extends AbstractModel {
constructor(){
super();
/**
* Topic ID
* @type {string || null}
*/
this.TopicId = null;
/**
* Topic partition where data will be written into by `HashKey`
* @type {string || null}
*/
this.HashKey = null;
/**
* Compression type
* @type {string || null}
*/
this.CompressType = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.TopicId = 'TopicId' in params ? params.TopicId : null;
this.HashKey = 'HashKey' in params ? params.HashKey : null;
this.CompressType = 'CompressType' in params ? params.CompressType : null;
}
}
/**
* CreateLogset request structure.
* @class
*/
class CreateLogsetRequest extends AbstractModel {
constructor(){
super();
/**
* Logset name, which must be unique
* @type {string || null}
*/
this.LogsetName = null;
/**
* Tag description list. Up to 10 tag key-value pairs are supported and must be unique.
* @type {Array.<Tag> || null}
*/
this.Tags = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.LogsetName = 'LogsetName' in params ? params.LogsetName : null;
if (params.Tags) {
this.Tags = new Array();
for (let z in params.Tags) {
let obj = new Tag();
obj.deserialize(params.Tags[z]);
this.Tags.push(obj);
}
}
}
}
/**
* DescribeShippers request structure.
* @class
*/
class DescribeShippersRequest extends AbstractModel {
constructor(){
super();
/**
* - shipperName: Filter by **shipping rule name**. Type: String. Required: No.
- shipperId: Filter by **shipping rule ID**. Type: String. Required: No.
- topicId: Filter by **log topic**. Type: String. Required: No.
Each request can have up to 10 `Filters` and 100 `Filter.Values`.
* @type {Array.<Filter> || null}
*/
this.Filters = null;
/**
* Page offset. Default value: 0
* @type {number || null}
*/
this.Offset = null;
/**
* Maximum number of entries per page. Default value: 20. Maximum value: 100
* @type {number || null}
*/
this.Limit = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Filters) {
this.Filters = new Array();
for (let z in params.Filters) {
let obj = new Filter();
obj.deserialize(params.Filters[z]);
this.Filters.push(obj);
}
}
this.Offset = 'Offset' in params ? params.Offset : null;
this.Limit = 'Limit' in params ? params.Limit : null;
}
}
/**
* CreateScheduledSql response structure.
* @class
*/
class CreateScheduledSqlResponse extends AbstractModel {
constructor(){
super();
/**
* Task ID
* @type {string || null}
*/
this.TaskId = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.TaskId = 'TaskId' in params ? params.TaskId : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* QueryMetric request structure.
* @class
*/
class QueryMetricRequest extends AbstractModel {
constructor(){
super();
/**
* Query statement, using PromQL syntax
* @type {string || null}
*/
this.Query = null;
/**
* Metric Topic ID
* @type {string || null}
*/
this.TopicId = null;
/**
* Query time, Unix Timestamp in seconds
* @type {number || null}
*/
this.Time = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Query = 'Query' in params ? params.Query : null;
this.TopicId = 'TopicId' in params ? params.TopicId : null;
this.Time = 'Time' in params ? params.Time : null;
}
}
/**
* Key-Value pair in log
* @class
*/
class LogItem extends AbstractModel {
constructor(){
super();
/**
* Log key
* @type {string || null}
*/
this.Key = null;
/**
* Log value
* @type {string || null}
*/
this.Value = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Key = 'Key' in params ? params.Key : null;
this.Value = 'Value' in params ? params.Value : null;
}
}
/**
* SearchLog response structure.
* @class
*/
class SearchLogResponse extends AbstractModel {
constructor(){
super();
/**
* Pass through the Context value returned by this API, which can access more logs later, with an expiration time of 1 hour.Note:* Applicable only for single log topic searches. When searching multiple log topics, please use the Context in Topics.
* @type {string || null}
*/
this.Context = null;
/**
* Whether to return all raw log query results. If not, you can use `Context` to continue to get logs.
Note: This parameter is valid only when the query statement (`Query`) does not contain an SQL statement.
* @type {boolean || null}
*/
this.ListOver = null;
/**
* Whether the returned data is the analysis (SQL) result
* @type {boolean || null}
*/
this.Analysis = null;
/**
* Raw logs that meet the search conditions
Note: This field may return `null`, indicating that no valid value was found.
* @type {Array.<LogInfo> || null}
*/
this.Results = null;
/**
* Column names of log analysis
This parameter is valid only when `UseNewAnalysis` is `false`.
Note: This field may return `null`, indicating that no valid value was found.
* @type {Array.<string> || null}
*/
this.ColNames = null;
/**
* Log analysis result
This parameter is valid only when `UseNewAnalysis` is `false`.
Note: This field may return `null`, indicating that no valid value was found.
* @type {Array.<LogItems> || null}
*/
this.AnalysisResults = null;
/**
* Log analysis result
This parameter is valid only when `UseNewAnalysis` is `true`.
Note: This field may return `null`, indicating that no valid value was found.
* @type {Array.<string> || null}
*/
this.AnalysisRecords = null;
/**
* Column attributes of log analysis
This parameter is valid only when `UseNewAnalysis` is `true`.
Note: This field may return `null`, indicating that no valid value was found.
* @type {Array.<Column> || null}
*/
this.Columns = null;
/**
* Sample rate used in this statistical analysis
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.SamplingRate = null;
/**
* Refers to the basic information of each log topic when multiple log topics are used for search, such as error messages.Note: This field may return null, indicating that no valid values can be obtained.
* @type {SearchLogTopics || null}
*/
this.Topics = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Context = 'Context' in params ? params.Context : null;
this.ListOver = 'ListOver' in params ? params.ListOver : null;
this.Analysis = 'Analysis' in params ? params.Analysis : null;
if (params.Results) {
this.Results = new Array();
for (let z in params.Results) {
let obj = new LogInfo();
obj.deserialize(params.Results[z]);
this.Results.push(obj);
}
}
this.ColNames = 'ColNames' in params ? params.ColNames : null;
if (params.AnalysisResults) {
this.AnalysisResults = new Array();
for (let z in params.AnalysisResults) {
let obj = new LogItems();
obj.deserialize(params.AnalysisResults[z]);
this.AnalysisResults.push(obj);
}
}
this.AnalysisRecords = 'AnalysisRecords' in params ? params.AnalysisRecords : null;
if (params.Columns) {
this.Columns = new Array();
for (let z in params.Columns) {
let obj = new Column();
obj.deserialize(params.Columns[z]);
this.Columns.push(obj);
}
}
this.SamplingRate = 'SamplingRate' in params ? params.SamplingRate : null;
if (params.Topics) {
let obj = new SearchLogTopics();
obj.deserialize(params.Topics)
this.Topics = obj;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DeleteTopic request structure.
* @class
*/
class DeleteTopicRequest extends AbstractModel {
constructor(){
super();
/**
* Log topic ID
* @type {string || null}
*/
this.TopicId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.TopicId = 'TopicId' in params ? params.TopicId : null;
}
}
/**
* DescribePartitions request structure.
* @class
*/
class DescribePartitionsRequest extends AbstractModel {
constructor(){
super();
/**
* Log topic ID
* @type {string || null}
*/
this.TopicId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.TopicId = 'TopicId' in params ? params.TopicId : null;
}
}
/**
* Collection rule configuration information
* @class
*/
class ConfigInfo extends AbstractModel {
constructor(){
super();
/**
* Collection rule configuration ID
* @type {string || null}
*/
this.ConfigId = null;
/**
* Name of the collection rule configuration
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Name = null;
/**
* Log formatting method
Note: this field may return `null`, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.LogFormat = null;
/**
* Log collection path
Note: this field may return `null`, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Path = null;
/**
* Type of collected logs.- json_log: JSON File Log (For more information, see [Using JSON pattern to collect logs](https://intl.cloud.tencent.com/document/product/614/17419?from_cn_redirect=1));- delimiter_log: Delimiter - File Logs (For more information, see [Using delimiter pattern to collect logs](https://intl.cloud.tencent.com/document/product/614/17420?from_cn_redirect=1));- minimalist_log: Single-line Full-text File Log (For more information, see [Using single-line full-text pattern to collect logs](https://intl.cloud.tencent.com/document/product/614/17421?from_cn_redirect=1));- fullregex_log: Single line full regular expression - File log (For more information, see [Using single-line - complete regular expression pattern to collect logs](https://intl.cloud.tencent.com/document/product/614/52365?from_cn_redirect=1));- multiline_log: Multiline Full-text File Log (For more information, see [Using multi-line full-text pattern to collect logs](https://intl.cloud.tencent.com/document/product/614/17422?from_cn_redirect=1));- multiline_fullregex_log: Multi-line complete regular expression - File Logs (For more information, see [Using multi-line - complete regular expression pattern to collect logs](https://intl.cloud.tencent.com/document/product/614/52366?from_cn_redirect=1));- user_define_log: Combined parsing (Suitable for logs with multiple nested formats, see [Using combined parsing pattern to collect logs](https://intl.cloud.tencent.com/document/product/614/61310?from_cn_redirect=1));- service_syslog: syslog collection (For more information, see [Collect Syslog](https://intl.cloud.tencent.com/document/product/614/81454?from_cn_redirect=1));- windows_event_log represents: Windows event logs (see Collecting Windows Event Logs (https://intl.cloud.tencent.com/document/product/614/96678?from_cn_redirect=1) for details.).Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.LogType = null;
/**
* Extraction rule. If `ExtractRule` is set, `LogType` must be set
Note: this field may return `null`, indicating that no valid values can be obtained.
* @type {ExtractRuleInfo || null}
*/
this.ExtractRule = null;
/**
* Collection path blocklist
Note: this field may return `null`, indicating that no valid values can be obtained.
* @type {Array.<ExcludePathInfo> || null}
*/
this.ExcludePaths = null;
/**
* Log topic ID (TopicId) of collection configuration
* @type {string || null}
*/
this.Output = null;
/**
* Update time
Note: this field may return `null`, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.UpdateTime = null;
/**
* Creation time
* @type {string || null}
*/
this.CreateTime = null;
/**
* User-defined parsing strings, see Collecting Logs Using Combined Parsing Extraction Mode (https://intl.cloud.tencent.com/document/product/614/61310?from_cn_redirect=1) for details.Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.UserDefineRule = null;
/**
* Advanced collection configuration. A JSON string, Key/Value definition as follows:- ClsAgentFileTimeout (timeout property), value range: an integer greater than or equal to 0, where 0 means no timeout- ClsAgentMaxDepth (maximum directory depth), value range: an integer greater than or equal to 0- ClsAgentParseFailMerge (merge logs that failed parsing), value range: true or falseSample:`{\"ClsAgentFileTimeout\":0,\"ClsAgentMaxDepth\":10,\"ClsAgentParseFailMerge\":true}`
Default placeholder value in the console: `{"ClsAgentDefault":0}`Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.AdvancedConfig = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ConfigId = 'ConfigId' in params ? params.ConfigId : null;
this.Name = 'Name' in params ? params.Name : null;
this.LogFormat = 'LogFormat' in params ? params.LogFormat : null;
this.Path = 'Path' in params ? params.Path : null;
this.LogType = 'LogType' in params ?