sls

package
v1.63.4 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 6 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EndpointMap map[string]string

EndpointMap Endpoint Data

View Source
var EndpointType = "central"

EndpointType regional or central

Functions

func GetEndpointMap added in v1.61.144

func GetEndpointMap() map[string]string

GetEndpointMap Get Endpoint Data Map

func GetEndpointType added in v1.61.144

func GetEndpointType() string

GetEndpointType Get Endpoint Type Value

func SetClientProperty added in v1.61.144

func SetClientProperty(client *Client, propertyName string, propertyValue interface{})

SetClientProperty Set Property by Reflect

func SetEndpointDataToClient added in v1.61.144

func SetEndpointDataToClient(client *Client)

SetEndpointDataToClient Set EndpointMap and ENdpointType

Types

type AnalyzeAppLogRequest added in v1.61.144

type AnalyzeAppLogRequest struct {
	*requests.RpcRequest
	AppType        string `position:"Query" name:"AppType"`
	SlsAccessToken string `position:"Query" name:"SlsAccessToken"`
	VariableMap    string `position:"Query" name:"VariableMap"`
	DisplayName    string `position:"Query" name:"DisplayName"`
}

AnalyzeAppLogRequest is the request struct for api AnalyzeAppLog

func CreateAnalyzeAppLogRequest added in v1.61.144

func CreateAnalyzeAppLogRequest() (request *AnalyzeAppLogRequest)

CreateAnalyzeAppLogRequest creates a request to invoke AnalyzeAppLog API

type AnalyzeAppLogResponse added in v1.61.144

type AnalyzeAppLogResponse struct {
	*responses.BaseResponse
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Success   string `json:"Success" xml:"Success"`
}

AnalyzeAppLogResponse is the response struct for api AnalyzeAppLog

func CreateAnalyzeAppLogResponse added in v1.61.144

func CreateAnalyzeAppLogResponse() (response *AnalyzeAppLogResponse)

CreateAnalyzeAppLogResponse creates a response to parse from AnalyzeAppLog response

type AnalyzeProductLogRequest added in v1.61.144

type AnalyzeProductLogRequest struct {
	*requests.RpcRequest
	Project        string           `position:"Query" name:"Project"`
	SlsAccessToken string           `position:"Query" name:"SlsAccessToken"`
	CloudProduct   string           `position:"Query" name:"CloudProduct"`
	ResourceQuota  string           `position:"Query" name:"ResourceQuota"`
	VariableMap    string           `position:"Query" name:"VariableMap"`
	ClientIp       string           `position:"Query" name:"ClientIp"`
	Lang           string           `position:"Query" name:"Lang"`
	Overwrite      requests.Boolean `position:"Query" name:"Overwrite"`
	TTL            requests.Integer `position:"Query" name:"TTL"`
	HotTTL         requests.Integer `position:"Query" name:"HotTTL"`
	Region         string           `position:"Query" name:"Region"`
	Logstore       string           `position:"Query" name:"Logstore"`
}

AnalyzeProductLogRequest is the request struct for api AnalyzeProductLog

func CreateAnalyzeProductLogRequest added in v1.61.144

func CreateAnalyzeProductLogRequest() (request *AnalyzeProductLogRequest)

CreateAnalyzeProductLogRequest creates a request to invoke AnalyzeProductLog API

type AnalyzeProductLogResponse added in v1.61.144

type AnalyzeProductLogResponse struct {
	*responses.BaseResponse
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Success   string `json:"Success" xml:"Success"`
}

AnalyzeProductLogResponse is the response struct for api AnalyzeProductLog

func CreateAnalyzeProductLogResponse added in v1.61.144

func CreateAnalyzeProductLogResponse() (response *AnalyzeProductLogResponse)

CreateAnalyzeProductLogResponse creates a response to parse from AnalyzeProductLog response

type AppModel added in v1.61.144

type AppModel struct {
	DisplayName string `json:"DisplayName" xml:"DisplayName"`
	AppName     string `json:"AppName" xml:"AppName"`
	Config      string `json:"Config" xml:"Config"`
	Uid         int64  `json:"Uid" xml:"Uid"`
}

AppModel is a nested struct in sls response

type Client

type Client struct {
	sdk.Client
}

Client is the sdk client struct, each func corresponds to an OpenAPI

func NewClient

func NewClient() (client *Client, err error)

NewClient creates a sdk client with environment variables

func NewClientWithAccessKey

func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)

NewClientWithAccessKey is a shortcut to create sdk client with accesskey usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithEcsRamRole

func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error)

NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithOptions

func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)

NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential this is the common api to create a sdk client

func NewClientWithProvider added in v1.61.144

func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error)

NewClientWithProvider creates a sdk client with providers usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithRamRoleArn

func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)

NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithRamRoleArnAndPolicy added in v1.61.144

func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error)

NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn and policy usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithRsaKeyPair

func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)

NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func NewClientWithStsToken

func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)

NewClientWithStsToken is a shortcut to create sdk client with sts token usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md

func (*Client) AnalyzeAppLog added in v1.61.144

func (client *Client) AnalyzeAppLog(request *AnalyzeAppLogRequest) (response *AnalyzeAppLogResponse, err error)

AnalyzeAppLog invokes the sls.AnalyzeAppLog API synchronously

func (*Client) AnalyzeAppLogWithCallback added in v1.61.144

func (client *Client) AnalyzeAppLogWithCallback(request *AnalyzeAppLogRequest, callback func(response *AnalyzeAppLogResponse, err error)) <-chan int

AnalyzeAppLogWithCallback invokes the sls.AnalyzeAppLog API asynchronously

func (*Client) AnalyzeAppLogWithChan added in v1.61.144

func (client *Client) AnalyzeAppLogWithChan(request *AnalyzeAppLogRequest) (<-chan *AnalyzeAppLogResponse, <-chan error)

AnalyzeAppLogWithChan invokes the sls.AnalyzeAppLog API asynchronously

func (*Client) AnalyzeProductLog added in v1.61.144

func (client *Client) AnalyzeProductLog(request *AnalyzeProductLogRequest) (response *AnalyzeProductLogResponse, err error)

AnalyzeProductLog invokes the sls.AnalyzeProductLog API synchronously

func (*Client) AnalyzeProductLogWithCallback added in v1.61.144

func (client *Client) AnalyzeProductLogWithCallback(request *AnalyzeProductLogRequest, callback func(response *AnalyzeProductLogResponse, err error)) <-chan int

AnalyzeProductLogWithCallback invokes the sls.AnalyzeProductLog API asynchronously

func (*Client) AnalyzeProductLogWithChan added in v1.61.144

func (client *Client) AnalyzeProductLogWithChan(request *AnalyzeProductLogRequest) (<-chan *AnalyzeProductLogResponse, <-chan error)

AnalyzeProductLogWithChan invokes the sls.AnalyzeProductLog API asynchronously

func (*Client) CreateApp added in v1.61.144

func (client *Client) CreateApp(request *CreateAppRequest) (response *CreateAppResponse, err error)

CreateApp invokes the sls.CreateApp API synchronously

func (*Client) CreateAppWithCallback added in v1.61.144

func (client *Client) CreateAppWithCallback(request *CreateAppRequest, callback func(response *CreateAppResponse, err error)) <-chan int

CreateAppWithCallback invokes the sls.CreateApp API asynchronously

func (*Client) CreateAppWithChan added in v1.61.144

func (client *Client) CreateAppWithChan(request *CreateAppRequest) (<-chan *CreateAppResponse, <-chan error)

CreateAppWithChan invokes the sls.CreateApp API asynchronously

func (*Client) DataExpressionProcess added in v1.62.747

func (client *Client) DataExpressionProcess(request *DataExpressionProcessRequest) (response *DataExpressionProcessResponse, err error)

DataExpressionProcess invokes the sls.DataExpressionProcess API synchronously

func (*Client) DataExpressionProcessWithCallback added in v1.62.747

func (client *Client) DataExpressionProcessWithCallback(request *DataExpressionProcessRequest, callback func(response *DataExpressionProcessResponse, err error)) <-chan int

DataExpressionProcessWithCallback invokes the sls.DataExpressionProcess API asynchronously

func (*Client) DataExpressionProcessWithChan added in v1.62.747

func (client *Client) DataExpressionProcessWithChan(request *DataExpressionProcessRequest) (<-chan *DataExpressionProcessResponse, <-chan error)

DataExpressionProcessWithChan invokes the sls.DataExpressionProcess API asynchronously

func (*Client) DeleteApp added in v1.61.144

func (client *Client) DeleteApp(request *DeleteAppRequest) (response *DeleteAppResponse, err error)

DeleteApp invokes the sls.DeleteApp API synchronously

func (*Client) DeleteAppWithCallback added in v1.61.144

func (client *Client) DeleteAppWithCallback(request *DeleteAppRequest, callback func(response *DeleteAppResponse, err error)) <-chan int

DeleteAppWithCallback invokes the sls.DeleteApp API asynchronously

func (*Client) DeleteAppWithChan added in v1.61.144

func (client *Client) DeleteAppWithChan(request *DeleteAppRequest) (<-chan *DeleteAppResponse, <-chan error)

DeleteAppWithChan invokes the sls.DeleteApp API asynchronously

func (*Client) DescribeApp added in v1.61.144

func (client *Client) DescribeApp(request *DescribeAppRequest) (response *DescribeAppResponse, err error)

DescribeApp invokes the sls.DescribeApp API synchronously

func (*Client) DescribeAppWithCallback added in v1.61.144

func (client *Client) DescribeAppWithCallback(request *DescribeAppRequest, callback func(response *DescribeAppResponse, err error)) <-chan int

DescribeAppWithCallback invokes the sls.DescribeApp API asynchronously

func (*Client) DescribeAppWithChan added in v1.61.144

func (client *Client) DescribeAppWithChan(request *DescribeAppRequest) (<-chan *DescribeAppResponse, <-chan error)

DescribeAppWithChan invokes the sls.DescribeApp API asynchronously

func (*Client) DisableAlert added in v1.61.762

func (client *Client) DisableAlert(request *DisableAlertRequest) (response *DisableAlertResponse, err error)

DisableAlert invokes the sls.DisableAlert API synchronously

func (*Client) DisableAlertWithCallback added in v1.61.762

func (client *Client) DisableAlertWithCallback(request *DisableAlertRequest, callback func(response *DisableAlertResponse, err error)) <-chan int

DisableAlertWithCallback invokes the sls.DisableAlert API asynchronously

func (*Client) DisableAlertWithChan added in v1.61.762

func (client *Client) DisableAlertWithChan(request *DisableAlertRequest) (<-chan *DisableAlertResponse, <-chan error)

DisableAlertWithChan invokes the sls.DisableAlert API asynchronously

func (*Client) EnableAlert added in v1.61.762

func (client *Client) EnableAlert(request *EnableAlertRequest) (response *EnableAlertResponse, err error)

EnableAlert invokes the sls.EnableAlert API synchronously

func (*Client) EnableAlertWithCallback added in v1.61.762

func (client *Client) EnableAlertWithCallback(request *EnableAlertRequest, callback func(response *EnableAlertResponse, err error)) <-chan int

EnableAlertWithCallback invokes the sls.EnableAlert API asynchronously

func (*Client) EnableAlertWithChan added in v1.61.762

func (client *Client) EnableAlertWithChan(request *EnableAlertRequest) (<-chan *EnableAlertResponse, <-chan error)

EnableAlertWithChan invokes the sls.EnableAlert API asynchronously

func (*Client) GetAlert added in v1.61.762

func (client *Client) GetAlert(request *GetAlertRequest) (response *GetAlertResponse, err error)

GetAlert invokes the sls.GetAlert API synchronously

func (*Client) GetAlertHistories added in v1.61.762

func (client *Client) GetAlertHistories(request *GetAlertHistoriesRequest) (response *GetAlertHistoriesResponse, err error)

GetAlertHistories invokes the sls.GetAlertHistories API synchronously

func (*Client) GetAlertHistoriesWithCallback added in v1.61.762

func (client *Client) GetAlertHistoriesWithCallback(request *GetAlertHistoriesRequest, callback func(response *GetAlertHistoriesResponse, err error)) <-chan int

GetAlertHistoriesWithCallback invokes the sls.GetAlertHistories API asynchronously

func (*Client) GetAlertHistoriesWithChan added in v1.61.762

func (client *Client) GetAlertHistoriesWithChan(request *GetAlertHistoriesRequest) (<-chan *GetAlertHistoriesResponse, <-chan error)

GetAlertHistoriesWithChan invokes the sls.GetAlertHistories API asynchronously

func (*Client) GetAlertWithCallback added in v1.61.762

func (client *Client) GetAlertWithCallback(request *GetAlertRequest, callback func(response *GetAlertResponse, err error)) <-chan int

GetAlertWithCallback invokes the sls.GetAlert API asynchronously

func (*Client) GetAlertWithChan added in v1.61.762

func (client *Client) GetAlertWithChan(request *GetAlertRequest) (<-chan *GetAlertResponse, <-chan error)

GetAlertWithChan invokes the sls.GetAlert API asynchronously

func (*Client) GetSlsService added in v1.61.488

func (client *Client) GetSlsService(request *GetSlsServiceRequest) (response *GetSlsServiceResponse, err error)

GetSlsService invokes the sls.GetSlsService API synchronously

func (*Client) GetSlsServiceWithCallback added in v1.61.488

func (client *Client) GetSlsServiceWithCallback(request *GetSlsServiceRequest, callback func(response *GetSlsServiceResponse, err error)) <-chan int

GetSlsServiceWithCallback invokes the sls.GetSlsService API asynchronously

func (*Client) GetSlsServiceWithChan added in v1.61.488

func (client *Client) GetSlsServiceWithChan(request *GetSlsServiceRequest) (<-chan *GetSlsServiceResponse, <-chan error)

GetSlsServiceWithChan invokes the sls.GetSlsService API asynchronously

func (*Client) InitProjectAlertResource added in v1.61.1246

func (client *Client) InitProjectAlertResource(request *InitProjectAlertResourceRequest) (response *InitProjectAlertResourceResponse, err error)

InitProjectAlertResource invokes the sls.InitProjectAlertResource API synchronously

func (*Client) InitProjectAlertResourceWithCallback added in v1.61.1246

func (client *Client) InitProjectAlertResourceWithCallback(request *InitProjectAlertResourceRequest, callback func(response *InitProjectAlertResourceResponse, err error)) <-chan int

InitProjectAlertResourceWithCallback invokes the sls.InitProjectAlertResource API asynchronously

func (*Client) InitProjectAlertResourceWithChan added in v1.61.1246

func (client *Client) InitProjectAlertResourceWithChan(request *InitProjectAlertResourceRequest) (<-chan *InitProjectAlertResourceResponse, <-chan error)

InitProjectAlertResourceWithChan invokes the sls.InitProjectAlertResource API asynchronously

func (*Client) InitUserAlertResource added in v1.61.1246

func (client *Client) InitUserAlertResource(request *InitUserAlertResourceRequest) (response *InitUserAlertResourceResponse, err error)

InitUserAlertResource invokes the sls.InitUserAlertResource API synchronously

func (*Client) InitUserAlertResourceWithCallback added in v1.61.1246

func (client *Client) InitUserAlertResourceWithCallback(request *InitUserAlertResourceRequest, callback func(response *InitUserAlertResourceResponse, err error)) <-chan int

InitUserAlertResourceWithCallback invokes the sls.InitUserAlertResource API asynchronously

func (*Client) InitUserAlertResourceWithChan added in v1.61.1246

func (client *Client) InitUserAlertResourceWithChan(request *InitUserAlertResourceRequest) (<-chan *InitUserAlertResourceResponse, <-chan error)

InitUserAlertResourceWithChan invokes the sls.InitUserAlertResource API asynchronously

func (*Client) OpenSlsService added in v1.61.488

func (client *Client) OpenSlsService(request *OpenSlsServiceRequest) (response *OpenSlsServiceResponse, err error)

OpenSlsService invokes the sls.OpenSlsService API synchronously

func (*Client) OpenSlsServiceWithCallback added in v1.61.488

func (client *Client) OpenSlsServiceWithCallback(request *OpenSlsServiceRequest, callback func(response *OpenSlsServiceResponse, err error)) <-chan int

OpenSlsServiceWithCallback invokes the sls.OpenSlsService API asynchronously

func (*Client) OpenSlsServiceWithChan added in v1.61.488

func (client *Client) OpenSlsServiceWithChan(request *OpenSlsServiceRequest) (<-chan *OpenSlsServiceResponse, <-chan error)

OpenSlsServiceWithChan invokes the sls.OpenSlsService API asynchronously

func (*Client) SetAlertActionPolicy added in v1.61.762

func (client *Client) SetAlertActionPolicy(request *SetAlertActionPolicyRequest) (response *SetAlertActionPolicyResponse, err error)

SetAlertActionPolicy invokes the sls.SetAlertActionPolicy API synchronously

func (*Client) SetAlertActionPolicyWithCallback added in v1.61.762

func (client *Client) SetAlertActionPolicyWithCallback(request *SetAlertActionPolicyRequest, callback func(response *SetAlertActionPolicyResponse, err error)) <-chan int

SetAlertActionPolicyWithCallback invokes the sls.SetAlertActionPolicy API asynchronously

func (*Client) SetAlertActionPolicyWithChan added in v1.61.762

func (client *Client) SetAlertActionPolicyWithChan(request *SetAlertActionPolicyRequest) (<-chan *SetAlertActionPolicyResponse, <-chan error)

SetAlertActionPolicyWithChan invokes the sls.SetAlertActionPolicy API asynchronously

func (*Client) SetAlertCenterResource added in v1.61.762

func (client *Client) SetAlertCenterResource(request *SetAlertCenterResourceRequest) (response *SetAlertCenterResourceResponse, err error)

SetAlertCenterResource invokes the sls.SetAlertCenterResource API synchronously

func (*Client) SetAlertCenterResourceWithCallback added in v1.61.762

func (client *Client) SetAlertCenterResourceWithCallback(request *SetAlertCenterResourceRequest, callback func(response *SetAlertCenterResourceResponse, err error)) <-chan int

SetAlertCenterResourceWithCallback invokes the sls.SetAlertCenterResource API asynchronously

func (*Client) SetAlertCenterResourceWithChan added in v1.61.762

func (client *Client) SetAlertCenterResourceWithChan(request *SetAlertCenterResourceRequest) (<-chan *SetAlertCenterResourceResponse, <-chan error)

SetAlertCenterResourceWithChan invokes the sls.SetAlertCenterResource API asynchronously

func (*Client) SyncAlertGroups added in v1.61.762

func (client *Client) SyncAlertGroups(request *SyncAlertGroupsRequest) (response *SyncAlertGroupsResponse, err error)

SyncAlertGroups invokes the sls.SyncAlertGroups API synchronously

func (*Client) SyncAlertGroupsWithCallback added in v1.61.762

func (client *Client) SyncAlertGroupsWithCallback(request *SyncAlertGroupsRequest, callback func(response *SyncAlertGroupsResponse, err error)) <-chan int

SyncAlertGroupsWithCallback invokes the sls.SyncAlertGroups API asynchronously

func (*Client) SyncAlertGroupsWithChan added in v1.61.762

func (client *Client) SyncAlertGroupsWithChan(request *SyncAlertGroupsRequest) (<-chan *SyncAlertGroupsResponse, <-chan error)

SyncAlertGroupsWithChan invokes the sls.SyncAlertGroups API asynchronously

func (*Client) SyncAlertUsers added in v1.61.762

func (client *Client) SyncAlertUsers(request *SyncAlertUsersRequest) (response *SyncAlertUsersResponse, err error)

SyncAlertUsers invokes the sls.SyncAlertUsers API synchronously

func (*Client) SyncAlertUsersWithCallback added in v1.61.762

func (client *Client) SyncAlertUsersWithCallback(request *SyncAlertUsersRequest, callback func(response *SyncAlertUsersResponse, err error)) <-chan int

SyncAlertUsersWithCallback invokes the sls.SyncAlertUsers API asynchronously

func (*Client) SyncAlertUsersWithChan added in v1.61.762

func (client *Client) SyncAlertUsersWithChan(request *SyncAlertUsersRequest) (<-chan *SyncAlertUsersResponse, <-chan error)

SyncAlertUsersWithChan invokes the sls.SyncAlertUsers API asynchronously

func (*Client) UpdateApp added in v1.61.144

func (client *Client) UpdateApp(request *UpdateAppRequest) (response *UpdateAppResponse, err error)

UpdateApp invokes the sls.UpdateApp API synchronously

func (*Client) UpdateAppWithCallback added in v1.61.144

func (client *Client) UpdateAppWithCallback(request *UpdateAppRequest, callback func(response *UpdateAppResponse, err error)) <-chan int

UpdateAppWithCallback invokes the sls.UpdateApp API asynchronously

func (*Client) UpdateAppWithChan added in v1.61.144

func (client *Client) UpdateAppWithChan(request *UpdateAppRequest) (<-chan *UpdateAppResponse, <-chan error)

UpdateAppWithChan invokes the sls.UpdateApp API asynchronously

type CreateAppRequest added in v1.61.144

type CreateAppRequest struct {
	*requests.RpcRequest
	ClientToken    string `position:"Query" name:"ClientToken"`
	SlsAccessToken string `position:"Query" name:"SlsAccessToken"`
	AppName        string `position:"Query" name:"AppName"`
	DisplayName    string `position:"Query" name:"DisplayName"`
	ClientIp       string `position:"Query" name:"ClientIp"`
	Config         string `position:"Body" name:"Config"`
}

CreateAppRequest is the request struct for api CreateApp

func CreateCreateAppRequest added in v1.61.144

func CreateCreateAppRequest() (request *CreateAppRequest)

CreateCreateAppRequest creates a request to invoke CreateApp API

type CreateAppResponse added in v1.61.144

type CreateAppResponse struct {
	*responses.BaseResponse
	Code      string `json:"Code" xml:"Code"`
	AppName   string `json:"AppName" xml:"AppName"`
	Message   string `json:"Message" xml:"Message"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Success   string `json:"Success" xml:"Success"`
}

CreateAppResponse is the response struct for api CreateApp

func CreateCreateAppResponse added in v1.61.144

func CreateCreateAppResponse() (response *CreateAppResponse)

CreateCreateAppResponse creates a response to parse from CreateApp response

type DataExpressionProcessRequest added in v1.62.747

type DataExpressionProcessRequest struct {
	*requests.RpcRequest
	Method         string `position:"Query" name:"Method"`
	SlsAccessToken string `position:"Query" name:"SlsAccessToken"`
	Detail         string `position:"Query" name:"Detail"`
}

DataExpressionProcessRequest is the request struct for api DataExpressionProcess

func CreateDataExpressionProcessRequest added in v1.62.747

func CreateDataExpressionProcessRequest() (request *DataExpressionProcessRequest)

CreateDataExpressionProcessRequest creates a request to invoke DataExpressionProcess API

type DataExpressionProcessResponse added in v1.62.747

type DataExpressionProcessResponse struct {
	*responses.BaseResponse
}

DataExpressionProcessResponse is the response struct for api DataExpressionProcess

func CreateDataExpressionProcessResponse added in v1.62.747

func CreateDataExpressionProcessResponse() (response *DataExpressionProcessResponse)

CreateDataExpressionProcessResponse creates a response to parse from DataExpressionProcess response

type DeleteAppRequest added in v1.61.144

type DeleteAppRequest struct {
	*requests.RpcRequest
	SlsAccessToken string `position:"Query" name:"SlsAccessToken"`
	AppName        string `position:"Query" name:"AppName"`
	ClientIp       string `position:"Query" name:"ClientIp"`
}

DeleteAppRequest is the request struct for api DeleteApp

func CreateDeleteAppRequest added in v1.61.144

func CreateDeleteAppRequest() (request *DeleteAppRequest)

CreateDeleteAppRequest creates a request to invoke DeleteApp API

type DeleteAppResponse added in v1.61.144

type DeleteAppResponse struct {
	*responses.BaseResponse
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Success   string `json:"Success" xml:"Success"`
}

DeleteAppResponse is the response struct for api DeleteApp

func CreateDeleteAppResponse added in v1.61.144

func CreateDeleteAppResponse() (response *DeleteAppResponse)

CreateDeleteAppResponse creates a response to parse from DeleteApp response

type DescribeAppRequest added in v1.61.144

type DescribeAppRequest struct {
	*requests.RpcRequest
	SlsAccessToken string `position:"Query" name:"SlsAccessToken"`
	AppName        string `position:"Query" name:"AppName"`
	ClientIp       string `position:"Query" name:"ClientIp"`
}

DescribeAppRequest is the request struct for api DescribeApp

func CreateDescribeAppRequest added in v1.61.144

func CreateDescribeAppRequest() (request *DescribeAppRequest)

CreateDescribeAppRequest creates a request to invoke DescribeApp API

type DescribeAppResponse added in v1.61.144

type DescribeAppResponse struct {
	*responses.BaseResponse
	Code      string   `json:"Code" xml:"Code"`
	Message   string   `json:"Message" xml:"Message"`
	RequestId string   `json:"RequestId" xml:"RequestId"`
	Success   string   `json:"Success" xml:"Success"`
	AppModel  AppModel `json:"AppModel" xml:"AppModel"`
}

DescribeAppResponse is the response struct for api DescribeApp

func CreateDescribeAppResponse added in v1.61.144

func CreateDescribeAppResponse() (response *DescribeAppResponse)

CreateDescribeAppResponse creates a response to parse from DescribeApp response

type DisableAlertRequest added in v1.61.762

type DisableAlertRequest struct {
	*requests.RpcRequest
	App            string `position:"Body" name:"App"`
	ProjectName    string `position:"Body" name:"ProjectName"`
	SlsAccessToken string `position:"Query" name:"SlsAccessToken"`
	Endpoint       string `position:"Body" name:"Endpoint"`
	AlertId        string `position:"Body" name:"AlertId"`
}

DisableAlertRequest is the request struct for api DisableAlert

func CreateDisableAlertRequest added in v1.61.762

func CreateDisableAlertRequest() (request *DisableAlertRequest)

CreateDisableAlertRequest creates a request to invoke DisableAlert API

type DisableAlertResponse added in v1.61.762

type DisableAlertResponse struct {
	*responses.BaseResponse
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Success   bool   `json:"Success" xml:"Success"`
}

DisableAlertResponse is the response struct for api DisableAlert

func CreateDisableAlertResponse added in v1.61.762

func CreateDisableAlertResponse() (response *DisableAlertResponse)

CreateDisableAlertResponse creates a response to parse from DisableAlert response

type EnableAlertRequest added in v1.61.762

type EnableAlertRequest struct {
	*requests.RpcRequest
	SlsAccessToken string `position:"Query" name:"SlsAccessToken"`
	Language       string `position:"Body" name:"Language"`
	RuleVersion    string `position:"Body" name:"RuleVersion"`
	Endpoint       string `position:"Body" name:"Endpoint"`
	Tokens         string `position:"Body" name:"Tokens"`
	App            string `position:"Body" name:"App"`
	ProjectName    string `position:"Body" name:"ProjectName"`
	AlertId        string `position:"Body" name:"AlertId"`
	RuleId         string `position:"Body" name:"RuleId"`
	Region         string `position:"Body" name:"Region"`
}

EnableAlertRequest is the request struct for api EnableAlert

func CreateEnableAlertRequest added in v1.61.762

func CreateEnableAlertRequest() (request *EnableAlertRequest)

CreateEnableAlertRequest creates a request to invoke EnableAlert API

type EnableAlertResponse added in v1.61.762

type EnableAlertResponse struct {
	*responses.BaseResponse
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Success   bool   `json:"Success" xml:"Success"`
}

EnableAlertResponse is the response struct for api EnableAlert

func CreateEnableAlertResponse added in v1.61.762

func CreateEnableAlertResponse() (response *EnableAlertResponse)

CreateEnableAlertResponse creates a response to parse from EnableAlert response

type GetAlertHistoriesRequest added in v1.61.762

type GetAlertHistoriesRequest struct {
	*requests.RpcRequest
	Line           requests.Integer `position:"Body" name:"Line"`
	SlsAccessToken string           `position:"Query" name:"SlsAccessToken"`
	ToTs           requests.Integer `position:"Body" name:"ToTs"`
	Endpoint       string           `position:"Body" name:"Endpoint"`
	App            string           `position:"Body" name:"App"`
	FromTs         requests.Integer `position:"Body" name:"FromTs"`
	ProjectName    string           `position:"Body" name:"ProjectName"`
	Offset         requests.Integer `position:"Body" name:"Offset"`
	AlertId        string           `position:"Body" name:"AlertId"`
	Region         string           `position:"Body" name:"Region"`
}

GetAlertHistoriesRequest is the request struct for api GetAlertHistories

func CreateGetAlertHistoriesRequest added in v1.61.762

func CreateGetAlertHistoriesRequest() (request *GetAlertHistoriesRequest)

CreateGetAlertHistoriesRequest creates a request to invoke GetAlertHistories API

type GetAlertHistoriesResponse added in v1.61.762

type GetAlertHistoriesResponse struct {
	*responses.BaseResponse
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	Data      string `json:"Data" xml:"Data"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Success   bool   `json:"Success" xml:"Success"`
}

GetAlertHistoriesResponse is the response struct for api GetAlertHistories

func CreateGetAlertHistoriesResponse added in v1.61.762

func CreateGetAlertHistoriesResponse() (response *GetAlertHistoriesResponse)

CreateGetAlertHistoriesResponse creates a response to parse from GetAlertHistories response

type GetAlertRequest added in v1.61.762

type GetAlertRequest struct {
	*requests.RpcRequest
	App            string `position:"Body" name:"App"`
	ProjectName    string `position:"Body" name:"ProjectName"`
	SlsAccessToken string `position:"Query" name:"SlsAccessToken"`
	Endpoint       string `position:"Body" name:"Endpoint"`
	AlertId        string `position:"Body" name:"AlertId"`
}

GetAlertRequest is the request struct for api GetAlert

func CreateGetAlertRequest added in v1.61.762

func CreateGetAlertRequest() (request *GetAlertRequest)

CreateGetAlertRequest creates a request to invoke GetAlert API

type GetAlertResponse added in v1.61.762

type GetAlertResponse struct {
	*responses.BaseResponse
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	Data      string `json:"Data" xml:"Data"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Success   bool   `json:"Success" xml:"Success"`
}

GetAlertResponse is the response struct for api GetAlert

func CreateGetAlertResponse added in v1.61.762

func CreateGetAlertResponse() (response *GetAlertResponse)

CreateGetAlertResponse creates a response to parse from GetAlert response

type GetSlsServiceRequest added in v1.61.488

type GetSlsServiceRequest struct {
	*requests.RpcRequest
	SlsAccessToken string `position:"Query" name:"SlsAccessToken"`
}

GetSlsServiceRequest is the request struct for api GetSlsService

func CreateGetSlsServiceRequest added in v1.61.488

func CreateGetSlsServiceRequest() (request *GetSlsServiceRequest)

CreateGetSlsServiceRequest creates a request to invoke GetSlsService API

type GetSlsServiceResponse added in v1.61.488

type GetSlsServiceResponse struct {
	*responses.BaseResponse
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Success   bool   `json:"Success" xml:"Success"`
	Enabled   bool   `json:"Enabled" xml:"Enabled"`
	Status    string `json:"Status" xml:"Status"`
}

GetSlsServiceResponse is the response struct for api GetSlsService

func CreateGetSlsServiceResponse added in v1.61.488

func CreateGetSlsServiceResponse() (response *GetSlsServiceResponse)

CreateGetSlsServiceResponse creates a response to parse from GetSlsService response

type InitProjectAlertResourceRequest added in v1.61.1246

type InitProjectAlertResourceRequest struct {
	*requests.RpcRequest
	ProjectName    string `position:"Body" name:"ProjectName"`
	SlsAccessToken string `position:"Query" name:"SlsAccessToken"`
	Region         string `position:"Body" name:"Region"`
}

InitProjectAlertResourceRequest is the request struct for api InitProjectAlertResource

func CreateInitProjectAlertResourceRequest added in v1.61.1246

func CreateInitProjectAlertResourceRequest() (request *InitProjectAlertResourceRequest)

CreateInitProjectAlertResourceRequest creates a request to invoke InitProjectAlertResource API

type InitProjectAlertResourceResponse added in v1.61.1246

type InitProjectAlertResourceResponse struct {
	*responses.BaseResponse
	HttpStatusCode int    `json:"HttpStatusCode" xml:"HttpStatusCode"`
	Code           string `json:"Code" xml:"Code"`
	Message        string `json:"Message" xml:"Message"`
	RequestId      string `json:"RequestId" xml:"RequestId"`
	Success        bool   `json:"Success" xml:"Success"`
}

InitProjectAlertResourceResponse is the response struct for api InitProjectAlertResource

func CreateInitProjectAlertResourceResponse added in v1.61.1246

func CreateInitProjectAlertResourceResponse() (response *InitProjectAlertResourceResponse)

CreateInitProjectAlertResourceResponse creates a response to parse from InitProjectAlertResource response

type InitUserAlertResourceRequest added in v1.61.1246

type InitUserAlertResourceRequest struct {
	*requests.RpcRequest
	App            string `position:"Body" name:"App"`
	SlsAccessToken string `position:"Query" name:"SlsAccessToken"`
	Language       string `position:"Body" name:"Language"`
	Region         string `position:"Body" name:"Region"`
}

InitUserAlertResourceRequest is the request struct for api InitUserAlertResource

func CreateInitUserAlertResourceRequest added in v1.61.1246

func CreateInitUserAlertResourceRequest() (request *InitUserAlertResourceRequest)

CreateInitUserAlertResourceRequest creates a request to invoke InitUserAlertResource API

type InitUserAlertResourceResponse added in v1.61.1246

type InitUserAlertResourceResponse struct {
	*responses.BaseResponse
	HttpStatusCode int    `json:"HttpStatusCode" xml:"HttpStatusCode"`
	Code           string `json:"Code" xml:"Code"`
	Message        string `json:"Message" xml:"Message"`
	RequestId      string `json:"RequestId" xml:"RequestId"`
	Success        bool   `json:"Success" xml:"Success"`
}

InitUserAlertResourceResponse is the response struct for api InitUserAlertResource

func CreateInitUserAlertResourceResponse added in v1.61.1246

func CreateInitUserAlertResourceResponse() (response *InitUserAlertResourceResponse)

CreateInitUserAlertResourceResponse creates a response to parse from InitUserAlertResource response

type OpenSlsServiceRequest added in v1.61.488

type OpenSlsServiceRequest struct {
	*requests.RpcRequest
	SlsAccessToken string `position:"Query" name:"SlsAccessToken"`
}

OpenSlsServiceRequest is the request struct for api OpenSlsService

func CreateOpenSlsServiceRequest added in v1.61.488

func CreateOpenSlsServiceRequest() (request *OpenSlsServiceRequest)

CreateOpenSlsServiceRequest creates a request to invoke OpenSlsService API

type OpenSlsServiceResponse added in v1.61.488

type OpenSlsServiceResponse struct {
	*responses.BaseResponse
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Success   bool   `json:"Success" xml:"Success"`
}

OpenSlsServiceResponse is the response struct for api OpenSlsService

func CreateOpenSlsServiceResponse added in v1.61.488

func CreateOpenSlsServiceResponse() (response *OpenSlsServiceResponse)

CreateOpenSlsServiceResponse creates a response to parse from OpenSlsService response

type SetAlertActionPolicyRequest added in v1.61.762

type SetAlertActionPolicyRequest struct {
	*requests.RpcRequest
	SlsAccessToken string `position:"Query" name:"SlsAccessToken"`
	PolicyId       string `position:"Body" name:"PolicyId"`
	Policy         string `position:"Body" name:"Policy"`
	App            string `position:"Body" name:"App"`
	PolicyName     string `position:"Body" name:"PolicyName"`
}

SetAlertActionPolicyRequest is the request struct for api SetAlertActionPolicy

func CreateSetAlertActionPolicyRequest added in v1.61.762

func CreateSetAlertActionPolicyRequest() (request *SetAlertActionPolicyRequest)

CreateSetAlertActionPolicyRequest creates a request to invoke SetAlertActionPolicy API

type SetAlertActionPolicyResponse added in v1.61.762

type SetAlertActionPolicyResponse struct {
	*responses.BaseResponse
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Success   bool   `json:"Success" xml:"Success"`
}

SetAlertActionPolicyResponse is the response struct for api SetAlertActionPolicy

func CreateSetAlertActionPolicyResponse added in v1.61.762

func CreateSetAlertActionPolicyResponse() (response *SetAlertActionPolicyResponse)

CreateSetAlertActionPolicyResponse creates a response to parse from SetAlertActionPolicy response

type SetAlertCenterResourceRequest added in v1.61.762

type SetAlertCenterResourceRequest struct {
	*requests.RpcRequest
	App            string `position:"Body" name:"App"`
	SlsAccessToken string `position:"Query" name:"SlsAccessToken"`
	Language       string `position:"Body" name:"Language"`
	Region         string `position:"Body" name:"Region"`
}

SetAlertCenterResourceRequest is the request struct for api SetAlertCenterResource

func CreateSetAlertCenterResourceRequest added in v1.61.762

func CreateSetAlertCenterResourceRequest() (request *SetAlertCenterResourceRequest)

CreateSetAlertCenterResourceRequest creates a request to invoke SetAlertCenterResource API

type SetAlertCenterResourceResponse added in v1.61.762

type SetAlertCenterResourceResponse struct {
	*responses.BaseResponse
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Success   bool   `json:"Success" xml:"Success"`
}

SetAlertCenterResourceResponse is the response struct for api SetAlertCenterResource

func CreateSetAlertCenterResourceResponse added in v1.61.762

func CreateSetAlertCenterResourceResponse() (response *SetAlertCenterResourceResponse)

CreateSetAlertCenterResourceResponse creates a response to parse from SetAlertCenterResource response

type SyncAlertGroupsRequest added in v1.61.762

type SyncAlertGroupsRequest struct {
	*requests.RpcRequest
	App            string `position:"Body" name:"App"`
	Groups         string `position:"Body" name:"Groups"`
	SlsAccessToken string `position:"Query" name:"SlsAccessToken"`
}

SyncAlertGroupsRequest is the request struct for api SyncAlertGroups

func CreateSyncAlertGroupsRequest added in v1.61.762

func CreateSyncAlertGroupsRequest() (request *SyncAlertGroupsRequest)

CreateSyncAlertGroupsRequest creates a request to invoke SyncAlertGroups API

type SyncAlertGroupsResponse added in v1.61.762

type SyncAlertGroupsResponse struct {
	*responses.BaseResponse
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	Data      string `json:"Data" xml:"Data"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Success   bool   `json:"Success" xml:"Success"`
}

SyncAlertGroupsResponse is the response struct for api SyncAlertGroups

func CreateSyncAlertGroupsResponse added in v1.61.762

func CreateSyncAlertGroupsResponse() (response *SyncAlertGroupsResponse)

CreateSyncAlertGroupsResponse creates a response to parse from SyncAlertGroups response

type SyncAlertUsersRequest added in v1.61.762

type SyncAlertUsersRequest struct {
	*requests.RpcRequest
	App            string `position:"Body" name:"App"`
	SlsAccessToken string `position:"Query" name:"SlsAccessToken"`
	Users          string `position:"Body" name:"Users"`
}

SyncAlertUsersRequest is the request struct for api SyncAlertUsers

func CreateSyncAlertUsersRequest added in v1.61.762

func CreateSyncAlertUsersRequest() (request *SyncAlertUsersRequest)

CreateSyncAlertUsersRequest creates a request to invoke SyncAlertUsers API

type SyncAlertUsersResponse added in v1.61.762

type SyncAlertUsersResponse struct {
	*responses.BaseResponse
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	Data      string `json:"Data" xml:"Data"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Success   bool   `json:"Success" xml:"Success"`
}

SyncAlertUsersResponse is the response struct for api SyncAlertUsers

func CreateSyncAlertUsersResponse added in v1.61.762

func CreateSyncAlertUsersResponse() (response *SyncAlertUsersResponse)

CreateSyncAlertUsersResponse creates a response to parse from SyncAlertUsers response

type UpdateAppRequest added in v1.61.144

type UpdateAppRequest struct {
	*requests.RpcRequest
	SlsAccessToken string `position:"Query" name:"SlsAccessToken"`
	AppName        string `position:"Query" name:"AppName"`
	DisplayName    string `position:"Query" name:"DisplayName"`
	ClientIp       string `position:"Query" name:"ClientIp"`
	Config         string `position:"Body" name:"Config"`
}

UpdateAppRequest is the request struct for api UpdateApp

func CreateUpdateAppRequest added in v1.61.144

func CreateUpdateAppRequest() (request *UpdateAppRequest)

CreateUpdateAppRequest creates a request to invoke UpdateApp API

type UpdateAppResponse added in v1.61.144

type UpdateAppResponse struct {
	*responses.BaseResponse
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Success   string `json:"Success" xml:"Success"`
}

UpdateAppResponse is the response struct for api UpdateApp

func CreateUpdateAppResponse added in v1.61.144

func CreateUpdateAppResponse() (response *UpdateAppResponse)

CreateUpdateAppResponse creates a response to parse from UpdateApp response

Jump to

Keyboard shortcuts

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