model

package
v0.0.4-beta Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

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"`
}

func (BatchListMetricDataRequest) 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

type BatchListMetricDataResponse

type BatchListMetricDataResponse struct {
	Metrics        *[]BatchMetricData `json:"metrics,omitempty"`
	HttpStatusCode int                `json:"-"`
}

func (BatchListMetricDataResponse) 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"`
}

func (Condition) String

func (o Condition) String() string

type CreateAlarmRequest

type CreateAlarmRequest struct {
	Body *CreateAlarmRequestBody `json:"body,omitempty"`
}

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

func (CreateAlarmRequestBodyAlarmType) Value

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:"-"`
}

func (CreateAlarmResponse) String

func (o CreateAlarmResponse) String() string

type CreateAlarmTemplateRequest

type CreateAlarmTemplateRequest struct {
	ContentType string `json:"Content-Type"`

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

func (CreateAlarmTemplateRequest) 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

type CreateAlarmTemplateResponse

type CreateAlarmTemplateResponse struct {
	TemplateId     *string `json:"template_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

func (CreateAlarmTemplateResponse) String

type CreateEventsRequest

type CreateEventsRequest struct {
	ContentType string `json:"Content-Type"`

	Body *[]EventItem `json:"body,omitempty"`
}

func (CreateEventsRequest) String

func (o CreateEventsRequest) String() string

type CreateEventsResponse

type CreateEventsResponse struct {
	Body           *[]CreateEventsResponseBody `json:"body,omitempty"`
	HttpStatusCode int                         `json:"-"`
}

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"`
}

func (CreateMetricDataRequest) String

func (o CreateMetricDataRequest) String() string

type CreateMetricDataResponse

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

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"`
}

func (CreateResourceGroupRequest) String

type CreateResourceGroupRequestBody

type CreateResourceGroupRequestBody struct {
	GroupName string `json:"group_name"`

	Resources []CreateResourceGroup `json:"resources"`
}

func (CreateResourceGroupRequestBody) String

type CreateResourceGroupResponse

type CreateResourceGroupResponse struct {
	GroupId        *string `json:"group_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

func (CreateResourceGroupResponse) 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 Datapoint struct {
	Max *float64 `json:"max,omitempty"`

	Min *float64 `json:"min,omitempty"`

	Average *float64 `json:"average,omitempty"`

	Sum *float64 `json:"sum,omitempty"`

	Variance *float64 `json:"variance,omitempty"`

	Timestamp int64 `json:"timestamp"`

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

func (Datapoint) String

func (o Datapoint) String() string

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 *float64 `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"`
}

func (DeleteAlarmRequest) String

func (o DeleteAlarmRequest) String() string

type DeleteAlarmResponse

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

func (DeleteAlarmResponse) String

func (o DeleteAlarmResponse) String() string

type DeleteAlarmTemplateRequest

type DeleteAlarmTemplateRequest struct {
	ContentType string `json:"Content-Type"`

	TemplateId string `json:"template_id"`
}

func (DeleteAlarmTemplateRequest) String

type DeleteAlarmTemplateResponse

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

func (DeleteAlarmTemplateResponse) String

type DeleteResourceGroupRequest

type DeleteResourceGroupRequest struct {
	ContentType string `json:"Content-Type"`

	GroupId string `json:"group_id"`
}

func (DeleteResourceGroupRequest) String

type DeleteResourceGroupResponse

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

func (DeleteResourceGroupResponse) 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 *int32 `json:"event_count,omitempty"`

	LatestOccurTime *int64 `json:"latest_occur_time,omitempty"`

	LatestEventSource *string `json:"latest_event_source,omitempty"`
}

func (EventInfo) String

func (o EventInfo) String() string

type EventInfoDetail

type EventInfoDetail struct {
	EventName string `json:"event_name"`

	EventSource string `json:"event_source"`

	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"`

	Time int64 `json:"time"`

	Detail *EventItemDetail `json:"detail"`
}

func (EventItem) String

func (o EventItem) String() string

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"`

	EventType *string `json:"event_type,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

func (EventItemDetailEventLevel) Value

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

func (EventItemDetailEventState) Value

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 *int32 `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"`
}

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:"-"`
}

func (ListAlarmHistoriesResponse) 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"`
}

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:"-"`
}

func (ListAlarmTemplatesResponse) 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"`
}

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:"-"`
}

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"`
}

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

func (ListEventDetailRequestEventType) Value

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:"-"`
}

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

func (ListEventDetailResponseEventType) Value

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"`
}

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

func (ListEventsRequestEventType) Value

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:"-"`
}

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"`
}

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

func (ListMetricsRequestOrder) Value

func (c ListMetricsRequestOrder) Value() string

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:"-"`
}

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"`
}

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:"-"`
}

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"`
}

func (MetaData) String

func (o MetaData) String() string

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

func (MetricAlarmsAlarmType) Value

func (c MetricAlarmsAlarmType) Value() string

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

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

	Value string `json:"value"`
}

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 Quotas

type Quotas struct {
	Resources []Resource `json:"resources"`
}

func (Quotas) String

func (o Quotas) String() string

type Resource

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

	Used int32 `json:"used"`

	Unit string `json:"unit"`

	Quota int32 `json:"quota"`
}

func (Resource) String

func (o Resource) String() string

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"`
}

func (ShowAlarmRequest) String

func (o ShowAlarmRequest) String() string

type ShowAlarmResponse

type ShowAlarmResponse struct {
	MetricAlarms   *[]MetricAlarms `json:"metric_alarms,omitempty"`
	HttpStatusCode int             `json:"-"`
}

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"`
}

func (ShowEventDataRequest) String

func (o ShowEventDataRequest) String() string

type ShowEventDataResponse

type ShowEventDataResponse struct {
	Datapoints     *[]EventDataInfo `json:"datapoints,omitempty"`
	HttpStatusCode int              `json:"-"`
}

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"`
}

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

func (ShowMetricDataRequestFilter) Value

type ShowMetricDataResponse

type ShowMetricDataResponse struct {
	Datapoints *[]Datapoint `json:"datapoints,omitempty"`

	MetricName     *string `json:"metric_name,omitempty"`
	HttpStatusCode int     `json:"-"`
}

func (ShowMetricDataResponse) String

func (o ShowMetricDataResponse) String() string

type ShowQuotasRequest

type ShowQuotasRequest struct {
	ContentType string `json:"Content-Type"`
}

func (ShowQuotasRequest) String

func (o ShowQuotasRequest) String() string

type ShowQuotasResponse

type ShowQuotasResponse struct {
	Quotas         *Quotas `json:"quotas,omitempty"`
	HttpStatusCode int     `json:"-"`
}

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"`
}

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:"-"`
}

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"`
}

func (UpdateAlarmActionRequest) String

func (o UpdateAlarmActionRequest) String() string

type UpdateAlarmActionResponse

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

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"`
}

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

func (UpdateAlarmRequestBodyAlarmType) Value

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:"-"`
}

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"`
}

func (UpdateAlarmTemplateRequest) 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

type UpdateAlarmTemplateResponse

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

func (UpdateAlarmTemplateResponse) String

type UpdateResourceGroupRequest

type UpdateResourceGroupRequest struct {
	ContentType string `json:"Content-Type"`

	GroupId string `json:"group_id"`

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

func (UpdateResourceGroupRequest) String

type UpdateResourceGroupRequestBody

type UpdateResourceGroupRequestBody struct {
	GroupName string `json:"group_name"`

	Resources []CreateResourceGroup `json:"resources"`
}

func (UpdateResourceGroupRequestBody) String

type UpdateResourceGroupResponse

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

func (UpdateResourceGroupResponse) String

Source Files

Jump to

Keyboard shortcuts

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