@ucloud-sdks/ucloud-sdk-js 0.2.38 → 0.2.40

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
  /**
@@ -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 - 更新一个应用型负载均衡监听器的属性
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.38",
4
+ "version": "0.2.40",
5
5
  "author": "oas@ucloud.cn",
6
6
  "license": "MIT",
7
7
  "private": false,