| Package | Description | 
|---|---|
| com.tencentcloudapi.teo.v20220901.models | 
| Modifier and Type | Method and Description | 
|---|---|
| LogFormat | RealtimeLogDeliveryTask. getLogFormat()Get 日志投递的输出格式。出参为 null 时表示为默认格式,默认格式逻辑如下:
当 TaskType 取值为 custom_endpoint 时,默认格式为多个 JSON 对象组成的数组,每个 JSON 对象为一条日志;
当 TaskType 取值为 s3 时,默认格式为 JSON Lines。
注意:此字段可能返回 null,表示取不到有效值。 | 
| LogFormat | CreateRealtimeLogDeliveryTaskRequest. getLogFormat()Get 日志投递的输出格式。不填表示为默认格式,默认格式逻辑如下:
当 TaskType 取值为 custom_endpoint 时,默认格式为多个 JSON 对象组成的数组,每个 JSON 对象为一条日志;
当 TaskType 取值为 s3 时,默认格式为 JSON Lines;特别地,当 TaskType 取值为 cls 时,LogFormat.FormatType 的值只能为 json,且 LogFormat 中其他参数将被忽略,建议不传 LogFormat。 | 
| LogFormat | ModifyRealtimeLogDeliveryTaskRequest. getLogFormat()Get 日志投递的输出格式。不填保持原有配置。
特别地,当 TaskType 取值为 cls 时,LogFormat.FormatType 的值只能为 json,且 LogFormat 中其他参数将被忽略,建议不传 LogFormat。 | 
| Modifier and Type | Method and Description | 
|---|---|
| void | RealtimeLogDeliveryTask. setLogFormat(LogFormat LogFormat)Set 日志投递的输出格式。出参为 null 时表示为默认格式,默认格式逻辑如下:
当 TaskType 取值为 custom_endpoint 时,默认格式为多个 JSON 对象组成的数组,每个 JSON 对象为一条日志;
当 TaskType 取值为 s3 时,默认格式为 JSON Lines。
注意:此字段可能返回 null,表示取不到有效值。 | 
| void | CreateRealtimeLogDeliveryTaskRequest. setLogFormat(LogFormat LogFormat)Set 日志投递的输出格式。不填表示为默认格式,默认格式逻辑如下:
当 TaskType 取值为 custom_endpoint 时,默认格式为多个 JSON 对象组成的数组,每个 JSON 对象为一条日志;
当 TaskType 取值为 s3 时,默认格式为 JSON Lines;特别地,当 TaskType 取值为 cls 时,LogFormat.FormatType 的值只能为 json,且 LogFormat 中其他参数将被忽略,建议不传 LogFormat。 | 
| void | ModifyRealtimeLogDeliveryTaskRequest. setLogFormat(LogFormat LogFormat)Set 日志投递的输出格式。不填保持原有配置。
特别地,当 TaskType 取值为 cls 时,LogFormat.FormatType 的值只能为 json,且 LogFormat 中其他参数将被忽略,建议不传 LogFormat。 | 
| Constructor and Description | 
|---|
| LogFormat(LogFormat source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
Copyright © 2025. All rights reserved.