Documentation
¶
Index ¶
- Variables
- type AlarmMessage
- type AlarmTrend
- type Alarms
- type Attribute
- type BasicTrace
- type BatchMetricConditions
- type Call
- type ClusterBrief
- type ContentType
- type Database
- type DetectPoint
- type Duration
- type Endpoint
- type EndpointInfo
- type IntValues
- type KVInt
- type KeyValue
- type Language
- type Log
- type LogEntity
- type LogQueryCondition
- type LogState
- type Logs
- type MetricCondition
- type Node
- type NodeType
- type Order
- type Pagination
- type QueryOrder
- type Ref
- type RefType
- type Scope
- type Service
- type ServiceInstance
- type Span
- type Step
- type Thermodynamic
- type TimeInfo
- type TopNEntity
- type TopNRecord
- type TopNRecordsCondition
- type Topology
- type Trace
- type TraceBrief
- type TraceQueryCondition
- type TraceState
Constants ¶
This section is empty.
Variables ¶
View Source
var AllContentType = []ContentType{ ContentTypeText, ContentTypeJSON, ContentTypeNone, }
View Source
var AllDetectPoint = []DetectPoint{ DetectPointClient, DetectPointServer, DetectPointProxy, }
View Source
var AllLanguage = []Language{ LanguageUnknown, LanguageJava, LanguageDotnet, LanguageNodejs, LanguagePython, LanguageRuby, }
View Source
var AllLogState = []LogState{ LogStateAll, LogStateSuccess, LogStateError, }
View Source
var AllNodeType = []NodeType{ NodeTypeService, NodeTypeEndpoint, NodeTypeUser, }
View Source
var AllOrder = []Order{ OrderAsc, OrderDes, }
View Source
var AllQueryOrder = []QueryOrder{ QueryOrderByStartTime, QueryOrderByDuration, }
View Source
var AllRefType = []RefType{ RefTypeCrossProcess, RefTypeCrossThread, }
View Source
var AllScope = []Scope{ ScopeService, ScopeServiceInstance, ScopeEndpoint, ScopeServiceRelation, ScopeServiceInstanceRelation, ScopeEndpointRelation, }
View Source
var AllStep = []Step{ StepMonth, StepDay, StepHour, StepMinute, StepSecond, }
View Source
var AllTraceState = []TraceState{ TraceStateAll, TraceStateSuccess, TraceStateError, }
View Source
var StepDuration = map[Step]time.Duration{ StepSecond: time.Second, StepMinute: time.Minute, StepHour: time.Hour, StepDay: time.Hour * 24, StepMonth: time.Hour * 24 * 30, }
StepDuration is a mapping from schema.Step to its time.Duration
View Source
var StepFormats = map[Step]string{
StepSecond: "2006-01-02 150400",
StepMinute: "2006-01-02 1504",
StepHour: "2006-01-02 15",
StepDay: "2006-01-02",
StepMonth: "2006-01",
}
StepFormats is a mapping from schema.Step to its time format
Functions ¶
This section is empty.
Types ¶
type AlarmMessage ¶
type AlarmTrend ¶
type AlarmTrend struct {
NumOfAlarm []*int `json:"numOfAlarm"`
}
type Alarms ¶
type Alarms struct {
Msgs []*AlarmMessage `json:"msgs"`
Total int `json:"total"`
}
type BasicTrace ¶
type BatchMetricConditions ¶
type ClusterBrief ¶
type ContentType ¶
type ContentType string
const ( ContentTypeText ContentType = "TEXT" ContentTypeJSON ContentType = "JSON" ContentTypeNone ContentType = "NONE" )
func (ContentType) IsValid ¶
func (e ContentType) IsValid() bool
func (ContentType) MarshalGQL ¶
func (e ContentType) MarshalGQL(w io.Writer)
func (ContentType) String ¶
func (e ContentType) String() string
func (*ContentType) UnmarshalGQL ¶
func (e *ContentType) UnmarshalGQL(v interface{}) error
type DetectPoint ¶
type DetectPoint string
const ( DetectPointClient DetectPoint = "CLIENT" DetectPointServer DetectPoint = "SERVER" DetectPointProxy DetectPoint = "PROXY" )
func (DetectPoint) IsValid ¶
func (e DetectPoint) IsValid() bool
func (DetectPoint) MarshalGQL ¶
func (e DetectPoint) MarshalGQL(w io.Writer)
func (DetectPoint) String ¶
func (e DetectPoint) String() string
func (*DetectPoint) UnmarshalGQL ¶
func (e *DetectPoint) UnmarshalGQL(v interface{}) error
type EndpointInfo ¶
type Log ¶
type Log struct {
ServiceName *string `json:"serviceName"`
ServiceID *string `json:"serviceId"`
ServiceInstanceName *string `json:"serviceInstanceName"`
ServiceInstanceID *string `json:"serviceInstanceId"`
EndpointName *string `json:"endpointName"`
EndpointID *string `json:"endpointId"`
TraceID *string `json:"traceId"`
Timestamp string `json:"timestamp"`
IsError *bool `json:"isError"`
StatusCode *string `json:"statusCode"`
ContentType ContentType `json:"contentType"`
Content *string `json:"content"`
}
type LogQueryCondition ¶
type LogQueryCondition struct {
MetricName *string `json:"metricName"`
ServiceID *string `json:"serviceId"`
ServiceInstanceID *string `json:"serviceInstanceId"`
EndpointID *string `json:"endpointId"`
TraceID *string `json:"traceId"`
QueryDuration *Duration `json:"queryDuration"`
State LogState `json:"state"`
StateCode *string `json:"stateCode"`
Paging *Pagination `json:"paging"`
}
type MetricCondition ¶
type Pagination ¶
type QueryOrder ¶
type QueryOrder string
const ( QueryOrderByStartTime QueryOrder = "BY_START_TIME" QueryOrderByDuration QueryOrder = "BY_DURATION" )
func (QueryOrder) IsValid ¶
func (e QueryOrder) IsValid() bool
func (QueryOrder) MarshalGQL ¶
func (e QueryOrder) MarshalGQL(w io.Writer)
func (QueryOrder) String ¶
func (e QueryOrder) String() string
func (*QueryOrder) UnmarshalGQL ¶
func (e *QueryOrder) UnmarshalGQL(v interface{}) error
type ServiceInstance ¶
type Span ¶
type Span struct {
TraceID string `json:"traceId"`
SegmentID string `json:"segmentId"`
SpanID int `json:"spanId"`
ParentSpanID int `json:"parentSpanId"`
Refs []*Ref `json:"refs"`
ServiceCode string `json:"serviceCode"`
StartTime int64 `json:"startTime"`
EndTime int64 `json:"endTime"`
EndpointName *string `json:"endpointName"`
Type string `json:"type"`
Peer *string `json:"peer"`
Component *string `json:"component"`
IsError *bool `json:"isError"`
Layer *string `json:"layer"`
Tags []*KeyValue `json:"tags"`
Logs []*LogEntity `json:"logs"`
}
type Thermodynamic ¶
type TopNEntity ¶
type TopNRecord ¶
type TopNRecordsCondition ¶
type TraceBrief ¶
type TraceBrief struct {
Traces []*BasicTrace `json:"traces"`
Total int `json:"total"`
}
type TraceQueryCondition ¶
type TraceQueryCondition struct {
ServiceID *string `json:"serviceId"`
ServiceInstanceID *string `json:"serviceInstanceId"`
TraceID *string `json:"traceId"`
EndpointID *string `json:"endpointId"`
EndpointName *string `json:"endpointName"`
QueryDuration *Duration `json:"queryDuration"`
MinTraceDuration *int `json:"minTraceDuration"`
MaxTraceDuration *int `json:"maxTraceDuration"`
TraceState TraceState `json:"traceState"`
QueryOrder QueryOrder `json:"queryOrder"`
Paging *Pagination `json:"paging"`
}
type TraceState ¶
type TraceState string
const ( TraceStateAll TraceState = "ALL" TraceStateSuccess TraceState = "SUCCESS" TraceStateError TraceState = "ERROR" )
func (TraceState) IsValid ¶
func (e TraceState) IsValid() bool
func (TraceState) MarshalGQL ¶
func (e TraceState) MarshalGQL(w io.Writer)
func (TraceState) String ¶
func (e TraceState) String() string
func (*TraceState) UnmarshalGQL ¶
func (e *TraceState) UnmarshalGQL(v interface{}) error
Click to show internal directories.
Click to hide internal directories.