Documentation
¶
Index ¶
- Constants
- type APIListItem
- type APIPermItem
- type ActItem
- type AlarmFilterItem
- type AppAvailableRoles
- type AppPermItem
- type AppRoleInfoItem
- type At
- type CascaderItem
- type ClickhouseSystemClusters
- type Cluster
- type Column
- type ConfigFormat
- type ConfigMetadata
- type CustomRolePms
- type DagExecFlow
- type DatabendSystemClusters
- type DefaultRolePms
- type DingTalkMarkdown
- type DomainUids
- type HiddenFieldCreate
- type HighChart
- type HighCharts
- type IndexItem
- type InfoItem
- type InnerNodeRun
- type IntegrationFlat
- type IntegrationMapping
- type JaegerDependencyDataModel
- type ListGroupItem
- type ListUserItem
- type Markdown
- type MentionedList
- type MenuTree
- type MenuTreeItem
- type NodeHistoryItem
- type OperatorViewParams
- type Pagination
- type ReqAlarmConditionCreate
- type ReqAlarmCreate
- type ReqAlarmFilterCreate
- type ReqAlarmHistoryList
- type ReqChangeAppGroup
- type ReqChangeUserGroup
- type ReqComplete
- type ReqConfigMapInfo
- type ReqCreateAgentStorage
- type ReqCreateCluster
- type ReqCreateConfig
- type ReqCreateConfigMap
- type ReqCreateCrontab
- type ReqCreateFolder
- type ReqCreateIndex
- type ReqCreateInstance
- type ReqCreateNode
- type ReqCreateSource
- type ReqCreateStorageByTemplateEgo
- type ReqCreateStorageByTemplateILogtail
- type ReqCreateWorkflow
- type ReqCrontabArg
- type ReqDAG
- type ReqDagEdge
- type ReqDagNode
- type ReqDatabaseCreate
- type ReqDeletePmsRole
- type ReqDetailConfig
- type ReqDiffConfig
- type ReqEnsureFuzzyDefaultRole
- type ReqEventList
- type ReqGetAppPerm
- type ReqGetGroupAPIPerm
- type ReqGetGroupMenuPerm
- type ReqKafkaJSONMapping
- type ReqListConfig
- type ReqListNode
- type ReqListSource
- type ReqListSourceColumn
- type ReqListSourceTable
- type ReqListUser
- type ReqListWorkflow
- type ReqNewPmsRole
- type ReqNodeHistoryList
- type ReqNodeResultList
- type ReqNodeRunOpenAPI
- type ReqNodeRunResult
- type ReqPermission
- type ReqPmsCommonInfo
- type ReqPmsRoles
- type ReqPublishConfig
- type ReqQuery
- type ReqSetGroupAPIPerm
- type ReqSetGroupAppPerm
- type ReqSetGroupMenuPerm
- type ReqStorageCreate
- func (r *ReqStorageCreate) GetRawLogField() string
- func (r *ReqStorageCreate) IsRawLogFieldString() bool
- func (r *ReqStorageCreate) JSON() string
- func (r *ReqStorageCreate) Mapping2Fields(rawLogFieldParent string) string
- func (r *ReqStorageCreate) Mapping2String(withType bool, rawLogFieldParent string) string
- func (r *ReqStorageCreate) SelectFields() string
- type ReqStorageGetTraceGraph
- type ReqStorageUpdate
- type ReqStorageUpdateTraceInfo
- type ReqStructuralTransfer
- type ReqSyncConfig
- type ReqTableCreate
- type ReqTableCreateExist
- type ReqTableCreateExistBatch
- type ReqTableDependencies
- type ReqTableId
- type ReqTableUpdate
- type ReqTemplateClusterNoReplica
- type ReqTemplateStandalone
- type ReqTestInstance
- type ReqUpdateConfig
- type ReqUpdateCrontab
- type ReqUpdateFolder
- type ReqUpdateGroup
- type ReqUpdateNode
- type ReqUpdatePmsRole
- type ReqUpdateSource
- type ReqUpdateWorkflow
- type ReqUserCreate
- type ReqUserList
- type ReqViewCreate
- type ReqViewList
- type ReqWorkerDashboard
- type ReqWorkerList
- type ResPmsCommonInfo
- type ResourceItem
- type RespAgentChartsSearch
- type RespAgentSearch
- type RespAgentSearchItem
- type RespAlarmHistoryList
- type RespAlarmInfo
- type RespAlarmInfoFilter
- type RespAlarmList
- type RespChart
- type RespColumn
- type RespComplete
- type RespConfigmap
- type RespCreateNode
- type RespDatabase
- type RespDatabaseItem
- type RespDatabaseSelfBuilt
- type RespDatabaseSimple
- type RespDetailConfig
- type RespDiffConfig
- type RespDomainCascader
- type RespGetAppPerm
- type RespGetGroupAPIPerm
- type RespGetMenuPerm
- type RespHistoryConfigItem
- type RespIndexItem
- type RespInfoFolder
- type RespInfoNode
- type RespInstance
- type RespInstanceSimple
- type RespJaegerDependencyDataModel
- type RespListAppGroup
- type RespListConfig
- type RespListConfigItem
- type RespListFolder
- type RespListNode
- type RespListUser
- type RespListUserGroup
- type RespNamespaceConfigmaps
- type RespNodeHistoryList
- type RespNodeResult
- type RespNodeResultList
- type RespQuery
- type RespRunNode
- type RespStorageAnalysisFields
- type RespTableDependencies
- type RespTableDeps
- type RespTableDetail
- type RespTableSimple
- type RespTablesSelfBuilt
- type RespUserCreate
- type RespUserSimpleInfo
- type RespUserSimpleList
- type RespWorkerDashboard
- type RespWorkerList
- type RespWorkerRow
- type RoleGrantInfoFilter
- type RoleItem
- type RolePmsDetail
- type RootUsers
- type RunNodeResult
- type StorageAnalysisField
- type SyncContent
- type SystemClusters
- type SystemTables
- type TableRolesAssignmentInfo
- type WeComMarkdown
- type WorkerStats
- type WorkerStatsRow
Constants ¶
const (
DefaultPaginationSize = 20
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIListItem ¶
type APIPermItem ¶
type AlarmFilterItem ¶
type AlarmFilterItem struct { *db2.AlarmFilter Exp string }
type AppAvailableRoles ¶
type AppPermItem ¶
type AppRoleInfoItem ¶
type CascaderItem ¶
type CascaderItem struct { Value string `json:"value"` Label string `json:"label"` Children []CascaderItem `json:"children,omitempty"` }
type ConfigFormat ¶
type ConfigFormat string
ConfigFormat ..
const ( ConfigFormatToml ConfigFormat = "toml" ConfigFormatYaml ConfigFormat = "yaml" ConfigFormatJson ConfigFormat = "json" ConfigFormatXml ConfigFormat = "xml" ConfigFormatProperties ConfigFormat = "properties" ConfigFormatIni ConfigFormat = "ini" ConfigFormatConf ConfigFormat = "conf" )
type ConfigMetadata ¶
type ConfigMetadata struct { Version string `json:"version"` ChangeLog string `json:"changeLog"` PublishedBy int `json:"uid"` }
ConfigMetadata 用于记录某个配置的版本信息
type CustomRolePms ¶
type CustomRolePms struct {
db.PmsCustomRole
}
type DagExecFlow ¶
type DagExecFlow struct { NodeId int `json:"nodeId"` Children []DagExecFlow `json:"children"` }
DAG ...
type DatabendSystemClusters ¶
type DefaultRolePms ¶
type DefaultRolePms struct {
db.PmsDefaultRole
}
type DingTalkMarkdown ¶
type DomainUids ¶
type HiddenFieldCreate ¶
type HiddenFieldCreate struct {
Fields []string `json:"fields" binding:"required"`
}
type HighCharts ¶
type IndexItem ¶
type InnerNodeRun ¶
type InnerNodeRun struct { N *db2.BigdataNode NC *db2.BigdataNodeContent }
type IntegrationFlat ¶
type IntegrationFlat struct { Typ string `json:"typ"` // clickhouse mysql SourceId int `json:"sourceId"` Cluster string `json:"cluster"` Database string `json:"database"` Table string `json:"table"` SourceFilter string `json:"sourceFilter"` // Deprecated TargetBefore string `json:"targetBefore"` // Deprecated TargetAfter string `json:"targetAfter"` TargetBeforeList []string `json:"targetBeforeList"` TargetAfterList []string `json:"targetAfterList"` }
IntegrationFlat integration offline sync step 1
type IntegrationMapping ¶
type IntegrationMapping struct { Source string `json:"source"` SourceType string `json:"sourceType"` Target string `json:"target"` TargetType string `json:"targetType"` }
IntegrationMapping integration offline sync step 2
type JaegerDependencyDataModel ¶
type JaegerDependencyDataModel struct { Timestamp time.Time Parent string Child string CallCount int64 ServerDurationP50 float64 ServerDurationP90 float64 ServerDurationP99 float64 ClientDurationP50 float64 ClientDurationP90 float64 ClientDurationP99 float64 ServerSuccessRate float64 ClientSuccessRate float64 Time time.Time }
type ListGroupItem ¶
type ListGroupItem struct {
Name string `json:"name"`
}
type ListUserItem ¶
type MentionedList ¶
type MenuTree ¶
type MenuTree []MenuTreeItem
type MenuTreeItem ¶
type NodeHistoryItem ¶
type OperatorViewParams ¶
type Pagination ¶
type Pagination struct { // Current 总记录数 Current int `json:"current" form:"current"` // PageSize 每页记录数 PageSize int `json:"pageSize" form:"pageSize"` // Total 总页数 Total int64 `json:"total" form:"total"` // Sort 顺序 Sort string `json:"sort" form:"sort"` }
func NewPagination ¶
func NewPagination(current int, pageSize int) *Pagination
func (*Pagination) List ¶
func (p *Pagination) List(db *gorm.DB, list interface{})
func (*Pagination) Valid ¶
func (p *Pagination) Valid() error
type ReqAlarmConditionCreate ¶
type ReqAlarmConditionCreate struct { SetOperatorTyp int `json:"typ" form:"typ"` // 0 when 1 and 2 or SetOperatorExp int `json:"exp" form:"exp"` // 0 avg 1 min 2 max 3 sum 4 count Cond int `json:"cond" form:"cond"` // 0 above 1 below 2 outside range 3 within range Val1 int `json:"val1" form:"val1" binding:"required"` // 基准值/最小值 Val2 int `json:"val2" form:"val2"` // 最大值 }
type ReqAlarmCreate ¶
type ReqAlarmCreate struct { Name string `json:"alarmName" form:"alarmName"` // 告警名称 Desc string `json:"desc" form:"desc"` // 描述说明 Interval int `json:"interval" form:"interval"` // 告警频率 Unit int `json:"unit" form:"unit"` // 0 m 1 s 2 h 3 d 4 w 5 y Status int `json:"status" form:"status"` AlertRule string `json:"alertRule" form:"alertRule"` // prometheus alert rule View string `json:"view" form:"view"` // 数据转换视图 NoDataOp int `json:"noDataOp" form:"noDataOp"` Tags map[string]string `json:"tags" form:"tags"` // ChannelIds []int `json:"channelIds" form:"channelIds"` Filters []ReqAlarmFilterCreate `json:"filters" form:"filters"` Conditions []ReqAlarmConditionCreate `json:"conditions" form:"conditions"` Level int `json:"level" form:"level"` DutyOfficers []int `json:"dutyOfficers" form:"dutyOfficers"` IsDisableResolve int `json:"isDisableResolve" form:"isDisableResolve"` }
func (*ReqAlarmCreate) ConvertV2 ¶
func (r *ReqAlarmCreate) ConvertV2()
type ReqAlarmFilterCreate ¶
type ReqAlarmFilterCreate struct { Tid int `json:"tid" form:"tid" binding:"required"` When string `json:"when" form:"when" binding:"required"` // 执行条件 SetOperatorTyp int `json:"typ" form:"typ"` // 0 default 1 INNER 2 LEFT OUTER 3 RIGHT OUTER 4 FULL OUTER 5 CROSS SetOperatorExp string `json:"exp" form:"exp"` // 操作 Mode int `json:"mode" form:"mode"` Conditions []ReqAlarmConditionCreate `json:"conditions" form:"conditions"` }
type ReqAlarmHistoryList ¶
type ReqChangeAppGroup ¶
type ReqChangeUserGroup ¶
type ReqComplete ¶
type ReqComplete struct {
Query string `form:"query" binding:"required"`
}
type ReqConfigMapInfo ¶
type ReqConfigMapInfo struct {
Key string `form:"key" binding:"required"`
}
ReqConfigMapInfo ..
type ReqCreateAgentStorage ¶
type ReqCreateCluster ¶
type ReqCreateConfig ¶
type ReqCreateConfig struct { Name string `gorm:"column:name;type:varchar(64)" json:"configurationName" binding:"required"` Format ConfigFormat `json:"format" binding:"required,oneof=yaml toml ini json conf"` // 格式后缀名(比如: toml, yaml) K8SConfigMapId int `form:"k8sConfigMapId"` K8SConfigMapName string `form:"k8sConfigMapName" binding:"required"` K8SConfigMapNamespace string `form:"k8sConfigMapNameSpace" binding:"required"` ClusterId int `form:"clusterId" binding:"required"` }
ReqCreateConfig ..
type ReqCreateConfigMap ¶
type ReqCreateConfigMap struct { ConfigmapName string `form:"configmapName" binding:"required"` Namespace string `form:"namespace" binding:"required"` }
ReqCreateConfigMap ..
type ReqCreateFolder ¶
type ReqCreateFolder struct { Iid int `json:"iid" form:"iid" binding:"required"` Primary int `json:"primary" form:"primary" binding:"required"` Secondary int `json:"secondary" form:"secondary"` ReqUpdateFolder }
type ReqCreateIndex ¶
type ReqCreateInstance ¶
type ReqCreateInstance struct { Datasource string `json:"datasource" binding:"required"` Name string `json:"name" binding:"required"` Dsn string `json:"dsn"` RuleStoreType int `json:"ruleStoreType"` FilePath string `json:"filePath"` Desc string `json:"desc"` ClusterId int `json:"clusterId"` Namespace string `json:"namespace"` Configmap string `json:"configmap"` PrometheusTarget string `json:"prometheusTarget"` }
type ReqCreateNode ¶
type ReqCreateNode struct { Primary int `json:"primary" form:"primary" binding:"required"` Secondary int `json:"secondary" form:"secondary" binding:"required"` Tertiary int `json:"tertiary" form:"tertiary"` Iid int `json:"iid" form:"iid" binding:"required"` WorkflowId int `json:"workflowId" form:"workflowId"` SourceId int `json:"sourceId" form:"sourceId"` ReqUpdateNode }
ReqCreateNode Node
type ReqCreateSource ¶
type ReqCreateSource struct { Iid int `json:"iid" form:"iid" binding:"required"` ReqUpdateSource }
type ReqCreateStorageByTemplateEgo ¶
type ReqCreateStorageByTemplateEgo struct { Brokers string `form:"brokers" binding:"required"` DatabaseId int `form:"databaseId" binding:"required"` TopicsApp string `form:"topicsApp" binding:"required"` TopicsEgo string `form:"topicsEgo" binding:"required"` TopicsIngressStdout string `form:"topicsIngressStdout" binding:"required"` TopicsIngressStderr string `form:"topicsIngressStderr" binding:"required"` }
type ReqCreateWorkflow ¶
type ReqCreateWorkflow struct { Iid int `json:"iid" form:"iid" binding:"required"` ReqUpdateSource }
type ReqCrontabArg ¶
crontab struct
type ReqDAG ¶
type ReqDAG struct { BoardNodeList []ReqDagNode `json:"boardNodeList"` BoardEdges []ReqDagEdge `json:"boardEdges"` }
DAG ...
type ReqDagEdge ¶
DAG ...
type ReqDatabaseCreate ¶
type ReqDeletePmsRole ¶
type ReqDetailConfig ¶
type ReqDetailConfig struct {
ID uint `form:"id" binding:"required"`
}
ReqDetailConfig ..
type ReqDiffConfig ¶
type ReqDiffConfig struct { ID int `form:"id"` // 配置ID HistoryID int `form:"historyId" binding:"required"` // 版本ID }
ReqDiffConfig ..
type ReqEnsureFuzzyDefaultRole ¶
type ReqEnsureFuzzyDefaultRole struct { BelongType string `json:"belong_type"` // value in ["app", "configResource] currently ReferIdx string `json:"refer_idx"` // 所对应的belongType资源的id(如果belongTypes是"app") or name RoleNameLike string `json:"role_name_like"` // 角色模糊名称 DomainType string `json:"domain_type"` // 角色所在domain类型 可为空 DomainId int `json:"domain_id"` // domainType不为空时, 对应的id; domainType为空时, 此处值为0 }
type ReqEventList ¶
type ReqEventList struct { Source string `json:"source" form:"source"` Operation string `json:"operation" form:"operation"` Uid int `json:"uid" form:"uid"` Pagination }
type ReqGetAppPerm ¶
type ReqGetGroupAPIPerm ¶
type ReqGetGroupAPIPerm struct {
GroupName string `query:"group_name" valid:"required"`
}
type ReqGetGroupMenuPerm ¶
type ReqGetGroupMenuPerm struct {
GroupName string `query:"group_name"`
}
type ReqKafkaJSONMapping ¶
type ReqKafkaJSONMapping struct {
Data string `json:"data" form:"data"`
}
type ReqListConfig ¶
type ReqListNode ¶
type ReqListSource ¶
type ReqListSourceColumn ¶
type ReqListSourceTable ¶
type ReqListSourceTable struct {
Database string `json:"database" form:"database" binding:"required"`
}
type ReqListUser ¶
type ReqListWorkflow ¶
type ReqListWorkflow struct {
Iid int `json:"iid" form:"iid" binding:"required"`
}
type ReqNewPmsRole ¶
type ReqNodeHistoryList ¶
type ReqNodeResultList ¶
type ReqNodeRunOpenAPI ¶
type ReqNodeRunOpenAPI struct {
Token string `json:"token" form:"token" binding:"required"`
}
type ReqNodeRunResult ¶
type ReqNodeRunResult struct {
ExcelProcess string `json:"excelProcess" form:"excelProcess"`
}
crontab struct
type ReqPermission ¶
type ReqPermission struct { UserId int `json:"userId"` // request userId ObjectType string `json:"objectType" valid:"required"` // the type of ObjectIdx. its value must be a valid PermittedPrefix ObjectIdx string `json:"objectIdx"` // referId(e.g. aid) or other NameStr(e.g. configResourceName, url etc.) SubResource string `json:"subResource"` // the subResource of target Object(Type+Idx). If target Obj has no subResource, please set it to "*" Acts []string `json:"acts"` // require(or want) actions. i.e. the key of PermittedActMap DomainType string `json:"domainType"` // env or ent. i.e. the keys of PermittedDomPrefixMap DomainId string `json:"domainId"` // envId or entId based on DomainType respectively }
type ReqPmsCommonInfo ¶
type ReqPmsCommonInfo struct {
Iid int `json:"iid" form:"iid"` // request instance id
}
type ReqPmsRoles ¶
type ReqPublishConfig ¶
type ReqPublishConfig struct { ID int `json:"id"` // 配置ID Version *string `json:"version" binding:"required"` // 版本号 }
ReqPublishConfig ..
type ReqQuery ¶
type ReqQuery struct { Tid int `json:"tid" form:"tid"` Database string `form:"database"` Table string `form:"table"` DatabaseTable string `form:"databaseTable"` Field string `form:"field"` Query string `form:"query"` TimeField string `form:"timeField"` TimeFieldType int `form:"timeFieldType"` ST int64 `form:"st"` ET int64 `form:"et"` Page uint32 `form:"page"` PageSize uint32 `form:"pageSize"` AlarmMode int `form:"alarmMode"` Filters []string `form:"filters[]"` GroupByCond string `form:"groupByCond"` IsQueryCount int `form:"isQueryCount"` // 是否请求日志总数 0 不请求 1 请求 Date string `form:"date"` K8SContainer []string `form:"k8sContainer"` Dir string `json:"dir"` Path string `form:"path" json:"path"` Interval int64 `json:"interval"` }
type ReqSetGroupAPIPerm ¶
type ReqSetGroupAPIPerm struct { GroupName string `json:"group_name"` APIList []APIListItem `json:"api_list"` }
type ReqSetGroupAppPerm ¶
type ReqSetGroupMenuPerm ¶
type ReqStorageCreate ¶
type ReqStorageCreate struct { TableName string `form:"tableName" binding:"required"` Typ int `form:"typ" binding:"required"` // 1 string 2 float Days int `form:"days" binding:"required"` Brokers string `form:"brokers" binding:"required"` Topics string `form:"topics" binding:"required"` Consumers int `form:"consumers" binding:"required"` KafkaSkipBrokenMessages int `form:"kafkaSkipBrokenMessages"` Desc string `form:"desc"` Source string `form:"source" binding:"required"` // Raw JSON data DatabaseId int `form:"databaseId" binding:"required"` TimeField string `form:"timeField" binding:"required"` TimeFieldParent string `form:"timeFieldParent"` RawLogField string `form:"rawLogField"` RawLogFieldParent string `form:"rawLogFieldParent"` SourceMapping mapping.List `form:"-"` CreateType int `form:"createType"` }
func ReqStorageCreateUnmarshal ¶
func ReqStorageCreateUnmarshal(res string) ReqStorageCreate
func (*ReqStorageCreate) GetRawLogField ¶
func (r *ReqStorageCreate) GetRawLogField() string
func (*ReqStorageCreate) IsRawLogFieldString ¶
func (r *ReqStorageCreate) IsRawLogFieldString() bool
IsRawLogFieldString 判断 raw log 字段是否是 string 类型
func (*ReqStorageCreate) JSON ¶
func (r *ReqStorageCreate) JSON() string
func (*ReqStorageCreate) Mapping2Fields ¶
func (r *ReqStorageCreate) Mapping2Fields(rawLogFieldParent string) string
func (*ReqStorageCreate) Mapping2String ¶
func (r *ReqStorageCreate) Mapping2String(withType bool, rawLogFieldParent string) string
func (*ReqStorageCreate) SelectFields ¶
func (r *ReqStorageCreate) SelectFields() string
type ReqStorageGetTraceGraph ¶
type ReqStorageUpdate ¶
type ReqStorageUpdate struct { MergeTreeTTL int `form:"mergeTreeTTL"` KafkaBrokers string `form:"kafkaBrokers"` KafkaTopic string `form:"kafkaTopic"` KafkaConsumerNum int `form:"kafkaConsumerNum"` // min 1 max 8 KafkaSkipBrokenMessages int `form:"kafkaSkipBrokenMessages"` Desc string `form:"desc"` V3TableType int `form:"v3TableType"` }
type ReqStorageUpdateTraceInfo ¶
type ReqStorageUpdateTraceInfo struct {
TraceTableId int `form:"traceTableId"`
}
type ReqStructuralTransfer ¶
type ReqSyncConfig ¶
type ReqSyncConfig struct { K8SConfigMapId int `form:"k8sConfigMapId"` K8SConfigMapName string `form:"k8sConfigMapName" binding:"required"` K8SConfigMapNamespace string `form:"k8sConfigMapNameSpace" binding:"required"` ClusterId int `form:"clusterId" binding:"required"` }
ReqSyncConfig ..
type ReqTableCreate ¶
type ReqTableCreate struct { TableName string `form:"tableName" binding:"required"` Typ int `form:"typ" binding:"required"` Days int `form:"days" binding:"required"` Brokers string `form:"brokers" binding:"required"` Topics string `form:"topics" binding:"required"` Consumers int `form:"consumers" binding:"required"` KafkaSkipBrokenMessages int `form:"kafkaSkipBrokenMessages"` Desc string `form:"desc"` }
type ReqTableCreateExist ¶
type ReqTableCreateExist struct { DatabaseName string `form:"databaseName" json:"databaseName" binding:"required"` TableName string `form:"tableName" json:"tableName" binding:"required"` TimeField string `form:"timeField" json:"timeField"` TimeFieldType int `form:"timeFieldType" json:"timeFieldType"` Cluster string `form:"cluster" json:"cluster"` Desc string `form:"desc" json:"desc"` }
type ReqTableCreateExistBatch ¶
type ReqTableCreateExistBatch struct {
TableList []ReqTableCreateExist `form:"tableList" json:"tableList"`
}
type ReqTableDependencies ¶
type ReqTableId ¶
type ReqTableUpdate ¶
type ReqTableUpdate struct {
Desc string `form:"desc"`
}
type ReqTemplateStandalone ¶
type ReqTestInstance ¶
type ReqUpdateConfig ¶
type ReqUpdateConfig struct { ID int `json:"id"` // the id of configuration Message string `json:"message" binding:"required"` Content string `json:"content" binding:"required"` }
ReqUpdateConfig ..
type ReqUpdateCrontab ¶
type ReqUpdateCrontab struct { Desc string `json:"desc" form:"desc"` DutyUid int `json:"dutyUid" form:"dutyUid" required:"true"` Cron string `json:"cron" form:"cron" required:"true"` Typ int `json:"typ" form:"typ"` Args []ReqCrontabArg `json:"args" form:"args"` IsRetry int `json:"isRetry" form:"isRetry"` // isRetry: 0 no 1 yes RetryTimes int `json:"retryTimes" form:"retryTimes"` RetryInterval int `json:"retryInterval" form:"retryInterval"` // retryInterval: the unit is in seconds, 100 means 100s ChannelIds []int `json:"channelIds" form:"channelIds"` }
crontab struct
type ReqUpdateFolder ¶
type ReqUpdateGroup ¶
type ReqUpdateNode ¶
type ReqUpdatePmsRole ¶
type ReqUpdateSource ¶
type ReqUpdateWorkflow ¶
type ReqUserCreate ¶
type ReqUserList ¶
type ReqViewCreate ¶
type ReqViewList ¶
type ReqWorkerDashboard ¶
type ReqWorkerDashboard struct { Start int64 `json:"start" form:"start"` End int64 `json:"end" form:"end"` Iid int `json:"iid" form:"iid"` IsInCharge int `json:"isInCharge" form:"isInCharge"` }
ReqWorkerDashboard Request start and end time
type ReqWorkerList ¶
type ReqWorkerList struct { Start int `json:"start" form:"start"` End int `json:"end" form:"end"` NodeName string `json:"nodeName" form:"nodeName"` Tertiary int `json:"tertiary" form:"tertiary"` // ClickHouse 10; MySQL 11; OfflineSync 20 Iid int `json:"iid" form:"iid"` Status int `json:"status" form:"status"` // 0 未知;1 成功;2 失败 Pagination }
type ResPmsCommonInfo ¶
type ResPmsCommonInfo struct { RulesInfo []InfoItem `json:"rules_info"` PrefixesInfo []InfoItem `json:"prefixes_info"` AllActsInfo []InfoItem `json:"all_acts_info"` NormalActsInfo []InfoItem `json:"normal_acts_info"` AppSubResourcesInfo []InfoItem `json:"app_subResources_info"` ConfigRsrcSubResourcesInfo []InfoItem `json:"configRsrc_subResources_info"` DomainCascader []CascaderItem `json:"domainCascader"` }
type ResourceItem ¶
type RespAgentChartsSearch ¶
type RespAgentSearch ¶
type RespAgentSearch struct { Data []RespAgentSearchItem `json:"data"` K8sClientType string `json:"k8sClientType"` }
type RespAgentSearchItem ¶
type RespAlarmHistoryList ¶
type RespAlarmHistoryList struct { Total int64 `json:"total"` Succ int64 `json:"succ"` List []*db2.AlarmHistory `json:"list"` }
type RespAlarmInfo ¶
type RespAlarmInfo struct { Filters []RespAlarmInfoFilter `json:"filters"` RelatedList []*db2.RespAlarmListRelatedInfo `json:"relatedList"` Ctime int64 `json:"ctime"` Utime int64 `json:"utime"` db2.Alarm Uid int `gorm:"-" json:"uid"` OaId int64 `gorm:"column:oa_id;type:bigint(20);NOT NULL" json:"oaId"` // oa_id Username string `gorm:"column:username;type:varchar(128);NOT NULL;index:uix_user,unique" json:"username"` // 用户名 Nickname string `gorm:"column:nickname;type:varchar(128);NOT NULL;index:uix_user,unique" json:"nickname"` // 昵称 Secret string `gorm:"column:secret;type:varchar(256);NOT NULL" json:"secret"` // 实例名称 Phone string `gorm:"column:phone;type:varchar(64);NOT NULL" json:"phone"` // phone Email string `gorm:"column:email;type:varchar(64);NOT NULL" json:"email"` // email Avatar string `gorm:"column:avatar;type:varchar(256);NOT NULL" json:"avatar"` // avatar Hash string `gorm:"column:hash;type:varchar(256);NOT NULL" json:"hash"` // hash WebUrl string `gorm:"column:web_url;type:varchar(256);NOT NULL" json:"webUrl"` // webUrl Oauth string `gorm:"column:oauth;type:varchar(256);NOT NULL" json:"oauth"` // oauth State string `gorm:"column:state;type:varchar(256);NOT NULL" json:"state"` // state OauthId string `gorm:"column:oauth_id;type:varchar(256);NOT NULL" json:"oauthId"` // oauthId Password string `gorm:"column:password;type:varchar(256);NOT NULL" json:"password"` // password CurrentAuthority string `gorm:"column:current_authority;type:varchar(256);NOT NULL" json:"currentAuthority"` // currentAuthority Access string `gorm:"column:access;type:varchar(256);NOT NULL" json:"access"` // access // Deprecated: Table db2.BaseTable `json:"table"` // Deprecated: Instance db2.BaseInstance `json:"instance"` // Deprecated: Conditions Conditions []*db2.AlarmCondition `json:"conditions"` }
type RespAlarmInfoFilter ¶
type RespAlarmInfoFilter struct { *db2.AlarmFilter TableName string `json:"tableName"` Conditions []*db2.AlarmCondition `json:"conditions"` }
type RespAlarmList ¶
type RespAlarmList struct { *db2.Alarm RelatedList []*db2.RespAlarmListRelatedInfo `json:"relatedList"` // Deprecated: TableName string `json:"tableName"` // Deprecated: TableDesc string `json:"tableDesc"` // Deprecated: Tid int `json:"tid"` // Deprecated: DatabaseName string `json:"databaseName"` // Deprecated: DatabaseDesc string `json:"databaseDesc"` // Deprecated: Did int `json:"did"` // Deprecated: InstanceName string `json:"instanceName"` // Deprecated: InstanceDesc string `json:"instanceDesc"` // Deprecated: Iid int `json:"iid"` }
type RespColumn ¶
type RespComplete ¶
type RespConfigmap ¶
type RespConfigmap struct {
Name string `json:"configmapName"`
}
type RespCreateNode ¶
type RespDatabase ¶
type RespDatabaseItem ¶
type RespDatabaseItem struct { Id int `json:"id"` // id Iid int `json:"iid"` // 实例 id Name string `json:"name"` // 数据库名称 Uid int `json:"uid"` // 操作人 DatasourceType string `json:"datasourceType"` InstanceName string `json:"instanceName"` InstanceDesc string `json:"instanceDesc"` Mode int `json:"mode"` Clusters []string `json:"clusters"` Cluster string `json:"cluster"` Desc string `json:"desc"` }
type RespDatabaseSelfBuilt ¶
type RespDatabaseSelfBuilt struct { Name string `json:"name"` Tables []*RespTablesSelfBuilt `json:"tables"` }
type RespDatabaseSimple ¶
type RespDatabaseSimple struct { Id int `json:"id"` Iid int `json:"iid"` DatabaseName string `json:"databaseName"` IsCreateByCV int `json:"isCreateByCV"` Desc string `json:"desc"` Cluster string `json:"cluster"` Tables []RespTableSimple `json:"tables"` }
instance list filter with pms
type RespDetailConfig ¶
type RespDetailConfig struct { ID int `json:"id"` // ConfigurationHistory.ID ConfigmapId int `json:"k8sConfigmapId"` Name string `json:"name"` Content string `json:"content"` Format string `json:"format"` // Yaml/Toml EnvId int `json:"envId"` // 环境id ZoneId int `json:"zoneId"` Ctime int64 `json:"ctime"` Utime int64 `json:"utime"` PublishTime int64 `json:"ptime"` // 未发布/发布时间 CurrentEditUser *db.User `json:"currentEditUser"` // 当前正在编辑的用户名 }
RespDetailConfig Contains configuration content
type RespDiffConfig ¶
type RespDiffConfig struct { Origin *RespDetailConfig `json:"origin,omitempty"` Modified RespDetailConfig `json:"modified"` }
RespDiffConfig ..
type RespDomainCascader ¶
type RespDomainCascader []CascaderItem
type RespGetAppPerm ¶
type RespGetAppPerm struct { List []AppPermItem `json:"list"` Pagination Pagination `json:"pagination"` }
type RespGetGroupAPIPerm ¶
type RespGetGroupAPIPerm []APIPermItem
type RespGetMenuPerm ¶
type RespGetMenuPerm []string
type RespHistoryConfigItem ¶
type RespIndexItem ¶
type RespInfoFolder ¶
type RespInfoFolder struct { db2.BigdataFolder UserName string `json:"userName"` NickName string `json:"nickName"` }
type RespInfoNode ¶
type RespInfoNode struct { Id int `json:"id"` Name string `json:"name"` Desc string `json:"desc"` Content string `json:"content"` LockUid int `json:"lockUid"` LockAt int64 `json:"lockAt"` Username string `json:"username"` Nickname string `json:"nickname"` Status int `json:"status"` PreviousContent string `json:"previousContent"` Result string `json:"result"` }
type RespInstance ¶
type RespInstanceSimple ¶
type RespInstanceSimple struct { Id int `json:"id"` InstanceName string `json:"instanceName"` Desc string `json:"desc"` Databases []RespDatabaseSimple `json:"databases"` }
instance list filter with pms
type RespJaegerDependencyDataModel ¶
type RespJaegerDependencyDataModel struct { Parent string `json:"parent"` Child string `json:"child"` CallCount int64 `json:"callCount"` ServerDurationP50 float64 `json:"serverDurationP50"` ServerDurationP90 float64 `json:"serverDurationP90"` ServerDurationP99 float64 `json:"serverDurationP99"` ClientDurationP50 float64 `json:"clientDurationP50"` ClientDurationP90 float64 `json:"clientDurationP90"` ClientDurationP99 float64 `json:"clientDurationP99"` ServerSuccessRate float64 `json:"serverSuccessRate"` ClientSuccessRate float64 `json:"clientSuccessRate"` }
type RespListAppGroup ¶
type RespListAppGroup []ListGroupItem
type RespListConfigItem ¶
type RespListConfigItem struct { ID int `json:"id"` Name string `json:"name"` Format string `json:"format"` // Yaml/Toml K8SCmId int `json:"k8sConfigmapId"` // 环境id Ctime int64 `json:"ctime"` Utime int64 `json:"utime"` PublishTime int64 `json:"publishTime"` }
RespListConfigItem Does not contain configuration content to prevent configuration form being too long
type RespListFolder ¶
type RespListFolder struct { Id int `json:"id"` Name string `json:"name"` Desc string `json:"desc"` Primary int `json:"primary"` Secondary int `json:"secondary"` ParentId int `json:"parentId"` Children []RespListFolder `json:"children"` Nodes []*db2.BigdataNode `json:"nodes"` }
type RespListNode ¶
type RespListUser ¶
type RespListUser struct { List []ListUserItem `json:"list"` Pagination Pagination `json:"pagination"` }
type RespListUserGroup ¶
type RespListUserGroup []ListGroupItem
type RespNamespaceConfigmaps ¶
type RespNamespaceConfigmaps struct { Namespace string `json:"namespace"` Configmaps []RespConfigmap `json:"configmaps"` }
type RespNodeHistoryList ¶
type RespNodeHistoryList struct { Total int64 `json:"total"` List []NodeHistoryItem `json:"list"` }
type RespNodeResult ¶
type RespNodeResult struct { ID int `json:"id"` Ctime int64 `json:"ctime"` NodeId int `json:"nodeId"` Content string `json:"content,omitempty"` Result string `json:"result,omitempty"` Cost int64 `json:"cost,omitempty"` ExcelProcess string `json:"excelProcess,omitempty"` Status int `json:"status"` RespUserSimpleInfo }
type RespNodeResultList ¶
type RespNodeResultList struct { Total int64 `json:"total"` List []RespNodeResult `json:"list"` }
type RespQuery ¶
type RespQuery struct { Limited uint32 `json:"limited"` Keys []*db2.BaseIndex `json:"keys"` ShowKeys []string `json:"showKeys"` Count uint64 `json:"count"` Terms [][]string `json:"terms"` HiddenFields []string `json:"hiddenFields"` DefaultFields []string `json:"defaultFields"` Logs []map[string]interface{} `json:"logs"` Query string `json:"query"` Cost int64 `json:"cost"` Where string `json:"where"` IsTrace int `json:"isTrace"` }
type RespRunNode ¶
type RespStorageAnalysisFields ¶
type RespStorageAnalysisFields struct { BaseFields []StorageAnalysisField `json:"baseFields"` LogFields []StorageAnalysisField `json:"logFields"` }
type RespTableDependencies ¶
type RespTableDependencies struct { Utime int64 `json:"utime"` Data []RespTableDeps `json:"data"` }
type RespTableDeps ¶
type RespTableDeps struct { Database string `json:"database"` Table string `json:"table"` Engine string `json:"engine"` TotalRows uint64 `json:"totalRows"` TotalBytes uint64 `json:"totalBytes"` Deps []string `json:"deps"` ShardNum uint32 `json:"shardNum"` ReplicaNum uint32 `json:"replicaNum"` }
func (*RespTableDeps) Name ¶
func (r *RespTableDeps) Name() string
type RespTableDetail ¶
type RespTableDetail struct { Did int `json:"did"` // 数据库 id Name string `json:"name"` // table Typ int `json:"typ"` // table 类型 1 app 2 ego 3 ingress Days int `json:"days"` // 数据过期时间 Brokers string `json:"brokers"` // kafka broker Topic string `json:"topic"` // kafka topic Uid int `json:"uid"` // 操作人 Desc string `json:"desc"` ConsumerNum int `json:"consumerNum"` KafkaSkipBrokenMessages int `json:"kafkaSkipBrokenMessages"` SQLContent struct { Keys []string `json:"keys"` Data map[string]string `json:"data"` } `json:"sqlContent"` Database RespDatabaseItem `json:"database"` CreateType int `json:"createType"` TimeField string `json:"timeField"` RawLogField string `json:"rawLogField"` Ctime int64 `json:"ctime"` Utime int64 `json:"utime"` TraceTableId int `json:"traceTableId"` V3TableType int `json:"v3TableType"` IsNotSupAnalysisField int `json:"isNotSupAnalysisField"` }
type RespTableSimple ¶
type RespTableSimple struct { Id int `json:"id"` Did int `json:"did"` TableName string `json:"tableName"` CreateType int `json:"createType"` Desc string `json:"desc"` V3TableType int `json:"v3TableType"` RelTraceTableId int `json:"relTraceTableId"` }
instance list filter with pms
type RespTablesSelfBuilt ¶
type RespTablesSelfBuilt struct {
Name string `json:"name"`
}
type RespUserCreate ¶
type RespUserSimpleInfo ¶
type RespUserSimpleInfo struct { Uid int `json:"uid"` Username string `json:"username"` Nickname string `json:"nickname"` Email string `json:"email"` Avatar string `json:"avatar"` Phone string `json:"phone"` }
func (*RespUserSimpleInfo) Gen ¶
func (r *RespUserSimpleInfo) Gen(u db.User)
type RespUserSimpleList ¶
type RespUserSimpleList struct { Total int64 `json:"total"` List []RespUserSimpleInfo `json:"list"` }
type RespWorkerDashboard ¶
type RespWorkerDashboard struct { NodeFailed int `json:"nodeFailed"` // node status NodeSuccess int `json:"nodeSuccess"` // node status NodeUnknown int `json:"nodeUnknown"` // node status WorkerFailed int `json:"workerFailed"` // Execution status of each periodic schedule WorkerSuccess int `json:"workerSuccess"` // Execution status of each periodic schedule WorkerUnknown int `json:"workerUnknown"` // Execution status of each periodic schedule Flows []WorkerStatsRow `json:"flows"` // Execution trend chart }
type RespWorkerList ¶
type RespWorkerList struct { Total int64 `json:"total"` List []RespWorkerRow `json:"list"` }
type RespWorkerRow ¶
type RespWorkerRow struct { NodeName string `json:"nodeName"` Status int `json:"status"` // unknown 0; success 1; failed 2 Tertiary int `json:"tertiary"` Crontab string `json:"crontab"` StartTime int64 `json:"startTime"` EndTime int64 `json:"endTime"` Iid int `json:"iid"` ID int `json:"id"` NodeId int `json:"nodeId"` Cost int64 `json:"cost"` ChargePerson RespUserSimpleInfo `json:"chargePerson"` }
type RoleGrantInfoFilter ¶
type RoleGrantInfoFilter struct { ResourceType string `form:"resourceType" valid:"required" json:"resourceType"` // app and etc. ResourceId int `form:"resourceId" valid:"required" json:"resourceId"` // aid and etc. GrantObjectType string `json:"grantObjectType" form:"grantObjectType"` // user and etc. DomainType string `json:"domainType" form:"domainType"` DomainId int `json:"domainId" form:"domainId"` RoleType int `json:"roleType" form:"roleType"` // used to filter results, can be omitted }
type RoleItem ¶
type RoleItem struct { BelongType string `json:"belong_type"` // value in PermittedPrefixMap ReferId int `json:"refer_id"` // 所对应的belongType资源的id; 非0时, referGroup为空 ReferGroup string `json:"refer_group"` // 所对应的group名; 非空时, referId 为0 RoleName string `json:"role_name"` // 角色名称 RoleDesc string `json:"role_desc"` // 角色描述 PmsDetails []RolePmsDetail `json:"pms_details"` DomainType string `json:"domain_type"` // 角色所在domain类型 可为空 DomainId int `json:"domain_id"` // domainType不为空时, 对应的id; domainType为空时, 此处值为0 }
type RolePmsDetail ¶
type RunNodeResult ¶
type StorageAnalysisField ¶
type StorageAnalysisField struct { Id int `json:"id"` Tid int `json:"tid"` Field string `json:"field"` RootName string `json:"rootName"` Typ int `json:"typ"` HashTyp int `json:"hashTyp"` Alias string `json:"alias"` Ctime int64 `json:"ctime"` Utime int64 `json:"utime"` OrderField string `json:"orderField"` }
type SyncContent ¶
type SyncContent struct { Source IntegrationFlat `json:"source"` Target IntegrationFlat `json:"target"` Mapping []IntegrationMapping `json:"mapping"` }
func (*SyncContent) Cluster ¶
func (s *SyncContent) Cluster() string
type SystemClusters ¶
type SystemClusters struct { DatabendSystemClusters ClickhouseSystemClusters }
type SystemTables ¶
type SystemTables struct { Table string `json:"table"` Engine string `json:"engine"` Database string `json:"database"` DownDatabaseTable []string `json:"downDatabaseTable"` CreateTableQuery string `json:"createTableQuery"` TotalRows uint64 `json:"totalRows"` TotalBytes uint64 `json:"totalBytes"` }
func (*SystemTables) Name ¶
func (r *SystemTables) Name() string
type TableRolesAssignmentInfo ¶
type TableRolesAssignmentInfo struct { AppId int `json:"app_id"` RolesInfo []AppRoleInfoItem `json:"roles_info"` }
type WeComMarkdown ¶
type WeComMarkdown struct { MsgType string `json:"msgtype"` MentionedList *MentionedList `json:"mentionedList"` Markdown *Markdown `json:"markdown"` }
type WorkerStats ¶
type WorkerStats struct { Iid int Uid int Data map[int64]WorkerStatsRow }