model

package
v0.0.74 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddAlarmRuleRequest

type AddAlarmRuleRequest struct {
	Body *AlarmRuleParam `json:"body,omitempty"`
}

Request Object

func (AddAlarmRuleRequest) String

func (o AddAlarmRuleRequest) String() string

type AddAlarmRuleResponse

type AddAlarmRuleResponse struct {
	AlarmRuleId    *int64 `json:"alarm_rule_id,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (AddAlarmRuleResponse) String

func (o AddAlarmRuleResponse) String() string

type AddMetricDataRequest

type AddMetricDataRequest struct {
	Body *[]MetricDataItem `json:"body,omitempty"`
}

Request Object

func (AddMetricDataRequest) String

func (o AddMetricDataRequest) String() string

type AddMetricDataResponse

type AddMetricDataResponse struct {
	ErrorCode *string `json:"errorCode,omitempty"`

	ErrorMessage   *string `json:"errorMessage,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (AddMetricDataResponse) String

func (o AddMetricDataResponse) String() string

type AddOrUpdateServiceDiscoveryRulesRequest

type AddOrUpdateServiceDiscoveryRulesRequest struct {
	Body *AppRulesBody `json:"body,omitempty"`
}

Request Object

func (AddOrUpdateServiceDiscoveryRulesRequest) String

type AddOrUpdateServiceDiscoveryRulesResponse

type AddOrUpdateServiceDiscoveryRulesResponse struct {
	ErrorCode *string `json:"errorCode,omitempty"`

	ErrorMessage   *string `json:"errorMessage,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (AddOrUpdateServiceDiscoveryRulesResponse) String

type AlarmRuleParam

type AlarmRuleParam struct {
	ActionEnabled *bool `json:"action_enabled,omitempty"`

	AlarmActions *[]string `json:"alarm_actions,omitempty"`

	AlarmAdvice *string `json:"alarm_advice,omitempty"`

	AlarmDescription *string `json:"alarm_description,omitempty"`

	AlarmLevel int32 `json:"alarm_level"`

	AlarmRuleName string `json:"alarm_rule_name"`

	ComparisonOperator string `json:"comparison_operator"`

	Dimensions []Dimension `json:"dimensions"`

	EvaluationPeriods int32 `json:"evaluation_periods"`

	IdTurnOn *bool `json:"id_turn_on,omitempty"`

	InsufficientDataActions *[]string `json:"insufficient_data_actions,omitempty"`

	MetricName string `json:"metric_name"`

	Namespace string `json:"namespace"`

	OkActions *[]string `json:"ok_actions,omitempty"`

	Period int32 `json:"period"`

	Statistic string `json:"statistic"`

	Threshold string `json:"threshold"`

	Unit string `json:"unit"`
}

阈值规则实体

func (AlarmRuleParam) String

func (o AlarmRuleParam) String() string

type AppNameRule

type AppNameRule struct {
	NameType string `json:"nameType"`

	Args []string `json:"args"`

	Value *[]string `json:"value,omitempty"`
}

nameType取值cmdLine时args格式为[\"start\",\"end\"],表示抽取命令行中start、end之间的字符。 nameType取值cmdLine时args格式为[\"aa\"],表示抽取环境变量名为aa对应的环境变量值。 nameType取值str时,args格式为[\"fix\"],表示服务名称最后拼接固定文字fix。 nameType取值cmdLineHash时,args格式为[\"0001\"],value格式为[\"ser\"],表示当启动命令是0001时,服务名称为ser。 服务命名部分,数组中有多个对象时表示将每个对象抽取到的字符串拼接作为服务的名称。

func (AppNameRule) String

func (o AppNameRule) String() string

type AppRules

type AppRules struct {
	CreateTime *string `json:"createTime,omitempty"`

	Enable bool `json:"enable"`

	EventName string `json:"eventName"`

	Hostid *[]string `json:"hostid,omitempty"`

	Id string `json:"id"`

	Name string `json:"name"`

	Projectid string `json:"projectid"`

	Spec *AppRulesSpec `json:"spec"`
}

服务参数。

func (AppRules) String

func (o AppRules) String() string

type AppRulesBody

type AppRulesBody struct {
	AppRules *[]AppRules `json:"appRules,omitempty"`
}

func (AppRulesBody) String

func (o AppRulesBody) String() string

type AppRulesSpec

type AppRulesSpec struct {
	AppType string `json:"appType"`

	AttrList *[]string `json:"attrList,omitempty"`

	DetectLog string `json:"detectLog"`

	DiscoveryRule []DiscoveryRule `json:"discoveryRule"`

	IsDefaultRule string `json:"isDefaultRule"`

	IsDetect string `json:"isDetect"`

	LogFileFix []string `json:"logFileFix"`

	LogPathRule *[]LogPathRule `json:"logPathRule,omitempty"`

	NameRule *NameRule `json:"nameRule"`

	Priority string `json:"priority"`
}

规则详情。

func (AppRulesSpec) String

func (o AppRulesSpec) String() string

type ApplicationNameRule

type ApplicationNameRule struct {
	NameType string `json:"nameType"`

	Args []string `json:"args"`

	Value *[]string `json:"value,omitempty"`
}

nameType取值cmdLine时args格式为[\"start\",\"end\"],表示抽取命令行中start、end之间的字符。 nameType取值cmdLine时args格式为 [\"aa\"],表示抽取环境变量名为aa对应的环境变量值。 nameType取值str时,args格式为[\"fix\"],表示服务名称最后拼接固定文字fix。 nameType取值cmdLineHash时,args格式为[\"0001\"],value格式为[\"ser\"],表示当启动命令是0001时,应用名称为ser。 应用命名部分。

func (ApplicationNameRule) String

func (o ApplicationNameRule) String() string

type CountEventsRequest

type CountEventsRequest struct {
	Type *CountEventsRequestType `json:"type,omitempty"`

	Body *EventQueryParam `json:"body,omitempty"`
}

Request Object

func (CountEventsRequest) String

func (o CountEventsRequest) String() string

type CountEventsRequestType

type CountEventsRequestType struct {
	// contains filtered or unexported fields
}

func (CountEventsRequestType) MarshalJSON

func (c CountEventsRequestType) MarshalJSON() ([]byte, error)

func (*CountEventsRequestType) UnmarshalJSON

func (c *CountEventsRequestType) UnmarshalJSON(b []byte) error

type CountEventsRequestTypeEnum

type CountEventsRequestTypeEnum struct {
	HISTORY_ALERT CountEventsRequestType
	ACTIVE_ALERT  CountEventsRequestType
}

func GetCountEventsRequestTypeEnum

func GetCountEventsRequestTypeEnum() CountEventsRequestTypeEnum

type CountEventsResponse

type CountEventsResponse struct {
	Step *int64 `json:"step,omitempty"`

	Timestamps *[]int64 `json:"timestamps,omitempty"`

	Series         *[]EventSeries `json:"series,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (CountEventsResponse) String

func (o CountEventsResponse) String() string

type Data

type Data struct {
	ResultType *string `json:"resultType,omitempty"`

	Result *[]string `json:"result,omitempty"`
}

func (Data) String

func (o Data) String() string

type DeleteAlarmRuleRequest

type DeleteAlarmRuleRequest struct {
	AlarmRuleId string `json:"alarm_rule_id"`
}

Request Object

func (DeleteAlarmRuleRequest) String

func (o DeleteAlarmRuleRequest) String() string

type DeleteAlarmRuleResponse

type DeleteAlarmRuleResponse struct {
	Body           *string `json:"body,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteAlarmRuleResponse) String

func (o DeleteAlarmRuleResponse) String() string

type DeleteAlarmRulesBody

type DeleteAlarmRulesBody struct {
	AlarmRules []string `json:"alarm_rules"`
}

func (DeleteAlarmRulesBody) String

func (o DeleteAlarmRulesBody) String() string

type DeleteAlarmRulesRequest

type DeleteAlarmRulesRequest struct {
	Body *DeleteAlarmRulesBody `json:"body,omitempty"`
}

Request Object

func (DeleteAlarmRulesRequest) String

func (o DeleteAlarmRulesRequest) String() string

type DeleteAlarmRulesResponse

type DeleteAlarmRulesResponse struct {
	Body           *string `json:"body,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteAlarmRulesResponse) String

func (o DeleteAlarmRulesResponse) String() string

type DeleteserviceDiscoveryRulesRequest

type DeleteserviceDiscoveryRulesRequest struct {
	AppRulesIds []string `json:"appRulesIds"`
}

Request Object

func (DeleteserviceDiscoveryRulesRequest) String

type DeleteserviceDiscoveryRulesResponse

type DeleteserviceDiscoveryRulesResponse struct {
	ErrorCode *string `json:"errorCode,omitempty"`

	ErrorMessage   *string `json:"errorMessage,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteserviceDiscoveryRulesResponse) String

type Dimension

type Dimension struct {
	Name string `json:"name"`

	Value string `json:"value"`
}

指标维度。

func (Dimension) String

func (o Dimension) String() string

type Dimension2

type Dimension2 struct {
	Name string `json:"name"`

	Value string `json:"value"`
}

指标维度参数

func (Dimension2) String

func (o Dimension2) String() string

type DimensionSeries

type DimensionSeries struct {
	Name *string `json:"name,omitempty"`

	Value *string `json:"value,omitempty"`
}

维度。

func (DimensionSeries) String

func (o DimensionSeries) String() string

type DiscoveryRule

type DiscoveryRule struct {
	CheckContent []string `json:"checkContent"`

	CheckMode string `json:"checkMode"`

	CheckType string `json:"checkType"`
}

checkType为cmdLine时checkMode填contain,checkContent格式为[“xxx”]表示进程命令行参数中需要包含xxx。checkType为env时checkMode填contain,checkContent格式为 [\"k1\",\"v1\"]表示进程环境变量中需要包含名为k1值为v1的环境变量。checkType为scope时checkMode填equals,checkContent格式为节点ID数组[\"hostId1”,”hostId2”],表示规则仅会在这些节点上生效(如果不指定节点范围,规则将下发到该项目所有的节点)。 规则发现部分,数组中有多个对象时表示需要同时满足所有条件的进程才会被匹配到。

func (DiscoveryRule) String

func (o DiscoveryRule) String() string

type EventList

type EventList struct {
	Events []EventModel `json:"events"`
}

事件告警上报实体。

func (EventList) String

func (o EventList) String() string

type EventModel

type EventModel struct {
	StartsAt *int64 `json:"starts_at,omitempty"`

	EndsAt *int64 `json:"ends_at,omitempty"`

	Timeout *int64 `json:"timeout,omitempty"`

	Metadata *interface{} `json:"metadata,omitempty"`

	Annotations *interface{} `json:"annotations,omitempty"`

	AttachRule *interface{} `json:"attach_rule,omitempty"`

	Id *string `json:"id,omitempty"`
}

事件或者告警元数据。

func (EventModel) String

func (o EventModel) String() string

type EventQueryParam

type EventQueryParam struct {
	TimeRange string `json:"time_range"`

	Step int64 `json:"step"`

	Search *string `json:"search,omitempty"`

	Sort *EventQueryParamSort `json:"sort,omitempty"`

	MetadataRelation *[]RelationModel `json:"metadata_relation,omitempty"`
}

查询事件或者告警信息 。

func (EventQueryParam) String

func (o EventQueryParam) String() string

type EventQueryParam2

type EventQueryParam2 struct {
	TimeRange string `json:"time_range"`

	Step *int64 `json:"step,omitempty"`

	Search *string `json:"search,omitempty"`

	Sort *EventQueryParamSort `json:"sort,omitempty"`

	MetadataRelation *[]RelationModel `json:"metadata_relation,omitempty"`
}

查询事件或者告警信息 。

func (EventQueryParam2) String

func (o EventQueryParam2) String() string

type EventQueryParamSort

type EventQueryParamSort struct {
	OrderBy *[]string `json:"order_by,omitempty"`

	Order *EventQueryParamSortOrder `json:"order,omitempty"`
}

返回列表的排序方式,可以为空。

func (EventQueryParamSort) String

func (o EventQueryParamSort) String() string

type EventQueryParamSortOrder

type EventQueryParamSortOrder struct {
	// contains filtered or unexported fields
}

func (EventQueryParamSortOrder) MarshalJSON

func (c EventQueryParamSortOrder) MarshalJSON() ([]byte, error)

func (*EventQueryParamSortOrder) UnmarshalJSON

func (c *EventQueryParamSortOrder) UnmarshalJSON(b []byte) error

type EventQueryParamSortOrderEnum

type EventQueryParamSortOrderEnum struct {
	ASC  EventQueryParamSortOrder
	DESC EventQueryParamSortOrder
}

func GetEventQueryParamSortOrderEnum

func GetEventQueryParamSortOrderEnum() EventQueryParamSortOrderEnum

type EventSeries

type EventSeries struct {
	EventSeverity *EventSeriesEventSeverity `json:"event_severity,omitempty"`

	Values *[]int32 `json:"values,omitempty"`
}

事件或者告警统计值统计结果元数据。

func (EventSeries) String

func (o EventSeries) String() string

type EventSeriesEventSeverity

type EventSeriesEventSeverity struct {
	// contains filtered or unexported fields
}

func (EventSeriesEventSeverity) MarshalJSON

func (c EventSeriesEventSeverity) MarshalJSON() ([]byte, error)

func (*EventSeriesEventSeverity) UnmarshalJSON

func (c *EventSeriesEventSeverity) UnmarshalJSON(b []byte) error

type EventSeriesEventSeverityEnum

type EventSeriesEventSeverityEnum struct {
	CRITICAL EventSeriesEventSeverity
	MAJOR    EventSeriesEventSeverity
	MINOR    EventSeriesEventSeverity
	INFO     EventSeriesEventSeverity
}

func GetEventSeriesEventSeverityEnum

func GetEventSeriesEventSeverityEnum() EventSeriesEventSeverityEnum

type ListAlarmRuleRequest

type ListAlarmRuleRequest struct {
	Offset *string `json:"offset,omitempty"`

	Limit *int32 `json:"limit,omitempty"`
}

Request Object

func (ListAlarmRuleRequest) String

func (o ListAlarmRuleRequest) String() string

type ListAlarmRuleResponse

type ListAlarmRuleResponse struct {
	MetaData *MetaData `json:"meta_data,omitempty"`

	Thresholds     *[]QueryAlarmResult `json:"thresholds,omitempty"`
	HttpStatusCode int                 `json:"-"`
}

Response Object

func (ListAlarmRuleResponse) String

func (o ListAlarmRuleResponse) String() string

type ListEventsRequest

type ListEventsRequest struct {
	Type *ListEventsRequestType `json:"type,omitempty"`

	Body *EventQueryParam2 `json:"body,omitempty"`
}

Request Object

func (ListEventsRequest) String

func (o ListEventsRequest) String() string

type ListEventsRequestType

type ListEventsRequestType struct {
	// contains filtered or unexported fields
}

func (ListEventsRequestType) MarshalJSON

func (c ListEventsRequestType) MarshalJSON() ([]byte, error)

func (*ListEventsRequestType) UnmarshalJSON

func (c *ListEventsRequestType) UnmarshalJSON(b []byte) error

type ListEventsRequestTypeEnum

type ListEventsRequestTypeEnum struct {
	HISTORY_ALERT ListEventsRequestType
	ACTIVE_ALERT  ListEventsRequestType
}

func GetListEventsRequestTypeEnum

func GetListEventsRequestTypeEnum() ListEventsRequestTypeEnum

type ListEventsResponse

type ListEventsResponse struct {
	Events         *[]EventModel `json:"events,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (ListEventsResponse) String

func (o ListEventsResponse) String() string

type ListInstantQueryAomPromGetRequest

type ListInstantQueryAomPromGetRequest struct {
	Query string `json:"query"`

	Time *string `json:"time,omitempty"`
}

Request Object

func (ListInstantQueryAomPromGetRequest) String

type ListInstantQueryAomPromGetResponse

type ListInstantQueryAomPromGetResponse struct {
	Status *string `json:"status,omitempty"`

	Data           *Data `json:"data,omitempty"`
	HttpStatusCode int   `json:"-"`
}

Response Object

func (ListInstantQueryAomPromGetResponse) String

type ListInstantQueryAomPromPostRequest

type ListInstantQueryAomPromPostRequest struct {
	Query string `json:"query"`

	Time *string `json:"time,omitempty"`
}

Request Object

func (ListInstantQueryAomPromPostRequest) String

type ListInstantQueryAomPromPostResponse

type ListInstantQueryAomPromPostResponse struct {
	Status *string `json:"status,omitempty"`

	Data           *Data `json:"data,omitempty"`
	HttpStatusCode int   `json:"-"`
}

Response Object

func (ListInstantQueryAomPromPostResponse) String

type ListLabelValuesAomPromGetRequest

type ListLabelValuesAomPromGetRequest struct {
	LabelName string `json:"label_name"`
}

Request Object

func (ListLabelValuesAomPromGetRequest) String

type ListLabelValuesAomPromGetResponse

type ListLabelValuesAomPromGetResponse struct {
	Status *string `json:"status,omitempty"`

	Data           *[]string `json:"data,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListLabelValuesAomPromGetResponse) String

type ListLabelsAomPromGetRequest

type ListLabelsAomPromGetRequest struct {
}

Request Object

func (ListLabelsAomPromGetRequest) String

type ListLabelsAomPromGetResponse

type ListLabelsAomPromGetResponse struct {
	Status *string `json:"status,omitempty"`

	Data           *[]string `json:"data,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListLabelsAomPromGetResponse) String

type ListLabelsAomPromPostRequest

type ListLabelsAomPromPostRequest struct {
}

Request Object

func (ListLabelsAomPromPostRequest) String

type ListLabelsAomPromPostResponse

type ListLabelsAomPromPostResponse struct {
	Status *string `json:"status,omitempty"`

	Data           *[]string `json:"data,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListLabelsAomPromPostResponse) String

type ListLogItemsRequest

type ListLogItemsRequest struct {
	Type string `json:"type"`

	Body *QueryBodyParam `json:"body,omitempty"`
}

Request Object

func (ListLogItemsRequest) String

func (o ListLogItemsRequest) String() string

type ListLogItemsResponse

type ListLogItemsResponse struct {
	ErrorCode *string `json:"errorCode,omitempty"`

	ErrorMessage *string `json:"errorMessage,omitempty"`

	Result         *string `json:"result,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListLogItemsResponse) String

func (o ListLogItemsResponse) String() string

type ListMetadataAomPromGetRequest

type ListMetadataAomPromGetRequest struct {
}

Request Object

func (ListMetadataAomPromGetRequest) String

type ListMetadataAomPromGetResponse

type ListMetadataAomPromGetResponse struct {
	Status *string `json:"status,omitempty"`

	Data           *interface{} `json:"data,omitempty"`
	HttpStatusCode int          `json:"-"`
}

Response Object

func (ListMetadataAomPromGetResponse) String

type ListMetricItemsRequest

type ListMetricItemsRequest struct {
	Type *string `json:"type,omitempty"`

	Limit *string `json:"limit,omitempty"`

	Start *string `json:"start,omitempty"`

	Body *MetricApiQueryItemParam `json:"body,omitempty"`
}

Request Object

func (ListMetricItemsRequest) String

func (o ListMetricItemsRequest) String() string

type ListMetricItemsResponse

type ListMetricItemsResponse struct {
	MetaData *MetaData `json:"metaData,omitempty"`

	Metrics        *[]MetricItemResultApi `json:"metrics,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

Response Object

func (ListMetricItemsResponse) String

func (o ListMetricItemsResponse) String() string

type ListRangeQueryAomPromGetRequest

type ListRangeQueryAomPromGetRequest struct {
	Query string `json:"query"`

	Start string `json:"start"`

	End string `json:"end"`

	Step string `json:"step"`
}

Request Object

func (ListRangeQueryAomPromGetRequest) String

type ListRangeQueryAomPromGetResponse

type ListRangeQueryAomPromGetResponse struct {
	Status *string `json:"status,omitempty"`

	Data           *Data `json:"data,omitempty"`
	HttpStatusCode int   `json:"-"`
}

Response Object

func (ListRangeQueryAomPromGetResponse) String

type ListRangeQueryAomPromPostRequest

type ListRangeQueryAomPromPostRequest struct {
	Query string `json:"query"`

	Start string `json:"start"`

	End string `json:"end"`

	Step string `json:"step"`
}

Request Object

func (ListRangeQueryAomPromPostRequest) String

type ListRangeQueryAomPromPostResponse

type ListRangeQueryAomPromPostResponse struct {
	Status *string `json:"status,omitempty"`

	Data           *Data `json:"data,omitempty"`
	HttpStatusCode int   `json:"-"`
}

Response Object

func (ListRangeQueryAomPromPostResponse) String

type ListSampleRequest

type ListSampleRequest struct {
	FillValue *string `json:"fill_value,omitempty"`

	Body *QuerySampleParam `json:"body,omitempty"`
}

Request Object

func (ListSampleRequest) String

func (o ListSampleRequest) String() string

type ListSampleResponse

type ListSampleResponse struct {
	Samples        *[]SampleDataValue `json:"samples,omitempty"`
	HttpStatusCode int                `json:"-"`
}

Response Object

func (ListSampleResponse) String

func (o ListSampleResponse) String() string

type ListSeriesRequest

type ListSeriesRequest struct {
	Limit *string `json:"limit,omitempty"`

	Offset *string `json:"offset,omitempty"`

	Body *SeriesApiQueryItemParam `json:"body,omitempty"`
}

Request Object

func (ListSeriesRequest) String

func (o ListSeriesRequest) String() string

type ListSeriesResponse

type ListSeriesResponse struct {
	Series *[]SeriesQueryItemResult `json:"series,omitempty"`

	MetaData       *MetaDataSeries `json:"meta_data,omitempty"`
	HttpStatusCode int             `json:"-"`
}

Response Object

func (ListSeriesResponse) String

func (o ListSeriesResponse) String() string

type ListServiceDiscoveryRulesRequest

type ListServiceDiscoveryRulesRequest struct {
	Id *string `json:"id,omitempty"`
}

Request Object

func (ListServiceDiscoveryRulesRequest) String

type ListServiceDiscoveryRulesResponse

type ListServiceDiscoveryRulesResponse struct {
	AppRules *[]AppRules `json:"appRules,omitempty"`

	ErrorCode *string `json:"errorCode,omitempty"`

	ErrorMessage   *string `json:"errorMessage,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListServiceDiscoveryRulesResponse) String

type LogPathRule

type LogPathRule struct {
	Args []string `json:"args"`

	NameType string `json:"nameType"`

	Value []string `json:"value"`
}

当cmdLineHash为固定字符串时,指定日志路径或者日志文件。否则只采集进程当前打开的以.log和.trace结尾的文件。nameType取值cmdLineHash时,args格式为[\"00001\"],value格式为[\"/xxx/xx.log\"],表示当启动命令是00001时,日志路径为/xxx/xx.log。 日志路径配置规则。

func (LogPathRule) String

func (o LogPathRule) String() string

type MetaData

type MetaData struct {
	Count *int32 `json:"count,omitempty"`

	Start *string `json:"start,omitempty"`

	Total *int32 `json:"total,omitempty"`
}

查询结果元数据信息,包括分页信息等。

func (MetaData) String

func (o MetaData) String() string

type MetaDataSeries

type MetaDataSeries struct {
	Count *int32 `json:"count,omitempty"`

	Offset *int32 `json:"offset,omitempty"`

	Total *int32 `json:"total,omitempty"`

	NextToken *int32 `json:"nextToken,omitempty"`
}

查询结果元数据信息,包括分页信息等。

func (MetaDataSeries) String

func (o MetaDataSeries) String() string

type MetricApiQueryItemParam

type MetricApiQueryItemParam struct {
	InventoryId *string `json:"inventoryId,omitempty"`

	MetricItems *[]QueryMetricItemOptionParam `json:"metricItems,omitempty"`
}

指标查询参数详情。

func (MetricApiQueryItemParam) String

func (o MetricApiQueryItemParam) String() string

type MetricDataItem

type MetricDataItem struct {
	CollectTime int64 `json:"collect_time"`

	Metric *MetricItemInfo `json:"metric"`

	Values []ValueData `json:"values"`
}

指标

func (MetricDataItem) String

func (o MetricDataItem) String() string

type MetricDataPoints

type MetricDataPoints struct {
	Statistics *[]StatisticValue `json:"statistics,omitempty"`

	Timestamp *int64 `json:"timestamp,omitempty"`

	Unit *string `json:"unit,omitempty"`
}

查询结果要点。

func (MetricDataPoints) String

func (o MetricDataPoints) String() string

type MetricDataValue

type MetricDataValue struct {
	DataPoints *[]MetricDataPoints `json:"dataPoints,omitempty"`

	Metric *MetricQueryMeritcParam `json:"metric,omitempty"`
}

查询结果详细。

func (MetricDataValue) String

func (o MetricDataValue) String() string

type MetricItemInfo

type MetricItemInfo struct {
	Dimensions []Dimension2 `json:"dimensions"`

	Namespace string `json:"namespace"`
}

指标详细信息。

func (MetricItemInfo) String

func (o MetricItemInfo) String() string

type MetricItemResultApi

type MetricItemResultApi struct {
	Dimensions *[]Dimension `json:"dimensions,omitempty"`

	Dimensionvaluehash *string `json:"dimensionvaluehash,omitempty"`

	MetricName *string `json:"metricName,omitempty"`

	Namespace *string `json:"namespace,omitempty"`

	Unit *string `json:"unit,omitempty"`
}

维度信息。

func (MetricItemResultApi) String

func (o MetricItemResultApi) String() string

type MetricQueryMeritcParam

type MetricQueryMeritcParam struct {
	Dimensions []Dimension `json:"dimensions"`

	MetricName string `json:"metricName"`

	Namespace string `json:"namespace"`
}

查询参数集

func (MetricQueryMeritcParam) String

func (o MetricQueryMeritcParam) String() string

type NameRule

type NameRule struct {
	AppNameRule []AppNameRule `json:"appNameRule"`

	ApplicationNameRule []ApplicationNameRule `json:"applicationNameRule"`
}

服务发现规则命名部分。

func (NameRule) String

func (o NameRule) String() string

type PushEventsRequest

type PushEventsRequest struct {
	XEnterprisePrjectId *string `json:"x-enterprise-prject-id,omitempty"`

	Action *PushEventsRequestAction `json:"action,omitempty"`

	Body *EventList `json:"body,omitempty"`
}

Request Object

func (PushEventsRequest) String

func (o PushEventsRequest) String() string

type PushEventsRequestAction

type PushEventsRequestAction struct {
	// contains filtered or unexported fields
}

func (PushEventsRequestAction) MarshalJSON

func (c PushEventsRequestAction) MarshalJSON() ([]byte, error)

func (*PushEventsRequestAction) UnmarshalJSON

func (c *PushEventsRequestAction) UnmarshalJSON(b []byte) error

type PushEventsRequestActionEnum

type PushEventsRequestActionEnum struct {
	CLEAR PushEventsRequestAction
}

func GetPushEventsRequestActionEnum

func GetPushEventsRequestActionEnum() PushEventsRequestActionEnum

type PushEventsResponse

type PushEventsResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (PushEventsResponse) String

func (o PushEventsResponse) String() string

type QueryAlarmResult

type QueryAlarmResult struct {
	ActionEnabled *bool `json:"action_enabled,omitempty"`

	AlarmActions *[]string `json:"alarm_actions,omitempty"`

	AlarmAdvice *string `json:"alarm_advice,omitempty"`

	AlarmDescription *string `json:"alarm_description,omitempty"`

	AlarmLevel *string `json:"alarm_level,omitempty"`

	AlarmRuleId *string `json:"alarm_rule_id,omitempty"`

	AlarmRuleName *string `json:"alarm_rule_name,omitempty"`

	ComparisonOperator *string `json:"comparison_operator,omitempty"`

	Dimensions *[]Dimension `json:"dimensions,omitempty"`

	EvaluationPeriods *int32 `json:"evaluation_periods,omitempty"`

	IdTurnOn *bool `json:"id_turn_on,omitempty"`

	InsufficientDataActions *[]string `json:"insufficient_data_actions,omitempty"`

	MetricName *string `json:"metric_name,omitempty"`

	Namespace *string `json:"namespace,omitempty"`

	OkActions *[]string `json:"ok_actions,omitempty"`

	Period *int32 `json:"period,omitempty"`

	PolicyName *string `json:"policy_name,omitempty"`

	Resources *[]string `json:"resources,omitempty"`

	StateReason *string `json:"state_reason,omitempty"`

	StateUpdatedTimestamp *string `json:"state_updated_timestamp,omitempty"`

	StateValue *string `json:"state_value,omitempty"`

	Statistic *string `json:"statistic,omitempty"`

	Threshold *string `json:"threshold,omitempty"`

	Type *string `json:"type,omitempty"`

	Unit *string `json:"unit,omitempty"`
}

阈值规则查询参数。

func (QueryAlarmResult) String

func (o QueryAlarmResult) String() string

type QueryBodyParam

type QueryBodyParam struct {
	Category string `json:"category"`

	EndTime int64 `json:"endTime"`

	HideSyslog *int32 `json:"hideSyslog,omitempty"`

	KeyWord *string `json:"keyWord,omitempty"`

	LineNum *string `json:"lineNum,omitempty"`

	PageSizeSize *string `json:"pageSize/size,omitempty"`

	SearchKey *SearchKey `json:"searchKey"`

	StartTime int64 `json:"startTime"`

	Type *string `json:"type,omitempty"`

	IsDesc *bool `json:"isDesc,omitempty"`
}

func (QueryBodyParam) String

func (o QueryBodyParam) String() string

type QueryMetricDataParam

type QueryMetricDataParam struct {
	Metrics []MetricQueryMeritcParam `json:"metrics"`

	Period int32 `json:"period"`

	Statistics []string `json:"statistics"`

	Timerange string `json:"timerange"`
}

变换数据查询参数。

func (QueryMetricDataParam) String

func (o QueryMetricDataParam) String() string

type QueryMetricItemOptionParam

type QueryMetricItemOptionParam struct {
	Dimensions *[]Dimension `json:"dimensions,omitempty"`

	MetricName *string `json:"metricName,omitempty"`

	Namespace QueryMetricItemOptionParamNamespace `json:"namespace"`
}

参数项。

func (QueryMetricItemOptionParam) String

type QueryMetricItemOptionParamNamespace

type QueryMetricItemOptionParamNamespace struct {
	// contains filtered or unexported fields
}

func (QueryMetricItemOptionParamNamespace) MarshalJSON

func (c QueryMetricItemOptionParamNamespace) MarshalJSON() ([]byte, error)

func (*QueryMetricItemOptionParamNamespace) UnmarshalJSON

func (c *QueryMetricItemOptionParamNamespace) UnmarshalJSON(b []byte) error

type QuerySample

type QuerySample struct {
	Namespace string `json:"namespace"`

	Dimensions []DimensionSeries `json:"dimensions"`

	MetricName string `json:"metric_name"`
}

查询参数集

func (QuerySample) String

func (o QuerySample) String() string

type QuerySampleParam

type QuerySampleParam struct {
	Samples []QuerySample `json:"samples"`

	Statistics []string `json:"statistics"`

	Period int32 `json:"period"`

	TimeRange string `json:"time_range"`
}

时序数据查询参数。

func (QuerySampleParam) String

func (o QuerySampleParam) String() string

type QuerySeriesOptionParam

type QuerySeriesOptionParam struct {
	Namespace string `json:"namespace"`

	MetricName *string `json:"metric_name,omitempty"`

	Dimensions *[]DimensionSeries `json:"dimensions,omitempty"`
}

参数项。

func (QuerySeriesOptionParam) String

func (o QuerySeriesOptionParam) String() string

type RelationModel

type RelationModel struct {
	Key *string `json:"key,omitempty"`

	Value *[]string `json:"value,omitempty"`

	Relation *RelationModelRelation `json:"relation,omitempty"`
}

查询条件。

func (RelationModel) String

func (o RelationModel) String() string

type RelationModelRelation

type RelationModelRelation struct {
	// contains filtered or unexported fields
}

func (RelationModelRelation) MarshalJSON

func (c RelationModelRelation) MarshalJSON() ([]byte, error)

func (*RelationModelRelation) UnmarshalJSON

func (c *RelationModelRelation) UnmarshalJSON(b []byte) error

type RelationModelRelationEnum

type RelationModelRelationEnum struct {
	AND RelationModelRelation
	OR  RelationModelRelation
	NOT RelationModelRelation
}

func GetRelationModelRelationEnum

func GetRelationModelRelationEnum() RelationModelRelationEnum

type SampleDataValue

type SampleDataValue struct {
	Sample *QuerySample `json:"sample,omitempty"`

	DataPoints *[]MetricDataPoints `json:"data_points,omitempty"`
}

查询结果详细。

func (SampleDataValue) String

func (o SampleDataValue) String() string

type SearchKey

type SearchKey struct {
	AppName *string `json:"appName,omitempty"`

	ClusterId string `json:"clusterId"`

	HostIP *string `json:"hostIP,omitempty"`

	NameSpace *string `json:"nameSpace,omitempty"`

	PathFile *string `json:"pathFile,omitempty"`

	PodName *string `json:"podName,omitempty"`
}

日志过滤条件集合,不同日志来源所需字段不同。

func (SearchKey) String

func (o SearchKey) String() string

type SeriesApiQueryItemParam

type SeriesApiQueryItemParam struct {
	Series []QuerySeriesOptionParam `json:"series"`
}

时间序列查询参数详情。

func (SeriesApiQueryItemParam) String

func (o SeriesApiQueryItemParam) String() string

type SeriesQueryItemResult

type SeriesQueryItemResult struct {
	Namespace *string `json:"namespace,omitempty"`

	Dimensions *[]DimensionSeries `json:"dimensions,omitempty"`

	MetricName *string `json:"metric_name,omitempty"`

	Unit *string `json:"unit,omitempty"`

	DimensionValueHash *string `json:"dimension_value_hash,omitempty"`
}

维度信息。

func (SeriesQueryItemResult) String

func (o SeriesQueryItemResult) String() string

type ShowAlarmRuleRequest

type ShowAlarmRuleRequest struct {
	AlarmRuleId string `json:"alarm_rule_id"`
}

Request Object

func (ShowAlarmRuleRequest) String

func (o ShowAlarmRuleRequest) String() string

type ShowAlarmRuleResponse

type ShowAlarmRuleResponse struct {
	MetaData *MetaData `json:"meta_data,omitempty"`

	Thresholds     *[]QueryAlarmResult `json:"thresholds,omitempty"`
	HttpStatusCode int                 `json:"-"`
}

Response Object

func (ShowAlarmRuleResponse) String

func (o ShowAlarmRuleResponse) String() string

type ShowMetricsDataRequest

type ShowMetricsDataRequest struct {
	FillValue *ShowMetricsDataRequestFillValue `json:"fillValue,omitempty"`

	Body *QueryMetricDataParam `json:"body,omitempty"`
}

Request Object

func (ShowMetricsDataRequest) String

func (o ShowMetricsDataRequest) String() string

type ShowMetricsDataRequestFillValue

type ShowMetricsDataRequestFillValue struct {
	// contains filtered or unexported fields
}

func (ShowMetricsDataRequestFillValue) MarshalJSON

func (c ShowMetricsDataRequestFillValue) MarshalJSON() ([]byte, error)

func (*ShowMetricsDataRequestFillValue) UnmarshalJSON

func (c *ShowMetricsDataRequestFillValue) UnmarshalJSON(b []byte) error

type ShowMetricsDataResponse

type ShowMetricsDataResponse struct {
	ErrorCode *string `json:"errorCode,omitempty"`

	ErrorMessage *string `json:"errorMessage,omitempty"`

	Metrics        *[]MetricDataValue `json:"metrics,omitempty"`
	HttpStatusCode int                `json:"-"`
}

Response Object

func (ShowMetricsDataResponse) String

func (o ShowMetricsDataResponse) String() string

type StatisticValue

type StatisticValue struct {
	Statistic *string `json:"statistic,omitempty"`

	Value *float64 `json:"value,omitempty"`
}

统计结果

func (StatisticValue) String

func (o StatisticValue) String() string

type UpdateAlarmRuleRequest

type UpdateAlarmRuleRequest struct {
	Body *AlarmRuleParam `json:"body,omitempty"`
}

Request Object

func (UpdateAlarmRuleRequest) String

func (o UpdateAlarmRuleRequest) String() string

type UpdateAlarmRuleResponse

type UpdateAlarmRuleResponse struct {
	AlarmRuleId    *int64 `json:"alarm_rule_id,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (UpdateAlarmRuleResponse) String

func (o UpdateAlarmRuleResponse) String() string

type ValueData

type ValueData struct {
	MetricName string `json:"metric_name"`

	Type *ValueDataType `json:"type,omitempty"`

	Unit *string `json:"unit,omitempty"`

	Value float64 `json:"value"`
}

指标具体数值。

func (ValueData) String

func (o ValueData) String() string

type ValueDataType

type ValueDataType struct {
	// contains filtered or unexported fields
}

func (ValueDataType) MarshalJSON

func (c ValueDataType) MarshalJSON() ([]byte, error)

func (*ValueDataType) UnmarshalJSON

func (c *ValueDataType) UnmarshalJSON(b []byte) error

type ValueDataTypeEnum

type ValueDataTypeEnum struct {
	INT   ValueDataType
	FLOAT ValueDataType
}

func GetValueDataTypeEnum

func GetValueDataTypeEnum() ValueDataTypeEnum

Source Files

Jump to

Keyboard shortcuts

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