@ucloud-sdks/ucloud-sdk-js 0.2.37 → 0.2.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2868,52 +2868,68 @@ export interface ListUK8SULSConfigResponse {
2868
2868
  */
2869
2869
  ExtractRule?: {
2870
2870
  /**
2871
- * 采集策略。可选值: full (全量采集存量日志), increment (从当前时间点增量采集)。默认为 full。
2871
+ * 采集策略。可选值:full(全量采集存量日志)、increment(从当前时间点增量采集)。默认为 full。
2872
2872
  */
2873
2873
  CollectPolicy?: string;
2874
2874
  /**
2875
- * 日志原文的编码格式。可选值: utf-8, gbk。默认为 utf-8。
2875
+ * 日志原文的编码格式。可选值:utf-8gbk。默认为 utf-8。
2876
2876
  */
2877
2877
  Encode?: string;
2878
2878
  /**
2879
- * 日志解析类型,决定了如何结构化日志。
2879
+ * 日志解析类型。可选值:json、delimiter、full_regex、multi_line_full_regex、multi_line_delimiter、minimal_list、multi_line。
2880
2880
  */
2881
2881
  LogType?: string;
2882
2882
  /**
2883
- * LogType 为delimiter_log 时可选,可选字段 ' ',' ','|',';',','
2883
+ * 分隔符。适用于 delimiter multi_line_delimiter,可选值:space、tab、|、;、,。
2884
2884
  */
2885
2885
  Delimiter?: string;
2886
2886
  /**
2887
- * 行首正则表达式。当 logType 为多行模式 (如 multiline_log 或 multiline_fullregex_log) 时,用于标识一条新日志的开始。
2887
+ * Base64 编码的分隔符。填写时优先于 Delimiter。
2888
+ */
2889
+ DelimiterBase64?: string;
2890
+ /**
2891
+ * 行首正则表达式。在 multi_line、multi_line_full_regex 或 multi_line_delimiter 模式下,BeginningRegex 和 BeginningRegexBase64 必须至少填写一个。
2888
2892
  */
2889
2893
  BeginningRegex?: string;
2890
2894
  /**
2891
- * 日志提取正则表达式。当 logType 为正则模式 (如 fullregex_log 或 multiline_fullregex_log) 时,用于从日志中提取字段。
2895
+ * Base64 编码的行首正则表达式。填写时优先于 BeginningRegex。
2896
+ */
2897
+ BeginningRegexBase64?: string;
2898
+ /**
2899
+ * 日志提取正则表达式。在 full_regex 或 multi_line_full_regex 模式下,LogRegex 和 LogRegexBase64 必须至少填写一个。
2892
2900
  */
2893
2901
  LogRegex?: string;
2894
2902
  /**
2895
- * 指定时间字段。
2903
+ * Base64 编码的日志提取正则表达式。填写时优先于 LogRegex。
2904
+ */
2905
+ LogRegexBase64?: string;
2906
+ /**
2907
+ * 包含日志时间的字段名。
2896
2908
  */
2897
2909
  TimeKey?: string;
2898
2910
  /**
2899
- * timeKey 对应的时间格式。如: %Y-%m-%d %H:%M:%S
2911
+ * TimeKey 对应的时间格式。在 json、full_regex 或 multi_line_full_regex 模式下,填写 TimeKey 时必须同时填写 TimeFormat。
2900
2912
  */
2901
2913
  TimeFormat?: string;
2902
2914
  /**
2903
- * 是否上传解析失败的日志。true 表示上传,false 表示丢弃。默认为 false。
2915
+ * 是否上传解析失败的日志。字符串 true 表示上传,false 表示丢弃。默认为 false。
2904
2916
  */
2905
2917
  UnMatchUpload?: string;
2906
2918
  /**
2907
- * 如果 unMatchUpload 为 true,无法解析的日志原文将被存放在此字段指定的 Key 下。默认为 LogParseFailure。
2919
+ * 存放无法解析的日志原文的 Key。UnMatchUpload 为 true 时必须填写。
2908
2920
  */
2909
2921
  UnMatchKey?: string;
2922
+ /**
2923
+ * 提取后的字段名列表。仅适用于 delimiter、full_regex、multi_line_full_regex 和 multi_line_delimiter。
2924
+ */
2925
+ Keys?: string[];
2910
2926
  };
2911
2927
  /**
2912
2928
  * 定义日志的输入来源(例如容器文件)。见 ULSInputDetail
2913
2929
  */
2914
2930
  InputDetail?: {
2915
2931
  /**
2916
- * 采集路径,数组。
2932
+ * 日志采集路径列表。仅适用于 container_file。
2917
2933
  */
2918
2934
  FilePaths?: {
2919
2935
  /**
@@ -2926,11 +2942,15 @@ export interface ListUK8SULSConfigResponse {
2926
2942
  File?: string;
2927
2943
  }[];
2928
2944
  /**
2929
- * 日志输入类型。当前主要支持 container_file,表示采集容器标准输出或文件。
2945
+ * 日志输入类型。可选值:container_file、container_stdout。
2930
2946
  */
2931
2947
  Type?: string;
2932
2948
  /**
2933
- * 定义哪些容器相关的元数据需要附加到日志中。
2949
+ * 容器标准输出流类型。仅适用于 container_stdout,可选值:all、stdout、stderr,默认为 all。
2950
+ */
2951
+ Stream?: string;
2952
+ /**
2953
+ * 定义需要附加到日志中的容器相关元数据。
2934
2954
  */
2935
2955
  InputMetadata?: {
2936
2956
  /**
@@ -205,7 +205,7 @@ export interface CreateAliasRequest {
205
205
  */
206
206
  AliasName: string;
207
207
  /**
208
- * 密钥 ID、ARN 或别名。
208
+ * 密钥 ID 或别名。
209
209
  */
210
210
  KeyId: string;
211
211
  /**
@@ -426,7 +426,7 @@ export interface DisableKeyResponse {
426
426
  */
427
427
  export interface DisableKeyRotationRequest {
428
428
  /**
429
- * 密钥 ID、ARN 或别名。
429
+ * 密钥 ID或别名。
430
430
  */
431
431
  KeyId: string;
432
432
  /**
@@ -484,7 +484,7 @@ export interface EnableKeyRotationResponse {
484
484
  */
485
485
  export interface EncryptRequest {
486
486
  /**
487
- * 密钥资源长 ID、ARN 或别名。
487
+ * 密钥资源长 ID 或别名。
488
488
  */
489
489
  KeyId: string;
490
490
  /**
@@ -632,7 +632,7 @@ export interface GenerateDataKeyPairWithoutPlaintextResponse {
632
632
  */
633
633
  export interface GenerateDataKeyWithoutPlaintextRequest {
634
634
  /**
635
- * 密钥资源长 ID、ARN 或别名。
635
+ * 密钥资源长 ID或别名。
636
636
  */
637
637
  KeyId: string;
638
638
  /**
@@ -718,7 +718,7 @@ export interface GenerateRandomResponse {
718
718
  */
719
719
  export interface GetKeyRotationStatusRequest {
720
720
  /**
721
- * 密钥资源长 ID、ARN 或别名。
721
+ * 密钥资源长 ID 或别名。
722
722
  */
723
723
  KeyId: string;
724
724
  /**
@@ -760,7 +760,7 @@ export interface GetKeyRotationStatusResponse {
760
760
  */
761
761
  export interface GetPublicKeyRequest {
762
762
  /**
763
- * 密钥 ID、ARN 或别名。
763
+ * 密钥 ID 或 别名。
764
764
  */
765
765
  KeyId: string;
766
766
  /**
@@ -972,7 +972,7 @@ export interface ListKeysResponse {
972
972
  */
973
973
  export interface RotateKeyOnDemandRequest {
974
974
  /**
975
- * 密钥 ID、ARN 或别名。
975
+ * 密钥 ID 或别名。
976
976
  */
977
977
  KeyId: string;
978
978
  /**
@@ -1016,7 +1016,7 @@ export interface ScheduleKeyDeletionResponse {
1016
1016
  */
1017
1017
  export interface SignRequest {
1018
1018
  /**
1019
- * 密钥资源长 ID、ARN 或别名。
1019
+ * 密钥资源长 ID 或别名。
1020
1020
  */
1021
1021
  KeyId: string;
1022
1022
  /**
@@ -1062,7 +1062,7 @@ export interface UpdateAliasRequest {
1062
1062
  */
1063
1063
  AliasName: string;
1064
1064
  /**
1065
- * 密钥 ID、ARN 或别名。
1065
+ * 密钥 ID 或别名。
1066
1066
  */
1067
1067
  KeyId: string;
1068
1068
  /**
@@ -1080,7 +1080,7 @@ export interface UpdateAliasResponse {
1080
1080
  */
1081
1081
  export interface UpdateKeyDescriptionRequest {
1082
1082
  /**
1083
- * 密钥资源长 ID、ARN 或别名。
1083
+ * 密钥资源长 ID或别名。
1084
1084
  */
1085
1085
  KeyId: string;
1086
1086
  /**
@@ -1110,7 +1110,7 @@ export interface UpdateKeyDescriptionResponse {
1110
1110
  */
1111
1111
  export interface VerifyRequest {
1112
1112
  /**
1113
- * 密钥 ID、ARN 或别名。
1113
+ * 密钥 ID或别名。
1114
1114
  */
1115
1115
  KeyId: string;
1116
1116
  /**
@@ -570,7 +570,7 @@ export interface CreateListenerRequest {
570
570
  */
571
571
  HealthCheckConfig?: {
572
572
  /**
573
- * 是否开启健康检查功能。暂时不支持关闭。默认值为:true
573
+ * 是否开启健康检查功能。默认值为:true
574
574
  */
575
575
  Enabled?: boolean;
576
576
  /**
@@ -578,11 +578,11 @@ export interface CreateListenerRequest {
578
578
  */
579
579
  Type?: string;
580
580
  /**
581
- * (应用型专用)HTTP检查域名
581
+ * (应用型专用)HTTP/GRPC检查域名
582
582
  */
583
583
  Domain?: string;
584
584
  /**
585
- * (应用型专用)HTTP检查路径
585
+ * (应用型专用)HTTP/GRPC检查路径
586
586
  */
587
587
  Path?: string;
588
588
  /**
@@ -590,9 +590,33 @@ export interface CreateListenerRequest {
590
590
  */
591
591
  Method?: string;
592
592
  /**
593
- * (应用型专用)GRPC检查响应码
593
+ * (应用型专用)HTTP时为2xx,3xx格式(逗号分隔),GRPC时为数字码(逗号分隔)
594
594
  */
595
595
  ResponseCode?: string;
596
+ /**
597
+ * (应用型专用)端口
598
+ */
599
+ Port?: number;
600
+ /**
601
+ * (应用型专用)检查协议
602
+ */
603
+ HTTPVersion?: string;
604
+ /**
605
+ * (应用型专用)超时时间,秒,必须小于Interval
606
+ */
607
+ TimeOut?: number;
608
+ /**
609
+ * (应用型专用)间隔时间,秒,必须大于TimeOut
610
+ */
611
+ Interval?: number;
612
+ /**
613
+ * (应用型专用)判定成功的连续次数
614
+ */
615
+ UpCounts?: number;
616
+ /**
617
+ * (应用型专用)判定失败的连续次数
618
+ */
619
+ DownCounts?: number;
596
620
  };
597
621
  /**
598
622
  * (应用型专用)是否开启数据压缩功能。目前只支持使用gzip对特定文件类型进行压缩。默认值为:false
@@ -610,6 +634,10 @@ export interface CreateListenerRequest {
610
634
  * (应用型专用)重定向端口。限定取值:[1-65535],默认值443
611
635
  */
612
636
  RedirectPort?: number;
637
+ /**
638
+ * 后端协议。应用型限定取值:“HTTP,HTTPS,GRPC",默认值“HTTP”
639
+ */
640
+ TargetProtocol?: string;
613
641
  }
614
642
  /**
615
643
  * CreateListener - 创建一个应用型负载均衡的监听器
@@ -618,7 +646,7 @@ export interface CreateListenerResponse {
618
646
  /**
619
647
  * 监听器的ID
620
648
  */
621
- ListenerId: string;
649
+ ListenerId?: string;
622
650
  }
623
651
  /**
624
652
  * CreateLoadBalancer - 创建一个应用型负载均衡实例
@@ -4013,19 +4041,19 @@ export interface UpdateListenerAttributeRequest {
4013
4041
  */
4014
4042
  HealthCheckConfig?: {
4015
4043
  /**
4016
- * 是否开启健康检查功能。暂时不支持关闭;默认值为:true
4044
+ * 是否开启健康检查功能。默认值为:true
4017
4045
  */
4018
4046
  Enabled?: boolean;
4019
4047
  /**
4020
- * 健康检查方式。应用型限定取值:“Port”/"HTTP";默认值:“Port”
4048
+ * 健康检查方式。应用型限定取值:“Port”/"HTTP/GRPC",默认值:“Port”
4021
4049
  */
4022
4050
  Type?: string;
4023
4051
  /**
4024
- * (应用型专用)HTTP检查域名
4052
+ * (应用型专用)HTTP/GRPC检查域名
4025
4053
  */
4026
4054
  Domain?: string;
4027
4055
  /**
4028
- * (应用型专用)HTTP检查路径
4056
+ * (应用型专用)HTTP/GRPC检查路径
4029
4057
  */
4030
4058
  Path?: string;
4031
4059
  /**
@@ -4033,9 +4061,33 @@ export interface UpdateListenerAttributeRequest {
4033
4061
  */
4034
4062
  Method?: string;
4035
4063
  /**
4036
- * (应用型专用)GRPC检查响应码
4064
+ * (应用型专用)HTTP时为2xx,3xx格式(逗号分隔),GRPC时为数字码(逗号分隔)
4037
4065
  */
4038
4066
  ResponseCode?: string;
4067
+ /**
4068
+ * (应用型专用)端口
4069
+ */
4070
+ Port?: number;
4071
+ /**
4072
+ * (应用型专用)检查协议
4073
+ */
4074
+ HTTPVersion?: string;
4075
+ /**
4076
+ * (应用型专用)超时时间,秒,必须小于Interval
4077
+ */
4078
+ TimeOut?: number;
4079
+ /**
4080
+ * (应用型专用)间隔时间,秒,必须大于TimeOut
4081
+ */
4082
+ Interval?: number;
4083
+ /**
4084
+ * (应用型专用)判定成功的连续次数
4085
+ */
4086
+ UpCounts?: number;
4087
+ /**
4088
+ * (应用型专用)判定失败的连续次数
4089
+ */
4090
+ DownCounts?: number;
4039
4091
  };
4040
4092
  /**
4041
4093
  * (应用型专用)是否开启数据压缩功能。目前只支持使用gzip对特定文件类型进行压缩
@@ -4053,6 +4105,10 @@ export interface UpdateListenerAttributeRequest {
4053
4105
  * (应用型专用)重定向端口。限定取值:[1-65535]
4054
4106
  */
4055
4107
  RedirectPort?: number;
4108
+ /**
4109
+ * 后端协议。应用型限定取值:“HTTP,HTTPS,GRPC",默认值“HTTP”
4110
+ */
4111
+ TargetProtocol?: string;
4056
4112
  }
4057
4113
  /**
4058
4114
  * UpdateListenerAttribute - 更新一个应用型负载均衡监听器的属性
@@ -69,6 +69,12 @@ export default class ULogServiceClient extends Client {
69
69
  * See also: https://docs.ucloud.cn/api/ulogservice-api/describe_u_log_service_machine_group
70
70
  */
71
71
  describeULogServiceMachineGroup(request?: DescribeULogServiceMachineGroupRequest): Promise<DescribeULogServiceMachineGroupResponse>;
72
+ /**
73
+ * GetULogServiceTopicField - 获取ULogService主题索引字段
74
+ *
75
+ * See also: https://docs.ucloud.cn/api/ulogservice-api/get_u_log_service_topic_field
76
+ */
77
+ getULogServiceTopicField(request?: GetULogServiceTopicFieldRequest): Promise<GetULogServiceTopicFieldResponse>;
72
78
  /**
73
79
  * ListULogServiceCollectConf - 查询日志主题采集配置列表
74
80
  *
@@ -111,6 +117,12 @@ export default class ULogServiceClient extends Client {
111
117
  * See also: https://docs.ucloud.cn/api/ulogservice-api/update_u_log_service_machine_group
112
118
  */
113
119
  updateULogServiceMachineGroup(request?: UpdateULogServiceMachineGroupRequest): Promise<UpdateULogServiceMachineGroupResponse>;
120
+ /**
121
+ * UpdateULogServiceTopicField - 更新ULogService主题索引字段
122
+ *
123
+ * See also: https://docs.ucloud.cn/api/ulogservice-api/update_u_log_service_topic_field
124
+ */
125
+ updateULogServiceTopicField(request?: UpdateULogServiceTopicFieldRequest): Promise<UpdateULogServiceTopicFieldResponse>;
114
126
  }
115
127
  /**
116
128
  * BindULogServiceGroupToCollectConf - 日志主题采集配置绑定机器组
@@ -439,6 +451,41 @@ export interface DescribeULogServiceMachineGroupResponse {
439
451
  Ips?: string;
440
452
  };
441
453
  }
454
+ /**
455
+ * GetULogServiceTopicField - 获取ULogService主题索引字段
456
+ */
457
+ export interface GetULogServiceTopicFieldRequest {
458
+ /**
459
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
460
+ */
461
+ Zone: string;
462
+ /**
463
+ * 主题Id
464
+ */
465
+ TopicId: string;
466
+ }
467
+ /**
468
+ * GetULogServiceTopicField - 获取ULogService主题索引字段
469
+ */
470
+ export interface GetULogServiceTopicFieldResponse {
471
+ /**
472
+ * 索引字段数据,是一个数组
473
+ */
474
+ Data: {
475
+ /**
476
+ * 索引名称
477
+ */
478
+ FieldName?: string;
479
+ /**
480
+ * 索引类型,可取的值有: long, double, text
481
+ */
482
+ FieldType?: string;
483
+ /**
484
+ * 是否保留字段,true表示保留字段,false表示非保留字段
485
+ */
486
+ IsReserved?: boolean;
487
+ }[];
488
+ }
442
489
  /**
443
490
  * ListULogServiceCollectConf - 查询日志主题采集配置列表
444
491
  */
@@ -915,3 +962,34 @@ export interface UpdateULogServiceMachineGroupRequest {
915
962
  */
916
963
  export interface UpdateULogServiceMachineGroupResponse {
917
964
  }
965
+ /**
966
+ * UpdateULogServiceTopicField - 更新ULogService主题索引字段
967
+ */
968
+ export interface UpdateULogServiceTopicFieldRequest {
969
+ /**
970
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
971
+ */
972
+ Zone: string;
973
+ /**
974
+ * 主题Id
975
+ */
976
+ TopicId: string;
977
+ /**
978
+ *
979
+ */
980
+ FieldInfos?: {
981
+ /**
982
+ * 字段名称支持字母、横线(-)、斜杠(/)、特殊符号(@)、数字、下划线(_)和点(.),且不能以下划线开头,长度不超过255个字符
983
+ */
984
+ FieldName?: string;
985
+ /**
986
+ * 主题字段类型(text、long、double)
987
+ */
988
+ FieldType?: string;
989
+ }[];
990
+ }
991
+ /**
992
+ * UpdateULogServiceTopicField - 更新ULogService主题索引字段
993
+ */
994
+ export interface UpdateULogServiceTopicFieldResponse {
995
+ }
@@ -102,6 +102,15 @@ class ULogServiceClient extends client_1.default {
102
102
  const args = Object.assign({ Action: 'DescribeULogServiceMachineGroup' }, (request || {}));
103
103
  return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
104
104
  }
105
+ /**
106
+ * GetULogServiceTopicField - 获取ULogService主题索引字段
107
+ *
108
+ * See also: https://docs.ucloud.cn/api/ulogservice-api/get_u_log_service_topic_field
109
+ */
110
+ getULogServiceTopicField(request) {
111
+ const args = Object.assign({ Action: 'GetULogServiceTopicField' }, (request || {}));
112
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
113
+ }
105
114
  /**
106
115
  * ListULogServiceCollectConf - 查询日志主题采集配置列表
107
116
  *
@@ -165,5 +174,14 @@ class ULogServiceClient extends client_1.default {
165
174
  const args = Object.assign({ Action: 'UpdateULogServiceMachineGroup' }, (request || {}));
166
175
  return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
167
176
  }
177
+ /**
178
+ * UpdateULogServiceTopicField - 更新ULogService主题索引字段
179
+ *
180
+ * See also: https://docs.ucloud.cn/api/ulogservice-api/update_u_log_service_topic_field
181
+ */
182
+ updateULogServiceTopicField(request) {
183
+ const args = Object.assign({ Action: 'UpdateULogServiceTopicField' }, (request || {}));
184
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
185
+ }
168
186
  }
169
187
  exports.default = ULogServiceClient;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ucloud-sdks/ucloud-sdk-js",
3
3
  "description": "ucloud-sdk-js",
4
- "version": "0.2.37",
4
+ "version": "0.2.39",
5
5
  "author": "oas@ucloud.cn",
6
6
  "license": "MIT",
7
7
  "private": false,