
ksyun.client.kce.createlogrule.v20190806.CreateLogRuleRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ksyun-java-sdk Show documentation
Show all versions of ksyun-java-sdk Show documentation
The KSYUN Web Services SDK for Java provides Java APIs
for building software on KSYUN' cost-effective, scalable, and reliable
infrastructure products. The KSYUN Java SDK allows developers to code
against APIs for all of KSYUN's infrastructure web services (KSC
S3, KSC KEC, KSC RDS etc).
The newest version!
package ksyun.client.kce.createlogrule.v20190806;
import common.annotation.KsYunField;
import lombok.Data;
import lombok.ToString;
import java.util.List;
/**
* @Classname CreateLogRuleRequest
* @Description 请求参数
*/
@Data
public class CreateLogRuleRequest {
/**
* 集群Id
*/
@KsYunField(name = "ClusterId")
private String ClusterId;
/**
* 日志规则名称
* - 不超过40个字符,只能包含小写字母、数字及分隔符("-"、"_"、"."),且必须以小写字母、数字开头和结尾
*/
@KsYunField(name = "RuleName")
private String RuleName;
/**
* 日志源
*/
@KsYunField(name = "InputConfig")
private InputConfigDto InputConfigList;
/**
* 消费端
*/
@KsYunField(name = "OutputConfig")
private OutputConfigDto OutputConfigList;
@Data
@ToString
public static class InputConfigDto {
/**
* 日志类型
* - 1:容器标准输出
* - 2:容器文件路径
* - 3:主机文件路径
*/
@KsYunField(name = "InputType")
private Integer InputType;
/**
* 如果InputType=1,则该项必填
*/
@KsYunField(name = "ContainerStandout")
private ContainerStandoutDto ContainerStandoutList;
/**
* 容器文件路径,如果 InputType=2,则该项必填
*/
@KsYunField(name = "ContainerFile")
private ContainerFileDto ContainerFileList;
/**
* 主机文件路径,如果 InputType=3,则该项必填
*/
@KsYunField(name = "HostFile")
private HostFileDto HostFileList;
@Data
@ToString
public static class ContainerStandoutDto {
/**
* 日志源
* - 是否采集所有容器
*/
@KsYunField(name = "AllContainer")
private Boolean AllContainer;
/**
* 指定负载采集
* - 如果 AllContainer 为false,SpecifiedWorkload 或 SpecifiedPodLabel 必须指定一项
*/
@KsYunField(name = "SpecifiedWorkload")
private SpecifiedWorkloadDto SpecifiedWorkloadList;
/**
* 指定PodLable采集
* - 如果 AllContainer 为false,SpecifiedWorkload 或 SpecifiedPodLabel 必须指定一项
*/
@KsYunField(name = "SpecifiedPodLabel")
private SpecifiedPodLabelDto SpecifiedPodLabelList;
@Data
@ToString
public static class SpecifiedWorkloadDto {
/***/
@KsYunField(name = "NamespaceList")
private List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy