volcobserve

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package volcobserveiface provides an interface to enable mocking the VOLC_OBSERVE service client for testing your code.

It is important to note that this interface will have breaking changes when the service model is updated and adds new API operations, paginators, and waiters.

Index

Constants

View Source
const (
	ServiceName = "volc_observe" // Name of service.
	EndpointsID = ServiceName    // ID to lookup a service endpoint with.
	ServiceID   = "volc_observe" // ServiceID is a unique identifer of a specific service.
)

Service information constants

Variables

This section is empty.

Functions

This section is empty.

Types

type ConditionForCreateRuleInput

type ConditionForCreateRuleInput struct {
	ComparisonOperator *string `type:"string"`

	MetricName *string `type:"string"`

	MetricUnit *string `type:"string"`

	Namespace *string `type:"string"`

	Period *string `type:"string"`

	Statistics *string `type:"string"`

	Threshold *string `type:"string"`
	// contains filtered or unexported fields
}

func (ConditionForCreateRuleInput) GoString

func (s ConditionForCreateRuleInput) GoString() string

GoString returns the string representation

func (*ConditionForCreateRuleInput) SetComparisonOperator

func (s *ConditionForCreateRuleInput) SetComparisonOperator(v string) *ConditionForCreateRuleInput

SetComparisonOperator sets the ComparisonOperator field's value.

func (*ConditionForCreateRuleInput) SetMetricName

SetMetricName sets the MetricName field's value.

func (*ConditionForCreateRuleInput) SetMetricUnit

SetMetricUnit sets the MetricUnit field's value.

func (*ConditionForCreateRuleInput) SetNamespace

SetNamespace sets the Namespace field's value.

func (*ConditionForCreateRuleInput) SetPeriod

SetPeriod sets the Period field's value.

func (*ConditionForCreateRuleInput) SetStatistics

SetStatistics sets the Statistics field's value.

func (*ConditionForCreateRuleInput) SetThreshold

SetThreshold sets the Threshold field's value.

func (ConditionForCreateRuleInput) String

String returns the string representation

type ConditionForListRulesByIdsOutput

type ConditionForListRulesByIdsOutput struct {
	ComparisonOperator *string `type:"string"`

	MetricName *string `type:"string"`

	MetricUnit *string `type:"string"`

	Namespace *string `type:"string"`

	Period *string `type:"string"`

	Statistics *string `type:"string"`

	Threshold *string `type:"string"`
	// contains filtered or unexported fields
}

func (ConditionForListRulesByIdsOutput) GoString

GoString returns the string representation

func (*ConditionForListRulesByIdsOutput) SetComparisonOperator

SetComparisonOperator sets the ComparisonOperator field's value.

func (*ConditionForListRulesByIdsOutput) SetMetricName

SetMetricName sets the MetricName field's value.

func (*ConditionForListRulesByIdsOutput) SetMetricUnit

SetMetricUnit sets the MetricUnit field's value.

func (*ConditionForListRulesByIdsOutput) SetNamespace

SetNamespace sets the Namespace field's value.

func (*ConditionForListRulesByIdsOutput) SetPeriod

SetPeriod sets the Period field's value.

func (*ConditionForListRulesByIdsOutput) SetStatistics

SetStatistics sets the Statistics field's value.

func (*ConditionForListRulesByIdsOutput) SetThreshold

SetThreshold sets the Threshold field's value.

func (ConditionForListRulesByIdsOutput) String

String returns the string representation

type ConditionForUpdateRuleInput

type ConditionForUpdateRuleInput struct {
	ComparisonOperator *string `type:"string"`

	MetricName *string `type:"string"`

	MetricUnit *string `type:"string"`

	Namespace *string `type:"string"`

	Period *string `type:"string"`

	Statistics *string `type:"string"`

	Threshold *string `type:"string"`
	// contains filtered or unexported fields
}

func (ConditionForUpdateRuleInput) GoString

func (s ConditionForUpdateRuleInput) GoString() string

GoString returns the string representation

func (*ConditionForUpdateRuleInput) SetComparisonOperator

func (s *ConditionForUpdateRuleInput) SetComparisonOperator(v string) *ConditionForUpdateRuleInput

SetComparisonOperator sets the ComparisonOperator field's value.

func (*ConditionForUpdateRuleInput) SetMetricName

SetMetricName sets the MetricName field's value.

func (*ConditionForUpdateRuleInput) SetMetricUnit

SetMetricUnit sets the MetricUnit field's value.

func (*ConditionForUpdateRuleInput) SetNamespace

SetNamespace sets the Namespace field's value.

func (*ConditionForUpdateRuleInput) SetPeriod

SetPeriod sets the Period field's value.

func (*ConditionForUpdateRuleInput) SetStatistics

SetStatistics sets the Statistics field's value.

func (*ConditionForUpdateRuleInput) SetThreshold

SetThreshold sets the Threshold field's value.

func (ConditionForUpdateRuleInput) String

String returns the string representation

type CreateRuleInput

type CreateRuleInput struct {
	AccountId *string `type:"string"`

	AlertMethods []*string `type:"list"`

	Asc *bool `type:"boolean"`

	CheckInterval *int64 `type:"integer"`

	Conditions []*ConditionForCreateRuleInput `type:"list"`

	ContactGroupsIds []*string `type:"list"`

	Description *string `type:"string"`

	Dimensions []*string `type:"list"`

	EffectEndAt *string `type:"string"`

	EffectStartAt *string `type:"string"`

	EnableState *string `type:"string"`

	EvaluationCount *int64 `type:"integer"`

	HandleSuggestion *string `type:"string"`

	Id *string `type:"string"`

	Level *string `type:"string"`

	Namespace *string `type:"string"`

	OrderBy *string `type:"string"`

	OriginalDimensions map[string][]*string `type:"map"`

	PageNumber *int64 `type:"integer"`

	PageSize *int64 `type:"integer"`

	Regions []*string `type:"list"`

	RuleExpr *string `type:"string"`

	RuleName *string `type:"string"`

	RuleType *string `type:"string"`

	SilenceTime *int64 `type:"integer"`

	SubNamespace *string `type:"string"`

	TotalCount *int64 `type:"integer"`

	WebHook *string `type:"string"`
	// contains filtered or unexported fields
}

func (CreateRuleInput) GoString

func (s CreateRuleInput) GoString() string

GoString returns the string representation

func (*CreateRuleInput) SetAccountId

func (s *CreateRuleInput) SetAccountId(v string) *CreateRuleInput

SetAccountId sets the AccountId field's value.

func (*CreateRuleInput) SetAlertMethods

func (s *CreateRuleInput) SetAlertMethods(v []*string) *CreateRuleInput

SetAlertMethods sets the AlertMethods field's value.

func (*CreateRuleInput) SetAsc

func (s *CreateRuleInput) SetAsc(v bool) *CreateRuleInput

SetAsc sets the Asc field's value.

func (*CreateRuleInput) SetCheckInterval

func (s *CreateRuleInput) SetCheckInterval(v int64) *CreateRuleInput

SetCheckInterval sets the CheckInterval field's value.

func (*CreateRuleInput) SetConditions

SetConditions sets the Conditions field's value.

func (*CreateRuleInput) SetContactGroupsIds

func (s *CreateRuleInput) SetContactGroupsIds(v []*string) *CreateRuleInput

SetContactGroupsIds sets the ContactGroupsIds field's value.

func (*CreateRuleInput) SetDescription

func (s *CreateRuleInput) SetDescription(v string) *CreateRuleInput

SetDescription sets the Description field's value.

func (*CreateRuleInput) SetDimensions

func (s *CreateRuleInput) SetDimensions(v []*string) *CreateRuleInput

SetDimensions sets the Dimensions field's value.

func (*CreateRuleInput) SetEffectEndAt

func (s *CreateRuleInput) SetEffectEndAt(v string) *CreateRuleInput

SetEffectEndAt sets the EffectEndAt field's value.

func (*CreateRuleInput) SetEffectStartAt

func (s *CreateRuleInput) SetEffectStartAt(v string) *CreateRuleInput

SetEffectStartAt sets the EffectStartAt field's value.

func (*CreateRuleInput) SetEnableState

func (s *CreateRuleInput) SetEnableState(v string) *CreateRuleInput

SetEnableState sets the EnableState field's value.

func (*CreateRuleInput) SetEvaluationCount

func (s *CreateRuleInput) SetEvaluationCount(v int64) *CreateRuleInput

SetEvaluationCount sets the EvaluationCount field's value.

func (*CreateRuleInput) SetHandleSuggestion

func (s *CreateRuleInput) SetHandleSuggestion(v string) *CreateRuleInput

SetHandleSuggestion sets the HandleSuggestion field's value.

func (*CreateRuleInput) SetId

func (s *CreateRuleInput) SetId(v string) *CreateRuleInput

SetId sets the Id field's value.

func (*CreateRuleInput) SetLevel

func (s *CreateRuleInput) SetLevel(v string) *CreateRuleInput

SetLevel sets the Level field's value.

func (*CreateRuleInput) SetNamespace

func (s *CreateRuleInput) SetNamespace(v string) *CreateRuleInput

SetNamespace sets the Namespace field's value.

func (*CreateRuleInput) SetOrderBy

func (s *CreateRuleInput) SetOrderBy(v string) *CreateRuleInput

SetOrderBy sets the OrderBy field's value.

func (*CreateRuleInput) SetOriginalDimensions

func (s *CreateRuleInput) SetOriginalDimensions(v map[string][]*string) *CreateRuleInput

SetOriginalDimensions sets the OriginalDimensions field's value.

func (*CreateRuleInput) SetPageNumber

func (s *CreateRuleInput) SetPageNumber(v int64) *CreateRuleInput

SetPageNumber sets the PageNumber field's value.

func (*CreateRuleInput) SetPageSize

func (s *CreateRuleInput) SetPageSize(v int64) *CreateRuleInput

SetPageSize sets the PageSize field's value.

func (*CreateRuleInput) SetRegions

func (s *CreateRuleInput) SetRegions(v []*string) *CreateRuleInput

SetRegions sets the Regions field's value.

func (*CreateRuleInput) SetRuleExpr

func (s *CreateRuleInput) SetRuleExpr(v string) *CreateRuleInput

SetRuleExpr sets the RuleExpr field's value.

func (*CreateRuleInput) SetRuleName

func (s *CreateRuleInput) SetRuleName(v string) *CreateRuleInput

SetRuleName sets the RuleName field's value.

func (*CreateRuleInput) SetRuleType

func (s *CreateRuleInput) SetRuleType(v string) *CreateRuleInput

SetRuleType sets the RuleType field's value.

func (*CreateRuleInput) SetSilenceTime

func (s *CreateRuleInput) SetSilenceTime(v int64) *CreateRuleInput

SetSilenceTime sets the SilenceTime field's value.

func (*CreateRuleInput) SetSubNamespace

func (s *CreateRuleInput) SetSubNamespace(v string) *CreateRuleInput

SetSubNamespace sets the SubNamespace field's value.

func (*CreateRuleInput) SetTotalCount

func (s *CreateRuleInput) SetTotalCount(v int64) *CreateRuleInput

SetTotalCount sets the TotalCount field's value.

func (*CreateRuleInput) SetWebHook

func (s *CreateRuleInput) SetWebHook(v string) *CreateRuleInput

SetWebHook sets the WebHook field's value.

func (CreateRuleInput) String

func (s CreateRuleInput) String() string

String returns the string representation

type CreateRuleOutput

type CreateRuleOutput struct {
	Data []*string `type:"list"`
	// contains filtered or unexported fields
}

func (CreateRuleOutput) GoString

func (s CreateRuleOutput) GoString() string

GoString returns the string representation

func (*CreateRuleOutput) SetData

func (s *CreateRuleOutput) SetData(v []*string) *CreateRuleOutput

SetData sets the Data field's value.

func (CreateRuleOutput) String

func (s CreateRuleOutput) String() string

String returns the string representation

type DeleteRulesByIdsInput

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

func (DeleteRulesByIdsInput) GoString

func (s DeleteRulesByIdsInput) GoString() string

GoString returns the string representation

func (DeleteRulesByIdsInput) String

func (s DeleteRulesByIdsInput) String() string

String returns the string representation

type DeleteRulesByIdsOutput

type DeleteRulesByIdsOutput struct {
	Data []*string `type:"list"`
	// contains filtered or unexported fields
}

func (DeleteRulesByIdsOutput) GoString

func (s DeleteRulesByIdsOutput) GoString() string

GoString returns the string representation

func (*DeleteRulesByIdsOutput) SetData

SetData sets the Data field's value.

func (DeleteRulesByIdsOutput) String

func (s DeleteRulesByIdsOutput) String() string

String returns the string representation

type ListRulesByIdsInput

type ListRulesByIdsInput struct {
	Asc *bool `type:"boolean"`

	Ids []*string `type:"list"`

	OrderBy *string `type:"string"`

	PageNumber *int64 `type:"integer"`

	PageSize *int64 `type:"integer"`

	TotalCount *int64 `type:"integer"`
	// contains filtered or unexported fields
}

func (ListRulesByIdsInput) GoString

func (s ListRulesByIdsInput) GoString() string

GoString returns the string representation

func (*ListRulesByIdsInput) SetAsc

SetAsc sets the Asc field's value.

func (*ListRulesByIdsInput) SetIds

SetIds sets the Ids field's value.

func (*ListRulesByIdsInput) SetOrderBy

SetOrderBy sets the OrderBy field's value.

func (*ListRulesByIdsInput) SetPageNumber

func (s *ListRulesByIdsInput) SetPageNumber(v int64) *ListRulesByIdsInput

SetPageNumber sets the PageNumber field's value.

func (*ListRulesByIdsInput) SetPageSize

func (s *ListRulesByIdsInput) SetPageSize(v int64) *ListRulesByIdsInput

SetPageSize sets the PageSize field's value.

func (*ListRulesByIdsInput) SetTotalCount

func (s *ListRulesByIdsInput) SetTotalCount(v int64) *ListRulesByIdsInput

SetTotalCount sets the TotalCount field's value.

func (ListRulesByIdsInput) String

func (s ListRulesByIdsInput) String() string

String returns the string representation

type ListRulesByIdsOutput

type ListRulesByIdsOutput struct {
	Data []*RuleVOListForListRulesByIdsOutput `type:"list"`
	// contains filtered or unexported fields
}

func (ListRulesByIdsOutput) GoString

func (s ListRulesByIdsOutput) GoString() string

GoString returns the string representation

func (*ListRulesByIdsOutput) SetData

SetData sets the Data field's value.

func (ListRulesByIdsOutput) String

func (s ListRulesByIdsOutput) String() string

String returns the string representation

type RuleVOListForListRulesByIdsOutput

type RuleVOListForListRulesByIdsOutput struct {
	AccountId *string `type:"string"`

	AlertMethods []*string `type:"list"`

	AlertState *string `type:"string"`

	CheckInterval *int64 `type:"integer"`

	Conditions []*ConditionForListRulesByIdsOutput `type:"list"`

	ContactGroupsIds []*string `type:"list"`

	CreatedAt *string `type:"string"`

	Description *string `type:"string"`

	Dimension *string `type:"string"`

	Dimensions []*string `type:"list"`

	EffectEndAt *string `type:"string"`

	EffectStartAt *string `type:"string"`

	EnableState *string `type:"string"`

	EvaluationCount *int64 `type:"integer"`

	HandleSuggestion *string `type:"string"`

	Id *string `type:"string"`

	Level *string `type:"string"`

	Namespace *string `type:"string"`

	OriginalDimensions map[string][]*string `type:"map"`

	Regions []*string `type:"list"`

	ResourceType *string `type:"string"`

	Resources map[string][]*string `type:"map"`

	RuleExpr *string `type:"string"`

	RuleName *string `type:"string"`

	RuleType *string `type:"string"`

	SilenceTime *int64 `type:"integer"`

	SubNamespace *string `type:"string"`

	TriggerCondition *string `type:"string"`

	UpdatedAt *string `type:"string"`

	WebHook *string `type:"string"`
	// contains filtered or unexported fields
}

func (RuleVOListForListRulesByIdsOutput) GoString

GoString returns the string representation

func (*RuleVOListForListRulesByIdsOutput) SetAccountId

SetAccountId sets the AccountId field's value.

func (*RuleVOListForListRulesByIdsOutput) SetAlertMethods

SetAlertMethods sets the AlertMethods field's value.

func (*RuleVOListForListRulesByIdsOutput) SetAlertState

SetAlertState sets the AlertState field's value.

func (*RuleVOListForListRulesByIdsOutput) SetCheckInterval

SetCheckInterval sets the CheckInterval field's value.

func (*RuleVOListForListRulesByIdsOutput) SetConditions

SetConditions sets the Conditions field's value.

func (*RuleVOListForListRulesByIdsOutput) SetContactGroupsIds

SetContactGroupsIds sets the ContactGroupsIds field's value.

func (*RuleVOListForListRulesByIdsOutput) SetCreatedAt

SetCreatedAt sets the CreatedAt field's value.

func (*RuleVOListForListRulesByIdsOutput) SetDescription

SetDescription sets the Description field's value.

func (*RuleVOListForListRulesByIdsOutput) SetDimension

SetDimension sets the Dimension field's value.

func (*RuleVOListForListRulesByIdsOutput) SetDimensions

SetDimensions sets the Dimensions field's value.

func (*RuleVOListForListRulesByIdsOutput) SetEffectEndAt

SetEffectEndAt sets the EffectEndAt field's value.

func (*RuleVOListForListRulesByIdsOutput) SetEffectStartAt

SetEffectStartAt sets the EffectStartAt field's value.

func (*RuleVOListForListRulesByIdsOutput) SetEnableState

SetEnableState sets the EnableState field's value.

func (*RuleVOListForListRulesByIdsOutput) SetEvaluationCount

SetEvaluationCount sets the EvaluationCount field's value.

func (*RuleVOListForListRulesByIdsOutput) SetHandleSuggestion

SetHandleSuggestion sets the HandleSuggestion field's value.

func (*RuleVOListForListRulesByIdsOutput) SetId

SetId sets the Id field's value.

func (*RuleVOListForListRulesByIdsOutput) SetLevel

SetLevel sets the Level field's value.

func (*RuleVOListForListRulesByIdsOutput) SetNamespace

SetNamespace sets the Namespace field's value.

func (*RuleVOListForListRulesByIdsOutput) SetOriginalDimensions

SetOriginalDimensions sets the OriginalDimensions field's value.

func (*RuleVOListForListRulesByIdsOutput) SetRegions

SetRegions sets the Regions field's value.

func (*RuleVOListForListRulesByIdsOutput) SetResourceType

SetResourceType sets the ResourceType field's value.

func (*RuleVOListForListRulesByIdsOutput) SetResources

SetResources sets the Resources field's value.

func (*RuleVOListForListRulesByIdsOutput) SetRuleExpr

SetRuleExpr sets the RuleExpr field's value.

func (*RuleVOListForListRulesByIdsOutput) SetRuleName

SetRuleName sets the RuleName field's value.

func (*RuleVOListForListRulesByIdsOutput) SetRuleType

SetRuleType sets the RuleType field's value.

func (*RuleVOListForListRulesByIdsOutput) SetSilenceTime

SetSilenceTime sets the SilenceTime field's value.

func (*RuleVOListForListRulesByIdsOutput) SetSubNamespace

SetSubNamespace sets the SubNamespace field's value.

func (*RuleVOListForListRulesByIdsOutput) SetTriggerCondition

SetTriggerCondition sets the TriggerCondition field's value.

func (*RuleVOListForListRulesByIdsOutput) SetUpdatedAt

SetUpdatedAt sets the UpdatedAt field's value.

func (*RuleVOListForListRulesByIdsOutput) SetWebHook

SetWebHook sets the WebHook field's value.

func (RuleVOListForListRulesByIdsOutput) String

String returns the string representation

type UpdateRuleInput

type UpdateRuleInput struct {
	AccountId *string `type:"string"`

	AlertMethods []*string `type:"list"`

	Asc *bool `type:"boolean"`

	CheckInterval *int64 `type:"integer"`

	Conditions []*ConditionForUpdateRuleInput `type:"list"`

	ContactGroupsIds []*string `type:"list"`

	Description *string `type:"string"`

	Dimensions []*string `type:"list"`

	EffectEndAt *string `type:"string"`

	EffectStartAt *string `type:"string"`

	EnableState *string `type:"string"`

	EvaluationCount *int64 `type:"integer"`

	HandleSuggestion *string `type:"string"`

	Id *string `type:"string"`

	Level *string `type:"string"`

	Namespace *string `type:"string"`

	OrderBy *string `type:"string"`

	OriginalDimensions map[string][]*string `type:"map"`

	PageNumber *int64 `type:"integer"`

	PageSize *int64 `type:"integer"`

	Regions []*string `type:"list"`

	RuleExpr *string `type:"string"`

	RuleName *string `type:"string"`

	RuleType *string `type:"string"`

	SilenceTime *int64 `type:"integer"`

	SubNamespace *string `type:"string"`

	TotalCount *int64 `type:"integer"`

	WebHook *string `type:"string"`
	// contains filtered or unexported fields
}

func (UpdateRuleInput) GoString

func (s UpdateRuleInput) GoString() string

GoString returns the string representation

func (*UpdateRuleInput) SetAccountId

func (s *UpdateRuleInput) SetAccountId(v string) *UpdateRuleInput

SetAccountId sets the AccountId field's value.

func (*UpdateRuleInput) SetAlertMethods

func (s *UpdateRuleInput) SetAlertMethods(v []*string) *UpdateRuleInput

SetAlertMethods sets the AlertMethods field's value.

func (*UpdateRuleInput) SetAsc

func (s *UpdateRuleInput) SetAsc(v bool) *UpdateRuleInput

SetAsc sets the Asc field's value.

func (*UpdateRuleInput) SetCheckInterval

func (s *UpdateRuleInput) SetCheckInterval(v int64) *UpdateRuleInput

SetCheckInterval sets the CheckInterval field's value.

func (*UpdateRuleInput) SetConditions

SetConditions sets the Conditions field's value.

func (*UpdateRuleInput) SetContactGroupsIds

func (s *UpdateRuleInput) SetContactGroupsIds(v []*string) *UpdateRuleInput

SetContactGroupsIds sets the ContactGroupsIds field's value.

func (*UpdateRuleInput) SetDescription

func (s *UpdateRuleInput) SetDescription(v string) *UpdateRuleInput

SetDescription sets the Description field's value.

func (*UpdateRuleInput) SetDimensions

func (s *UpdateRuleInput) SetDimensions(v []*string) *UpdateRuleInput

SetDimensions sets the Dimensions field's value.

func (*UpdateRuleInput) SetEffectEndAt

func (s *UpdateRuleInput) SetEffectEndAt(v string) *UpdateRuleInput

SetEffectEndAt sets the EffectEndAt field's value.

func (*UpdateRuleInput) SetEffectStartAt

func (s *UpdateRuleInput) SetEffectStartAt(v string) *UpdateRuleInput

SetEffectStartAt sets the EffectStartAt field's value.

func (*UpdateRuleInput) SetEnableState

func (s *UpdateRuleInput) SetEnableState(v string) *UpdateRuleInput

SetEnableState sets the EnableState field's value.

func (*UpdateRuleInput) SetEvaluationCount

func (s *UpdateRuleInput) SetEvaluationCount(v int64) *UpdateRuleInput

SetEvaluationCount sets the EvaluationCount field's value.

func (*UpdateRuleInput) SetHandleSuggestion

func (s *UpdateRuleInput) SetHandleSuggestion(v string) *UpdateRuleInput

SetHandleSuggestion sets the HandleSuggestion field's value.

func (*UpdateRuleInput) SetId

func (s *UpdateRuleInput) SetId(v string) *UpdateRuleInput

SetId sets the Id field's value.

func (*UpdateRuleInput) SetLevel

func (s *UpdateRuleInput) SetLevel(v string) *UpdateRuleInput

SetLevel sets the Level field's value.

func (*UpdateRuleInput) SetNamespace

func (s *UpdateRuleInput) SetNamespace(v string) *UpdateRuleInput

SetNamespace sets the Namespace field's value.

func (*UpdateRuleInput) SetOrderBy

func (s *UpdateRuleInput) SetOrderBy(v string) *UpdateRuleInput

SetOrderBy sets the OrderBy field's value.

func (*UpdateRuleInput) SetOriginalDimensions

func (s *UpdateRuleInput) SetOriginalDimensions(v map[string][]*string) *UpdateRuleInput

SetOriginalDimensions sets the OriginalDimensions field's value.

func (*UpdateRuleInput) SetPageNumber

func (s *UpdateRuleInput) SetPageNumber(v int64) *UpdateRuleInput

SetPageNumber sets the PageNumber field's value.

func (*UpdateRuleInput) SetPageSize

func (s *UpdateRuleInput) SetPageSize(v int64) *UpdateRuleInput

SetPageSize sets the PageSize field's value.

func (*UpdateRuleInput) SetRegions

func (s *UpdateRuleInput) SetRegions(v []*string) *UpdateRuleInput

SetRegions sets the Regions field's value.

func (*UpdateRuleInput) SetRuleExpr

func (s *UpdateRuleInput) SetRuleExpr(v string) *UpdateRuleInput

SetRuleExpr sets the RuleExpr field's value.

func (*UpdateRuleInput) SetRuleName

func (s *UpdateRuleInput) SetRuleName(v string) *UpdateRuleInput

SetRuleName sets the RuleName field's value.

func (*UpdateRuleInput) SetRuleType

func (s *UpdateRuleInput) SetRuleType(v string) *UpdateRuleInput

SetRuleType sets the RuleType field's value.

func (*UpdateRuleInput) SetSilenceTime

func (s *UpdateRuleInput) SetSilenceTime(v int64) *UpdateRuleInput

SetSilenceTime sets the SilenceTime field's value.

func (*UpdateRuleInput) SetSubNamespace

func (s *UpdateRuleInput) SetSubNamespace(v string) *UpdateRuleInput

SetSubNamespace sets the SubNamespace field's value.

func (*UpdateRuleInput) SetTotalCount

func (s *UpdateRuleInput) SetTotalCount(v int64) *UpdateRuleInput

SetTotalCount sets the TotalCount field's value.

func (*UpdateRuleInput) SetWebHook

func (s *UpdateRuleInput) SetWebHook(v string) *UpdateRuleInput

SetWebHook sets the WebHook field's value.

func (UpdateRuleInput) String

func (s UpdateRuleInput) String() string

String returns the string representation

type UpdateRuleOutput

type UpdateRuleOutput struct {
	Data []*string `type:"list"`
	// contains filtered or unexported fields
}

func (UpdateRuleOutput) GoString

func (s UpdateRuleOutput) GoString() string

GoString returns the string representation

func (*UpdateRuleOutput) SetData

func (s *UpdateRuleOutput) SetData(v []*string) *UpdateRuleOutput

SetData sets the Data field's value.

func (UpdateRuleOutput) String

func (s UpdateRuleOutput) String() string

String returns the string representation

type VOLCOBSERVE

type VOLCOBSERVE struct {
	*client.Client
}

VOLCOBSERVE provides the API operation methods for making requests to VOLC_OBSERVE. See this package's package overview docs for details on the service.

VOLCOBSERVE methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New

New create int can support ssl or region locate set

func (*VOLCOBSERVE) CreateRule

func (c *VOLCOBSERVE) CreateRule(input *CreateRuleInput) (*CreateRuleOutput, error)

CreateRule API operation for VOLC_OBSERVE.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCSTACK API reference guide for VOLC_OBSERVE's API operation CreateRule for usage and error information.

func (*VOLCOBSERVE) CreateRuleCommon

func (c *VOLCOBSERVE) CreateRuleCommon(input *map[string]interface{}) (*map[string]interface{}, error)

CreateRuleCommon API operation for VOLC_OBSERVE.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCSTACK API reference guide for VOLC_OBSERVE's API operation CreateRuleCommon for usage and error information.

func (*VOLCOBSERVE) CreateRuleCommonRequest

func (c *VOLCOBSERVE) CreateRuleCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

CreateRuleCommonRequest generates a "volcengine/request.Request" representing the client's request for the CreateRuleCommon operation. The "output" return value will be populated with the CreateRuleCommon request's response once the request completes successfully.

Use "Send" method on the returned CreateRuleCommon Request to send the API call to the service. the "output" return value is not valid until after CreateRuleCommon Send returns without error.

See CreateRuleCommon for more information on using the CreateRuleCommon API call, and error handling.

// Example sending a request using the CreateRuleCommonRequest method.
req, resp := client.CreateRuleCommonRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*VOLCOBSERVE) CreateRuleCommonWithContext

func (c *VOLCOBSERVE) CreateRuleCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

CreateRuleCommonWithContext is the same as CreateRuleCommon with the addition of the ability to pass a context and additional request options.

See CreateRuleCommon for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*VOLCOBSERVE) CreateRuleRequest

func (c *VOLCOBSERVE) CreateRuleRequest(input *CreateRuleInput) (req *request.Request, output *CreateRuleOutput)

CreateRuleRequest generates a "volcengine/request.Request" representing the client's request for the CreateRule operation. The "output" return value will be populated with the CreateRuleCommon request's response once the request completes successfully.

Use "Send" method on the returned CreateRuleCommon Request to send the API call to the service. the "output" return value is not valid until after CreateRuleCommon Send returns without error.

See CreateRule for more information on using the CreateRule API call, and error handling.

// Example sending a request using the CreateRuleRequest method.
req, resp := client.CreateRuleRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*VOLCOBSERVE) CreateRuleWithContext

func (c *VOLCOBSERVE) CreateRuleWithContext(ctx volcengine.Context, input *CreateRuleInput, opts ...request.Option) (*CreateRuleOutput, error)

CreateRuleWithContext is the same as CreateRule with the addition of the ability to pass a context and additional request options.

See CreateRule for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. Ifthe context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*VOLCOBSERVE) DeleteRulesByIds

func (c *VOLCOBSERVE) DeleteRulesByIds(input *DeleteRulesByIdsInput) (*DeleteRulesByIdsOutput, error)

DeleteRulesByIds API operation for VOLC_OBSERVE.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCSTACK API reference guide for VOLC_OBSERVE's API operation DeleteRulesByIds for usage and error information.

func (*VOLCOBSERVE) DeleteRulesByIdsCommon

func (c *VOLCOBSERVE) DeleteRulesByIdsCommon(input *map[string]interface{}) (*map[string]interface{}, error)

DeleteRulesByIdsCommon API operation for VOLC_OBSERVE.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCSTACK API reference guide for VOLC_OBSERVE's API operation DeleteRulesByIdsCommon for usage and error information.

func (*VOLCOBSERVE) DeleteRulesByIdsCommonRequest

func (c *VOLCOBSERVE) DeleteRulesByIdsCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

DeleteRulesByIdsCommonRequest generates a "volcengine/request.Request" representing the client's request for the DeleteRulesByIdsCommon operation. The "output" return value will be populated with the DeleteRulesByIdsCommon request's response once the request completes successfully.

Use "Send" method on the returned DeleteRulesByIdsCommon Request to send the API call to the service. the "output" return value is not valid until after DeleteRulesByIdsCommon Send returns without error.

See DeleteRulesByIdsCommon for more information on using the DeleteRulesByIdsCommon API call, and error handling.

// Example sending a request using the DeleteRulesByIdsCommonRequest method.
req, resp := client.DeleteRulesByIdsCommonRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*VOLCOBSERVE) DeleteRulesByIdsCommonWithContext

func (c *VOLCOBSERVE) DeleteRulesByIdsCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

DeleteRulesByIdsCommonWithContext is the same as DeleteRulesByIdsCommon with the addition of the ability to pass a context and additional request options.

See DeleteRulesByIdsCommon for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*VOLCOBSERVE) DeleteRulesByIdsRequest

func (c *VOLCOBSERVE) DeleteRulesByIdsRequest(input *DeleteRulesByIdsInput) (req *request.Request, output *DeleteRulesByIdsOutput)

DeleteRulesByIdsRequest generates a "volcengine/request.Request" representing the client's request for the DeleteRulesByIds operation. The "output" return value will be populated with the DeleteRulesByIdsCommon request's response once the request completes successfully.

Use "Send" method on the returned DeleteRulesByIdsCommon Request to send the API call to the service. the "output" return value is not valid until after DeleteRulesByIdsCommon Send returns without error.

See DeleteRulesByIds for more information on using the DeleteRulesByIds API call, and error handling.

// Example sending a request using the DeleteRulesByIdsRequest method.
req, resp := client.DeleteRulesByIdsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*VOLCOBSERVE) DeleteRulesByIdsWithContext

func (c *VOLCOBSERVE) DeleteRulesByIdsWithContext(ctx volcengine.Context, input *DeleteRulesByIdsInput, opts ...request.Option) (*DeleteRulesByIdsOutput, error)

DeleteRulesByIdsWithContext is the same as DeleteRulesByIds with the addition of the ability to pass a context and additional request options.

See DeleteRulesByIds for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. Ifthe context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*VOLCOBSERVE) ListRulesByIds

func (c *VOLCOBSERVE) ListRulesByIds(input *ListRulesByIdsInput) (*ListRulesByIdsOutput, error)

ListRulesByIds API operation for VOLC_OBSERVE.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCSTACK API reference guide for VOLC_OBSERVE's API operation ListRulesByIds for usage and error information.

func (*VOLCOBSERVE) ListRulesByIdsCommon

func (c *VOLCOBSERVE) ListRulesByIdsCommon(input *map[string]interface{}) (*map[string]interface{}, error)

ListRulesByIdsCommon API operation for VOLC_OBSERVE.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCSTACK API reference guide for VOLC_OBSERVE's API operation ListRulesByIdsCommon for usage and error information.

func (*VOLCOBSERVE) ListRulesByIdsCommonRequest

func (c *VOLCOBSERVE) ListRulesByIdsCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

ListRulesByIdsCommonRequest generates a "volcengine/request.Request" representing the client's request for the ListRulesByIdsCommon operation. The "output" return value will be populated with the ListRulesByIdsCommon request's response once the request completes successfully.

Use "Send" method on the returned ListRulesByIdsCommon Request to send the API call to the service. the "output" return value is not valid until after ListRulesByIdsCommon Send returns without error.

See ListRulesByIdsCommon for more information on using the ListRulesByIdsCommon API call, and error handling.

// Example sending a request using the ListRulesByIdsCommonRequest method.
req, resp := client.ListRulesByIdsCommonRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*VOLCOBSERVE) ListRulesByIdsCommonWithContext

func (c *VOLCOBSERVE) ListRulesByIdsCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

ListRulesByIdsCommonWithContext is the same as ListRulesByIdsCommon with the addition of the ability to pass a context and additional request options.

See ListRulesByIdsCommon for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*VOLCOBSERVE) ListRulesByIdsRequest

func (c *VOLCOBSERVE) ListRulesByIdsRequest(input *ListRulesByIdsInput) (req *request.Request, output *ListRulesByIdsOutput)

ListRulesByIdsRequest generates a "volcengine/request.Request" representing the client's request for the ListRulesByIds operation. The "output" return value will be populated with the ListRulesByIdsCommon request's response once the request completes successfully.

Use "Send" method on the returned ListRulesByIdsCommon Request to send the API call to the service. the "output" return value is not valid until after ListRulesByIdsCommon Send returns without error.

See ListRulesByIds for more information on using the ListRulesByIds API call, and error handling.

// Example sending a request using the ListRulesByIdsRequest method.
req, resp := client.ListRulesByIdsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*VOLCOBSERVE) ListRulesByIdsWithContext

func (c *VOLCOBSERVE) ListRulesByIdsWithContext(ctx volcengine.Context, input *ListRulesByIdsInput, opts ...request.Option) (*ListRulesByIdsOutput, error)

ListRulesByIdsWithContext is the same as ListRulesByIds with the addition of the ability to pass a context and additional request options.

See ListRulesByIds for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. Ifthe context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*VOLCOBSERVE) UpdateRule

func (c *VOLCOBSERVE) UpdateRule(input *UpdateRuleInput) (*UpdateRuleOutput, error)

UpdateRule API operation for VOLC_OBSERVE.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCSTACK API reference guide for VOLC_OBSERVE's API operation UpdateRule for usage and error information.

func (*VOLCOBSERVE) UpdateRuleCommon

func (c *VOLCOBSERVE) UpdateRuleCommon(input *map[string]interface{}) (*map[string]interface{}, error)

UpdateRuleCommon API operation for VOLC_OBSERVE.

Returns volcengineerr.Error for service API and SDK errors. Use runtime type assertions with volcengineerr.Error's Code and Message methods to get detailed information about the error.

See the VOLCSTACK API reference guide for VOLC_OBSERVE's API operation UpdateRuleCommon for usage and error information.

func (*VOLCOBSERVE) UpdateRuleCommonRequest

func (c *VOLCOBSERVE) UpdateRuleCommonRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

UpdateRuleCommonRequest generates a "volcengine/request.Request" representing the client's request for the UpdateRuleCommon operation. The "output" return value will be populated with the UpdateRuleCommon request's response once the request completes successfully.

Use "Send" method on the returned UpdateRuleCommon Request to send the API call to the service. the "output" return value is not valid until after UpdateRuleCommon Send returns without error.

See UpdateRuleCommon for more information on using the UpdateRuleCommon API call, and error handling.

// Example sending a request using the UpdateRuleCommonRequest method.
req, resp := client.UpdateRuleCommonRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*VOLCOBSERVE) UpdateRuleCommonWithContext

func (c *VOLCOBSERVE) UpdateRuleCommonWithContext(ctx volcengine.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

UpdateRuleCommonWithContext is the same as UpdateRuleCommon with the addition of the ability to pass a context and additional request options.

See UpdateRuleCommon for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*VOLCOBSERVE) UpdateRuleRequest

func (c *VOLCOBSERVE) UpdateRuleRequest(input *UpdateRuleInput) (req *request.Request, output *UpdateRuleOutput)

UpdateRuleRequest generates a "volcengine/request.Request" representing the client's request for the UpdateRule operation. The "output" return value will be populated with the UpdateRuleCommon request's response once the request completes successfully.

Use "Send" method on the returned UpdateRuleCommon Request to send the API call to the service. the "output" return value is not valid until after UpdateRuleCommon Send returns without error.

See UpdateRule for more information on using the UpdateRule API call, and error handling.

// Example sending a request using the UpdateRuleRequest method.
req, resp := client.UpdateRuleRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

func (*VOLCOBSERVE) UpdateRuleWithContext

func (c *VOLCOBSERVE) UpdateRuleWithContext(ctx volcengine.Context, input *UpdateRuleInput, opts ...request.Option) (*UpdateRuleOutput, error)

UpdateRuleWithContext is the same as UpdateRule with the addition of the ability to pass a context and additional request options.

See UpdateRule for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. Ifthe context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

type VOLCOBSERVEAPI

type VOLCOBSERVEAPI interface {
	CreateRuleCommon(*map[string]interface{}) (*map[string]interface{}, error)
	CreateRuleCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	CreateRuleCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	CreateRule(*CreateRuleInput) (*CreateRuleOutput, error)
	CreateRuleWithContext(volcengine.Context, *CreateRuleInput, ...request.Option) (*CreateRuleOutput, error)
	CreateRuleRequest(*CreateRuleInput) (*request.Request, *CreateRuleOutput)

	DeleteRulesByIdsCommon(*map[string]interface{}) (*map[string]interface{}, error)
	DeleteRulesByIdsCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	DeleteRulesByIdsCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	DeleteRulesByIds(*DeleteRulesByIdsInput) (*DeleteRulesByIdsOutput, error)
	DeleteRulesByIdsWithContext(volcengine.Context, *DeleteRulesByIdsInput, ...request.Option) (*DeleteRulesByIdsOutput, error)
	DeleteRulesByIdsRequest(*DeleteRulesByIdsInput) (*request.Request, *DeleteRulesByIdsOutput)

	ListRulesByIdsCommon(*map[string]interface{}) (*map[string]interface{}, error)
	ListRulesByIdsCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	ListRulesByIdsCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	ListRulesByIds(*ListRulesByIdsInput) (*ListRulesByIdsOutput, error)
	ListRulesByIdsWithContext(volcengine.Context, *ListRulesByIdsInput, ...request.Option) (*ListRulesByIdsOutput, error)
	ListRulesByIdsRequest(*ListRulesByIdsInput) (*request.Request, *ListRulesByIdsOutput)

	UpdateRuleCommon(*map[string]interface{}) (*map[string]interface{}, error)
	UpdateRuleCommonWithContext(volcengine.Context, *map[string]interface{}, ...request.Option) (*map[string]interface{}, error)
	UpdateRuleCommonRequest(*map[string]interface{}) (*request.Request, *map[string]interface{})

	UpdateRule(*UpdateRuleInput) (*UpdateRuleOutput, error)
	UpdateRuleWithContext(volcengine.Context, *UpdateRuleInput, ...request.Option) (*UpdateRuleOutput, error)
	UpdateRuleRequest(*UpdateRuleInput) (*request.Request, *UpdateRuleOutput)
}

VOLCOBSERVEAPI provides an interface to enable mocking the volcobserve.VOLCOBSERVE service client's API operation,

// volcengine sdk func uses an SDK service client to make a request to
// VOLC_OBSERVE.
func myFunc(svc VOLCOBSERVEAPI) bool {
    // Make svc.CreateRule request
}

func main() {
    sess := session.New()
    svc := volcobserve.New(sess)

    myFunc(svc)
}

Jump to

Keyboard shortcuts

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