Documentation
¶
Index ¶
- type AccessAkSkVO
- type AddAlarmRuleParams
- type AkSkResultVO
- type AlarmNotifications
- type AlarmTag
- type AomMappingLogStreamInfo
- type AomMappingRequestInfo
- type AomMappingRuleInfo
- type AomMappingRuleResp
- type AomMappingfilesInfo
- type BizAppParam
- type BizAppVo
- type ComponentParam
- type ComponentVo
- type CreateAkSkParam
- type CreateAomMappingRulesResponse
- type CreateLogTankOption
- type CreateLogtankRequestBody
- type CreateLogtankResponse
- type CreateModelVo
- type CreateResourceResponse
- type DashBoard
- type DashBoardRequest
- type DashboardChars
- type DeleteResourceParam
- type DeleteStructTemplateReqBody
- type DemoFieldsInfo
- type EnvParam
- type EnvVo
- type ErrorResp
- type EventAlarmSpec
- type GetAkSkListVO
- type Logtank
- type MetricAlarmSpec
- type NoDataCondition
- type PageResourceListParam
- type PromForCloudService
- type PrometheusInstanceParams
- type ReadDashBoardResp
- type ReadResourceDetailVo
- type ReadResourceResponse
- type ResourceImportDetailParam
- type ResourceImportDetailVo
- type ResourceImportParam
- type ShowStructTemplateResponse
- type ShowStructTemplateRule
- type StructFieldInfoReturn
- type StructTagFieldsInfo
- type StructTemplateRequest
- type TagFieldsInfo
- type TagNameAndIdVo
- type TriggerCondition
- type UnbindResourceParam
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 ¶
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 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 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 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 CreateLogtankRequestBody ¶
type CreateLogtankRequestBody struct {
Logtank *CreateLogTankOption `json:"logtank"`
}
type CreateLogtankResponse ¶
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 DeleteResourceParam ¶
type DeleteResourceParam struct {
Data []UnbindResourceParam `json:"data"`
}
type DeleteStructTemplateReqBody ¶
type DeleteStructTemplateReqBody struct {
// 结构化规则ID
Id string `json:"id"`
}
type DemoFieldsInfo ¶
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 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 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 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 ResourceImportDetailVo ¶
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 StructFieldInfoReturn ¶
type StructTagFieldsInfo ¶
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 TagNameAndIdVo ¶
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 ¶
Source Files
¶
- model_add_alarm_policy_params.go
- model_aom_application_params.go
- model_aom_component_params.go
- model_aom_environment_params.go
- model_aom_resource_params.go
- model_apm_aksk_parames.go
- model_lts_access_rule_params.go
- model_lts_dashboard_params.go
- model_lts_elb_log_params.go
- model_lts_struct_template_params.go
- model_prometheus_instance_params.go
Click to show internal directories.
Click to hide internal directories.