Documentation ¶
Index ¶
- type AddAlarmRuleRequest
- type AddAlarmRuleResponse
- type AddMetricDataRequest
- type AddMetricDataResponse
- type AddOrUpdateServiceDiscoveryRulesRequest
- type AddOrUpdateServiceDiscoveryRulesResponse
- type AlarmRuleParam
- type AppNameRule
- type AppRules
- type AppRulesBody
- type AppRulesSpec
- type ApplicationNameRule
- type CountEventsRequest
- type CountEventsRequestType
- type CountEventsRequestTypeEnum
- type CountEventsResponse
- type Data
- type DeleteAlarmRuleRequest
- type DeleteAlarmRuleResponse
- type DeleteAlarmRulesBody
- type DeleteAlarmRulesRequest
- type DeleteAlarmRulesResponse
- type DeleteserviceDiscoveryRulesRequest
- type DeleteserviceDiscoveryRulesResponse
- type Dimension
- type Dimension2
- type DimensionSeries
- type DiscoveryRule
- type EventList
- type EventModel
- type EventQueryParam
- type EventQueryParam2
- type EventQueryParamSort
- type EventQueryParamSortOrder
- type EventQueryParamSortOrderEnum
- type EventSeries
- type EventSeriesEventSeverity
- type EventSeriesEventSeverityEnum
- type ListAlarmRuleRequest
- type ListAlarmRuleResponse
- type ListEventsRequest
- type ListEventsRequestType
- type ListEventsRequestTypeEnum
- type ListEventsResponse
- type ListInstantQueryAomPromGetRequest
- type ListInstantQueryAomPromGetResponse
- type ListInstantQueryAomPromPostRequest
- type ListInstantQueryAomPromPostResponse
- type ListLabelValuesAomPromGetRequest
- type ListLabelValuesAomPromGetResponse
- type ListLabelsAomPromGetRequest
- type ListLabelsAomPromGetResponse
- type ListLabelsAomPromPostRequest
- type ListLabelsAomPromPostResponse
- type ListLogItemsRequest
- type ListLogItemsResponse
- type ListMetadataAomPromGetRequest
- type ListMetadataAomPromGetResponse
- type ListMetricItemsRequest
- type ListMetricItemsResponse
- type ListRangeQueryAomPromGetRequest
- type ListRangeQueryAomPromGetResponse
- type ListRangeQueryAomPromPostRequest
- type ListRangeQueryAomPromPostResponse
- type ListSampleRequest
- type ListSampleResponse
- type ListSeriesRequest
- type ListSeriesResponse
- type ListServiceDiscoveryRulesRequest
- type ListServiceDiscoveryRulesResponse
- type LogPathRule
- type MetaData
- type MetaDataSeries
- type MetricApiQueryItemParam
- type MetricDataItem
- type MetricDataPoints
- type MetricDataValue
- type MetricItemInfo
- type MetricItemResultApi
- type MetricQueryMeritcParam
- type NameRule
- type PushEventsRequest
- type PushEventsRequestAction
- type PushEventsRequestActionEnum
- type PushEventsResponse
- type QueryAlarmResult
- type QueryBodyParam
- type QueryMetricDataParam
- type QueryMetricItemOptionParam
- type QueryMetricItemOptionParamNamespace
- type QueryMetricItemOptionParamNamespaceEnum
- type QuerySample
- type QuerySampleParam
- type QuerySeriesOptionParam
- type RelationModel
- type RelationModelRelation
- type RelationModelRelationEnum
- type SampleDataValue
- type SearchKey
- type SeriesApiQueryItemParam
- type SeriesQueryItemResult
- type ShowAlarmRuleRequest
- type ShowAlarmRuleResponse
- type ShowMetricsDataRequest
- type ShowMetricsDataRequestFillValue
- type ShowMetricsDataRequestFillValueEnum
- type ShowMetricsDataResponse
- type StatisticValue
- type UpdateAlarmRuleRequest
- type UpdateAlarmRuleResponse
- type ValueData
- type ValueDataType
- type ValueDataTypeEnum
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 ¶
func (o AddOrUpdateServiceDiscoveryRulesRequest) String() string
type AddOrUpdateServiceDiscoveryRulesResponse ¶
type AddOrUpdateServiceDiscoveryRulesResponse struct { ErrorCode *string `json:"errorCode,omitempty"` ErrorMessage *string `json:"errorMessage,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (AddOrUpdateServiceDiscoveryRulesResponse) String ¶
func (o AddOrUpdateServiceDiscoveryRulesResponse) String() 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"` }
服务参数。
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 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 ¶
func (o DeleteserviceDiscoveryRulesRequest) String() string
type DeleteserviceDiscoveryRulesResponse ¶
type DeleteserviceDiscoveryRulesResponse struct { ErrorCode *string `json:"errorCode,omitempty"` ErrorMessage *string `json:"errorMessage,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (DeleteserviceDiscoveryRulesResponse) String ¶
func (o DeleteserviceDiscoveryRulesResponse) 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 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 ¶
func (o ListInstantQueryAomPromGetRequest) String() string
type ListInstantQueryAomPromGetResponse ¶
type ListInstantQueryAomPromGetResponse struct { Status *string `json:"status,omitempty"` Data *Data `json:"data,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListInstantQueryAomPromGetResponse) String ¶
func (o ListInstantQueryAomPromGetResponse) String() string
type ListInstantQueryAomPromPostRequest ¶
type ListInstantQueryAomPromPostRequest struct { Query string `json:"query"` Time *string `json:"time,omitempty"` }
Request Object
func (ListInstantQueryAomPromPostRequest) String ¶
func (o ListInstantQueryAomPromPostRequest) String() string
type ListInstantQueryAomPromPostResponse ¶
type ListInstantQueryAomPromPostResponse struct { Status *string `json:"status,omitempty"` Data *Data `json:"data,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListInstantQueryAomPromPostResponse) String ¶
func (o ListInstantQueryAomPromPostResponse) String() string
type ListLabelValuesAomPromGetRequest ¶
type ListLabelValuesAomPromGetRequest struct {
LabelName string `json:"label_name"`
}
Request Object
func (ListLabelValuesAomPromGetRequest) String ¶
func (o ListLabelValuesAomPromGetRequest) String() string
type ListLabelValuesAomPromGetResponse ¶
type ListLabelValuesAomPromGetResponse struct { Status *string `json:"status,omitempty"` Data *[]string `json:"data,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListLabelValuesAomPromGetResponse) String ¶
func (o ListLabelValuesAomPromGetResponse) String() string
type ListLabelsAomPromGetRequest ¶
type ListLabelsAomPromGetRequest struct { }
Request Object
func (ListLabelsAomPromGetRequest) String ¶
func (o ListLabelsAomPromGetRequest) String() string
type ListLabelsAomPromGetResponse ¶
type ListLabelsAomPromGetResponse struct { Status *string `json:"status,omitempty"` Data *[]string `json:"data,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListLabelsAomPromGetResponse) String ¶
func (o ListLabelsAomPromGetResponse) String() string
type ListLabelsAomPromPostRequest ¶
type ListLabelsAomPromPostRequest struct { }
Request Object
func (ListLabelsAomPromPostRequest) String ¶
func (o ListLabelsAomPromPostRequest) String() string
type ListLabelsAomPromPostResponse ¶
type ListLabelsAomPromPostResponse struct { Status *string `json:"status,omitempty"` Data *[]string `json:"data,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListLabelsAomPromPostResponse) String ¶
func (o ListLabelsAomPromPostResponse) String() 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 ¶
func (o ListMetadataAomPromGetRequest) String() string
type ListMetadataAomPromGetResponse ¶
type ListMetadataAomPromGetResponse struct { Status *string `json:"status,omitempty"` Data *interface{} `json:"data,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListMetadataAomPromGetResponse) String ¶
func (o ListMetadataAomPromGetResponse) String() 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 ¶
func (o ListRangeQueryAomPromGetRequest) String() string
type ListRangeQueryAomPromGetResponse ¶
type ListRangeQueryAomPromGetResponse struct { Status *string `json:"status,omitempty"` Data *Data `json:"data,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListRangeQueryAomPromGetResponse) String ¶
func (o ListRangeQueryAomPromGetResponse) String() 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 ¶
func (o ListRangeQueryAomPromPostRequest) String() string
type ListRangeQueryAomPromPostResponse ¶
type ListRangeQueryAomPromPostResponse struct { Status *string `json:"status,omitempty"` Data *Data `json:"data,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListRangeQueryAomPromPostResponse) String ¶
func (o ListRangeQueryAomPromPostResponse) String() 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 ¶
func (o ListServiceDiscoveryRulesRequest) String() 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 ¶
func (o ListServiceDiscoveryRulesResponse) String() 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"` }
查询结果元数据信息,包括分页信息等。
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"` }
服务发现规则命名部分。
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 ¶
func (o QueryMetricItemOptionParam) String() 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 QueryMetricItemOptionParamNamespaceEnum ¶
type QueryMetricItemOptionParamNamespaceEnum struct { PAAS_CONTAINER QueryMetricItemOptionParamNamespace PAAS_NODE QueryMetricItemOptionParamNamespace PAAS_SLA QueryMetricItemOptionParamNamespace PAAS_AGGR QueryMetricItemOptionParamNamespace CUSTOMMETRICS QueryMetricItemOptionParamNamespace }
func GetQueryMetricItemOptionParamNamespaceEnum ¶
func GetQueryMetricItemOptionParamNamespaceEnum() QueryMetricItemOptionParamNamespaceEnum
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 { MUST RelationModelRelation MUSTNOT 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"` }
日志过滤条件集合,不同日志来源所需字段不同。
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 ShowMetricsDataRequestFillValueEnum ¶
type ShowMetricsDataRequestFillValueEnum struct { E_1 ShowMetricsDataRequestFillValue E_0 ShowMetricsDataRequestFillValue NULL ShowMetricsDataRequestFillValue AVERAGE ShowMetricsDataRequestFillValue }
func GetShowMetricsDataRequestFillValueEnum ¶
func GetShowMetricsDataRequestFillValueEnum() ShowMetricsDataRequestFillValueEnum
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"` }
指标具体数值。
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 ¶
- model_add_alarm_rule_request.go
- model_add_alarm_rule_response.go
- model_add_metric_data_request.go
- model_add_metric_data_response.go
- model_add_or_update_service_discovery_rules_request.go
- model_add_or_update_service_discovery_rules_response.go
- model_alarm_rule_param.go
- model_app_name_rule.go
- model_app_rules.go
- model_app_rules_body.go
- model_app_rules_spec.go
- model_application_name_rule.go
- model_count_events_request.go
- model_count_events_response.go
- model_data.go
- model_delete_alarm_rule_request.go
- model_delete_alarm_rule_response.go
- model_delete_alarm_rules_body.go
- model_delete_alarm_rules_request.go
- model_delete_alarm_rules_response.go
- model_deleteservice_discovery_rules_request.go
- model_deleteservice_discovery_rules_response.go
- model_dimension.go
- model_dimension2.go
- model_dimension_series.go
- model_discovery_rule.go
- model_event_list.go
- model_event_model.go
- model_event_query_param.go
- model_event_query_param2.go
- model_event_query_param_sort.go
- model_event_series.go
- model_list_alarm_rule_request.go
- model_list_alarm_rule_response.go
- model_list_events_request.go
- model_list_events_response.go
- model_list_instant_query_aom_prom_get_request.go
- model_list_instant_query_aom_prom_get_response.go
- model_list_instant_query_aom_prom_post_request.go
- model_list_instant_query_aom_prom_post_response.go
- model_list_label_values_aom_prom_get_request.go
- model_list_label_values_aom_prom_get_response.go
- model_list_labels_aom_prom_get_request.go
- model_list_labels_aom_prom_get_response.go
- model_list_labels_aom_prom_post_request.go
- model_list_labels_aom_prom_post_response.go
- model_list_log_items_request.go
- model_list_log_items_response.go
- model_list_metadata_aom_prom_get_request.go
- model_list_metadata_aom_prom_get_response.go
- model_list_metric_items_request.go
- model_list_metric_items_response.go
- model_list_range_query_aom_prom_get_request.go
- model_list_range_query_aom_prom_get_response.go
- model_list_range_query_aom_prom_post_request.go
- model_list_range_query_aom_prom_post_response.go
- model_list_sample_request.go
- model_list_sample_response.go
- model_list_series_request.go
- model_list_series_response.go
- model_list_service_discovery_rules_request.go
- model_list_service_discovery_rules_response.go
- model_log_path_rule.go
- model_meta_data.go
- model_meta_data_series.go
- model_metric_api_query_item_param.go
- model_metric_data_item.go
- model_metric_data_points.go
- model_metric_data_value.go
- model_metric_item_info.go
- model_metric_item_result_api.go
- model_metric_query_meritc_param.go
- model_name_rule.go
- model_push_events_request.go
- model_push_events_response.go
- model_query_alarm_result.go
- model_query_body_param.go
- model_query_metric_data_param.go
- model_query_metric_item_option_param.go
- model_query_sample.go
- model_query_sample_param.go
- model_query_series_option_param.go
- model_relation_model.go
- model_sample_data_value.go
- model_search_key.go
- model_series_api_query_item_param.go
- model_series_query_item_result.go
- model_show_alarm_rule_request.go
- model_show_alarm_rule_response.go
- model_show_metrics_data_request.go
- model_show_metrics_data_response.go
- model_statistic_value.go
- model_update_alarm_rule_request.go
- model_update_alarm_rule_response.go
- model_value_data.go