model

package
v0.9.174 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Action

type Action struct {
	ProductName      string                       `json:"productName,omitempty"`
	Name             string                       `json:"name,omitempty"`
	Alias            string                       `json:"alias,omitempty"`
	Source           string                       `json:"source,omitempty"`
	Type             string                       `json:"type,omitempty"`
	DisableTimes     []ActionDisableTime          `json:"disableTimes,omitempty"`
	Notifications    []ActionNotification         `json:"notifications,omitempty"`
	ActionCallBacks  []ActionCallBack             `json:"actionCallBacks,omitempty"`
	Members          []ActionMember               `json:"members,omitempty"`
	UserInfos        []ActionUserInfo             `json:"userInfos,omitempty"`
	GroupInfos       map[string][]*ActionUserInfo `json:"groupInfos,omitempty"`
	LastModifiedDate string                       `json:"lastModifiedDate,omitempty"`
}

type ActionCallBack

type ActionCallBack struct {
	Url string `json:"url,omitempty"`
}

type ActionDisableTime

type ActionDisableTime struct {
	From string `json:"from,omitempty"`
	To   string `json:"to,omitempty"`
}

type ActionMember

type ActionMember struct {
	Type string `json:"type,omitempty"`
	Id   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

type ActionNotification

type ActionNotification struct {
	Type ActionNotificationType `json:"type,omitempty"`
	//AliasName string                 `json:"aliasName,omitempty"`
	Receiver string `json:"receiver,omitempty"`
}

type ActionNotificationType

type ActionNotificationType string
const (
	ActionNotificationTypeEmail ActionNotificationType = "EMAIL"
	ActionNotificationTypePhone ActionNotificationType = "PHONE"
	ActionNotificationTypeSms   ActionNotificationType = "SMS"
)

type ActionUserInfo

type ActionUserInfo struct {
	Name  string `json:"name,omitempty"`
	Email string `json:"email,omitempty"`
	Phone string `json:"phone,omitempty"`
	Type  string `json:"type,omitempty"`
}

type AggTag

type AggTag struct {
	Range string `json:"range"`
	Tags  string `json:"tags"`
}

type AlarmAction

type AlarmAction struct {
	Name string `json:"name,omitempty"`
	ID   string `json:"id,omitempty"`
}

type AlarmConfig

type AlarmConfig struct {
	AliasName           string              `json:"aliasName,omitempty"`
	AlarmName           string              `json:"alarmName,omitempty"`
	Level               AlarmLevel          `json:"level,omitempty"`
	MonitorObject       *AlarmMonitorObject `json:"monitorObject,omitempty"`
	IncidentActions     []string            `json:"alarmActions,omitempty"`
	ResumeAction        []string            `json:"okActions,omitempty"`
	InsufficientActions []string            `json:"insufficientActions,omitempty"`
	Region              string              `json:"region,omitempty"`
	Scope               string              `json:"scope,omitempty"`
	UserId              string              `json:"userId,omitempty"`
	Rules               [][]*AlarmRule      `json:"rules,omitempty"`
	SrcName             string              `json:"srcName,omitempty"`
	SrcType             string              `json:"srcType,omitempty"`
	AlarmType           string              `json:"type,omitempty"`
	AlarmDescription    string              `json:"alarmDescription"`
	EventTypeList       []string            `json:"eventTypeList,omitempty"`
	InsufficientCycle   int                 `json:"insufficientCycle,omitempty"`
	RepeatAlarmCycle    int                 `json:"repeatAlarmCycle,omitempty"`
	MaxRepeatCount      int                 `json:"maxRepeatCount,omitempty"`
	CallbackURL         string              `json:"callbackUrl,omitempty"`
	CallbackToken       string              `json:"callbackToken,omitempty"`
}

type AlarmConfigV2

type AlarmConfigV2 struct {
	UserId                        string           `json:"userId,omitempty"`
	AlarmName                     string           `json:"alarmName,omitempty"`
	AliasName                     string           `json:"aliasName,omitempty"`
	Region                        string           `json:"region,omitempty"`
	Scope                         string           `json:"scope,omitempty"`
	InsufficientDataPendingPeriod int              `json:"insufficientDataPendingPeriod,omitempty"`
	AlarmRepeatInterval           int              `json:"alarmRepeatInterval,omitempty"`
	AlarmRepeatCount              int              `json:"alarmRepeatCount,omitempty"`
	ResourceType                  string           `json:"resourceType,omitempty"`
	AlarmLevel                    AlarmLevel       `json:"alarmLevel,omitempty"`
	TargetType                    TargetType       `json:"targetType,omitempty"`
	TargetInstanceGroups          []string         `json:"targetInstanceGroups,omitempty"`
	TargetInstances               []*AlarmInstance `json:"targetInstances,omitempty"`
	TargetInstanceTags            []*KV            `json:"targetInstanceTags,omitempty"`
	Policies                      []*AlarmPolicy   `json:"policies,omitempty"`
	Actions                       []*AlarmAction   `json:"actions,omitempty"`
}

type AlarmInstance

type AlarmInstance struct {
	Region           string `json:"region,omitempty"`
	Identifiers      []*KV  `json:"identifiers,omitempty"`
	MetricDimensions []*KV  `json:"metricDimensions,omitempty"`
}

type AlarmLevel

type AlarmLevel string
const (
	AlarmLevelNotice   AlarmLevel = "NOTICE"
	AlarmLevelWarning  AlarmLevel = "WARNING"
	AlarmLevelCritical AlarmLevel = "CRITICAL"
	AlarmLevelMajor    AlarmLevel = "MAJOR"
	AlarmLevelCustom   AlarmLevel = "CUSTOM"
)

type AlarmMetric

type AlarmMetric struct {
	Alias            string     `json:"alias,omitempty"`
	Name             string     `json:"name,omitempty"`
	UnitCategory     string     `json:"unitCategory,omitempty"`
	UnitName         string     `json:"unitName,omitempty"`
	Cycle            int        `json:"cycle,omitempty"`
	Scope            string     `json:"scope,omitempty"`
	TypeName         string     `json:"typeName,omitempty"`
	MetricDimensions [][]string `json:"metricDimensions,omitempty"`
}

type AlarmMonitorObject

type AlarmMonitorObject struct {
	MonitorType MonitorObjectType `json:"type,omitempty"`
	Names       []string          `json:"names,omitempty"`
	Resources   []*PolicyResource `json:"resources,omitempty"`
	TypeName    string            `json:"typeName,omitempty"`
}

type AlarmPolicy

type AlarmPolicy struct {
	AlarmPendingPeriodCount int            `json:"alarmPendingPeriodCount,omitempty"`
	Rules                   []*AlarmRuleV2 `json:"rules,omitempty"`
}

type AlarmRule

type AlarmRule struct {
	Index                 int          `json:"index,omitempty"`
	Metric                string       `json:"metric,omitempty"`
	PeriodInSecond        int          `json:"periodInSecond,omitempty"`
	Statistics            string       `json:"statistics,omitempty"`
	Threshold             string       `json:"threshold,omitempty"`
	ComparisonOperator    string       `json:"comparisonOperator,omitempty"`
	EvaluationPeriodCount int          `json:"evaluationPeriodCount,omitempty"`
	MetricDimensions      []*Dimension `json:"metricDimensions,omitempty"`
}

type AlarmRuleV2

type AlarmRuleV2 struct {
	MetricName       string  `json:"metricName,omitempty"`
	MetricDimensions []*KV   `json:"metricDimensions,omitempty"`
	Operator         string  `json:"operator,omitempty"`
	Statistics       string  `json:"statistics,omitempty"`
	Threshold        float64 `json:"threshold,omitempty"`
	Window           int     `json:"window,omitempty"`
}

type AlarmType

type AlarmType string
const (
	AlarmTypeInstance AlarmType = "INSTANCE"
	AlarmTypeService  AlarmType = "SERVICE"
)

type AppAggrTag

type AppAggrTag struct {
	Range string `json:"range,omitempty"`
	Tags  string `json:"tags,omitempty"`
}

type AppMetric

type AppMetric struct {
	Id             int64        `json:"id,omitempty"`
	TaskId         int64        `json:"taskId,omitempty"`
	MetricName     string       `json:"metricName,omitempty"`
	MetricAlias    string       `json:"metricAlias,omitempty"`
	MetricUnit     string       `json:"metricUnit,omitempty"`
	ValueFieldType int          `json:"valueFieldType,omitempty"`
	ValueFieldName string       `json:"valueFieldName,omitempty"`
	ValueMatchRule string       `json:"valueMatchRule,omitempty"`
	AggrTags       []AppAggrTag `json:"aggrTags,omitempty"`

	SaveInstanceData int `json:"saveInstanceData,omitempty"`
}

type AppMonitorAlarmConfig

type AppMonitorAlarmConfig struct {
	AlarmDescription    string                  `json:"alarmDescription"`
	AlarmName           string                  `json:"alarmName,omitempty"`
	UserId              string                  `json:"userId,omitempty"`
	AppName             string                  `json:"appName,omitempty"`
	MonitorObjectType   MonitorObjectType       `json:"monitorObjectType,omitempty"`
	MonitorObject       MonitorObject           `json:"monitorObject,omitempty"`
	SrcName             string                  `json:"srcName,omitempty"`
	SrcType             SrcType                 `json:"srcType,omitempty"`
	Type                AlarmType               `json:"type,omitempty"`
	Level               AlarmLevel              `json:"level,omitempty"`
	ActionEnabled       bool                    `json:"actionEnabled,omitempty"`
	PolicyEnabled       bool                    `json:"policyEnabled,omitempty"`
	Rules               [][]AppMonitorAlarmRule `json:"rules,omitempty"`
	IncidentActions     []string                `json:"incidentActions,omitempty"`
	ResumeAction        []string                `json:"resumeAction,omitempty"`
	InsufficientActions []string                `json:"insufficientActions,omitempty"`
	InsufficientCycle   int                     `json:"insufficientCycle,omitempty"`
	RepeatAlarmCycle    int                     `json:"repeatAlarmCycle,omitempty"`
	MaxRepeatCount      int                     `json:"maxRepeatCount,omitempty"`
}

type AppMonitorAlarmRule

type AppMonitorAlarmRule struct {
	Metric             string      `json:"metric,omitempty"`
	MetricAlias        string      `json:"metricAlias,omitempty"`
	Cycle              int         `json:"cycle,omitempty"`
	Statistics         string      `json:"statistics,omitempty"`
	Threshold          float64     `json:"threshold,omitempty"`
	ComparisonOperator string      `json:"comparisonOperator,omitempty"`
	Count              int         `json:"count,omitempty"`
	Function           string      `json:"function,omitempty"`
	MetricDimensions   []Dimension `json:"metricDimensions,omitempty"`
	Sequence           int         `json:"sequence,omitempty"`
	FormulaV2Alias     string      `json:"formulaV2Alias,omitempty"`
	MetricTags         string      `json:"metricTags,omitempty"`
}

type ApplicationDimensionTableDeleteRequest

type ApplicationDimensionTableDeleteRequest struct {
	UserID    string `json:"userId,omitempty"`
	AppName   string `json:"appName,omitempty"`
	TableName string `json:"tableName,omitempty"`
}

type ApplicationDimensionTableInfoRequest

type ApplicationDimensionTableInfoRequest struct {
	UserID         string `json:"userId,omitempty"`
	AppName        string `json:"appName,omitempty"`
	TableName      string `json:"tableName,omitempty"`
	MapContentJSON string `json:"mapContentJson,omitempty"`
}

type ApplicationDimensionTableInfoResponse

type ApplicationDimensionTableInfoResponse struct {
	UserID         string `json:"userId,omitempty"`
	AppName        string `json:"appName,omitempty"`
	MapContentJSON string `json:"mapContentJson,omitempty"`
	TableName      string `json:"tableName,omitempty"`
}

type ApplicationDimensionTableListRequest

type ApplicationDimensionTableListRequest struct {
	UserID     string `json:"userId,omitempty"`
	AppName    string `json:"appName,omitempty"`
	SearchName string `json:"searchName,omitempty"`
}

type ApplicationInfoDeleteRequest

type ApplicationInfoDeleteRequest struct {
	Name string `json:"name,omitempty"`
}

type ApplicationInfoListResponse

type ApplicationInfoListResponse struct {
	Content          []*ApplicationInfoResponse `json:"content,omitempty"`
	Pageable         *Pageable                  `json:"pageable,omitempty"`
	Last             bool                       `json:"last,omitempty"`
	TotalElements    int                        `json:"totalElements,omitempty"`
	TotalPages       int                        `json:"totalPages,omitempty"`
	First            bool                       `json:"first,omitempty"`
	Sort             *Sort                      `json:"sort,omitempty"`
	Number           int                        `json:"number,omitempty"`
	NumberOfElements int                        `json:"numberOfElements,omitempty"`
	Size             int                        `json:"size,omitempty"`
}

type ApplicationInfoRequest

type ApplicationInfoRequest struct {
	Alias       string `json:"alias,omitempty"`
	Name        string `json:"name,omitempty"`
	Type        string `json:"type,omitempty"`
	UserID      string `json:"userId,omitempty"`
	Description string `json:"description,omitempty"`
}

type ApplicationInfoResponse

type ApplicationInfoResponse struct {
	ID          int    `json:"id,omitempty"`
	Name        string `json:"name,omitempty"`
	Alias       string `json:"alias,omitempty"`
	Type        string `json:"type,omitempty"`
	UserID      string `json:"userId,omitempty"`
	Description string `json:"description,omitempty"`
}

type ApplicationInfoUpdateRequest

type ApplicationInfoUpdateRequest struct {
	ID          int    `json:"id,omitempty"`
	Name        string `json:"name,omitempty"`
	Alias       string `json:"alias,omitempty"`
	Type        string `json:"type,omitempty"`
	UserID      string `json:"userId,omitempty"`
	Description string `json:"description,omitempty"`
}

type ApplicationInstanceCreateRequest

type ApplicationInstanceCreateRequest struct {
	AppName  string              `json:"appName,omitempty"`
	UserID   string              `json:"userId,omitempty"`
	HostList []*HostInstanceInfo `json:"hostList,omitempty"`
}

type ApplicationInstanceCreatedInfo

type ApplicationInstanceCreatedInfo struct {
	ID             int    `json:"id,omitempty"`
	Name           string `json:"name,omitempty"`
	InstanceOffSet int    `json:"instanceOffSet,omitempty"`
	InstanceID     string `json:"instanceId,omitempty"`
	Region         string `json:"region,omitempty"`
	UserID         string `json:"userId,omitempty"`
	AppName        string `json:"appName,omitempty"`
	HostName       string `json:"hostName,omitempty"`
	IP             string `json:"ip,omitempty"`
}

type ApplicationInstanceCreatedListRequest

type ApplicationInstanceCreatedListRequest struct {
	UserID  string `json:"userId,omitempty"`
	AppName string `json:"appName,omitempty"`
	Region  string `json:"region,omitempty"`
}

type ApplicationInstanceCreatedListResponse

type ApplicationInstanceCreatedListResponse struct {
	Content       []*ApplicationInstanceCreatedInfo `json:"content,omitempty"`
	Query         interface{}                       `json:"query,omitempty"`
	Fields        []interface{}                     `json:"fields,omitempty"`
	OrderBy       []interface{}                     `json:"orderBy,omitempty"`
	PageNumber    int                               `json:"pageNumber,omitempty"`
	PageSize      int                               `json:"pageSize,omitempty"`
	PageElements  int                               `json:"pageElements,omitempty"`
	Last          bool                              `json:"last,omitempty"`
	First         bool                              `json:"first,omitempty"`
	TotalPages    int                               `json:"totalPages,omitempty"`
	TotalElements int                               `json:"totalElements,omitempty"`
}

type ApplicationInstanceDeleteRequest

type ApplicationInstanceDeleteRequest struct {
	ID      string `json:"id,omitempty"`
	AppName string `json:"appName,omitempty"`
}

type ApplicationInstanceInfo

type ApplicationInstanceInfo struct {
	FloatingIP   string `json:"floatingIp,omitempty"`
	HasBinded    bool   `json:"hasBinded,omitempty"`
	ID           string `json:"id,omitempty"`
	InstanceID   string `json:"instanceId,omitempty"`
	InstanceUUID string `json:"instanceUuid,omitempty"`
	InternalIP   string `json:"internalIp,omitempty"`
	Name         string `json:"name,omitempty"`
	PublicIP     string `json:"publicIp,omitempty"`
}

type ApplicationInstanceListRequest

type ApplicationInstanceListRequest struct {
	PageSize    int    `json:"pageSize,omitempty"`
	PageNo      int    `json:"pageNo,omitempty"`
	SearchName  string `json:"searchName,omitempty"`
	SearchValue string `json:"searchValue,omitempty"`
	Region      string `json:"region,omitempty"`
	AppName     string `json:"appName,omitempty"`
}

type ApplicationInstanceListResponse

type ApplicationInstanceListResponse struct {
	Content       []*ApplicationInstanceInfo `json:"content,omitempty"`
	Fields        []interface{}              `json:"fields,omitempty"`
	First         bool                       `json:"first,omitempty"`
	Last          bool                       `json:"last,omitempty"`
	OrderBy       []interface{}              `json:"orderBy,omitempty"`
	PageElements  int                        `json:"pageElements,omitempty"`
	PageNumber    int                        `json:"pageNumber,omitempty"`
	PageSize      int                        `json:"pageSize,omitempty"`
	Query         interface{}                `json:"query,omitempty"`
	TotalElements int                        `json:"totalElements,omitempty"`
	TotalPages    int                        `json:"totalPages,omitempty"`
}

type ApplicationMonitorTaskDeleteRequest

type ApplicationMonitorTaskDeleteRequest struct {
	UserID  string `json:"userId,omitempty"`
	Name    string `json:"name,omitempty"`
	AppName string `json:"appName,omitempty"`
}

type ApplicationMonitorTaskDetailRequest

type ApplicationMonitorTaskDetailRequest struct {
	UserID   string `json:"userId,omitempty"`
	AppName  string `json:"appName,omitempty"`
	TaskName string `json:"taskName,omitempty"`
}

type ApplicationMonitorTaskInfoListResponse

type ApplicationMonitorTaskInfoListResponse struct {
	ID             int    `json:"id"`
	Name           string `json:"name"`
	AliasName      string `json:"aliasName"`
	AppName        string `json:"appName"`
	UserID         string `json:"userId"`
	Cycle          int    `json:"cycle"`
	Target         string `json:"target"`
	Type           int    `json:"type"`
	Description    string `json:"description"`
	HasAlarmConfig bool   `json:"hasAlarmConfig"`
}

type ApplicationMonitorTaskInfoLogRequest

type ApplicationMonitorTaskInfoLogRequest struct {
	AppName       string              `json:"appName,omitempty"`
	AliasName     string              `json:"aliasName,omitempty"`
	Type          int                 `json:"type,omitempty"`
	Description   string              `json:"description,omitempty"`
	Target        string              `json:"target,omitempty"`
	Cycle         int                 `json:"cycle,omitempty"`
	Rate          int                 `json:"rate,omitempty"`
	ExtractResult []*LogExtractResult `json:"extractResult,omitempty"`
	LogExample    string              `json:"logExample,omitempty"`
	MatchRule     string              `json:"matchRule,omitempty"`
	UserID        string              `json:"userId,omitempty"`
	Metrics       []*Metric           `json:"metrics,omitempty"`
}

type ApplicationMonitorTaskInfoLogResponse

type ApplicationMonitorTaskInfoLogResponse struct {
	ID             int                 `json:"id,omitempty"`
	Name           string              `json:"name,omitempty"`
	AliasName      string              `json:"aliasName,omitempty"`
	AppName        string              `json:"appName,omitempty"`
	UserID         string              `json:"userId,omitempty"`
	Cycle          int                 `json:"cycle,omitempty"`
	Target         string              `json:"target,omitempty"`
	Type           int                 `json:"type"`
	Description    string              `json:"description,omitempty"`
	HasAlarmConfig bool                `json:"hasAlarmConfig"`
	LogExample     string              `json:"logExample,omitempty"`
	MatchRule      string              `json:"matchRule,omitempty"`
	Rate           int                 `json:"rate,omitempty"`
	ExtractResult  []*LogExtractResult `json:"extractResult,omitempty"`
	Metrics        []*Metric           `json:"metrics,omitempty"`
}

type ApplicationMonitorTaskInfoNormalResponse

type ApplicationMonitorTaskInfoNormalResponse struct {
	AppName     string `json:"appName"`
	Type        int    `json:"type"`
	AliasName   string `json:"aliasName"`
	Cycle       int    `json:"cycle"`
	Target      string `json:"target"`
	Description string `json:"description"`
	Name        string `json:"name"`
}

type ApplicationMonitorTaskInfoRequest

type ApplicationMonitorTaskInfoRequest struct {
	AppName     string `json:"appName,omitempty"`
	AliasName   string `json:"aliasName,omitempty"`
	Type        int    `json:"type,omitempty"`
	Description string `json:"description,omitempty"`
	Target      string `json:"target,omitempty"`
	Cycle       int    `json:"cycle,omitempty"`
}

type ApplicationMonitorTaskInfoUpdateRequest

type ApplicationMonitorTaskInfoUpdateRequest struct {
	ID            string              `json:"id,omitempty"`
	Name          string              `json:"name,omitempty"`
	AppName       string              `json:"appName,omitempty"`
	AliasName     string              `json:"aliasName,omitempty"`
	Type          int                 `json:"type,omitempty"`
	Description   string              `json:"description,omitempty"`
	Target        string              `json:"target,omitempty"`
	Cycle         int                 `json:"cycle,omitempty"`
	Rate          int                 `json:"rate,omitempty"`
	ExtractResult []*LogExtractResult `json:"extractResult,omitempty"`
	LogExample    string              `json:"logExample,omitempty"`
	MatchRule     string              `json:"matchRule,omitempty"`
	UserID        string              `json:"userId,omitempty"`
	Metrics       []*Metric           `json:"metrics,omitempty"`
}

type ApplicationMonitorTaskListRequest

type ApplicationMonitorTaskListRequest struct {
	UserID  string `json:"userId,omitempty"`
	AppName string `json:"appName,omitempty"`
	Type    string `json:"type,omitempty"`
}

type ApplicationMonitorTaskResponse

type ApplicationMonitorTaskResponse struct {
	ID             int    `json:"id"`
	Name           string `json:"name"`
	AliasName      string `json:"aliasName"`
	AppName        string `json:"appName"`
	UserID         string `json:"userId"`
	Cycle          int    `json:"cycle"`
	Target         string `json:"target"`
	Type           int    `json:"type"`
	Description    string `json:"description"`
	HasAlarmConfig bool   `json:"hasAlarmConfig"`
}

type BatchGetMetricDataRequest

type BatchGetMetricDataRequest struct {
	UserId         string            `json:"userId,omitempty"`
	Scope          string            `json:"scope,omitempty"`
	MetricNames    []string          `json:"metricNames,omitempty"`
	Dimensions     map[string]string `json:"dimensions,omitempty"`
	Statistics     []string          `json:"statistics,omitempty"`
	StartTime      string            `json:"startTime,omitempty"`
	EndTime        string            `json:"endTime,omitempty"`
	PeriodInSecond int               `json:"periodInSecond,omitempty"`
}

type BatchGetMetricDataResponse

type BatchGetMetricDataResponse struct {
	RequestId   string                       `json:"requestId,omitempty"`
	Code        string                       `json:"code,omitempty"`
	Message     string                       `json:"message,omitempty"`
	SuccessList []*SuccessBatchGetMetricData `json:"successList,omitempty"`
	ErrorList   []*ErrorBatchGetMetricData   `json:"errorList,omitempty"`
}

type CloudEvent

type CloudEvent struct {
	EventID      string `json:"eventId,omitempty"`
	EventName    string `json:"eventName,omitempty"`
	EventAlias   string `json:"eventAlias,omitempty"`
	EventLevel   string `json:"eventLevel,omitempty"`
	EventTime    string `json:"eventTime,omitempty"`
	EventContent string `json:"eventContent,omitempty"`
	EventSource  string `json:"eventSource,omitempty"`
	EventStatus  string `json:"eventStatus,omitempty"`
	EventDetail  string `json:"eventDetail,omitempty"`
}

type CloudEventResponse

type CloudEventResponse struct {
	PageNo     int          `json:"pageNo,omitempty"`
	PageSize   int          `json:"pageSize,omitempty"`
	TotalCount int          `json:"totalCount,omitempty"`
	TotalPage  int          `json:"totalPage,omitempty"`
	Result     []CloudEvent `json:"result,omitempty"`
}

type CommonAlarmConfigRequest

type CommonAlarmConfigRequest struct {
	UserId    string `json:"userId,omitempty"`
	Scope     string `json:"scope,omitempty"`
	AlarmName string `json:"alarmName,omitempty"`
}

type CreateActionRequest

type CreateActionRequest struct {
	UserId          string               `json:"userId,omitempty"`
	Notifications   []ActionNotification `json:"notifications,omitempty"`
	Members         []ActionMember       `json:"members,omitempty"`
	Alias           string               `json:"alias,omitempty"`
	DisableTimes    []ActionDisableTime  `json:"disableTimes,omitempty"`
	ActionCallBacks []ActionCallBack     `json:"actionCallBacks"`
}

type CreateActionResponse

type CreateActionResponse struct {
	Success bool        `json:"success,omitempty"`
	Result  interface{} `json:"result,omitempty"`
}

type CreateAlarmPolicyV2Response

type CreateAlarmPolicyV2Response struct {
	Success bool           `json:"success,omitempty"`
	Msg     string         `json:"msg,omitempty"`
	Result  *AlarmConfigV2 `json:"result,omitempty"`
}

type CreateDNSTask

type CreateDNSTask struct {
	UserID      string `json:"userId,omitempty"`
	TaskID      string `json:"taskId,omitempty"`
	TaskName    string `json:"taskName,omitempty"`
	Address     string `json:"address,omitempty"`
	Cycle       int    `json:"cycle,omitempty"`
	Idc         string `json:"idc,omitempty"`
	Timeout     int    `json:"timeout,omitempty"`
	IPType      string `json:"ipType,omitempty"`
	Server      string `json:"server,omitempty"`
	ResolveType string `json:"resolveType,omitempty"`
	KidnapWhite string `json:"kidnapWhite,omitempty"`
}

type CreateFtpTask

type CreateFtpTask struct {
	UserID         string `json:"userId,omitempty"`
	TaskID         string `json:"taskId,omitempty"`
	TaskName       string `json:"taskName,omitempty"`
	Address        string `json:"address,omitempty"`
	Cycle          int    `json:"cycle,omitempty"`
	Idc            string `json:"idc,omitempty"`
	Timeout        int    `json:"timeout,omitempty"`
	IPType         string `json:"ipType,omitempty"`
	Port           int    `json:"port,omitempty"`
	AnonymousLogin bool   `json:"anonymousLogin,omitempty"`
	UserName       string `json:"userName,omitempty"`
	Password       string `json:"password,omitempty"`
}

type CreateHTTPSTask

type CreateHTTPSTask struct {
	UserID        string `json:"userId,omitempty"`
	TaskID        string `json:"taskId,omitempty"`
	TaskName      string `json:"taskName,omitempty"`
	Address       string `json:"address,omitempty"`
	Method        string `json:"method,omitempty"`
	PostContent   string `json:"postContent,omitempty"`
	Cycle         int    `json:"cycle,omitempty"`
	Idc           string `json:"idc,omitempty"`
	Timeout       int    `json:"timeout,omitempty"`
	AdvanceConfig string `json:"advanceConfig,omitempty"`
	IPType        string `json:"ipType,omitempty"`

	Cookies       string `json:"cookies,omitempty"`
	Host          string `json:"host,omitempty"`
	UserAgent     string `json:"userAgent,omitempty"`
	ResponseCode  string `json:"responseCode,omitempty"`
	ResponseCheck string `json:"responseCheck,omitempty"`
	UserName      string `json:"userName,omitempty"`
	Password      string `json:"password,omitempty"`
}

type CreateHTTPSTaskResponse

type CreateHTTPSTaskResponse struct {
	UserID        string `json:"userId,omitempty"`
	TaskID        string `json:"taskId,omitempty"`
	TaskName      string `json:"taskName,omitempty"`
	Address       string `json:"address,omitempty"`
	Method        string `json:"method,omitempty"`
	PostContent   string `json:"postContent,omitempty"`
	Cycle         int    `json:"cycle,omitempty"`
	Idc           string `json:"idc,omitempty"`
	Timeout       int    `json:"timeout,omitempty"`
	AdvanceConfig bool   `json:"advanceConfig,omitempty"`
	IPType        string `json:"ipType,omitempty"`

	Cookies       string `json:"cookies,omitempty"`
	Host          string `json:"host,omitempty"`
	UserAgent     string `json:"userAgent,omitempty"`
	ResponseCode  string `json:"responseCode,omitempty"`
	ResponseCheck string `json:"responseCheck,omitempty"`
	UserName      string `json:"userName,omitempty"`
	Password      string `json:"password,omitempty"`
}

type CreateHTTPTask

type CreateHTTPTask struct {
	UserID        string `json:"userId,omitempty"`
	TaskID        string `json:"taskId,omitempty"`
	TaskName      string `json:"taskName,omitempty"`
	Address       string `json:"address,omitempty"`
	Method        string `json:"method,omitempty"`
	PostContent   string `json:"postContent,omitempty"`
	Cycle         int    `json:"cycle,omitempty"`
	Idc           string `json:"idc,omitempty"`
	Timeout       int    `json:"timeout,omitempty"`
	AdvanceConfig string `json:"advanceConfig,omitempty"`
	IPType        string `json:"ipType,omitempty"`

	Cookies       string `json:"cookies,omitempty"`
	Host          string `json:"host,omitempty"`
	UserAgent     string `json:"userAgent,omitempty"`
	ResponseCode  string `json:"responseCode,omitempty"`
	ResponseCheck string `json:"responseCheck,omitempty"`
	UserName      string `json:"userName,omitempty"`
	Password      string `json:"password,omitempty"`
}

type CreateHTTPTaskResponse

type CreateHTTPTaskResponse struct {
	UserID        string `json:"userId,omitempty"`
	TaskID        string `json:"taskId,omitempty"`
	TaskName      string `json:"taskName,omitempty"`
	Address       string `json:"address,omitempty"`
	Method        string `json:"method,omitempty"`
	PostContent   string `json:"postContent,omitempty"`
	Cycle         int    `json:"cycle,omitempty"`
	Idc           string `json:"idc,omitempty"`
	Timeout       int    `json:"timeout,omitempty"`
	AdvanceConfig bool   `json:"advanceConfig,omitempty"`
	IPType        string `json:"ipType,omitempty"`

	Cookies       string `json:"cookies,omitempty"`
	Host          string `json:"host,omitempty"`
	UserAgent     string `json:"userAgent,omitempty"`
	ResponseCode  string `json:"responseCode,omitempty"`
	ResponseCheck string `json:"responseCheck,omitempty"`
	UserName      string `json:"userName,omitempty"`
	Password      string `json:"password,omitempty"`
}

type CreatePingTask

type CreatePingTask struct {
	UserID         string `json:"userId,omitempty"`
	TaskID         string `json:"taskId,omitempty"`
	TaskName       string `json:"taskName,omitempty"`
	Address        string `json:"address,omitempty"`
	PacketCount    int    `json:"packetCount,omitempty"`
	PacketLossRate int    `json:"packetLossRate,omitempty"`
	Cycle          int    `json:"cycle,omitempty"`
	Idc            string `json:"idc,omitempty"`
	Timeout        int    `json:"timeout,omitempty"`
	IPType         string `json:"ipType,omitempty"`
}

type CreateSiteAlarmConfigRequest

type CreateSiteAlarmConfigRequest struct {
	UserID              string          `json:"userId,omitempty"`
	TaskID              string          `json:"taskId,omitempty"`
	Comment             string          `json:"comment,omitempty"`
	AlarmName           string          `json:"alarmName,omitempty"`
	AliasName           string          `json:"aliasName,omitempty"`
	Namespace           string          `json:"namespace,omitempty"`
	Level               Level           `json:"level,omitempty"`
	ActionEnabled       string          `json:"actionEnabled,omitempty"`
	ResumeActions       []string        `json:"resumeActions,omitempty"`
	InsufficientActions []string        `json:"insufficientActions,omitempty"`
	IncidentAction      []string        `json:"incidentAction,omitempty"`
	InsufficientCycle   int             `json:"insufficientCycle,omitempty"`
	Rules               []SiteAlarmRule `json:"rules,omitempty"`
	Region              string          `json:"region,omitempty"`
	CallbackURL         string          `json:"callbackUrl,omitempty"`
	CallbackToken       string          `json:"callbackToken,omitempty"`
	Method              string          `json:"method,omitempty"`
	SiteMonitor         string          `json:"siteMonitor,omitempty"`
	Tag                 string          `json:"tag,omitempty"`
	Cycle               int             `json:"cycle,omitempty"`
}

type CreateSiteAlarmConfigResponse

type CreateSiteAlarmConfigResponse struct {
	UserID              string          `json:"userId,omitempty"`
	TaskID              string          `json:"taskId,omitempty"`
	Comment             string          `json:"comment,omitempty"`
	AlarmName           string          `json:"alarmName,omitempty"`
	AliasName           string          `json:"aliasName,omitempty"`
	Namespace           string          `json:"namespace,omitempty"`
	Level               Level           `json:"level,omitempty"`
	ActionEnabled       bool            `json:"actionEnabled,omitempty"`
	ResumeActions       []string        `json:"resumeActions,omitempty"`
	InsufficientActions []string        `json:"insufficientActions,omitempty"`
	IncidentAction      []string        `json:"incidentAction,omitempty"`
	InsufficientCycle   int             `json:"insufficientCycle,omitempty"`
	Rules               []SiteAlarmRule `json:"rules,omitempty"`
	Region              string          `json:"region,omitempty"`
	CallbackURL         string          `json:"callbackUrl,omitempty"`
	CallbackToken       string          `json:"callbackToken,omitempty"`
	Method              string          `json:"method,omitempty"`
	SiteMonitor         string          `json:"siteMonitor,omitempty"`
	Tag                 string          `json:"tag,omitempty"`
	Cycle               int             `json:"cycle,omitempty"`
}

type CreateTCPTask

type CreateTCPTask struct {
	UserID        string `json:"userId,omitempty"`
	TaskID        string `json:"taskId,omitempty"`
	TaskName      string `json:"taskName,omitempty"`
	Address       string `json:"address,omitempty"`
	Cycle         int    `json:"cycle,omitempty"`
	Idc           string `json:"idc,omitempty"`
	Timeout       int    `json:"timeout,omitempty"`
	Port          int    `json:"port,omitempty"`
	AdvanceConfig bool   `json:"advanceConfig,omitempty"`
	IPType        string `json:"ipType,omitempty"`

	InputType      int    `json:"inputType,omitempty"`
	OutputType     int    `json:"outputType,omitempty"`
	Input          string `json:"input,omitempty"`
	ExpectedOutput string `json:"expectedOutput,omitempty"`
}

type CreateTaskResponse

type CreateTaskResponse struct {
	TaskID string `json:"taskId,omitempty"`
	JobID  string `json:"jobId,omitempty"`
}

type CreateUDPTask

type CreateUDPTask struct {
	UserID   string `json:"userId,omitempty"`
	TaskID   string `json:"taskId,omitempty"`
	TaskName string `json:"taskName,omitempty"`
	Address  string `json:"address,omitempty"`
	Cycle    int    `json:"cycle,omitempty"`
	Idc      string `json:"idc,omitempty"`
	Timeout  int    `json:"timeout,omitempty"`
	Port     int    `json:"port,omitempty"`
	IPType   string `json:"ipType,omitempty"`

	InputType      int    `json:"inputType,omitempty"`
	OutputType     int    `json:"outputType,omitempty"`
	Input          string `json:"input,omitempty"`
	ExpectedOutput string `json:"expectedOutput,omitempty"`
}

type CustomBatchEventNames

type CustomBatchEventNames struct {
	UserId    string   `json:"userId,omitempty"`
	Namespace string   `json:"namespace,omitempty"`
	Names     []string `json:"names,omitempty"`
}

type CustomBatchIds

type CustomBatchIds struct {
	UserId    string  `json:"userId,omitempty"`
	Namespace string  `json:"namespace,omitempty"`
	Ids       []int64 `json:"ids,omitempty"`
}

type CustomBatchNames

type CustomBatchNames struct {
	UserId string   `json:"userId,omitempty"`
	Names  []string `json:"names,omitempty"`
}

type DashboardBaseResponse

type DashboardBaseResponse struct {
	Code      int                    `json:"code,omitempty"`
	Data      map[string]interface{} `json:"data,omitempty"`
	Message   string                 `json:"message,omitempty"`
	TraceInfo string                 `json:"traceInfo,omitempty"`
	Success   bool                   `json:"success,omitempty"`
}

type DashboardBillboardData

type DashboardBillboardData struct {
	Data            [][]float64 `json:"data,omitempty"`
	Decimals        interface{} `json:"decimals,omitempty"`
	DisplayName     string      `json:"displayName,omitempty"`
	InstanceName    string      `json:"instanceName,omitempty"`
	MetricDimension string      `json:"metricDimension,omitempty"`
	Name            string      `json:"name,omitempty"`
	Unit            string      `json:"unit,omitempty"`
}

type DashboardBillboardResponse

type DashboardBillboardResponse struct {
	Code      int                      `json:"code,omitempty"`
	Data      []DashboardBillboardData `json:"data,omitempty"`
	Message   string                   `json:"message,omitempty"`
	TraceInfo string                   `json:"traceInfo,omitempty"`
	Success   bool                     `json:"success,omitempty"`
}

type DashboardDataRequest

type DashboardDataRequest struct {
	Data []Data `json:"data,omitempty"`
	Time string `json:"time,omitempty"`
}

type DashboardDimension

type DashboardDimension struct {
	Namespace string   `json:"namespace,omitempty"`
	Metrics   []string `json:"metrics,omitempty"`
	Tags      []string `json:"tags,omitempty"`
}

type DashboardDimensionsData

type DashboardDimensionsData struct {
	Name            string           `json:"name,omitempty"`
	Product         string           `json:"product,omitempty"`
	Comment         string           `json:"comment,omitempty"`
	DimensionValues []DimensionValue `json:"dimensionValues,omitempty"`
}

type DashboardDimensionsRequest

type DashboardDimensionsRequest struct {
	UserID     string `json:"userId,omitempty"`
	Service    string `json:"service,omitempty"`
	Region     string `json:"region,omitempty"`
	ResourceID string `json:"showId,omitempty"`
	Dimensions string `json:"dimensions,omitempty"`
	MetricName string `json:"metricName,omitempty"`
}

type DashboardDimensionsResponse

type DashboardDimensionsResponse struct {
	Code      int                       `json:"code,omitempty"`
	Data      []DashboardDimensionsData `json:"data,omitempty"`
	Message   string                    `json:"message,omitempty"`
	TraceInfo string                    `json:"traceInfo,omitempty"`
	Success   bool                      `json:"success,omitempty"`
}

type DashboardMetric

type DashboardMetric struct {
	Name             string             `json:"name,omitempty"`
	Unit             string             `json:"unit,omitempty"`
	Alias            string             `json:"alias,omitempty"`
	Contrast         []string           `json:"contrast,omitempty"`
	TimeContrast     []string           `json:"timeContrast,omitempty"`
	Statistics       string             `json:"statistics,omitempty"`
	Dimensions       []string           `json:"dimensions,omitempty"`
	MetricDimensions []MetricDimensions `json:"metricDimensions,omitempty"`
	Cycle            int                `json:"cycle,omitempty"`
	DisplayName      string             `json:"displayName,omitempty"`
}

type DashboardMonitorObject

type DashboardMonitorObject struct {
	InstanceName string `json:"instanceName,omitempty"`
	Id           string `json:"id,omitempty"`
}

type DashboardNamespace

type DashboardNamespace struct {
	NamespaceType string       `json:"namespaceType,omitempty"`
	Transfer      string       `json:"transfer"`
	Filter        string       `json:"filter,omitempty"`
	Name          string       `json:"name,omitempty"`
	InstanceName  string       `json:"instanceName,omitempty"`
	Region        string       `json:"region,omitempty"`
	BcmService    string       `json:"bcmService,omitempty"`
	SubService    []SubService `json:"subService,omitempty"`
}

type DashboardReportData

type DashboardReportData struct {
	Alias    string             `json:"alias,omitempty"`
	Children []string           `json:"children,omitempty"`
	Metrics  map[string]float64 `json:"metrics,omitempty"`
	Name     string             `json:"name,omitempty"`
	Value    string             `json:"value,omitempty"`
}

type DashboardReportDataResponse

type DashboardReportDataResponse struct {
	Code      int                   `json:"code,omitempty"`
	Data      []DashboardReportData `json:"data,omitempty"`
	Message   string                `json:"message,omitempty"`
	TraceInfo interface{}           `json:"traceInfo,omitempty"`
	Success   bool                  `json:"success,omitempty"`
}

type DashboardRequest

type DashboardRequest struct {
	DashboardName string `json:"dashboardName,omitempty"`
	UserID        string `json:"userId,omitempty"`
	Title         string `json:"title,omitempty"`
	Configure     string `json:"configure,omitempty"`
	WidgetName    string `json:"widgetName,omitempty"`
	Type          string `json:"type,omitempty"`
}

type DashboardResponse

type DashboardResponse struct {
	Code      int    `json:"code,omitempty"`
	Data      string `json:"data,omitempty"`
	Message   string `json:"message,omitempty"`
	TraceInfo string `json:"traceInfo,omitempty"`
	Success   bool   `json:"success,omitempty"`
}

type DashboardSeniorTrendData

type DashboardSeniorTrendData struct {
	Items   []Item  `json:"items,omitempty"`
	Job     Job     `json:"job,omitempty"`
	Numeric Numeric `json:"numeric,omitempty"`
}

type DashboardTrendData

type DashboardTrendData struct {
	Data                     [][]float64 `json:"data,omitempty"`
	Denominator              int         `json:"denominator,omitempty"`
	Dimensions               string      `json:"dimensions,omitempty"`
	Legend                   interface{} `json:"legend,omitempty"`
	Metric                   string      `json:"metric,omitempty"`
	MetricType               string      `json:"metricType,omitempty"`
	MetricUnit               string      `json:"metricUnit,omitempty"`
	MetricUnitTransformation string      `json:"metricUnitTransformation,omitempty"`
	Name                     string      `json:"name,omitempty"`
	Namespace                string      `json:"namespace,omitempty"`
	Numerator                int         `json:"numerator,omitempty"`
	Product                  interface{} `json:"product,omitempty"`
	Scope                    string      `json:"scope,omitempty"`
	Statistics               interface{} `json:"statistics,omitempty"`
	Time                     interface{} `json:"time,omitempty"`
	TransPolicy              string      `json:"transPolicy,omitempty"`
	HostName                 interface{} `json:"hostName,omitempty"`
	InternalIP               interface{} `json:"internalIp,omitempty"`
}

type DashboardTrendResponse

type DashboardTrendResponse struct {
	Code      int                  `json:"code,omitempty"`
	Data      []DashboardTrendData `json:"data,omitempty"`
	Message   string               `json:"message,omitempty"`
	TraceInfo string               `json:"traceInfo,omitempty"`
	Success   bool                 `json:"success,omitempty"`
}

type DashboardTrendSeniorResponse

type DashboardTrendSeniorResponse struct {
	Code      int                        `json:"code,omitempty"`
	Data      []DashboardSeniorTrendData `json:"data,omitempty"`
	Message   string                     `json:"message,omitempty"`
	TraceInfo string                     `json:"traceInfo,omitempty"`
	Success   bool                       `json:"success,omitempty"`
}

type DashboardWidgetConfigure

type DashboardWidgetConfigure struct {
	Data        []Data    `json:"data,omitempty"`
	Style       Style     `json:"style,omitempty"`
	Title       string    `json:"title,omitempty"`
	TimeRange   TimeRange `json:"timeRange,omitempty"`
	Time        string    `json:"time,omitempty"`
	MonitorType string    `json:"monitorType,omitempty"`
}

type DashboardWidgetRequest

type DashboardWidgetRequest struct {
	DashboardName string                   `json:"dashboardName,omitempty"`
	UserID        string                   `json:"userId,omitempty"`
	Title         string                   `json:"title,omitempty"`
	Configure     DashboardWidgetConfigure `json:"configure,omitempty"`
	WidgetName    string                   `json:"widgetName,omitempty"`
	Type          string                   `json:"type,omitempty"`
}

type Data

type Data struct {
	Metric        []DashboardMetric        `json:"metric,omitempty"`
	MonitorObject []DashboardMonitorObject `json:"monitorObject,omitempty"`
	Scope         string                   `json:"scope,omitempty"`
	SubService    string                   `json:"subService,omitempty"`
	Region        string                   `json:"region,omitempty"`
	ScopeValue    ScopeValue               `json:"scopeValue,omitempty"`
	ResourceType  string                   `json:"resourceType,omitempty"`
	MonitorType   string                   `json:"monitorType,omitempty"`
	Namespace     []DashboardNamespace     `json:"namespace,omitempty"`
	Product       string                   `json:"product,omitempty"`
}

type DataPoint added in v0.9.172

type DataPoint struct {
	Average     float64 `json:"average,omitempty"`
	Sum         float64 `json:"sum,omitempty"`
	Minimum     float64 `json:"minimum,omitempty"`
	Maximum     float64 `json:"maximum,omitempty"`
	SampleCount int     `json:"sampleCount,omitempty"`
	Value       string  `json:"value,omitempty"`
	Timestamp   string  `json:"timestamp,omitempty"`
}

type DataPoints

type DataPoints struct {
	Average     float64 `json:"average,omitempty"`
	Sum         float64 `json:"sum,omitempty"`
	Minimum     float64 `json:"minimum,omitempty"`
	Maximum     float64 `json:"maximum,omitempty"`
	SampleCount int64   `json:"sampleCount,omitempty"`
	Value       float64 `json:"value,omitempty"`
	Timestamp   string  `json:"timestamp,omitempty"`
}

type DeleteActionRequest

type DeleteActionRequest struct {
	UserId string `json:"userId,omitempty"`
	Name   string `json:"name,omitempty"`
}

type DeleteActionResponse

type DeleteActionResponse CreateActionResponse

type DeleteAppMonitorAlarmConfigRequest

type DeleteAppMonitorAlarmConfigRequest struct {
	UserId    string `json:"userId,omitempty"`
	AppName   string `json:"appName,omitempty"`
	AlarmName string `json:"alarmName,omitempty"`
}

type DeleteSiteAlarmConfigRequest

type DeleteSiteAlarmConfigRequest struct {
	UserID     string   `json:"userId,omitempty"`
	AlarmNames []string `json:"alarmNames,omitempty"`
}

type DeleteTaskResponse

type DeleteTaskResponse struct {
	RequestID string `json:"requestId,omitempty"`
	Code      string `json:"code,omitempty"`
	Message   string `json:"message,omitempty"`
}

type Dimension

type Dimension struct {
	Name  string `json:"name,omitempty"`
	Value string `json:"value,omitempty"`
}

type DimensionFilter

type DimensionFilter struct {
	Name   string   `json:"name,omitempty"`
	Values []string `json:"value,omitempty"`
}

type DimensionValue

type DimensionValue struct {
	Name      string `json:"name,omitempty"`
	Comment   string `json:"comment,omitempty"`
	Available bool   `json:"available,omitempty"`
}

type ErrorBatchGetMetricData

type ErrorBatchGetMetricData struct {
	MetricName string       `json:"metricName,omitempty"`
	Dimensions []*Dimension `json:"dimensions,omitempty"`
	Message    string       `json:"message,omitempty"`
}

type EventDataRequest

type EventDataRequest struct {
	PageNo       int    `json:"pageNo,omitempty"`
	PageSize     int    `json:"pageSize,omitempty"`
	StartTime    string `json:"startTime,omitempty"`
	EndTime      string `json:"endTime,omitempty"`
	AccountID    string `json:"accountId,omitempty"`
	Ascending    bool   `json:"ascending,omitempty"`
	Scope        string `json:"scope,omitempty"`
	Region       string `json:"region,omitempty"`
	EventLevel   string `json:"eventLevel,omitempty"`
	EventName    string `json:"eventName,omitempty"`
	EventAlias   string `json:"eventAlias,omitempty"`
	ResourceType string `json:"resourceType,omitempty"`
	ResourceID   string `json:"resourceId,omitempty"`
	EventID      string `json:"eventId,omitempty"`
}

type EventFilter

type EventFilter struct {
	EventLevel      string   `json:"eventLevel,omitempty"`
	EventTypeList   []string `json:"eventTypeList,omitempty"`
	EventAliasNames []string `json:"eventAliasNames,omitempty"`
}

type EventPolicy

type EventPolicy struct {
	AccountID       string              `json:"accountId,omitempty"`
	ServiceName     string              `json:"serviceName,omitempty"`
	Name            string              `json:"name,omitempty"`
	BlockStatus     string              `json:"blockStatus,omitempty"`
	EventFilter     EventFilter         `json:"eventFilter,omitempty"`
	Resource        EventResourceFilter `json:"resource,omitempty"`
	IncidentActions []string            `json:"incidentActions,omitempty"`
}

type EventResource

type EventResource struct {
	Identifiers []Dimension `json:"identifiers,omitempty"`
}

type EventResourceFilter

type EventResourceFilter struct {
	Region            string          `json:"region,omitempty"`
	Type              string          `json:"type,omitempty"`
	MonitorObjectType string          `json:"monitorObjectType,omitempty"`
	Resources         []EventResource `json:"resources,omitempty"`
}

type GetAppMonitorAlarmConfigDetailRequest

type GetAppMonitorAlarmConfigDetailRequest struct {
	UserId    string `json:"userId,omitempty"`
	AlarmName string `json:"alarmName,omitempty"`
	AppName   string `json:"appName,omitempty"`
}

type GetAppMonitorAlarmMetricsRequest

type GetAppMonitorAlarmMetricsRequest struct {
	UserId     string `json:"userId,omitempty"`
	AppName    string `json:"appName,omitempty"`
	TaskName   string `json:"taskName,omitempty"`
	SearchName string `json:"searchName,omitempty"`
}

type GetMetricDataForApplicationRequest

type GetMetricDataForApplicationRequest struct {
	UserId     string              `json:"userId,omitempty"`
	AppName    string              `json:"appName,omitempty"`
	TaskName   string              `json:"taskName,omitempty"`
	MetricName string              `json:"metricName,omitempty"`
	Instances  []string            `json:"instances,omitempty"`
	StartTime  string              `json:"startTime,omitempty"`
	EndTime    string              `json:"endTime,omitempty"`
	Cycle      int                 `json:"cycle,omitempty"`
	Statistics []string            `json:"statistics,omitempty"`
	Dimensions map[string][]string `json:"dimensions,omitempty"`
	AggrData   bool                `json:"aggrData,omitempty"`
}

type GetMetricDataForApplicationResult

type GetMetricDataForApplicationResult struct {
	Namespace  string                `json:"namespace,omitempty"`
	Dimensions []MetricDataDimension `json:"dimensions,omitempty"`
	DataPoints []DataPoints          `json:"dataPoints"`
}

type GetMetricDataRequest

type GetMetricDataRequest struct {
	UserId         string            `json:"userId,omitempty"`
	Scope          string            `json:"scope,omitempty"`
	MetricName     string            `json:"metricName,omitempty"`
	Dimensions     map[string]string `json:"dimensions,omitempty"`
	Statistics     []string          `json:"statistics,omitempty"`
	StartTime      string            `json:"startTime,omitempty"`
	EndTime        string            `json:"endTime,omitempty"`
	PeriodInSecond int               `json:"periodInSecond,omitempty"`
}

type GetMetricDataResponse

type GetMetricDataResponse struct {
	RequestId  string        `json:"requestId,omitempty"`
	Code       string        `json:"code,omitempty"`
	Message    string        `json:"message,omitempty"`
	DataPoints []*DataPoints `json:"dataPoints,omitempty"`
}

type GetMetricMetaForApplicationRequest

type GetMetricMetaForApplicationRequest struct {
	UserId        string   `json:"userId,omitempty"`
	AppName       string   `json:"appName,omitempty"`
	TaskName      string   `json:"taskName,omitempty"`
	MetricName    string   `json:"metricName,omitempty"`
	Instances     []string `json:"instances,omitempty"`
	DimensionKeys []string `json:"dimensionKeys,omitempty"`
}

type GetSiteAgentByTaskIDResponse

type GetSiteAgentByTaskIDResponse struct {
	Idcs []GetSiteAgentsResponse `json:"idcs,omitempty"`
	Isps []GetSiteAgentsResponse `json:"isps,omitempty"`
}

type GetSiteAgentListRequest

type GetSiteAgentListRequest struct {
	UserID string `json:"userId,omitempty"`
}

type GetSiteAgentListResponse

type GetSiteAgentListResponse struct {
	AgentID   string `json:"agentId,omitempty"`
	AgentName string `json:"agentName,omitempty"`
}

type GetSiteAgentsResponse

type GetSiteAgentsResponse struct {
	ID   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

type GetSiteAlarmConfigListRequest

type GetSiteAlarmConfigListRequest struct {
	UserID        string `json:"userId,omitempty"`
	TaskID        string `json:"taskId,omitempty"`
	AliasName     string `json:"aliasName,omitempty"`
	ActionEnabled bool   `json:"actionEnabled,omitempty"`
	PageNo        int    `json:"pageNo,omitempty"`
	PageSize      int    `json:"pageSize,omitempty"`
}

type GetSiteAlarmConfigListResponse

type GetSiteAlarmConfigListResponse struct {
	OrderBy    string                          `json:"orderBy,omitempty"`
	Order      string                          `json:"order,omitempty"`
	PageNo     int                             `json:"pageNo,omitempty"`
	PageSize   int                             `json:"pageSize,omitempty"`
	TotalCount int                             `json:"totalCount,omitempty"`
	Result     []CreateSiteAlarmConfigResponse `json:"result,omitempty"`
}

type GetSiteAlarmConfigRequest

type GetSiteAlarmConfigRequest struct {
	UserID    string `json:"userId,omitempty"`
	AlarmName string `json:"alarmName,omitempty"`
	Namespace string `json:"namespace,omitempty"`
}

type GetSiteMetricDataRequest

type GetSiteMetricDataRequest struct {
	UserID     string   `json:"userId,omitempty"`
	MetricName string   `json:"metricName,omitempty"`
	Statistics []string `json:"statistics,omitempty"`
	StartTime  string   `json:"startTime,omitempty"`
	EndTime    string   `json:"endTime,omitempty"`
	Cycle      int      `json:"cycle,omitempty"`
	TaskID     string   `json:"taskId,omitempty"`
	Dimensions string   `json:"dimensions,omitempty"`
}

type GetSiteMetricDataResponse

type GetSiteMetricDataResponse struct {
	Namespace  string       `json:"namespace,omitempty"`
	Dimensions []Dimension  `json:"dimensions,omitempty"`
	DataPoints []DataPoints `json:"dataPoints,omitempty"`
}

type GetSiteViewResponse

type GetSiteViewResponse struct {
	ID           string  `json:"id,omitempty"`
	Name         string  `json:"name,omitempty"`
	Availability string  `json:"availability,omitempty"`
	ResponseTime float64 `json:"responseTime,omitempty"`
}

type GetTaskDetailRequest

type GetTaskDetailRequest struct {
	UserID string `json:"userId,omitempty"`
	TaskID string `json:"taskId,omitempty"`
	Isp    string `json:"isp,omitempty"`
}

type GetTaskDetailResponse

type GetTaskDetailResponse struct {
	Name    string `json:"name,omitempty"`
	Address string `json:"address,omitempty"`
	Method  string `json:"method,omitempty"`
	SiteID  string `json:"siteId,omitempty"`
}

type GetTaskList

type GetTaskList struct {
	TaskID   string `json:"taskId,omitempty"`
	TaskName string `json:"taskName,omitempty"`
	Cycle    int    `json:"cycle,omitempty"`
	Type     string `json:"type,omitempty"`
	Address  string `json:"address,omitempty"`
	Status   string `json:"status,omitempty"`
}

type GetTaskListRequest

type GetTaskListRequest struct {
	UserID   string `json:"userId,omitempty"`
	Query    string `json:"query,omitempty"`
	Type     string `json:"type,omitempty"`
	PageNo   int    `json:"pageNo,omitempty"`
	PageSize int    `json:"pageSize,omitempty"`
}

type GetTaskListResponse

type GetTaskListResponse struct {
	PageSize      int           `json:"pageSize,omitempty"`
	PageNumber    int           `json:"pageNumber,omitempty"`
	TotalElements int           `json:"totalElements,omitempty"`
	Content       []GetTaskList `json:"content,omitempty"`
}

type HostInstanceInfo

type HostInstanceInfo struct {
	InstanceID string `json:"instanceId,omitempty"`
	Region     string `json:"region,omitempty"`
}

type IGInstanceItem

type IGInstanceItem struct {
	ItemName        string `json:"itemName,omitempty"`
	ItemAlias       string `json:"itemAlias,omitempty"`
	ItemValue       string `json:"itemValue,omitempty"`
	ItemIdentitable bool   `json:"itemIdentitable,omitempty"`
	ItemDimension   string `json:"itemDimension,omitempty"`
}

type IGInstanceListResponse

type IGInstanceListResponse struct {
	OrderBy    string             `json:"orderBy,omitempty"`
	Order      string             `json:"order,omitempty"`
	PageNo     int                `json:"pageNo,omitempty"`
	PageSize   int                `json:"pageSize,omitempty"`
	TotalCount int                `json:"totalCount,omitempty"`
	Result     [][]IGInstanceItem `json:"result,omitempty"`
}

type IGInstanceQuery

type IGInstanceQuery struct {
	UserID      string `json:"userId,omitempty"`
	ID          string `json:"id,omitempty"`
	UUID        string `json:"uuid,omitempty"`
	ServiceName string `json:"serviceName,omitempty"`
	TypeName    string `json:"typeName,omitempty"`
	Region      string `json:"region,omitempty"`
	ViewType    string `json:"viewType,omitempty"`
	PageNo      int    `json:"pageNo,omitempty"`
	PageSize    int    `json:"pageSize,omitempty"`
	KeywordType string `json:"keywordType,omitempty"`
	Keyword     string `json:"keyword,omitempty"`
}

type InstanceGroup

type InstanceGroup struct {
	ID               int64  `json:"id,omitempty"`
	Name             string `json:"name,omitempty"`
	ServiceName      string `json:"serviceName,omitempty"`
	TypeName         string `json:"typeName,omitempty"`
	Region           string `json:"region,omitempty"`
	UserID           string `json:"userId,omitempty"`
	UUID             string `json:"uuid,omitempty"`
	Count            int    `json:"count,omitempty"`
	ServiceNameAlias string `json:"serviceNameAlias,omitempty"`
	TypeNameAlias    string `json:"typeNameAlias,omitempty"`
	RegionAlias      string `json:"regionAlias,omitempty"`
	TagKey           string `json:"tagKey,omitempty"`
}

type InstanceGroupBase

type InstanceGroupBase struct {
	ID     string `json:"id,omitempty"`
	UserID string `json:"userId,omitempty"`
}

type InstanceGroupListResponse

type InstanceGroupListResponse struct {
	OrderBy    string          `json:"orderBy,omitempty"`
	Order      string          `json:"order,omitempty"`
	PageNo     int             `json:"pageNo,omitempty"`
	PageSize   int             `json:"pageSize,omitempty"`
	TotalCount int             `json:"totalCount,omitempty"`
	Result     []InstanceGroup `json:"result,omitempty"`
}

type InstanceGroupQuery

type InstanceGroupQuery struct {
	UserID      string `json:"userId,omitempty"`
	Name        string `json:"name,omitempty"`
	ServiceName string `json:"serviceName,omitempty"`
	Region      string `json:"region,omitempty"`
	TypeName    string `json:"typeName,omitempty"`
	PageNo      int    `json:"pageNo,omitempty"`
	PageSize    int    `json:"pageSize,omitempty"`
}

type Item

type Item struct {
	StatisticsValue Numeric `json:"statisticsValue,omitempty"`
	Timestamp       int     `json:"timestamp,omitempty"`
}

type Job

type Job struct {
	Alias          string       `json:"alias,omitempty"`
	BcmSource      bool         `json:"bcmSource,omitempty"`
	Contrast       string       `json:"contrast,omitempty"`
	Decimals       interface{}  `json:"decimals,omitempty"`
	DisplayName    string       `json:"displayName,omitempty"`
	EndTime        int          `json:"endTime,omitempty"`
	Flatten        bool         `json:"flatten,omitempty"`
	InstanceID     interface{}  `json:"instanceId,omitempty"`
	InstanceName   string       `json:"instanceName,omitempty"`
	IntranetIP     interface{}  `json:"intranetIp,omitempty"`
	Items          []Item       `json:"items,omitempty"`
	MetricName     string       `json:"metricName,omitempty"`
	Namespace      string       `json:"namespace,omitempty"`
	Offset         int          `json:"offset,omitempty"`
	OriginalPeriod int          `json:"originalPeriod,omitempty"`
	Period         int          `json:"period,omitempty"`
	Product        string       `json:"product,omitempty"`
	StartTime      int          `json:"startTime,omitempty"`
	Statistics     string       `json:"statistics,omitempty"`
	Tags           string       `json:"tags,omitempty"`
	TagsForTsdb    []TagForTsdb `json:"tagsForTsdb,omitempty"`
	Unit           string       `json:"unit,omitempty"`
}

type KV

type KV struct {
	Key   string `json:"key,omitempty"`
	Value string `json:"value,omitempty"`
}

type Level

type Level string
const (
	LevelNotice   Level = "NOTICE"
	LevelWarning  Level = "WARNING"
	LevelCritical Level = "CRITICAL"
	LevelMajor    Level = "MAJOR"
	LevelCustom   Level = "CUSTOM"
)

type ListActionsPageResult

type ListActionsPageResult struct {
	OrderBy    string   `json:"orderBy,omitempty"`
	Order      string   `json:"order,omitempty"`
	PageNo     int      `json:"pageNo,omitempty"`
	PageSize   int      `json:"pageSize,omitempty"`
	TotalCount int      `json:"totalCount,omitempty"`
	Result     []Action `json:"result,omitempty"`
}

type ListActionsRequest

type ListActionsRequest struct {
	UserId   string `json:"userId,omitempty"`
	Name     string `json:"name,omitempty"`
	PageNo   int    `json:"pageNo,omitempty"`
	PageSize int    `json:"pageSize,omitempty"`
	OrderBy  string `json:"orderBy,omitempty"`
	Order    string `json:"order,omitempty"`
}

type ListActionsResponse

type ListActionsResponse struct {
	RequestId string                `json:"requestId,omitempty"`
	Message   string                `json:"message,omitempty"`
	Success   bool                  `json:"success,omitempty"`
	Code      int                   `json:"code,omitempty"`
	Result    ListActionsPageResult `json:"result,omitempty"`
}

type ListAlarmMetricsRequest

type ListAlarmMetricsRequest struct {
	UserId     string `json:"userId,omitempty"`
	Scope      string `json:"scope,omitempty"`
	Region     string `json:"region,omitempty"`
	Dimensions string `json:"dimensions,omitempty"`
	Type       string `json:"type,omitempty"`
	Locale     string `json:"locale,omitempty"`
}

type ListAppMonitorAlarmConfigsRequest

type ListAppMonitorAlarmConfigsRequest struct {
	UserId        string  `json:"userId,omitempty"`
	AppName       string  `json:"appName,omitempty"`
	AlarmName     string  `json:"alarmName,omitempty"`
	ActionEnabled *bool   `json:"actionEnabled,omitempty"`
	SrcType       SrcType `json:"srcType,omitempty"`
	TaskName      string  `json:"taskName,omitempty"`
	PageNo        int     `json:"pageNo,omitempty"`
	PageSize      int     `json:"pageSize,omitempty"`
}

type ListAppMonitorAlarmConfigsResponse

type ListAppMonitorAlarmConfigsResponse struct {
	TotalCount int                     `json:"totalCount,omitempty"`
	OrderBy    string                  `json:"orderBy,omitempty"`
	Order      string                  `json:"order,omitempty"`
	PageNo     int                     `json:"pageNo,omitempty"`
	PageSize   int                     `json:"pageSize,omitempty"`
	Result     []AppMonitorAlarmConfig `json:"result,omitempty"`
}

type ListNamespaceEventsRequest

type ListNamespaceEventsRequest struct {
	UserId     string `json:"userId,omitempty"`
	Namespace  string `json:"namespace,omitempty"`
	Name       string `json:"name,omitempty"`
	EventLevel string `json:"eventLevel,omitempty"`
	PageNo     int    `json:"pageNo,omitempty"`
	PageSize   int    `json:"pageSize,omitempty"`
}

type ListNamespaceEventsResponse

type ListNamespaceEventsResponse struct {
	PageNo     int              `json:"pageNo,omitempty"`
	PageSize   int              `json:"pageSize,omitempty"`
	TotalCount int              `json:"totalCount,omitempty"`
	Result     []NamespaceEvent `json:"result,omitempty"`
}

type ListNamespaceMetricsRequest

type ListNamespaceMetricsRequest struct {
	UserId      string `json:"userId,omitempty"`
	Namespace   string `json:"namespace,omitempty"`
	MetricName  string `json:"metricName,omitempty"`
	MetricAlias string `json:"metricAlias,omitempty"`
	PageNo      int    `json:"pageNo,omitempty"`
	PageSize    int    `json:"pageSize,omitempty"`
}

type ListNamespaceMetricsResponse

type ListNamespaceMetricsResponse struct {
	PageNo     int               `json:"pageNo,omitempty"`
	PageSize   int               `json:"pageSize,omitempty"`
	TotalCount int               `json:"totalCount,omitempty"`
	Result     []NamespaceMetric `json:"result,omitempty"`
}

type ListNamespacesRequest

type ListNamespacesRequest struct {
	UserId   string `json:"userId,omitempty"`
	Name     string `json:"name,omitempty"`
	PageNo   int    `json:"pageNo,omitempty"`
	PageSize int    `json:"pageSize,omitempty"`
}

type ListNamespacesResponse

type ListNamespacesResponse struct {
	PageNo     int                           `json:"pageNo,omitempty"`
	PageSize   int                           `json:"pageSize,omitempty"`
	TotalCount int                           `json:"totalCount,omitempty"`
	Result     []NamespaceWithMetricAndEvent `json:"result,omitempty"`
}

type ListNotifyGroupsPageResult

type ListNotifyGroupsPageResult struct {
	OrderBy    string        `json:"orderBy,omitempty"`
	Order      string        `json:"order,omitempty"`
	PageNo     int           `json:"pageNo,omitempty"`
	PageSize   int           `json:"pageSize,omitempty"`
	TotalCount int           `json:"totalCount,omitempty"`
	Result     []NotifyGroup `json:"result,omitempty"`
}

type ListNotifyGroupsRequest

type ListNotifyGroupsRequest struct {
	Name     string `json:"name,omitempty"`
	PageNo   int    `json:"pageNo,omitempty"`
	PageSize int    `json:"pageSize,omitempty"`
}

type ListNotifyGroupsResponse

type ListNotifyGroupsResponse struct {
	Success bool                       `json:"success,omitempty"`
	Status  int                        `json:"status,omitempty"`
	Page    ListNotifyGroupsPageResult `json:"page,omitempty"`
}

type ListNotifyPartiesPageResult

type ListNotifyPartiesPageResult struct {
	OrderBy    string        `json:"orderBy,omitempty"`
	Order      string        `json:"order,omitempty"`
	PageNo     int           `json:"pageNo,omitempty"`
	PageSize   int           `json:"pageSize,omitempty"`
	TotalCount int           `json:"totalCount,omitempty"`
	Result     []NotifyParty `json:"result,omitempty"`
}

type ListNotifyPartiesRequest

type ListNotifyPartiesRequest struct {
	Name     string `json:"name,omitempty"`
	PageNo   int    `json:"pageNo,omitempty"`
	PageSize int    `json:"pageSize,omitempty"`
}

type ListNotifyPartiesResponse

type ListNotifyPartiesResponse struct {
	Success bool                        `json:"success,omitempty"`
	Status  int                         `json:"status,omitempty"`
	Page    ListNotifyPartiesPageResult `json:"page,omitempty"`
}

type ListSingleInstanceAlarmConfigsRequest

type ListSingleInstanceAlarmConfigsRequest struct {
	UserId          string `json:"userId,omitempty"`
	Scope           string `json:"scope,omitempty"`
	Region          string `json:"region,omitempty"`
	Dimensions      string `json:"dimensions,omitempty"`
	Order           string `json:"order,omitempty"`
	PageNo          int    `json:"pageNo,omitempty"`
	PageSize        int    `json:"pageSize,omitempty"`
	ActionEnabled   *bool  `json:"actionEnabled,omitempty"`
	AlarmNamePrefix string `json:"alarmNamePrefix,omitempty"`
}

type ListSingleInstanceAlarmConfigsResponse

type ListSingleInstanceAlarmConfigsResponse struct {
	TotalCount int            `json:"totalCount,omitempty"`
	OrderBy    string         `json:"orderBy,omitempty"`
	Order      string         `json:"order,omitempty"`
	PageNo     int            `json:"pageNo,omitempty"`
	PageSize   int            `json:"pageSize,omitempty"`
	Result     []*AlarmConfig `json:"result,omitempty"`
}

type LogExtractRequest

type LogExtractRequest struct {
	UserId      string `json:"userId,omitempty"`
	ExtractRule string `json:"extractRule,omitempty"`
	LogExample  string `json:"logExample,omitempty"`
}

type LogExtractResult

type LogExtractResult struct {
	ID                int    `json:"id,omitempty"`
	TaskID            int    `json:"taskId,omitempty"`
	ExtractFieldName  string `json:"extractFieldName,omitempty"`
	ExtractFieldValue string `json:"extractFieldValue,omitempty"`
	MetricEnable      int    `json:"metricEnable,omitempty"`
	DimensionMapTable string `json:"dimensionMapTable,omitempty"`
}

type MergedGroup

type MergedGroup struct {
	ID             string            `json:"id,omitempty"`
	UserId         string            `json:"userId,omitempty"`
	Region         string            `json:"region,omitempty"`
	ServiceName    string            `json:"serviceName,omitempty"`
	TypeName       string            `json:"typeName,omitempty"`
	Name           string            `json:"name,omitempty"`
	ResourceIDList []MonitorResource `json:"resourceIdList,omitempty"`
}

type Metric

type Metric struct {
	ID               int       `json:"id,omitempty"`
	TaskID           int       `json:"taskId,omitempty"`
	MetricName       string    `json:"metricName"`
	SaveInstanceData int       `json:"saveInstanceData"`
	ValueFieldType   int       `json:"valueFieldType"`
	AggrTags         []*AggTag `json:"aggrTags"`
	MetricAlias      string    `json:"metricAlias"`
	MetricUnit       string    `json:"metricUnit"`
	ValueFieldName   string    `json:"valueFieldName"`
}

type MetricDataDimension

type MetricDataDimension struct {
	Key   string `json:"key,omitempty"`
	Value string `json:"value,omitempty"`
}

type MetricDimensions

type MetricDimensions struct {
	Name   string   `json:"name,omitempty"`
	Values []string `json:"values,omitempty"`
}

type MetricsByPartialDimensionsPageResponse added in v0.9.172

type MetricsByPartialDimensionsPageResponse struct {
	RequestID string `json:"requestId,omitempty"`
	Code      string `json:"code,omitempty"`
	Message   string `json:"message,omitempty"`
	Result    struct {
		OrderBy    string `json:"orderBy,omitempty"`
		Order      string `json:"order,omitempty"`
		PageNo     int    `json:"pageNo,omitempty"`
		PageSize   int    `json:"pageSize,omitempty"`
		TotalCount int    `json:"totalCount,omitempty"`
		Result     []struct {
			Region     string      `json:"region,omitempty"`
			Scope      string      `json:"scope,omitempty"`
			UserID     string      `json:"userId,omitempty"`
			ResourceID string      `json:"resourceId,omitempty"`
			MetricName string      `json:"metricName,omitempty"`
			Dimensions []Dimension `json:"dimensions,omitempty"`
			DataPoints []struct {
				Average     *float64 `json:"average,omitempty"`
				Sum         *float64 `json:"sum,omitempty"`
				Minimum     *float64 `json:"minimum,omitempty"`
				Maximum     *float64 `json:"maximum,omitempty"`
				SampleCount int      `json:"sampleCount,omitempty"`
				Value       string   `json:"value,omitempty"`
				Timestamp   string   `json:"timestamp,omitempty"`
			} `json:"dataPoints,omitempty"`
		} `json:"result,omitempty"`
	} `json:"result,omitempty"`
}

type MetricsByPartialDimensionsRequest added in v0.9.172

type MetricsByPartialDimensionsRequest struct {
	UserID       string      `json:"userId,omitempty"`
	Scope        string      `json:"scope,omitempty"`
	StartTime    string      `json:"startTime,omitempty"`
	EndTime      string      `json:"endTime,omitempty"`
	Statistics   []string    `json:"statistics,omitempty"`
	Cycle        int         `json:"cycle,omitempty"`
	Dimensions   []Dimension `json:"dimensions,omitempty"`
	ResourceType string      `json:"resourceType,omitempty"`
	MetricName   string      `json:"metricName,omitempty"`
	Region       string      `json:"region,omitempty"`
	PageNo       int         `json:"pageNo,omitempty"`
	PageSize     int         `json:"pageSize,omitempty"`
}

type MonitorObject

type MonitorObject struct {
	Id                int64                    `json:"id,omitempty"`
	MonitorObjectView []MonitorObjectViewModel `json:"monitorObjectView,omitempty"`
	MonitorObjectType string                   `json:"monitorObjectType,omitempty"`
	TypeName          string                   `json:"typeName,omitempty"`
}

type MonitorObjectType

type MonitorObjectType string
const (
	MonitorObjectApp      MonitorObjectType = "APP"
	MonitorObjectService  MonitorObjectType = "SERVICE"
	MonitorObjectInstance MonitorObjectType = "INSTANCE"
	MonitorObjectCustom   MonitorObjectType = "CUSTOM"
	MonitorObjectDomain   MonitorObjectType = "DOMAIN"
)

type MonitorObjectViewModel

type MonitorObjectViewModel struct {
	MonitorObjectName     string `json:"monitorObjectName,omitempty"`
	MonitorObjectNameView string `json:"monitorObjectNameView"`
	MetricDimensionView   string `json:"metricDimensionView"`
}

type MonitorResource

type MonitorResource struct {
	UserId        string      `json:"userId,omitempty"`
	Region        string      `json:"region,omitempty"`
	ServiceName   string      `json:"serviceName,omitempty"`
	TypeName      string      `json:"typeName,omitempty"`
	ResourceID    string      `json:"resourceId,omitempty"`
	ErrUpdateTime string      `json:"errUpdateTime,omitempty"`
	Identifiers   []Dimension `json:"identifiers,omitempty"`
	Properties    []Dimension `json:"properties,omitempty"`
	Tags          []Dimension `json:"tags,omitempty"`
}

type MultiDimensionalLatestMetricsRequest added in v0.9.172

type MultiDimensionalLatestMetricsRequest struct {
	UserID       string      `json:"userId,omitempty"`
	Region       string      `json:"region,omitempty"`
	Scope        string      `json:"scope,omitempty"`
	ResourceType string      `json:"resourceType,omitempty"`
	Dimensions   []Dimension `json:"dimensions,omitempty"`
	MetricNames  []string    `json:"metricNames,omitempty"`
	Timestamp    string      `json:"timestamp,omitempty"`
	Statistics   []string    `json:"statistics,omitempty"`
	Cycle        int         `json:"cycle,omitempty"`
}

type MultiDimensionalMetric added in v0.9.172

type MultiDimensionalMetric struct {
	Region     string       `json:"region,omitempty"`
	Scope      string       `json:"scope,omitempty"`
	UserID     string       `json:"userId,omitempty"`
	ResourceID string       `json:"resourceId,omitempty"`
	MetricName string       `json:"metricName,omitempty"`
	Dimensions []Dimension  `json:"dimensions,omitempty"`
	DataPoints []*DataPoint `json:"dataPoints,omitempty"`
}

type MultiDimensionalMetricsResponse added in v0.9.172

type MultiDimensionalMetricsResponse struct {
	RequestID string                    `json:"requestId,omitempty"`
	Code      string                    `json:"code,omitempty"`
	Message   interface{}               `json:"message,omitempty"`
	Metrics   []*MultiDimensionalMetric `json:"metrics,omitempty"`
}

type Namespace

type Namespace struct {
	Name           string `json:"name,omitempty"`
	NamespaceAlias string `json:"namespaceAlias,omitempty"`
	UserId         string `json:"userId,omitempty"`
	Comment        string `json:"comment,omitempty"`
}

type NamespaceEvent

type NamespaceEvent struct {
	UserId         string `json:"userId,omitempty"`
	Namespace      string `json:"namespace,omitempty"`
	EventName      string `json:"eventName,omitempty"`
	EventNameAlias string `json:"eventNameAlias,omitempty"`
	EventLevel     string `json:"eventLevel,omitempty"`
	Comment        string `json:"comment,omitempty"`
}

type NamespaceItemView

type NamespaceItemView struct {
	Name  string `json:"name,omitempty"`
	Alias string `json:"alias,omitempty"`
}

type NamespaceMetric

type NamespaceMetric struct {
	Id          int64                      `json:"id,omitempty"`
	UserId      string                     `json:"userId,omitempty"`
	Namespace   string                     `json:"namespace,omitempty"`
	MetricName  string                     `json:"metricName,omitempty"`
	MetricAlias string                     `json:"metricAlias,omitempty"`
	Unit        string                     `json:"unit,omitempty"`
	Cycle       int                        `json:"cycle,omitempty"`
	Dimensions  []NamespaceMetricDimension `json:"dimensions"`
}

type NamespaceMetricDimension

type NamespaceMetricDimension struct {
	Order int    `json:"order,omitempty"`
	Name  string `json:"name,omitempty"`
	Alias string `json:"alias,omitempty"`
}

type NamespaceWithMetricAndEvent

type NamespaceWithMetricAndEvent struct {
	Name           string              `json:"name,omitempty"`
	NamespaceAlias string              `json:"namespaceAlias,omitempty"`
	UserId         string              `json:"userId,omitempty"`
	Comment        string              `json:"comment,omitempty"`
	Metrics        []NamespaceItemView `json:"metrics,omitempty"`
	EventConfigs   []NamespaceItemView `json:"eventConfigs,omitempty"`
}

type NotifyGroup

type NotifyGroup struct {
	Id          string `json:"id,omitempty"`
	DomainId    string `json:"domainId,omitempty"`
	Name        string `json:"name,omitempty"`
	Description string `json:"description"`
}

type NotifyParty

type NotifyParty struct {
	Id       string `json:"id,omitempty"`
	DomainId string `json:"domainId,omitempty"`
	Name     string `json:"name,omitempty"`
	Email    string `json:"email,omitempty"`
	Phone    string `json:"phone,omitempty"`
	Type     string `json:"type,omitempty"`
}

type Numeric

type Numeric struct {
	Avg float64 `json:"avg,omitempty"`
	Cnt float64 `json:"cnt,omitempty"`
	Max float64 `json:"max,omitempty"`
	Min float64 `json:"min,omitempty"`
	Sum float64 `json:"sum,omitempty"`
}

type Pageable

type Pageable struct {
	Sort       *Sort `json:"sort,omitempty"`
	PageSize   int   `json:"pageSize,omitempty"`
	PageNumber int   `json:"pageNumber,omitempty"`
	Offset     int   `json:"offset,omitempty"`
	Unpaged    bool  `json:"unpaged,omitempty"`
	Paged      bool  `json:"paged,omitempty"`
}

type PlatformEventData

type PlatformEventData struct {
	EventID      string `json:"eventId,omitempty"`
	EventName    string `json:"eventName,omitempty"`
	EventAlias   string `json:"eventAlias,omitempty"`
	EventLevel   string `json:"eventLevel,omitempty"`
	EventTime    string `json:"eventTime,omitempty"`
	EventContent string `json:"eventContent,omitempty"`
	EventSource  string `json:"eventSource,omitempty"`
	EventStatus  string `json:"eventStatus,omitempty"`
	EventDetail  string `json:"eventDetail,omitempty"`
}

type PlatformEventResponse

type PlatformEventResponse struct {
	Content       []PlatformEventData `json:"content,omitempty"`
	PageNumber    int                 `json:"pageNumber,omitempty"`
	PageSize      int                 `json:"pageSize,omitempty"`
	PageElements  int                 `json:"pageElements,omitempty"`
	Last          bool                `json:"last,omitempty"`
	First         bool                `json:"first,omitempty"`
	TotalPages    int                 `json:"totalPages,omitempty"`
	TotalElements int64               `json:"totalElements,omitempty"`
}

type PolicyResource

type PolicyResource struct {
	Identifiers      []*Dimension `json:"identifiers,omitempty"`
	MetricDimensions []*Dimension `json:"metricDimensions,omitempty"`
}

type ScopeValue

type ScopeValue struct {
	Name        string `json:"name,omitempty"`
	Value       string `json:"value,omitempty"`
	HasChildren bool   `json:"hasChildren,omitempty"`
}

type SiteAlarmRule

type SiteAlarmRule struct {
	Metric             string   `json:"metric,omitempty"`
	MetricAlias        string   `json:"metricAlias,omitempty"`
	Statistics         string   `json:"statistics,omitempty"`
	Threshold          string   `json:"threshold,omitempty"`
	ComparisonOperator string   `json:"comparisonOperator,omitempty"`
	Cycle              int      `json:"cycle,omitempty"`
	Count              int      `json:"count,omitempty"`
	Function           string   `json:"function,omitempty"`
	ActOnIdcs          []string `json:"actOnIdcs,omitempty"`
	ActOnIsps          []string `json:"actOnIsps,omitempty"`
	VersionSite        string   `json:"versionSite,omitempty"`
}

type Sort

type Sort struct {
	Unsorted bool `json:"unsorted,omitempty"`
	Sorted   bool `json:"sorted,omitempty"`
}

type SrcType

type SrcType string
const (
	SrcTypeProc SrcType = "PROC"
	SrcTypeLog  SrcType = "LOG"
	SrcTypePort SrcType = "PORT"
	SrcTypeSCR  SrcType = "SCR"
)

type Style

type Style struct {
	DisplayType   string `json:"displayType,omitempty"`
	NullPointMode string `json:"nullPointMode,omitempty"`
	Threshold     int    `json:"threshold,omitempty"`
	Decimals      int    `json:"decimals,omitempty"`
	IsEdit        bool   `json:"isEdit,omitempty"`
	Unit          string `json:"unit,omitempty"`
}

type SubService

type SubService struct {
	Name  string `json:"name,omitempty"`
	Value string `json:"value,omitempty"`
}

type SuccessBatchGetMetricData

type SuccessBatchGetMetricData struct {
	MetricName string        `json:"metricName,omitempty"`
	Dimensions []*Dimension  `json:"dimensions,omitempty"`
	DataPoints []*DataPoints `json:"dataPoints,omitempty"`
}

type TagForTsdb

type TagForTsdb struct {
	Key   string `json:"key,omitempty"`
	Value string `json:"value,omitempty"`
}

type TargetType

type TargetType string
const (
	TargetTypeAllInstances   TargetType = "TARGET_TYPE_ALL_INSTANCES"
	TargetTypeInstanceGroup  TargetType = "TARGET_TYPE_INSTANCE_GROUP"
	TargetTypeMultiInstances TargetType = "TARGET_TYPE_MULTI_INSTANCES"
	TargetTypeInstanceTags   TargetType = "TARGET_TYPE_INSTANCE_TAGS"
)

type TimeRange

type TimeRange struct {
	TimeType string `json:"timeType,omitempty"`
	Unit     string `json:"unit,omitempty"`
	Number   int    `json:"number,omitempty"`
	Relative string `json:"relative,omitempty"`
}

type TsdbMetricAllDataQueryRequest added in v0.9.172

type TsdbMetricAllDataQueryRequest struct {
	UserID      string        `json:"userId,omitempty"`
	Region      string        `json:"region,omitempty"`
	Scope       string        `json:"scope,omitempty"`
	Type        string        `json:"type,omitempty"`
	Dimensions  [][]Dimension `json:"dimensions,omitempty"`
	MetricNames []string      `json:"metricNames,omitempty"`
	Statistics  []string      `json:"statistics,omitempty"`
	Cycle       int           `json:"cycle,omitempty"`
	StartTime   string        `json:"startTime,omitempty"`
	EndTime     string        `json:"endTime,omitempty"`
}

type UpdateActionRequest

type UpdateActionRequest struct {
	UserId          string               `json:"userId,omitempty"`
	Name            string               `json:"name,omitempty"`
	Notifications   []ActionNotification `json:"notifications,omitempty"`
	Members         []ActionMember       `json:"members,omitempty"`
	Alias           string               `json:"alias,omitempty"`
	DisableTimes    []ActionDisableTime  `json:"disableTimes,omitempty"`
	ActionCallBacks []ActionCallBack     `json:"actionCallBacks"`
	Source          string               `json:"source,omitempty"`
}

type UpdateActionResponse

type UpdateActionResponse CreateActionResponse

Jump to

Keyboard shortcuts

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