entity

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessAkSkVO

type AccessAkSkVO struct {
	Id            int    `json:"id,omitempty"`
	GmtCreate     string `json:"gmt_create,omitempty"`
	GmtModify     string `json:"gmt_modify,omitempty"`
	InnerDomainId int    `json:"inner_domain_id,omitempty"`
	Ak            string `json:"ak,omitempty"`
	Sk            string `json:"sk,omitempty"`
	Status        string `json:"status,omitempty"`
	Descp         string `json:"descp,omitempty"`
}

func (AccessAkSkVO) ToString

func (c AccessAkSkVO) ToString() string

type AddAlarmRuleParams

type AddAlarmRuleParams struct {
	AlarmCreateTime      int64              `json:"alarm_create_time"`
	AlarmRuleName        string             `json:"alarm_rule_name"`
	EnterpriseProjectId  string             `json:"enterprise_project_id"`
	AlarmRuleDescription string             `json:"alarm_rule_description"`
	AlarmRuleEnable      bool               `json:"alarm_rule_enable"`
	AlarmRuleStatus      string             `json:"alarm_rule_status"`
	AlarmRuleType        string             `json:"alarm_rule_type"`
	MetricAlarmSpec      MetricAlarmSpec    `json:"metric_alarm_spec"`
	EventAlarmSpec       EventAlarmSpec     `json:"event_alarm_spec"`
	AlarmNotifications   AlarmNotifications `json:"alarm_notifications"`
}

type AkSkResultVO

type AkSkResultVO struct {
	Ak string `json:"ak,omitempty"`
	Sk string `json:"sk,omitempty"`
}

func (AkSkResultVO) ToString

func (c AkSkResultVO) ToString() string

type AlarmNotifications

type AlarmNotifications struct {
	NotificationType       string `json:"notification_type"`
	RouteGroupEnable       bool   `json:"route_group_enable"`
	RouteGroupRule         string `json:"route_group_rule"`
	InhibitEnable          bool   `json:"inhibit_enable"`
	InhibitRule            string `json:"inhibit_rule"`
	NotiFicationEnable     bool   `json:"notification_enable"`
	BindNotificationRuleId string `json:"bind_notification_rule_id"`
	NotiFyResolved         bool   `json:"notify_resolved"`
}

type AlarmTag

type AlarmTag struct {
	AutoTags          []string `json:"auto_tags"`
	CustomTags        []string `json:"custom_tags"`
	CustomAnnotations []string `json:"custom_annotations"`
}

type AomMappingLogStreamInfo

type AomMappingLogStreamInfo struct {

	// 日志组id
	TargetLogGroupId string `json:"target_log_group_id"`

	// 目标日志组名称。
	TargetLogGroupName string `json:"target_log_group_name"`

	// 日志流id
	TargetLogStreamId string `json:"target_log_stream_id"`

	// 目标日志组名称。
	TargetLogStreamName string `json:"target_log_stream_name"`
}

type AomMappingRequestInfo

type AomMappingRequestInfo struct {

	// 项目id
	ProjectId string `json:"project_id"`

	// 接入规则名称
	RuleName string `json:"rule_name"`

	// 接入规则id
	RuleId string `json:"rule_id,omitempty"`

	RuleInfo AomMappingRuleInfo `json:"rule_info"`
}

type AomMappingRuleInfo

type AomMappingRuleInfo struct {

	// 集群id
	ClusterId string `json:"cluster_id"`

	// 集群名称
	ClusterName string `json:"cluster_name"`

	// 日志流前缀
	DeploymentsPrefix *string `json:"deployments_prefix,omitempty"`

	// 工作负载
	Deployments []string `json:"deployments"`

	// 命名空间
	Namespace string `json:"namespace"`

	// 容器名称
	ContainerName *string `json:"container_name,omitempty"`

	// 接入规则详情
	Files []AomMappingfilesInfo `json:"files"`
}

type AomMappingRuleResp

type AomMappingRuleResp struct {

	// 项目id
	ProjectId string `json:"project_id"`

	// 接入规则名称
	RuleName string `json:"rule_name"`

	// 接入规则id
	RuleId string `json:"rule_id"`

	RuleInfo *AomMappingRuleInfo `json:"rule_info"`
}

type AomMappingfilesInfo

type AomMappingfilesInfo struct {

	// 路径名
	FileName string `json:"file_name"`

	LogStreamInfo AomMappingLogStreamInfo `json:"log_stream_info"`
}

type BizAppParam

type BizAppParam struct {
	Description  string `json:"description,omitempty"`
	DisplayName  string `json:"display_name,omitempty"`
	EpsId        string `json:"eps_id,omitempty"`
	Name         string `json:"name,omitempty"`
	RegisterType string `json:"register_type,omitempty"`
}

type BizAppVo

type BizAppVo struct {
	AomId        string `json:"aom_id,omitempty"`
	AppId        string `json:"app_id,omitempty"`
	CreateTime   string `json:"create_time,omitempty"`
	Creator      string `json:"creator,omitempty"`
	Description  string `json:"description,omitempty"`
	DisplayName  string `json:"display_name,omitempty"`
	EpsId        string `json:"eps_id,omitempty"`
	ModifiedTime string `json:"modified_time,omitempty"`
	Modifier     string `json:"modifier,omitempty"`
	Name         string `json:"name,omitempty"`
	RegisterType string `json:"register_type,omitempty"`
}

type ComponentParam

type ComponentParam struct {
	Description string `json:"description,omitempty"`
	ModelId     string `json:"model_id"`
	ModelType   string `json:"model_type"`
	Name        string `json:"name"`
}

type ComponentVo

type ComponentVo struct {
	AomId        string `json:"aom_id,omitempty"`
	AppId        string `json:"app_id,omitempty"`
	CreateTime   string `json:"create_time,omitempty"`
	Creator      string `json:"creator,omitempty"`
	Description  string `json:"description,omitempty"`
	Id           string `json:"id,omitempty"`
	ModifiedTime string `json:"modified_time,omitempty"`
	Modifier     string `json:"modifier,omitempty"`
	Name         string `json:"name,omitempty"`
	RegisterType string `json:"register_type,omitempty"`
	SubAppId     string `json:"sub_app_id,omitempty"`
}

type CreateAkSkParam

type CreateAkSkParam struct {
	Descp string `json:"descp,omitempty"`
}

type CreateAomMappingRulesResponse

type CreateAomMappingRulesResponse struct {
	Body           *[]AomMappingRuleResp `json:"body,omitempty"`
	HttpStatusCode int                   `json:"-"`
}

type CreateLogTankOption

type CreateLogTankOption struct {
	LoadBalancerId string `json:"loadbalancer_id"`

	LogGroupId string `json:"log_group_id"`

	LogTopicId string `json:"log_topic_id"`
}

type CreateLogtankRequestBody

type CreateLogtankRequestBody struct {
	Logtank *CreateLogTankOption `json:"logtank"`
}

type CreateLogtankResponse

type CreateLogtankResponse struct {
	Logtank *Logtank `json:"logtank,omitempty"`

	RequestId *string `json:"request_id,omitempty"`
}

type CreateModelVo

type CreateModelVo struct {
	Id string `json:"id"`
}

type CreateResourceResponse

type CreateResourceResponse struct {
	ResourceDetail []ResourceImportDetailVo `json:"data,omitempty"`
	HttpStatusCode int                      `json:"-"`
}

type DashBoard

type DashBoard struct {
	ProjectId         string           `json:"project_id"`
	Id                string           `json:"id"`
	GroupName         string           `json:"group_name"`
	Title             string           `json:"title"`
	Charts            []DashboardChars `json:"charts"`
	Filters           []interface{}    `json:"filters"`
	LastUpdateTime    int              `json:"last_update_time"`
	UseSystemTemplate bool             `json:"useSystemTemplate"`
}

type DashBoardRequest

type DashBoardRequest struct {
	// 日志组id
	LogGroupId string `json:"log_group_id"`

	// 目标日志组名称。
	LogGroupName string `json:"log_group_name"`

	// 日志流id
	LogStreamId string `json:"log_stream_id"`
	// 目标日志组名称。
	LogStreamName string `json:"log_stream_name"`

	TemplateTitle []string `json:"template_title"`
	TemplateType  []string `json:"template_type"`
	GroupName     string   `json:"group_name"`
}

type DashboardChars

type DashboardChars struct {
	Width   int                    `json:"width"`
	Height  int                    `json:"height"`
	XPos    int                    `json:"x_pos"`
	YPos    int                    `json:"y_pos"`
	ChartId string                 `json:"chart_id"`
	Chart   map[string]interface{} `json:"chart"`
}

type DeleteResourceParam

type DeleteResourceParam struct {
	Data []UnbindResourceParam `json:"data"`
}

type DeleteStructTemplateReqBody

type DeleteStructTemplateReqBody struct {

	// 结构化规则ID
	Id string `json:"id"`
}

type DemoFieldsInfo

type DemoFieldsInfo struct {
	IsAnalysis      bool   `json:"is_analysis"`
	Content         string `json:"content,omitempty"`
	FieldName       string `json:"field_name,omitempty"`
	Type            string `json:"type,omitempty"`
	UserDefinedName string `json:"userDefinedName,omitempty"`
	Index           int    `json:"index,omitempty"`
}

type EnvParam

type EnvParam struct {
	ComponentId  string `json:"component_id,omitempty"`
	Description  string `json:"description,omitempty"`
	EnvName      string `json:"env_name"`
	EnvType      string `json:"env_type"`
	OsType       string `json:"os_type,omitempty"`
	Region       string `json:"region"`
	RegisterType string `json:"register_type,omitempty"`
}

type EnvVo

type EnvVo struct {
	AomId        string           `json:"aom_id,omitempty"`
	ComponentId  string           `json:"component_id,omitempty"`
	CreateTime   string           `json:"create_time,omitempty"`
	Creator      string           `json:"creator,omitempty"`
	Description  string           `json:"description,omitempty"`
	EnvId        string           `json:"env_id,omitempty"`
	EnvName      string           `json:"env_name,omitempty"`
	EnvTags      []TagNameAndIdVo `json:"env_tags,omitempty"`
	EnvType      string           `json:"env_type,omitempty"`
	EpsId        string           `json:"eps_id,omitempty"`
	ModifiedTime string           `json:"modified_time,omitempty"`
	Modifier     string           `json:"modifier,omitempty"`
	OsType       string           `json:"os_type,omitempty"`
	Region       string           `json:"region,omitempty"`
	RegisterType string           `json:"register_type,omitempty"`
}

type ErrorResp

type ErrorResp struct {
	ErrorCode string `json:"error_code"`
	ErrorMsg  string `json:"error_msg"`
}

type EventAlarmSpec

type EventAlarmSpec struct {
	EventSource       string                   `json:"event_source"`
	MonitorObjects    []map[string]interface{} `json:"monitor_objects"`
	TriggerConditions []TriggerCondition       `json:"trigger_conditions"`
	NoDataConditions  []NoDataCondition        `json:"no_data_conditions"`
	AlarmTags         []AlarmTag               `json:"alarm_tags"`
}

type GetAkSkListVO

type GetAkSkListVO struct {
	AccessAkSkModels []AccessAkSkVO `json:"access_ak_sk_models,omitempty"`
}

type Logtank

type Logtank struct {
	ID             string `json:"id"`
	ProjectID      string `json:"project_id"`
	LoadBalancerID string `json:"loadbalancer_id"`
	LogGroupID     string `json:"log_group_id"`
	LogTopicID     string `json:"log_topic_id"`
}

type MetricAlarmSpec

type MetricAlarmSpec struct {
	MonitorType                 string                   `json:"monitor_type"`
	ResourceKind                string                   `json:"resource_kind"`
	MetricKind                  string                   `json:"metric_kind"`
	AlarmRuletemplateBindEnable bool                     `json:"alarm_rule_template_bind_enable"`
	AlarmRuletemplateId         string                   `json:"alarm_rule_template_id"`
	NoDataConditions            []NoDataCondition        `json:"no_data_conditions"`
	AlarmTags                   []AlarmTag               `json:"alarm_tags"`
	TriggerConditions           []TriggerCondition       `json:"trigger_conditions"`
	MonitorObjects              []map[string]interface{} `json:"monitor_objects"`
	RecoveryConditions          map[string]interface{}   `json:"recovery_conditions"`
}

type NoDataCondition

type NoDataCondition struct {
	NoDataTimeframe  int    `json:"no_data_timeframe"`
	NoDataAlertState string `json:"no_data_alert_state"`
	NotifyNoData     bool   `json:"notify_no_data"`
}

type PageResourceListParam

type PageResourceListParam struct {
	Maker           string            `json:"maker,omitempty"`
	Limit           string            `json:"limit,omitempty"`
	Keywords        map[string]string `json:"keywords,omitempty"`
	CiRelationships bool              `json:"ci_relationships,omitempty"`
	CiType          string            `json:"ci_type"`
	CiRegion        string            `json:"ci_region"`
	CiId            string            `json:"ci_id"`
}

type PromForCloudService

type PromForCloudService struct {
	CesMetricNamespaces []string `json:"ces_metric_namespaces"`
}

type PrometheusInstanceParams

type PrometheusInstanceParams struct {
	PromForCloudService *PromForCloudService `json:"prom_for_cloud_service"`
}

type ReadDashBoardResp

type ReadDashBoardResp struct {
	Results []DashBoard `json:"results"`
}

type ReadResourceDetailVo

type ReadResourceDetailVo struct {
	Id             string `json:"id,omitempty"`
	ResourceId     string `json:"resource_id,omitempty"`
	ResourceName   string `json:"resource_name,omitempty"`
	ResourceRegion string `json:"resource_region,omitempty"`
	EpsId          string `json:"eps_id,omitempty"`
	EpsName        string `json:"eps_name,omitempty"`
}

type ReadResourceResponse

type ReadResourceResponse struct {
	ResourceDetail []ReadResourceDetailVo `json:"data,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

type ResourceImportDetailParam

type ResourceImportDetailParam struct {
	ResourceId     string `json:"resource_id"`
	ResourceName   string `json:"resource_name"`
	ResourceRegion string `json:"resource_region"`
	ProjectId      string `json:"project_id"`
	EpsId          string `json:"eps_id,omitempty"`
	EpsName        string `json:"eps_name,omitempty"`
}

type ResourceImportDetailVo

type ResourceImportDetailVo struct {
	Id         string `json:"id,omitempty"`
	ResourceId string `json:"resource_id,omitempty"`
}

type ResourceImportParam

type ResourceImportParam struct {
	Resources []ResourceImportDetailParam `json:"resources"`
	EnvId     string                      `json:"env_id"`
}

type ShowStructTemplateResponse

type ShowStructTemplateResponse struct {

	// 结构化字段
	DemoFields *[]StructFieldInfoReturn `json:"demoFields,omitempty"`

	// 关键词详细信息
	TagFields *[]StructTagFieldsInfo `json:"tagFields,omitempty"`

	// 示例日志
	DemoLog *string `json:"demoLog,omitempty"`

	// 测试
	DemoLabel *string `json:"demoLabel,omitempty"`

	// id
	Id string `json:"id,omitempty"`

	// 日志组ID
	LogGroupId *string `json:"logGroupId,omitempty"`

	Rule *ShowStructTemplateRule `json:"rule,omitempty"`

	// 日志流ID
	LogStreamId *string `json:"logStreamId,omitempty"`

	// 项目ID
	ProjectId *string `json:"projectId,omitempty"`

	// 测试
	TemplateName *string `json:"templateName,omitempty"`

	// 为了兼容前台数据格式
	Regex          *string `json:"regex,omitempty"`
	HttpStatusCode int     `json:"-"`
}

type ShowStructTemplateRule

type ShowStructTemplateRule struct {

	// 测试
	Param *string `json:"param,omitempty"`

	// 结构化类型
	Type *string `json:"type,omitempty"`
}

type StructFieldInfoReturn

type StructFieldInfoReturn struct {

	// 字段名称
	FieldName *string `json:"fieldName,omitempty"`

	// 字段数据类型
	Type *string `json:"type,omitempty"`

	// 字段内容
	Content *string `json:"content,omitempty"`

	// 结构化方式
	IsAnalysis *bool `json:"isAnalysis,omitempty"`

	// 序号
	Index *int32 `json:"index,omitempty"`
}

type StructTagFieldsInfo

type StructTagFieldsInfo struct {

	// 字段名称
	FieldName *string `json:"fieldName,omitempty"`

	// 字段类型
	Type *string `json:"type,omitempty"`

	// 内容
	Content *string `json:"content,omitempty"`

	// 是否解析
	IsAnalysis *bool `json:"isAnalysis,omitempty"`

	// 字段名称
	Index *int32 `json:"index,omitempty"`
}

type StructTemplateRequest

type StructTemplateRequest struct {
	Content      string           `json:"content,omitempty"`
	LogGroupId   string           `json:"log_group_id"`
	ParseType    string           `json:"parse_type,omitempty"`
	TemplateId   string           `json:"template_id"`
	TemplateType string           `json:"template_type"`
	TemplateName string           `json:"template_name"`
	LogStreamId  string           `json:"log_stream_id"`
	ProjectId    string           `json:"project_id"`
	RegexRules   *string          `json:"regex_rules,omitempty"`
	Layers       *int             `json:"layers,omitempty"`
	Tokenizer    string           `json:"tokenizer,omitempty"`
	LogFormat    *string          `json:"log_format,omitempty"`
	DemoFields   []DemoFieldsInfo `json:"demo_fields"`
	TagFields    []TagFieldsInfo  `json:"tag_fields"`
}

func (*StructTemplateRequest) ToDemoFieldsInfo

func (s *StructTemplateRequest) ToDemoFieldsInfo()

type TagFieldsInfo

type TagFieldsInfo struct {
	FieldName  string  `json:"fieldName"`
	Type       string  `json:"type"`
	Content    *string `json:"content,omitempty"`
	IsAnalysis *bool   `json:"isAnalysis,omitempty"`
}

type TagNameAndIdVo

type TagNameAndIdVo struct {
	TagId   string `json:"tag_id,omitempty"`
	TagName string `json:"tag_name,omitempty"`
}

type TriggerCondition

type TriggerCondition struct {
	MetricQueryMode   string                 `json:"metric_query_mode"`
	MetricNamespace   string                 `json:"metric_namespace"`
	MetricName        string                 `json:"metric_name"`
	MetricLabels      []string               `json:"metric_labels"`
	MetricUnit        string                 `json:"metric_unit"`
	Promql            string                 `json:"promql"`
	TriggerTimes      int                    `json:"trigger_times"`
	TriggerInterval   string                 `json:"trigger_interval"`
	TriggerType       string                 `json:"trigger_type"`
	AggregationType   string                 `json:"aggregation_type"`
	AggregationWindow interface{}            `json:"aggregation_window"`
	Operator          string                 `json:"operator"`
	Thresholds        map[string]interface{} `json:"thresholds"`
}

type UnbindResourceParam

type UnbindResourceParam struct {
	Id     string   `json:"id"`
	EnvIds []string `json:"env_ids"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL