Documentation ¶
Index ¶
- Constants
- type AddOtherTableResponse
- type AlarmStatus
- type CheckAlertRuleResponse
- type Column
- type DBInfo
- type DeleteOtherTableResponse
- type Duration
- type EntryInstanceData
- type ErrorInfo
- type ErrorInstance
- type ErrorPropation
- type GetAlertEventsResponse
- type GetAlertEventsSampleResponse
- type GetAlertManagerConfigReceiverResponse
- type GetAlertRuleFileResponse
- type GetAlertRulesResponse
- type GetDescendantMetricsResponse
- type GetDescendantRelevanceResponse
- type GetErrorInstanceResponse
- type GetFaultLogContentResponse
- type GetFaultLogPageListResponse
- type GetFeatureResponse
- type GetFlameDataResponse
- type GetGroupListResponse
- type GetK8sEventsResponse
- type GetLogMetricsResponse
- type GetMetricPQLResponse
- type GetMonitorStatusResponse
- type GetNamespaceInfoResponse
- type GetNamespaceListResponse
- type GetOnOffCPUResponse
- type GetPodInfoResponse
- type GetPodListResponse
- type GetPolarisInferResponse
- type GetProcessFlameGraphResponse
- type GetRoleResponse
- type GetSQLMetricsResponse
- type GetServiceEndpointRelationResponse
- type GetServiceEndpointTopologyResponse
- type GetServiceEntryEndpointsResponse
- type GetServiceNamespaceListResponse
- type GetServiceRouteResponse
- type GetSingleTraceInfoResponse
- type GetSubjectFeatureResponse
- type GetTTLResponse
- type GetThresholdResponse
- type GetTraceFilterValueResponse
- type GetTraceFiltersResponse
- type GetTraceMetricsResponse
- type GetTracePageListResponse
- type GetUserConfigResponse
- type GetUserInfoResponse
- type GetUserListResponse
- type GetUserRoleResponse
- type IndexItem
- type Instance
- type InstanceData
- type InstanceNode
- type InstancesRes
- type K8sEventCountValues
- type K8sEventStatistics
- type LogChartResponse
- type LogHistogram
- type LogIndexResponse
- type LogItem
- type LogParseResponse
- type LogQueryContextResponse
- type LogQueryResponse
- type LogTableInfo
- type LogTableInfoResponse
- type LogTableResponse
- type LoginResponse
- type MonitorStatus
- type OtherDB
- type OtherTable
- type OtherTableInfoResponse
- type OtherTableResponse
- type Parse
- type PodMapResponse
- type RYGResult
- type RYGScoreDetail
- type RYGStatus
- type Ratio
- type RefreshTokenResponse
- type SQLOperationDetail
- type SegmentLatency
- type ServiceAlertRes
- type ServiceDetail
- type ServiceEndPointsRes
- type ServiceRYGLightRes
- type ServiceRYGResult
- type ServiceRes
- type SetThresholdResponse
- type SpanSegmentMetricsResponse
- type TempChartObject
Constants ¶
View Source
const (
// latency/error_rate/log_error_count/alert/replica
MAX_RYG_SCORE = 3 * 5
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddOtherTableResponse ¶
type AddOtherTableResponse struct {
Err string `json:"error"`
}
type AlarmStatus ¶
type CheckAlertRuleResponse ¶
type CheckAlertRuleResponse struct {
Available bool `json:"available"`
}
type DBInfo ¶
type DBInfo struct { DataBase string `json:"dataBase"` Tables []LogTableInfo `json:"tables"` }
type DeleteOtherTableResponse ¶
type DeleteOtherTableResponse struct {
Err string `json:"error"`
}
type EntryInstanceData ¶
type EntryInstanceData struct { ServiceName string `json:"serviceName"` Namespaces []string `json:"namespaces"` // 应用所属命名空间,可能为空 EndpointCount int `json:"endpointCount"` ServiceDetails []ServiceDetail `json:"serviceDetails"` Logs TempChartObject `json:"logs"` Timestamp *int64 `json:"timestamp"` model.AlertStatus AlertReason model.AlertReason `json:"alertReason"` }
func (*EntryInstanceData) AddNamespaces ¶
func (entryInstanceData *EntryInstanceData) AddNamespaces(namespaces []string)
type ErrorInstance ¶
type ErrorPropation ¶
type ErrorPropation struct { Timestamp int64 `json:"timestamp"` // 时间戳 TraceId string `json:"traceId"` // TraceId ErrorInfos []*ErrorInfo `json:"errors"` // 错误信息 Parents []*InstanceNode `json:"parents"` // 上游节点列表 Current *InstanceNode `json:"current"` // 当前节点 Children []*InstanceNode `json:"children"` // 下游节点列表 }
type GetAlertEventsResponse ¶
type GetAlertEventsResponse struct { TotalCount int `json:"totalCount"` EventList []clickhouse.PagedAlertEvent `json:"events"` }
type GetAlertEventsSampleResponse ¶
type GetAlertEventsSampleResponse struct { EventMap map[string]map[string][]clickhouse.AlertEventSample `json:"events"` Status string `json:"status"` }
type GetAlertManagerConfigReceiverResponse ¶
type GetAlertManagerConfigReceiverResponse struct { AMConfigReceivers []amconfig.Receiver `json:"amConfigReceivers"` Pagination *model.Pagination `json:"pagination"` }
type GetAlertRulesResponse ¶
type GetAlertRulesResponse struct { AlertRules []*request.AlertRule `json:"alertRules"` Pagination *model.Pagination `json:"pagination"` }
type GetDescendantMetricsResponse ¶
type GetDescendantMetricsResponse = prometheus.DescendantMetrics
type GetDescendantRelevanceResponse ¶
type GetDescendantRelevanceResponse struct { ServiceName string `json:"serviceName"` // 服务名 EndPoint string `json:"endpoint"` // Endpoint Group string `json:"group"` // 服务类型 IsTraced bool `json:"isTraced"` // 是否跟踪 Distance float64 `json:"distance"` // 延时曲线差异 DistanceType string `json:"distanceType"` // 延时曲线差异计算方式, 有euclidean/pearson/dtw/failed/net_failed四种 DelaySource string `json:"delaySource"` // 延时主要来源 unknown/self/dependency REDMetricsStatus string `json:"REDStatus"` // RED指标告警 LastUpdateTime *int64 `json:"timestamp"` // 末次部署时间 model.AlertStatus AlertReason model.AlertReason `json:"alertReason"` }
type GetErrorInstanceResponse ¶
type GetErrorInstanceResponse struct { Status string `json:"status"` // 错误实例状态 Instances []*ErrorInstance `json:"instances"` // 错误实例列表 }
type GetFaultLogContentResponse ¶
type GetFaultLogContentResponse struct { Sources []string `json:"sources"` LogContents *clickhouse.Logs `json:"logContents"` }
type GetFaultLogPageListResponse ¶
type GetFaultLogPageListResponse struct { List []clickhouse.FaultLogResult `json:"list"` Pagination *model.Pagination `json:"pagination"` }
type GetFeatureResponse ¶
type GetFlameDataResponse ¶
type GetFlameDataResponse clickhouse.FlameGraphData
type GetGroupListResponse ¶
type GetK8sEventsResponse ¶
type GetK8sEventsResponse struct { Status string `json:"status"` Reasons []string `json:"reasons"` Data map[string]*K8sEventStatistics `json:"data"` }
type GetLogMetricsResponse ¶
type GetLogMetricsResponse struct { Name string `json:"name"` // 实例名 ContainerId string `json:"containerId"` // 容器ID NodeName string `json:"nodeName"` // 主机名 Pid int64 `json:"pid"` // 进程号 Logs map[int64]float64 `json:"logs"` // 日志告警 Latency map[int64]float64 `json:"latency"` // 延时P90 ErrorRate map[int64]float64 `json:"errorRate"` // 错误率 }
type GetMetricPQLResponse ¶
type GetMetricPQLResponse struct {
AlertMetricsData []database.AlertMetricsData `json:"alertMetricsData"`
}
type GetMonitorStatusResponse ¶
type GetMonitorStatusResponse struct {
MonitorList []MonitorStatus `json:"monitorList"`
}
type GetNamespaceListResponse ¶
type GetNamespaceListResponse struct {
*v1.NamespaceList
}
type GetOnOffCPUResponse ¶
type GetOnOffCPUResponse struct {
ProfilingEvent *[]clickhouse.ProfilingEvent `json:"profilingEvent"`
}
type GetPodInfoResponse ¶
type GetPodListResponse ¶
type GetPolarisInferResponse ¶
type GetPolarisInferResponse = polarisanalyzer.PolarisInferRes
type GetProcessFlameGraphResponse ¶
type GetProcessFlameGraphResponse clickhouse.FlameGraphData
type GetRoleResponse ¶
type GetSQLMetricsResponse ¶
type GetSQLMetricsResponse struct { Pagination model.Pagination `json:"pagination"` SQLOperationDetails []SQLOperationDetail `json:"sqlOperationDetails"` }
type GetServiceEndpointRelationResponse ¶
type GetServiceEndpointRelationResponse struct { Parents []*model.TopologyNode `json:"parents"` // 上游节点列表 Current *model.TopologyNode `json:"current"` // 当前服务 ChildRelation []*model.ToplogyRelation `json:"childRelations"` // 下游节点调用关系列表 }
type GetServiceEndpointTopologyResponse ¶
type GetServiceEndpointTopologyResponse struct { Parents []*model.TopologyNode `json:"parents"` // 上游节点列表 Current *model.TopologyNode `json:"current"` // 当前服务 Children []*model.TopologyNode `json:"children"` // 下游节点列表 }
type GetServiceEntryEndpointsResponse ¶
type GetServiceEntryEndpointsResponse struct { Status string `json:"status"` Data []*EntryInstanceData `json:"data"` }
type GetServiceNamespaceListResponse ¶
type GetServiceNamespaceListResponse struct {
NamespaceList []string `json:"namespaceList"`
}
type GetServiceRouteResponse ¶
type GetSingleTraceInfoResponse ¶
type GetSingleTraceInfoResponse string
type GetTTLResponse ¶
type GetTTLResponse struct { Logs []model.ModifyTableTTLMap `json:"logs"` Trace []model.ModifyTableTTLMap `json:"trace"` K8s []model.ModifyTableTTLMap `json:"k8s"` Topology []model.ModifyTableTTLMap `json:"topology"` Other []model.ModifyTableTTLMap `json:"other"` }
type GetThresholdResponse ¶
type GetTraceFilterValueResponse ¶
type GetTraceFilterValueResponse struct {
TraceFilterOptions clickhouse.SpanTraceOptions `json:"traceFilterOptions"`
}
type GetTraceFiltersResponse ¶
type GetTraceFiltersResponse struct {
TraceFilters []request.SpanTraceFilter `json:"traceFilters"`
}
type GetTraceMetricsResponse ¶
type GetTraceMetricsResponse = GetLogMetricsResponse
type GetTracePageListResponse ¶
type GetTracePageListResponse struct { List []clickhouse.QueryTraceResult `json:"list"` Pagination *model.Pagination `json:"pagination"` }
type GetUserConfigResponse ¶
type GetUserInfoResponse ¶
type GetUserListResponse ¶
type GetUserListResponse struct { Users []database.User `json:"users"` model.Pagination }
type GetUserRoleResponse ¶
type InstanceData ¶
type InstanceData struct { Name string `json:"name"` //实例名 Namespace string `json:"namespace"` NodeName string `json:"nodeName"` NodeIP string `json:"nodeIP"` Timestamp *int64 `json:"timestamp"` Latency TempChartObject `json:"latency"` ErrorRate TempChartObject `json:"errorRate"` Tps TempChartObject `json:"tps"` Logs TempChartObject `json:"logs"` model.AlertStatus AlertReason model.AlertReason `json:"alertReason"` }
type InstanceNode ¶
type InstancesRes ¶
type InstancesRes struct { Status string `json:"status"` Data []InstanceData `json:"data"` }
type K8sEventCountValues ¶
type K8sEventCountValues struct { Current uint64 `json:"current"` LastWeek uint64 `json:"lastWeek"` LastMonth uint64 `json:"lastMonth"` }
func (*K8sEventCountValues) AddCount ¶
func (v *K8sEventCountValues) AddCount(dao clickhouse.K8sEventsCount)
type K8sEventStatistics ¶
type K8sEventStatistics struct { EventName string `json:"eventName"` DisplayName string `json:"displayName"` // Normal or Warning Severity string `json:"severity"` Counts K8sEventCountValues `json:"counts"` }
type LogChartResponse ¶
type LogChartResponse struct { Histograms []*LogHistogram `json:"histograms"` Count uint64 `json:"count"` Progress string `json:"progress"` Err string `json:"error"` }
type LogHistogram ¶
type LogIndexResponse ¶
type LogIndexResponse struct {
Indexs []IndexItem `json:"indexs"`
}
type LogParseResponse ¶
type LogParseResponse struct { ParseInfo string `json:"parseInfo"` Service []string `json:"serviceName"` ParseName string `json:"parseName"` RouteRule map[string]string `json:"routeRule"` ParseRule string `json:"parseRule"` LogFields []request.Field `json:"tableFields"` IsStructured bool `json:"isStructured"` }
type LogQueryContextResponse ¶
type LogQueryResponse ¶
type LogTableInfo ¶
type LogTableInfoResponse ¶
type LogTableResponse ¶
type LoginResponse ¶
type MonitorStatus ¶
type OtherDB ¶
type OtherDB struct { DataBase string `json:"dataBase"` Tables []OtherTable `json:"tables"` }
type OtherTable ¶
type OtherTable struct {
TableName string `json:"tableName"`
}
type OtherTableInfoResponse ¶
type OtherTableResponse ¶
type OtherTableResponse struct {
OtherTables []OtherDB `json:"otherTables"`
}
type PodMapResponse ¶
type RYGResult ¶
type RYGResult struct { PercentScore int `json:"percentScore"` // 百分比总分 Score int `json:"score"` // 总分 Status RYGStatus `json:"status"` ScoreDetail []RYGScoreDetail `json:"scoreDetail"` }
type RYGScoreDetail ¶
type RefreshTokenResponse ¶
type RefreshTokenResponse struct {
AccessToken string `json:"accessToken"` // accessToken用于调用接口获取资源
}
type SQLOperationDetail ¶
type SQLOperationDetail struct { prometheus.SQLKey Latency TempChartObject `json:"latency"` ErrorRate TempChartObject `json:"errorRate"` // FIXME Tps 名称为tps,实际为每分钟请求数 Tps TempChartObject `json:"tps"` }
type SegmentLatency ¶
type SegmentLatency struct { // 在客户端进程处采集到的请求和响应时间 ClientProcess Duration `json:"clientProcess"` // 在客户端网卡处采集到的请求和响应时间 ClientNic Duration `json:"clientNic"` // 在客户端主机网卡处采集到的请求和响应时间 ClientK8sNodeNic Duration `json:"clientK8SNodeNic"` // 在服务端主机网卡处采集到的请求和响应时间 ServerK8sNodeNic Duration `json:"serverK8SNodeNic"` // 在服务端网卡处采集到的请求和响应时间 ServerNic Duration `json:"serverNic"` // 在服务端进程处采集到的请求和响应时间 ServerProcess Duration `json:"serverProcess"` }
type ServiceAlertRes ¶
type ServiceAlertRes struct { ServiceName string `json:"serviceName"` Logs TempChartObject `json:"logs"` Timestamp *int64 `json:"timestamp"` model.AlertStatus AlertReason model.AlertReason `json:"alertReason"` }
type ServiceDetail ¶
type ServiceDetail struct { Endpoint string `json:"endpoint"` DelaySource string `json:"delaySource"` Latency TempChartObject `json:"latency"` ErrorRate TempChartObject `json:"errorRate"` Tps TempChartObject `json:"tps"` // FIXME 名称为tps,实际为每分钟请求数 }
type ServiceEndPointsRes ¶
type ServiceEndPointsRes struct { ServiceName string `json:"serviceName"` Namespaces []string `json:"namespaces"` // 应用所属命名空间,可能为空 EndpointCount int `json:"endpointCount"` ServiceDetails []ServiceDetail `json:"serviceDetails"` }
type ServiceRYGLightRes ¶
type ServiceRYGLightRes struct {
ServiceList []*ServiceRYGResult `json:"serviceList"`
}
type ServiceRYGResult ¶
type ServiceRes ¶
type ServiceRes struct { ServiceName string `json:"serviceName"` EndpointCount int `json:"endpointCount"` ServiceDetails []ServiceDetail `json:"serviceDetails"` Logs TempChartObject `json:"logs"` InfrastructureStatus string `json:"infrastructureStatus"` NetStatus string `json:"netStatus"` K8sStatus string `json:"k8sStatus"` Timestamp *int64 `json:"timestamp"` }
type SetThresholdResponse ¶
type SetThresholdResponse struct { }
type SpanSegmentMetricsResponse ¶
type SpanSegmentMetricsResponse map[string]*SegmentLatency
Click to show internal directories.
Click to hide internal directories.