Documentation ¶
Index ¶
- type AdditionalInfo
- type AlarmActions
- type AlarmHistoryInfo
- type AlarmTemplate
- type AlarmTemplateCondition
- type BatchListMetricDataRequest
- type BatchListMetricDataRequestBody
- type BatchListMetricDataResponse
- type BatchMetricData
- type Condition
- type CreateAlarmRequest
- type CreateAlarmRequestBody
- type CreateAlarmRequestBodyAlarmType
- type CreateAlarmRequestBodyAlarmTypeEnum
- type CreateAlarmResponse
- type CreateAlarmTemplateRequest
- type CreateAlarmTemplateRequestBody
- type CreateAlarmTemplateResponse
- type CreateEventsRequest
- type CreateEventsResponse
- type CreateEventsResponseBody
- type CreateMetricDataRequest
- type CreateMetricDataResponse
- type CreateResourceGroup
- type CreateResourceGroupRequest
- type CreateResourceGroupRequestBody
- type CreateResourceGroupResponse
- type DataPointForAlarmHistory
- type Datapoint
- type DatapointForBatchMetric
- type DeleteAlarmRequest
- type DeleteAlarmResponse
- type DeleteAlarmTemplateRequest
- type DeleteAlarmTemplateResponse
- type DeleteResourceGroupRequest
- type DeleteResourceGroupResponse
- type EventDataInfo
- type EventInfo
- type EventInfoDetail
- type EventItem
- type EventItemDetail
- type EventItemDetailEventLevel
- type EventItemDetailEventLevelEnum
- type EventItemDetailEventState
- type EventItemDetailEventStateEnum
- type InstanceStatistics
- type ListAlarmHistoriesRequest
- type ListAlarmHistoriesResponse
- type ListAlarmTemplatesRequest
- type ListAlarmTemplatesResponse
- type ListAlarmsRequest
- type ListAlarmsResponse
- type ListEventDetailRequest
- type ListEventDetailRequestEventType
- type ListEventDetailRequestEventTypeEnum
- type ListEventDetailResponse
- type ListEventDetailResponseEventType
- type ListEventDetailResponseEventTypeEnum
- type ListEventsRequest
- type ListEventsRequestEventType
- type ListEventsRequestEventTypeEnum
- type ListEventsResponse
- type ListMetricsRequest
- type ListMetricsRequestOrder
- type ListMetricsRequestOrderEnum
- type ListMetricsResponse
- type ListResourceGroupRequest
- type ListResourceGroupResponse
- type MetaData
- type MetaDataForAlarmHistory
- type MetricAlarms
- type MetricAlarmsAlarmType
- type MetricAlarmsAlarmTypeEnum
- type MetricDataItem
- type MetricForAlarm
- type MetricInfo
- type MetricInfoForAlarm
- type MetricInfoList
- type MetricsDimension
- type ModifyAlarmActionReq
- type Quotas
- type Resource
- type ResourceGroup
- type ResourceGroupInfo
- type ShowAlarmRequest
- type ShowAlarmResponse
- type ShowEventDataRequest
- type ShowEventDataResponse
- type ShowMetricDataRequest
- type ShowMetricDataRequestFilter
- type ShowMetricDataRequestFilterEnum
- type ShowMetricDataResponse
- type ShowQuotasRequest
- type ShowQuotasResponse
- type ShowResourceGroupRequest
- type ShowResourceGroupResponse
- type TemplateItem
- type TotalMetaData
- type UpdateAlarmActionRequest
- type UpdateAlarmActionResponse
- type UpdateAlarmRequest
- type UpdateAlarmRequestBody
- type UpdateAlarmRequestBodyAlarmType
- type UpdateAlarmRequestBodyAlarmTypeEnum
- type UpdateAlarmResponse
- type UpdateAlarmTemplateRequest
- type UpdateAlarmTemplateRequestBody
- type UpdateAlarmTemplateResponse
- type UpdateResourceGroupRequest
- type UpdateResourceGroupRequestBody
- type UpdateResourceGroupResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdditionalInfo ¶
type AdditionalInfo struct { ResourceId *string `json:"resource_id,omitempty"` ResourceName *string `json:"resource_name,omitempty"` EventId *string `json:"event_id,omitempty"` }
告警历史额外字段,仅针对事件监控告警场景所产生的告警历史信息。
func (AdditionalInfo) String ¶
func (o AdditionalInfo) String() string
type AlarmActions ¶
type AlarmActions struct { Type string `json:"type"` NotificationList []string `json:"notificationList"` }
func (AlarmActions) String ¶
func (o AlarmActions) String() string
type AlarmHistoryInfo ¶
type AlarmHistoryInfo struct { AlarmId *string `json:"alarm_id,omitempty"` AlarmName *string `json:"alarm_name,omitempty"` AlarmDescription *string `json:"alarm_description,omitempty"` Metric *MetricInfo `json:"metric,omitempty"` Condition *Condition `json:"condition,omitempty"` AlarmLevel *int32 `json:"alarm_level,omitempty"` AlarmType *string `json:"alarm_type,omitempty"` AlarmEnabled *bool `json:"alarm_enabled,omitempty"` AlarmActionEnabled *bool `json:"alarm_action_enabled,omitempty"` AlarmActions *[]AlarmActions `json:"alarm_actions,omitempty"` OkActions *[]AlarmActions `json:"ok_actions,omitempty"` InsufficientdataActions *[]AlarmActions `json:"insufficientdata_actions,omitempty"` UpdateTime *int64 `json:"update_time,omitempty"` EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` TriggerTime *int64 `json:"trigger_time,omitempty"` AlarmStatus *string `json:"alarm_status,omitempty"` Datapoints *[]DataPointForAlarmHistory `json:"datapoints,omitempty"` AdditionalInfo *AdditionalInfo `json:"additional_info,omitempty"` }
告警历史详细信息
func (AlarmHistoryInfo) String ¶
func (o AlarmHistoryInfo) String() string
type AlarmTemplate ¶
type AlarmTemplate struct { TemplateName *string `json:"template_name,omitempty"` TemplateDescription *string `json:"template_description,omitempty"` Namespace *string `json:"namespace,omitempty"` DimensionName *string `json:"dimension_name,omitempty"` TemplateItems *[]TemplateItem `json:"template_items,omitempty"` TemplateId *string `json:"template_id,omitempty"` }
创建的自定义告警模板详细信息
func (AlarmTemplate) String ¶
func (o AlarmTemplate) String() string
type AlarmTemplateCondition ¶
type AlarmTemplateCondition struct { ComparisonOperator string `json:"comparison_operator"` Count int32 `json:"count"` Filter string `json:"filter"` Period int32 `json:"period"` Unit *string `json:"unit,omitempty"` Value float64 `json:"value"` SuppressDuration *int32 `json:"suppress_duration,omitempty"` }
创建自定义告警模板的告警策略。
func (AlarmTemplateCondition) String ¶
func (o AlarmTemplateCondition) String() string
type BatchListMetricDataRequest ¶
type BatchListMetricDataRequest struct { ContentType string `json:"Content-Type"` Body *BatchListMetricDataRequestBody `json:"body,omitempty"` }
Request Object
func (BatchListMetricDataRequest) String ¶
func (o BatchListMetricDataRequest) String() string
type BatchListMetricDataRequestBody ¶
type BatchListMetricDataRequestBody struct { Metrics []MetricInfo `json:"metrics"` Period string `json:"period"` Filter string `json:"filter"` From int64 `json:"from"` To int64 `json:"to"` }
func (BatchListMetricDataRequestBody) String ¶
func (o BatchListMetricDataRequestBody) String() string
type BatchListMetricDataResponse ¶
type BatchListMetricDataResponse struct { Metrics *[]BatchMetricData `json:"metrics,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (BatchListMetricDataResponse) String ¶
func (o BatchListMetricDataResponse) String() string
type BatchMetricData ¶
type BatchMetricData struct { Unit *string `json:"unit,omitempty"` Datapoints []DatapointForBatchMetric `json:"datapoints"` Namespace *string `json:"namespace,omitempty"` MetricName string `json:"metric_name"` Dimensions *[]MetricsDimension `json:"dimensions,omitempty"` }
func (BatchMetricData) String ¶
func (o BatchMetricData) String() string
type Condition ¶
type Condition struct { ComparisonOperator string `json:"comparison_operator"` Count int32 `json:"count"` Filter string `json:"filter"` Period int32 `json:"period"` Unit *string `json:"unit,omitempty"` Value float64 `json:"value"` SuppressDuration *int32 `json:"suppress_duration,omitempty"` }
告警规则设置的告警策略
type CreateAlarmRequest ¶
type CreateAlarmRequest struct {
Body *CreateAlarmRequestBody `json:"body,omitempty"`
}
Request Object
func (CreateAlarmRequest) String ¶
func (o CreateAlarmRequest) String() string
type CreateAlarmRequestBody ¶
type CreateAlarmRequestBody struct { AlarmName string `json:"alarm_name"` AlarmDescription *string `json:"alarm_description,omitempty"` Metric *MetricForAlarm `json:"metric"` Condition *Condition `json:"condition"` AlarmEnabled *bool `json:"alarm_enabled,omitempty"` AlarmActionEnabled *bool `json:"alarm_action_enabled,omitempty"` AlarmLevel *int32 `json:"alarm_level,omitempty"` AlarmType *CreateAlarmRequestBodyAlarmType `json:"alarm_type,omitempty"` AlarmActions *[]AlarmActions `json:"alarm_actions,omitempty"` InsufficientdataActions *[]AlarmActions `json:"insufficientdata_actions,omitempty"` OkActions *[]AlarmActions `json:"ok_actions,omitempty"` EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` }
func (CreateAlarmRequestBody) String ¶
func (o CreateAlarmRequestBody) String() string
type CreateAlarmRequestBodyAlarmType ¶
type CreateAlarmRequestBodyAlarmType struct {
// contains filtered or unexported fields
}
func (CreateAlarmRequestBodyAlarmType) MarshalJSON ¶
func (c CreateAlarmRequestBodyAlarmType) MarshalJSON() ([]byte, error)
func (*CreateAlarmRequestBodyAlarmType) UnmarshalJSON ¶
func (c *CreateAlarmRequestBodyAlarmType) UnmarshalJSON(b []byte) error
type CreateAlarmRequestBodyAlarmTypeEnum ¶
type CreateAlarmRequestBodyAlarmTypeEnum struct { EVENT_SYS CreateAlarmRequestBodyAlarmType EVENT_CUSTOM CreateAlarmRequestBodyAlarmType RESOURCE_GROUP CreateAlarmRequestBodyAlarmType }
func GetCreateAlarmRequestBodyAlarmTypeEnum ¶
func GetCreateAlarmRequestBodyAlarmTypeEnum() CreateAlarmRequestBodyAlarmTypeEnum
type CreateAlarmResponse ¶
type CreateAlarmResponse struct { AlarmId *string `json:"alarm_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateAlarmResponse) String ¶
func (o CreateAlarmResponse) String() string
type CreateAlarmTemplateRequest ¶
type CreateAlarmTemplateRequest struct { ContentType string `json:"Content-Type"` Body *CreateAlarmTemplateRequestBody `json:"body,omitempty"` }
Request Object
func (CreateAlarmTemplateRequest) String ¶
func (o CreateAlarmTemplateRequest) String() string
type CreateAlarmTemplateRequestBody ¶
type CreateAlarmTemplateRequestBody struct { TemplateName string `json:"template_name"` TemplateDescription *string `json:"template_description,omitempty"` Namespace string `json:"namespace"` DimensionName string `json:"dimension_name"` TemplateItems []TemplateItem `json:"template_items"` }
创建自定义告警模板请求参数。
func (CreateAlarmTemplateRequestBody) String ¶
func (o CreateAlarmTemplateRequestBody) String() string
type CreateAlarmTemplateResponse ¶
type CreateAlarmTemplateResponse struct { TemplateId *string `json:"template_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateAlarmTemplateResponse) String ¶
func (o CreateAlarmTemplateResponse) String() string
type CreateEventsRequest ¶
type CreateEventsRequest struct { ContentType string `json:"Content-Type"` Body *[]EventItem `json:"body,omitempty"` }
Request Object
func (CreateEventsRequest) String ¶
func (o CreateEventsRequest) String() string
type CreateEventsResponse ¶
type CreateEventsResponse struct { Body *[]CreateEventsResponseBody `json:"body,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateEventsResponse) String ¶
func (o CreateEventsResponse) String() string
type CreateEventsResponseBody ¶
type CreateEventsResponseBody struct { EventId string `json:"event_id"` EventName string `json:"event_name"` }
响应参数。
func (CreateEventsResponseBody) String ¶
func (o CreateEventsResponseBody) String() string
type CreateMetricDataRequest ¶
type CreateMetricDataRequest struct {
Body *[]MetricDataItem `json:"body,omitempty"`
}
Request Object
func (CreateMetricDataRequest) String ¶
func (o CreateMetricDataRequest) String() string
type CreateMetricDataResponse ¶
type CreateMetricDataResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (CreateMetricDataResponse) String ¶
func (o CreateMetricDataResponse) String() string
type CreateResourceGroup ¶
type CreateResourceGroup struct { Namespace string `json:"namespace"` Dimensions []MetricsDimension `json:"dimensions"` }
资源分组中选择的资源信息。
func (CreateResourceGroup) String ¶
func (o CreateResourceGroup) String() string
type CreateResourceGroupRequest ¶
type CreateResourceGroupRequest struct { ContentType string `json:"Content-Type"` Body *CreateResourceGroupRequestBody `json:"body,omitempty"` }
Request Object
func (CreateResourceGroupRequest) String ¶
func (o CreateResourceGroupRequest) String() string
type CreateResourceGroupRequestBody ¶
type CreateResourceGroupRequestBody struct { GroupName string `json:"group_name"` Resources []CreateResourceGroup `json:"resources"` }
创建资源分组,请求参数。
func (CreateResourceGroupRequestBody) String ¶
func (o CreateResourceGroupRequestBody) String() string
type CreateResourceGroupResponse ¶
type CreateResourceGroupResponse struct { GroupId *string `json:"group_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (CreateResourceGroupResponse) String ¶
func (o CreateResourceGroupResponse) String() string
type DataPointForAlarmHistory ¶
type DataPointForAlarmHistory struct { Time *int64 `json:"time,omitempty"` Value *float64 `json:"value,omitempty"` }
计算出该条告警历史的资源监控数据上报时间和监控数值。
func (DataPointForAlarmHistory) String ¶
func (o DataPointForAlarmHistory) String() string
type Datapoint ¶
type DatapointForBatchMetric ¶
type DatapointForBatchMetric struct { Max *float64 `json:"max,omitempty"` Min *float64 `json:"min,omitempty"` Average *float64 `json:"average,omitempty"` Sum *float64 `json:"sum,omitempty"` Variance *string `json:"variance,omitempty"` Timestamp int64 `json:"timestamp"` }
func (DatapointForBatchMetric) String ¶
func (o DatapointForBatchMetric) String() string
type DeleteAlarmRequest ¶
type DeleteAlarmRequest struct {
AlarmId string `json:"alarm_id"`
}
Request Object
func (DeleteAlarmRequest) String ¶
func (o DeleteAlarmRequest) String() string
type DeleteAlarmResponse ¶
type DeleteAlarmResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (DeleteAlarmResponse) String ¶
func (o DeleteAlarmResponse) String() string
type DeleteAlarmTemplateRequest ¶
type DeleteAlarmTemplateRequest struct { ContentType string `json:"Content-Type"` TemplateId string `json:"template_id"` }
Request Object
func (DeleteAlarmTemplateRequest) String ¶
func (o DeleteAlarmTemplateRequest) String() string
type DeleteAlarmTemplateResponse ¶
type DeleteAlarmTemplateResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (DeleteAlarmTemplateResponse) String ¶
func (o DeleteAlarmTemplateResponse) String() string
type DeleteResourceGroupRequest ¶
type DeleteResourceGroupRequest struct { ContentType string `json:"Content-Type"` GroupId string `json:"group_id"` }
Request Object
func (DeleteResourceGroupRequest) String ¶
func (o DeleteResourceGroupRequest) String() string
type DeleteResourceGroupResponse ¶
type DeleteResourceGroupResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (DeleteResourceGroupResponse) String ¶
func (o DeleteResourceGroupResponse) String() string
type EventDataInfo ¶
type EventDataInfo struct { Type string `json:"type"` Timestamp int64 `json:"timestamp"` Value string `json:"value"` }
func (EventDataInfo) String ¶
func (o EventDataInfo) String() string
type EventInfo ¶
type EventInfo struct { EventName *string `json:"event_name,omitempty"` EventType *string `json:"event_type,omitempty"` EventCount *string `json:"event_count,omitempty"` LatestOccurTime *string `json:"latest_occur_time,omitempty"` LatestEventSource *string `json:"latest_event_source,omitempty"` }
一条事件监控信息
type EventInfoDetail ¶
type EventInfoDetail struct { EventName string `json:"event_name"` EventSource *string `json:"event_source,omitempty"` Time int64 `json:"time"` Detail *EventItemDetail `json:"detail"` EventId *string `json:"event_id,omitempty"` }
一条事件监控详细信息
func (EventInfoDetail) String ¶
func (o EventInfoDetail) String() string
type EventItem ¶
type EventItem struct { EventName string `json:"event_name"` EventSource *string `json:"event_source,omitempty"` Time int64 `json:"time"` Detail *EventItemDetail `json:"detail"` }
请求参数。
type EventItemDetail ¶
type EventItemDetail struct { Content *string `json:"content,omitempty"` GroupId *string `json:"group_id,omitempty"` ResourceId *string `json:"resource_id,omitempty"` ResourceName *string `json:"resource_name,omitempty"` EventState *EventItemDetailEventState `json:"event_state,omitempty"` EventLevel *EventItemDetailEventLevel `json:"event_level,omitempty"` EventUser *string `json:"event_user,omitempty"` }
func (EventItemDetail) String ¶
func (o EventItemDetail) String() string
type EventItemDetailEventLevel ¶
type EventItemDetailEventLevel struct {
// contains filtered or unexported fields
}
func (EventItemDetailEventLevel) MarshalJSON ¶
func (c EventItemDetailEventLevel) MarshalJSON() ([]byte, error)
func (*EventItemDetailEventLevel) UnmarshalJSON ¶
func (c *EventItemDetailEventLevel) UnmarshalJSON(b []byte) error
type EventItemDetailEventLevelEnum ¶
type EventItemDetailEventLevelEnum struct { CRITICAL EventItemDetailEventLevel MAJOR EventItemDetailEventLevel MINOR EventItemDetailEventLevel INFO EventItemDetailEventLevel }
func GetEventItemDetailEventLevelEnum ¶
func GetEventItemDetailEventLevelEnum() EventItemDetailEventLevelEnum
type EventItemDetailEventState ¶
type EventItemDetailEventState struct {
// contains filtered or unexported fields
}
func (EventItemDetailEventState) MarshalJSON ¶
func (c EventItemDetailEventState) MarshalJSON() ([]byte, error)
func (*EventItemDetailEventState) UnmarshalJSON ¶
func (c *EventItemDetailEventState) UnmarshalJSON(b []byte) error
type EventItemDetailEventStateEnum ¶
type EventItemDetailEventStateEnum struct { NORMAL EventItemDetailEventState WARNING EventItemDetailEventState INCIDENT EventItemDetailEventState }
func GetEventItemDetailEventStateEnum ¶
func GetEventItemDetailEventStateEnum() EventItemDetailEventStateEnum
type InstanceStatistics ¶
type InstanceStatistics struct { Unhealth *int32 `json:"unhealth,omitempty"` Total *int32 `json:"total,omitempty"` TypeStatistics *string `json:"type_statistics,omitempty"` }
资源分组中的资源信息统计。
func (InstanceStatistics) String ¶
func (o InstanceStatistics) String() string
type ListAlarmHistoriesRequest ¶
type ListAlarmHistoriesRequest struct { ContentType string `json:"Content-Type"` GroupId *string `json:"group_id,omitempty"` AlarmId *string `json:"alarm_id,omitempty"` AlarmName *string `json:"alarm_name,omitempty"` AlarmStatus *string `json:"alarm_status,omitempty"` AlarmLevel *string `json:"alarm_level,omitempty"` Namespace *string `json:"namespace,omitempty"` From *string `json:"from,omitempty"` To *string `json:"to,omitempty"` Start *string `json:"start,omitempty"` Limit *string `json:"limit,omitempty"` }
Request Object
func (ListAlarmHistoriesRequest) String ¶
func (o ListAlarmHistoriesRequest) String() string
type ListAlarmHistoriesResponse ¶
type ListAlarmHistoriesResponse struct { AlarmHistories *[]AlarmHistoryInfo `json:"alarm_histories,omitempty"` MetaData *MetaDataForAlarmHistory `json:"meta_data,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListAlarmHistoriesResponse) String ¶
func (o ListAlarmHistoriesResponse) String() string
type ListAlarmTemplatesRequest ¶
type ListAlarmTemplatesRequest struct { ContentType string `json:"Content-Type"` AlarmTemplateId *string `json:"alarmTemplateId,omitempty"` Namespace *string `json:"namespace,omitempty"` Dname *string `json:"dname,omitempty"` Start *string `json:"start,omitempty"` Limit *string `json:"limit,omitempty"` }
Request Object
func (ListAlarmTemplatesRequest) String ¶
func (o ListAlarmTemplatesRequest) String() string
type ListAlarmTemplatesResponse ¶
type ListAlarmTemplatesResponse struct { AlarmTemplates *[]AlarmTemplate `json:"alarm_templates,omitempty"` MetaData *MetaData `json:"meta_data,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListAlarmTemplatesResponse) String ¶
func (o ListAlarmTemplatesResponse) String() string
type ListAlarmsRequest ¶
type ListAlarmsRequest struct { ContentType string `json:"Content-Type"` Limit *int32 `json:"limit,omitempty"` Order *string `json:"order,omitempty"` Start *string `json:"start,omitempty"` }
Request Object
func (ListAlarmsRequest) String ¶
func (o ListAlarmsRequest) String() string
type ListAlarmsResponse ¶
type ListAlarmsResponse struct { MetricAlarms *[]MetricAlarms `json:"metric_alarms,omitempty"` MetaData *MetaData `json:"meta_data,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListAlarmsResponse) String ¶
func (o ListAlarmsResponse) String() string
type ListEventDetailRequest ¶
type ListEventDetailRequest struct { ContentType string `json:"Content-Type"` EventName string `json:"event_name"` EventType ListEventDetailRequestEventType `json:"event_type"` EventSource *string `json:"event_source,omitempty"` EventLevel *string `json:"event_level,omitempty"` EventUser *string `json:"event_user,omitempty"` EventState *string `json:"event_state,omitempty"` From *int64 `json:"from,omitempty"` To *int64 `json:"to,omitempty"` Start *int32 `json:"start,omitempty"` Limit *int32 `json:"limit,omitempty"` }
Request Object
func (ListEventDetailRequest) String ¶
func (o ListEventDetailRequest) String() string
type ListEventDetailRequestEventType ¶
type ListEventDetailRequestEventType struct {
// contains filtered or unexported fields
}
func (ListEventDetailRequestEventType) MarshalJSON ¶
func (c ListEventDetailRequestEventType) MarshalJSON() ([]byte, error)
func (*ListEventDetailRequestEventType) UnmarshalJSON ¶
func (c *ListEventDetailRequestEventType) UnmarshalJSON(b []byte) error
type ListEventDetailRequestEventTypeEnum ¶
type ListEventDetailRequestEventTypeEnum struct { EVENT_SYS ListEventDetailRequestEventType EVENT_CUSTOM ListEventDetailRequestEventType }
func GetListEventDetailRequestEventTypeEnum ¶
func GetListEventDetailRequestEventTypeEnum() ListEventDetailRequestEventTypeEnum
type ListEventDetailResponse ¶
type ListEventDetailResponse struct { EventName *string `json:"event_name,omitempty"` EventType *ListEventDetailResponseEventType `json:"event_type,omitempty"` EventUsers *string `json:"event_users,omitempty"` EventSources *string `json:"event_sources,omitempty"` EventInfo *[]EventInfoDetail `json:"event_info,omitempty"` MetaData *TotalMetaData `json:"meta_data,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListEventDetailResponse) String ¶
func (o ListEventDetailResponse) String() string
type ListEventDetailResponseEventType ¶
type ListEventDetailResponseEventType struct {
// contains filtered or unexported fields
}
func (ListEventDetailResponseEventType) MarshalJSON ¶
func (c ListEventDetailResponseEventType) MarshalJSON() ([]byte, error)
func (*ListEventDetailResponseEventType) UnmarshalJSON ¶
func (c *ListEventDetailResponseEventType) UnmarshalJSON(b []byte) error
type ListEventDetailResponseEventTypeEnum ¶
type ListEventDetailResponseEventTypeEnum struct { EVENT_SYS ListEventDetailResponseEventType EVENT_CUSTOM ListEventDetailResponseEventType }
func GetListEventDetailResponseEventTypeEnum ¶
func GetListEventDetailResponseEventTypeEnum() ListEventDetailResponseEventTypeEnum
type ListEventsRequest ¶
type ListEventsRequest struct { ContentType string `json:"Content-Type"` EventType *ListEventsRequestEventType `json:"event_type,omitempty"` EventName *string `json:"event_name,omitempty"` From *int64 `json:"from,omitempty"` To *int64 `json:"to,omitempty"` Start *int32 `json:"start,omitempty"` Limit *int32 `json:"limit,omitempty"` }
Request Object
func (ListEventsRequest) String ¶
func (o ListEventsRequest) String() string
type ListEventsRequestEventType ¶
type ListEventsRequestEventType struct {
// contains filtered or unexported fields
}
func (ListEventsRequestEventType) MarshalJSON ¶
func (c ListEventsRequestEventType) MarshalJSON() ([]byte, error)
func (*ListEventsRequestEventType) UnmarshalJSON ¶
func (c *ListEventsRequestEventType) UnmarshalJSON(b []byte) error
type ListEventsRequestEventTypeEnum ¶
type ListEventsRequestEventTypeEnum struct { EVENT_SYS ListEventsRequestEventType EVENT_CUSTOM ListEventsRequestEventType }
func GetListEventsRequestEventTypeEnum ¶
func GetListEventsRequestEventTypeEnum() ListEventsRequestEventTypeEnum
type ListEventsResponse ¶
type ListEventsResponse struct { Events *[]EventInfo `json:"events,omitempty"` MetaData *TotalMetaData `json:"meta_data,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListEventsResponse) String ¶
func (o ListEventsResponse) String() string
type ListMetricsRequest ¶
type ListMetricsRequest struct { ContentType string `json:"Content-Type"` Dim0 *string `json:"dim.0,omitempty"` Dim1 *string `json:"dim.1,omitempty"` Dim2 *string `json:"dim.2,omitempty"` Limit *int32 `json:"limit,omitempty"` MetricName *string `json:"metric_name,omitempty"` Namespace *string `json:"namespace,omitempty"` Order *ListMetricsRequestOrder `json:"order,omitempty"` Start *string `json:"start,omitempty"` }
Request Object
func (ListMetricsRequest) String ¶
func (o ListMetricsRequest) String() string
type ListMetricsRequestOrder ¶
type ListMetricsRequestOrder struct {
// contains filtered or unexported fields
}
func (ListMetricsRequestOrder) MarshalJSON ¶
func (c ListMetricsRequestOrder) MarshalJSON() ([]byte, error)
func (*ListMetricsRequestOrder) UnmarshalJSON ¶
func (c *ListMetricsRequestOrder) UnmarshalJSON(b []byte) error
type ListMetricsRequestOrderEnum ¶
type ListMetricsRequestOrderEnum struct { ASC ListMetricsRequestOrder DESC ListMetricsRequestOrder }
func GetListMetricsRequestOrderEnum ¶
func GetListMetricsRequestOrderEnum() ListMetricsRequestOrderEnum
type ListMetricsResponse ¶
type ListMetricsResponse struct { Metrics *[]MetricInfoList `json:"metrics,omitempty"` MetaData *MetaData `json:"meta_data,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListMetricsResponse) String ¶
func (o ListMetricsResponse) String() string
type ListResourceGroupRequest ¶
type ListResourceGroupRequest struct { ContentType string `json:"Content-Type"` GroupName *string `json:"group_name,omitempty"` GroupId *string `json:"group_id,omitempty"` Status *string `json:"status,omitempty"` Start *int32 `json:"start,omitempty"` Limit *int32 `json:"limit,omitempty"` }
Request Object
func (ListResourceGroupRequest) String ¶
func (o ListResourceGroupRequest) String() string
type ListResourceGroupResponse ¶
type ListResourceGroupResponse struct { ResourceGroups *[]ResourceGroupInfo `json:"resource_groups,omitempty"` MetaData *TotalMetaData `json:"meta_data,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListResourceGroupResponse) String ¶
func (o ListResourceGroupResponse) String() string
type MetaData ¶
type MetaData struct { Count int32 `json:"count"` Total int32 `json:"total"` Marker string `json:"marker"` }
查询结果元数据信息,包括分页信息等。
type MetaDataForAlarmHistory ¶
type MetaDataForAlarmHistory struct {
Total int32 `json:"total"`
}
查询告警历史返回的总条数。
func (MetaDataForAlarmHistory) String ¶
func (o MetaDataForAlarmHistory) String() string
type MetricAlarms ¶
type MetricAlarms struct { AlarmName string `json:"alarm_name"` AlarmDescription *string `json:"alarm_description,omitempty"` Metric *MetricInfoForAlarm `json:"metric"` Condition *Condition `json:"condition"` AlarmEnabled *bool `json:"alarm_enabled,omitempty"` AlarmLevel *int32 `json:"alarm_level,omitempty"` AlarmType *MetricAlarmsAlarmType `json:"alarm_type,omitempty"` AlarmActionEnabled *bool `json:"alarm_action_enabled,omitempty"` AlarmActions *[]AlarmActions `json:"alarm_actions,omitempty"` OkActions *[]AlarmActions `json:"ok_actions,omitempty"` InsufficientdataActions *[]AlarmActions `json:"insufficientdata_actions,omitempty"` AlarmActionBeginTime *string `json:"alarm_action_begin_time,omitempty"` AlarmActionEndTime *string `json:"alarm_action_end_time,omitempty"` AlarmId string `json:"alarm_id"` UpdateTime int64 `json:"update_time"` AlarmState string `json:"alarm_state"` EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` }
func (MetricAlarms) String ¶
func (o MetricAlarms) String() string
type MetricAlarmsAlarmType ¶
type MetricAlarmsAlarmType struct {
// contains filtered or unexported fields
}
func (MetricAlarmsAlarmType) MarshalJSON ¶
func (c MetricAlarmsAlarmType) MarshalJSON() ([]byte, error)
func (*MetricAlarmsAlarmType) UnmarshalJSON ¶
func (c *MetricAlarmsAlarmType) UnmarshalJSON(b []byte) error
type MetricAlarmsAlarmTypeEnum ¶
type MetricAlarmsAlarmTypeEnum struct { EVENT_SYS MetricAlarmsAlarmType EVENT_CUSTOM MetricAlarmsAlarmType }
func GetMetricAlarmsAlarmTypeEnum ¶
func GetMetricAlarmsAlarmTypeEnum() MetricAlarmsAlarmTypeEnum
type MetricDataItem ¶
type MetricDataItem struct { Metric *MetricInfo `json:"metric"` Ttl int32 `json:"ttl"` CollectTime int64 `json:"collect_time"` Value float64 `json:"value"` Unit *string `json:"unit,omitempty"` Type *string `json:"type,omitempty"` }
添加一条或多条自定义指标监控数据,请求参数。
func (MetricDataItem) String ¶
func (o MetricDataItem) String() string
type MetricForAlarm ¶
type MetricForAlarm struct { Namespace string `json:"namespace"` MetricName string `json:"metric_name"` Dimensions *[]MetricsDimension `json:"dimensions,omitempty"` ResourceGroupId *string `json:"resource_group_id,omitempty"` }
创建规则中的监控指标信息
func (MetricForAlarm) String ¶
func (o MetricForAlarm) String() string
type MetricInfo ¶
type MetricInfo struct { Namespace string `json:"namespace"` MetricName string `json:"metric_name"` Dimensions []MetricsDimension `json:"dimensions"` }
指标信息
func (MetricInfo) String ¶
func (o MetricInfo) String() string
type MetricInfoForAlarm ¶
type MetricInfoForAlarm struct { Namespace string `json:"namespace"` MetricName string `json:"metric_name"` Dimensions []MetricsDimension `json:"dimensions"` ResourceGroupId *string `json:"resource_group_id,omitempty"` ResourceGroupName *string `json:"resource_group_name,omitempty"` }
创建规则中的监控指标信息
func (MetricInfoForAlarm) String ¶
func (o MetricInfoForAlarm) String() string
type MetricInfoList ¶
type MetricInfoList struct { Dimensions []MetricsDimension `json:"dimensions"` MetricName string `json:"metric_name"` Namespace string `json:"namespace"` Unit string `json:"unit"` }
指标信息
func (MetricInfoList) String ¶
func (o MetricInfoList) String() string
type MetricsDimension ¶
指标维度
func (MetricsDimension) String ¶
func (o MetricsDimension) String() string
type ModifyAlarmActionReq ¶
type ModifyAlarmActionReq struct {
AlarmEnabled bool `json:"alarm_enabled"`
}
func (ModifyAlarmActionReq) String ¶
func (o ModifyAlarmActionReq) String() string
type Resource ¶
type ResourceGroup ¶
type ResourceGroup struct { Namespace *string `json:"namespace,omitempty"` Dimensions *[]MetricsDimension `json:"dimensions,omitempty"` Status *string `json:"status,omitempty"` }
资源分组中的资源信息
func (ResourceGroup) String ¶
func (o ResourceGroup) String() string
type ResourceGroupInfo ¶
type ResourceGroupInfo struct { GroupName *string `json:"group_name,omitempty"` GroupId *string `json:"group_id,omitempty"` CreateTime *int64 `json:"create_time,omitempty"` InstanceStatistics *InstanceStatistics `json:"instance_statistics,omitempty"` Status *string `json:"status,omitempty"` EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` }
资源分组信息
func (ResourceGroupInfo) String ¶
func (o ResourceGroupInfo) String() string
type ShowAlarmRequest ¶
type ShowAlarmRequest struct { ContentType string `json:"Content-Type"` AlarmId string `json:"alarm_id"` }
Request Object
func (ShowAlarmRequest) String ¶
func (o ShowAlarmRequest) String() string
type ShowAlarmResponse ¶
type ShowAlarmResponse struct { MetricAlarms *[]MetricAlarms `json:"metric_alarms,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowAlarmResponse) String ¶
func (o ShowAlarmResponse) String() string
type ShowEventDataRequest ¶
type ShowEventDataRequest struct { ContentType string `json:"Content-Type"` Namespace string `json:"namespace"` Dim0 string `json:"dim.0"` Dim1 *string `json:"dim.1,omitempty"` Dim2 *string `json:"dim.2,omitempty"` Dim3 *string `json:"dim.3,omitempty"` Type string `json:"type"` From int64 `json:"from"` To int64 `json:"to"` }
Request Object
func (ShowEventDataRequest) String ¶
func (o ShowEventDataRequest) String() string
type ShowEventDataResponse ¶
type ShowEventDataResponse struct { Datapoints *[]EventDataInfo `json:"datapoints,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowEventDataResponse) String ¶
func (o ShowEventDataResponse) String() string
type ShowMetricDataRequest ¶
type ShowMetricDataRequest struct { ContentType string `json:"Content-Type"` Namespace string `json:"namespace"` MetricName string `json:"metric_name"` Dim0 string `json:"dim.0"` Dim1 *string `json:"dim.1,omitempty"` Dim2 *string `json:"dim.2,omitempty"` Dim3 *string `json:"dim.3,omitempty"` Filter ShowMetricDataRequestFilter `json:"filter"` Period int32 `json:"period"` From int64 `json:"from"` To int64 `json:"to"` }
Request Object
func (ShowMetricDataRequest) String ¶
func (o ShowMetricDataRequest) String() string
type ShowMetricDataRequestFilter ¶
type ShowMetricDataRequestFilter struct {
// contains filtered or unexported fields
}
func (ShowMetricDataRequestFilter) MarshalJSON ¶
func (c ShowMetricDataRequestFilter) MarshalJSON() ([]byte, error)
func (*ShowMetricDataRequestFilter) UnmarshalJSON ¶
func (c *ShowMetricDataRequestFilter) UnmarshalJSON(b []byte) error
type ShowMetricDataRequestFilterEnum ¶
type ShowMetricDataRequestFilterEnum struct { MAX ShowMetricDataRequestFilter MIN ShowMetricDataRequestFilter AVERAGE ShowMetricDataRequestFilter SUM ShowMetricDataRequestFilter VARIANCE ShowMetricDataRequestFilter }
func GetShowMetricDataRequestFilterEnum ¶
func GetShowMetricDataRequestFilterEnum() ShowMetricDataRequestFilterEnum
type ShowMetricDataResponse ¶
type ShowMetricDataResponse struct { Datapoints *[]Datapoint `json:"datapoints,omitempty"` MetricName *string `json:"metric_name,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowMetricDataResponse) String ¶
func (o ShowMetricDataResponse) String() string
type ShowQuotasRequest ¶
type ShowQuotasRequest struct {
ContentType string `json:"Content-Type"`
}
Request Object
func (ShowQuotasRequest) String ¶
func (o ShowQuotasRequest) String() string
type ShowQuotasResponse ¶
type ShowQuotasResponse struct { Quotas *Quotas `json:"quotas,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowQuotasResponse) String ¶
func (o ShowQuotasResponse) String() string
type ShowResourceGroupRequest ¶
type ShowResourceGroupRequest struct { ContentType string `json:"Content-Type"` GroupId string `json:"group_id"` Status *string `json:"status,omitempty"` Namespace *string `json:"namespace,omitempty"` Dname *string `json:"dname,omitempty"` Start *string `json:"start,omitempty"` Limit *string `json:"limit,omitempty"` }
Request Object
func (ShowResourceGroupRequest) String ¶
func (o ShowResourceGroupRequest) String() string
type ShowResourceGroupResponse ¶
type ShowResourceGroupResponse struct { GroupName *string `json:"group_name,omitempty"` GroupId *string `json:"group_id,omitempty"` Resources *[]ResourceGroup `json:"resources,omitempty"` Status *string `json:"status,omitempty"` CreateTime *int64 `json:"create_time,omitempty"` MetaData *MetaData `json:"meta_data,omitempty"` EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowResourceGroupResponse) String ¶
func (o ShowResourceGroupResponse) String() string
type TemplateItem ¶
type TemplateItem struct { MetricName string `json:"metric_name"` Condition *AlarmTemplateCondition `json:"condition"` AlarmLevel *int32 `json:"alarm_level,omitempty"` }
创建自定义告警模板添加的告警规则。
func (TemplateItem) String ¶
func (o TemplateItem) String() string
type TotalMetaData ¶
type TotalMetaData struct {
Total *int32 `json:"total,omitempty"`
}
查询结果元数据统计个数。
func (TotalMetaData) String ¶
func (o TotalMetaData) String() string
type UpdateAlarmActionRequest ¶
type UpdateAlarmActionRequest struct { ContentType string `json:"Content-Type"` AlarmId string `json:"alarm_id"` Body *ModifyAlarmActionReq `json:"body,omitempty"` }
Request Object
func (UpdateAlarmActionRequest) String ¶
func (o UpdateAlarmActionRequest) String() string
type UpdateAlarmActionResponse ¶
type UpdateAlarmActionResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (UpdateAlarmActionResponse) String ¶
func (o UpdateAlarmActionResponse) String() string
type UpdateAlarmRequest ¶
type UpdateAlarmRequest struct { ContentType string `json:"Content-Type"` AlarmId string `json:"alarm_id"` Body *UpdateAlarmRequestBody `json:"body,omitempty"` }
Request Object
func (UpdateAlarmRequest) String ¶
func (o UpdateAlarmRequest) String() string
type UpdateAlarmRequestBody ¶
type UpdateAlarmRequestBody struct { AlarmName *string `json:"alarm_name,omitempty"` AlarmDescription *string `json:"alarm_description,omitempty"` Condition *Condition `json:"condition,omitempty"` AlarmActionEnabled *bool `json:"alarm_action_enabled,omitempty"` AlarmLevel *int32 `json:"alarm_level,omitempty"` AlarmType *UpdateAlarmRequestBodyAlarmType `json:"alarm_type,omitempty"` AlarmActions *[]AlarmActions `json:"alarm_actions,omitempty"` InsufficientdataActions *[]AlarmActions `json:"insufficientdata_actions,omitempty"` OkActions *[]AlarmActions `json:"ok_actions,omitempty"` }
func (UpdateAlarmRequestBody) String ¶
func (o UpdateAlarmRequestBody) String() string
type UpdateAlarmRequestBodyAlarmType ¶
type UpdateAlarmRequestBodyAlarmType struct {
// contains filtered or unexported fields
}
func (UpdateAlarmRequestBodyAlarmType) MarshalJSON ¶
func (c UpdateAlarmRequestBodyAlarmType) MarshalJSON() ([]byte, error)
func (*UpdateAlarmRequestBodyAlarmType) UnmarshalJSON ¶
func (c *UpdateAlarmRequestBodyAlarmType) UnmarshalJSON(b []byte) error
type UpdateAlarmRequestBodyAlarmTypeEnum ¶
type UpdateAlarmRequestBodyAlarmTypeEnum struct { EVENT_SYS UpdateAlarmRequestBodyAlarmType EVENT_CUSTOM UpdateAlarmRequestBodyAlarmType RESOURCE_GROUP UpdateAlarmRequestBodyAlarmType }
func GetUpdateAlarmRequestBodyAlarmTypeEnum ¶
func GetUpdateAlarmRequestBodyAlarmTypeEnum() UpdateAlarmRequestBodyAlarmTypeEnum
type UpdateAlarmResponse ¶
type UpdateAlarmResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (UpdateAlarmResponse) String ¶
func (o UpdateAlarmResponse) String() string
type UpdateAlarmTemplateRequest ¶
type UpdateAlarmTemplateRequest struct { ContentType string `json:"Content-Type"` TemplateId string `json:"template_id"` Body *UpdateAlarmTemplateRequestBody `json:"body,omitempty"` }
Request Object
func (UpdateAlarmTemplateRequest) String ¶
func (o UpdateAlarmTemplateRequest) String() string
type UpdateAlarmTemplateRequestBody ¶
type UpdateAlarmTemplateRequestBody struct { TemplateName string `json:"template_name"` TemplateDescription *string `json:"template_description,omitempty"` Namespace string `json:"namespace"` DimensionName string `json:"dimension_name"` TemplateItems []TemplateItem `json:"template_items"` }
修改自定义告警模板,请求参数
func (UpdateAlarmTemplateRequestBody) String ¶
func (o UpdateAlarmTemplateRequestBody) String() string
type UpdateAlarmTemplateResponse ¶
type UpdateAlarmTemplateResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (UpdateAlarmTemplateResponse) String ¶
func (o UpdateAlarmTemplateResponse) String() string
type UpdateResourceGroupRequest ¶
type UpdateResourceGroupRequest struct { ContentType string `json:"Content-Type"` GroupId string `json:"group_id"` Body *UpdateResourceGroupRequestBody `json:"body,omitempty"` }
Request Object
func (UpdateResourceGroupRequest) String ¶
func (o UpdateResourceGroupRequest) String() string
type UpdateResourceGroupRequestBody ¶
type UpdateResourceGroupRequestBody struct { GroupName string `json:"group_name"` Resources []CreateResourceGroup `json:"resources"` }
更新资源分组,请求参数。
func (UpdateResourceGroupRequestBody) String ¶
func (o UpdateResourceGroupRequestBody) String() string
type UpdateResourceGroupResponse ¶
type UpdateResourceGroupResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (UpdateResourceGroupResponse) String ¶
func (o UpdateResourceGroupResponse) String() string
Source Files ¶
- model_additional_info.go
- model_alarm_actions.go
- model_alarm_history_info.go
- model_alarm_template.go
- model_alarm_template_condition.go
- model_batch_list_metric_data_request.go
- model_batch_list_metric_data_request_body.go
- model_batch_list_metric_data_response.go
- model_batch_metric_data.go
- model_condition.go
- model_create_alarm_request.go
- model_create_alarm_request_body.go
- model_create_alarm_response.go
- model_create_alarm_template_request.go
- model_create_alarm_template_request_body.go
- model_create_alarm_template_response.go
- model_create_events_request.go
- model_create_events_response.go
- model_create_events_response_body.go
- model_create_metric_data_request.go
- model_create_metric_data_response.go
- model_create_resource_group.go
- model_create_resource_group_request.go
- model_create_resource_group_request_body.go
- model_create_resource_group_response.go
- model_data_point_for_alarm_history.go
- model_datapoint.go
- model_datapoint_for_batch_metric.go
- model_delete_alarm_request.go
- model_delete_alarm_response.go
- model_delete_alarm_template_request.go
- model_delete_alarm_template_response.go
- model_delete_resource_group_request.go
- model_delete_resource_group_response.go
- model_event_data_info.go
- model_event_info.go
- model_event_info_detail.go
- model_event_item.go
- model_event_item_detail.go
- model_instance_statistics.go
- model_list_alarm_histories_request.go
- model_list_alarm_histories_response.go
- model_list_alarm_templates_request.go
- model_list_alarm_templates_response.go
- model_list_alarms_request.go
- model_list_alarms_response.go
- model_list_event_detail_request.go
- model_list_event_detail_response.go
- model_list_events_request.go
- model_list_events_response.go
- model_list_metrics_request.go
- model_list_metrics_response.go
- model_list_resource_group_request.go
- model_list_resource_group_response.go
- model_meta_data.go
- model_meta_data_for_alarm_history.go
- model_metric_alarms.go
- model_metric_data_item.go
- model_metric_for_alarm.go
- model_metric_info.go
- model_metric_info_for_alarm.go
- model_metric_info_list.go
- model_metrics_dimension.go
- model_modify_alarm_action_req.go
- model_quotas.go
- model_resource.go
- model_resource_group.go
- model_resource_group_info.go
- model_show_alarm_request.go
- model_show_alarm_response.go
- model_show_event_data_request.go
- model_show_event_data_response.go
- model_show_metric_data_request.go
- model_show_metric_data_response.go
- model_show_quotas_request.go
- model_show_quotas_response.go
- model_show_resource_group_request.go
- model_show_resource_group_response.go
- model_template_item.go
- model_total_meta_data.go
- model_update_alarm_action_request.go
- model_update_alarm_action_response.go
- model_update_alarm_request.go
- model_update_alarm_request_body.go
- model_update_alarm_response.go
- model_update_alarm_template_request.go
- model_update_alarm_template_request_body.go
- model_update_alarm_template_response.go
- model_update_resource_group_request.go
- model_update_resource_group_request_body.go
- model_update_resource_group_response.go