v20210601

package
v1.0.941 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// 操作失败。
	FAILEDOPERATION = "FailedOperation"

	// 鉴权失败。
	FAILEDOPERATION_AUTHENTICATIONFAILED = "FailedOperation.AuthenticationFailed"

	// 接口处理超时。
	FAILEDOPERATION_INNERLOGICTIMEOUT = "FailedOperation.InnerLogicTimeOut"

	// 依赖服务错误。
	FAILEDOPERATION_METACOMPILERERROR = "FailedOperation.MetaCompilerError"

	// 不支持的操作类型。
	FAILEDOPERATION_UNSUPPORTEDOPERATIONTYPE = "FailedOperation.UnSupportedOperationType"

	// 检查运行时失败。
	INTERNALERROR_CHECKRUNTIMEFAILED = "InternalError.CheckRuntimeFailed"

	// connector不存在。
	INTERNALERROR_CONNECTORNOTEXIST = "InternalError.ConnectorNotExist"

	// 获取运行时应用数量失败。
	INTERNALERROR_COUNTRUNTIMEINSTANCESFAILED = "InternalError.CountRuntimeInstancesFailed"

	// 数据库内部错误。
	INTERNALERROR_DATABASEERROR = "InternalError.DatabaseError"

	// 获取运行时应用列表失败。
	INTERNALERROR_LISTRUNTIMEINSTANCESFAILED = "InternalError.ListRuntimeInstancesFailed"

	// 获取运行时列表失败。
	INTERNALERROR_LISTRUNTIMESFAILED = "InternalError.ListRuntimesFailed"

	// 依赖模块metacompiler错误。
	INTERNALERROR_METACOMPILERERROR = "InternalError.MetaCompilerError"

	// rpc调用异常。
	INTERNALERROR_RPCPILOTSERVERERROR = "InternalError.RpcPilotServerError"

	// 指标查询参数错误。
	INVALIDPARAMETERVALUE_INVALIDRUNTIMEMETRICSEARCHCONDITION = "InvalidParameterValue.InvalidRuntimeMetricSearchCondition"

	// 共享运行时不支持此操作。
	INVALIDPARAMETERVALUE_NOTSUPPORTEDACTIONFORPUBLICRUNTIME = "InvalidParameterValue.NotSupportedActionForPublicRuntime"

	// 不支持的Zone。
	INVALIDPARAMETERVALUE_PILOTZONENOTSUPPORTED = "InvalidParameterValue.PilotZoneNotSupported"

	// 应用和实例不匹配。
	INVALIDPARAMETERVALUE_PROJECTANDINSTANCENOTMATCH = "InvalidParameterValue.ProjectAndInstanceNotMatch"

	// 应用实例ID不存在。
	INVALIDPARAMETERVALUE_PROJECTINSTANCENOTFOUND = "InvalidParameterValue.ProjectInstanceNotFound"

	// 运行时已删除。
	INVALIDPARAMETERVALUE_RUNTIMEALREADYDELETED = "InvalidParameterValue.RuntimeAlreadyDeleted"

	// 运行时不存在。
	INVALIDPARAMETERVALUE_RUNTIMEIDNOTEXIST = "InvalidParameterValue.RuntimeIdNotExist"

	// 当前指标不支持查询百分比。
	INVALIDPARAMETERVALUE_RUNTIMEMETRICRATENOTSUPPORT = "InvalidParameterValue.RuntimeMetricRateNotSupport"

	// 运行时命名空间不合法。
	INVALIDPARAMETERVALUE_RUNTIMENAMESPACEINVALID = "InvalidParameterValue.RuntimeNamespaceInvalid"

	// 运行时地域不存在。
	INVALIDPARAMETERVALUE_RUNTIMEZONENOTEXISTED = "InvalidParameterValue.RuntimeZoneNotExisted"

	// 资源不可用。
	RESOURCEUNAVAILABLE = "ResourceUnavailable"
)
View Source
const APIVersion = "2021-06-01"

Variables

This section is empty.

Functions

This section is empty.

Types

type AbstractRuntimeMC

type AbstractRuntimeMC struct {
	// 环境id
	RuntimeId *int64 `json:"RuntimeId,omitnil,omitempty" name:"RuntimeId"`

	// 环境名称,用户输入,同一uin内唯一
	DisplayName *string `json:"DisplayName,omitnil,omitempty" name:"DisplayName"`

	// 环境类型:0: sandbox, 1:shared, 2:private
	Type *int64 `json:"Type,omitnil,omitempty" name:"Type"`

	// 环境所在地域,tianjin,beijiing,guangzhou等
	Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`

	// 环境所在地域,tianjin,beijiing,guangzhou等(同Zone)
	Area *string `json:"Area,omitnil,omitempty" name:"Area"`

	// 环境应用listener地址后缀
	Addr *string `json:"Addr,omitnil,omitempty" name:"Addr"`

	// 环境状态
	Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`

	// 环境过期时间
	ExpiredAt *int64 `json:"ExpiredAt,omitnil,omitempty" name:"ExpiredAt"`

	// 环境运行类型:0:运行时类型、1:api类型
	RuntimeClass *int64 `json:"RuntimeClass,omitnil,omitempty" name:"RuntimeClass"`

	// 是否已在当前环境发布
	// 注意:此字段可能返回 null,表示取不到有效值。
	Deployed *bool `json:"Deployed,omitnil,omitempty" name:"Deployed"`

	// 环境扩展组件是否满足应用要求:0=true, 1=false 表示该应用需要扩展组件0(cdc)以及1(java),但是独立环境有cdc无java,不满足发布要求
	// 注意:此字段可能返回 null,表示取不到有效值。
	MatchExtensions *string `json:"MatchExtensions,omitnil,omitempty" name:"MatchExtensions"`
}

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) GetRuntimeMC

func (c *Client) GetRuntimeMC(request *GetRuntimeMCRequest) (response *GetRuntimeMCResponse, err error)

GetRuntimeMC 获取运行时详情

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_AUTHENTICATIONFAILED = "FailedOperation.AuthenticationFailed"
INTERNALERROR_CHECKRUNTIMEFAILED = "InternalError.CheckRuntimeFailed"
INTERNALERROR_COUNTRUNTIMEINSTANCESFAILED = "InternalError.CountRuntimeInstancesFailed"
INTERNALERROR_DATABASEERROR = "InternalError.DatabaseError"
INTERNALERROR_METACOMPILERERROR = "InternalError.MetaCompilerError"
INTERNALERROR_RPCPILOTSERVERERROR = "InternalError.RpcPilotServerError"
INVALIDPARAMETERVALUE_PILOTZONENOTSUPPORTED = "InvalidParameterValue.PilotZoneNotSupported"
INVALIDPARAMETERVALUE_RUNTIMEALREADYDELETED = "InvalidParameterValue.RuntimeAlreadyDeleted"
INVALIDPARAMETERVALUE_RUNTIMEIDNOTEXIST = "InvalidParameterValue.RuntimeIdNotExist"
INVALIDPARAMETERVALUE_RUNTIMENAMESPACEINVALID = "InvalidParameterValue.RuntimeNamespaceInvalid"
INVALIDPARAMETERVALUE_RUNTIMEZONENOTEXISTED = "InvalidParameterValue.RuntimeZoneNotExisted"

func (*Client) GetRuntimeMCWithContext added in v1.0.324

func (c *Client) GetRuntimeMCWithContext(ctx context.Context, request *GetRuntimeMCRequest) (response *GetRuntimeMCResponse, err error)

GetRuntimeMC 获取运行时详情

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_AUTHENTICATIONFAILED = "FailedOperation.AuthenticationFailed"
INTERNALERROR_CHECKRUNTIMEFAILED = "InternalError.CheckRuntimeFailed"
INTERNALERROR_COUNTRUNTIMEINSTANCESFAILED = "InternalError.CountRuntimeInstancesFailed"
INTERNALERROR_DATABASEERROR = "InternalError.DatabaseError"
INTERNALERROR_METACOMPILERERROR = "InternalError.MetaCompilerError"
INTERNALERROR_RPCPILOTSERVERERROR = "InternalError.RpcPilotServerError"
INVALIDPARAMETERVALUE_PILOTZONENOTSUPPORTED = "InvalidParameterValue.PilotZoneNotSupported"
INVALIDPARAMETERVALUE_RUNTIMEALREADYDELETED = "InvalidParameterValue.RuntimeAlreadyDeleted"
INVALIDPARAMETERVALUE_RUNTIMEIDNOTEXIST = "InvalidParameterValue.RuntimeIdNotExist"
INVALIDPARAMETERVALUE_RUNTIMENAMESPACEINVALID = "InvalidParameterValue.RuntimeNamespaceInvalid"
INVALIDPARAMETERVALUE_RUNTIMEZONENOTEXISTED = "InvalidParameterValue.RuntimeZoneNotExisted"

func (*Client) GetRuntimeResourceMonitorMetricMC

func (c *Client) GetRuntimeResourceMonitorMetricMC(request *GetRuntimeResourceMonitorMetricMCRequest) (response *GetRuntimeResourceMonitorMetricMCResponse, err error)

GetRuntimeResourceMonitorMetricMC 获取运行时资源监控详情,cpu,memory,bandwidth

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_INNERLOGICTIMEOUT = "FailedOperation.InnerLogicTimeOut"
FAILEDOPERATION_UNSUPPORTEDOPERATIONTYPE = "FailedOperation.UnSupportedOperationType"
INTERNALERROR_CHECKRUNTIMEFAILED = "InternalError.CheckRuntimeFailed"
INVALIDPARAMETERVALUE_INVALIDRUNTIMEMETRICSEARCHCONDITION = "InvalidParameterValue.InvalidRuntimeMetricSearchCondition"
INVALIDPARAMETERVALUE_NOTSUPPORTEDACTIONFORPUBLICRUNTIME = "InvalidParameterValue.NotSupportedActionForPublicRuntime"
INVALIDPARAMETERVALUE_PILOTZONENOTSUPPORTED = "InvalidParameterValue.PilotZoneNotSupported"
INVALIDPARAMETERVALUE_RUNTIMEALREADYDELETED = "InvalidParameterValue.RuntimeAlreadyDeleted"
INVALIDPARAMETERVALUE_RUNTIMEIDNOTEXIST = "InvalidParameterValue.RuntimeIdNotExist"
INVALIDPARAMETERVALUE_RUNTIMEMETRICRATENOTSUPPORT = "InvalidParameterValue.RuntimeMetricRateNotSupport"
INVALIDPARAMETERVALUE_RUNTIMENAMESPACEINVALID = "InvalidParameterValue.RuntimeNamespaceInvalid"
INVALIDPARAMETERVALUE_RUNTIMEZONENOTEXISTED = "InvalidParameterValue.RuntimeZoneNotExisted"

func (*Client) GetRuntimeResourceMonitorMetricMCWithContext added in v1.0.324

func (c *Client) GetRuntimeResourceMonitorMetricMCWithContext(ctx context.Context, request *GetRuntimeResourceMonitorMetricMCRequest) (response *GetRuntimeResourceMonitorMetricMCResponse, err error)

GetRuntimeResourceMonitorMetricMC 获取运行时资源监控详情,cpu,memory,bandwidth

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_INNERLOGICTIMEOUT = "FailedOperation.InnerLogicTimeOut"
FAILEDOPERATION_UNSUPPORTEDOPERATIONTYPE = "FailedOperation.UnSupportedOperationType"
INTERNALERROR_CHECKRUNTIMEFAILED = "InternalError.CheckRuntimeFailed"
INVALIDPARAMETERVALUE_INVALIDRUNTIMEMETRICSEARCHCONDITION = "InvalidParameterValue.InvalidRuntimeMetricSearchCondition"
INVALIDPARAMETERVALUE_NOTSUPPORTEDACTIONFORPUBLICRUNTIME = "InvalidParameterValue.NotSupportedActionForPublicRuntime"
INVALIDPARAMETERVALUE_PILOTZONENOTSUPPORTED = "InvalidParameterValue.PilotZoneNotSupported"
INVALIDPARAMETERVALUE_RUNTIMEALREADYDELETED = "InvalidParameterValue.RuntimeAlreadyDeleted"
INVALIDPARAMETERVALUE_RUNTIMEIDNOTEXIST = "InvalidParameterValue.RuntimeIdNotExist"
INVALIDPARAMETERVALUE_RUNTIMEMETRICRATENOTSUPPORT = "InvalidParameterValue.RuntimeMetricRateNotSupport"
INVALIDPARAMETERVALUE_RUNTIMENAMESPACEINVALID = "InvalidParameterValue.RuntimeNamespaceInvalid"
INVALIDPARAMETERVALUE_RUNTIMEZONENOTEXISTED = "InvalidParameterValue.RuntimeZoneNotExisted"

func (*Client) ListDeployableRuntimesMC

func (c *Client) ListDeployableRuntimesMC(request *ListDeployableRuntimesMCRequest) (response *ListDeployableRuntimesMCResponse, err error)

ListDeployableRuntimesMC 返回用户可用的运行时列表,发布应用时返回的运行时环境,仅shared和private运行时,无sandbox运行时,并且只有running/scaling状态的

可能返回的错误码:

FAILEDOPERATION_AUTHENTICATIONFAILED = "FailedOperation.AuthenticationFailed"
FAILEDOPERATION_UNSUPPORTEDOPERATIONTYPE = "FailedOperation.UnSupportedOperationType"
INTERNALERROR_CONNECTORNOTEXIST = "InternalError.ConnectorNotExist"
INTERNALERROR_DATABASEERROR = "InternalError.DatabaseError"
INTERNALERROR_RPCPILOTSERVERERROR = "InternalError.RpcPilotServerError"
INVALIDPARAMETERVALUE_PILOTZONENOTSUPPORTED = "InvalidParameterValue.PilotZoneNotSupported"
INVALIDPARAMETERVALUE_PROJECTANDINSTANCENOTMATCH = "InvalidParameterValue.ProjectAndInstanceNotMatch"
INVALIDPARAMETERVALUE_PROJECTINSTANCENOTFOUND = "InvalidParameterValue.ProjectInstanceNotFound"

func (*Client) ListDeployableRuntimesMCWithContext added in v1.0.324

func (c *Client) ListDeployableRuntimesMCWithContext(ctx context.Context, request *ListDeployableRuntimesMCRequest) (response *ListDeployableRuntimesMCResponse, err error)

ListDeployableRuntimesMC 返回用户可用的运行时列表,发布应用时返回的运行时环境,仅shared和private运行时,无sandbox运行时,并且只有running/scaling状态的

可能返回的错误码:

FAILEDOPERATION_AUTHENTICATIONFAILED = "FailedOperation.AuthenticationFailed"
FAILEDOPERATION_UNSUPPORTEDOPERATIONTYPE = "FailedOperation.UnSupportedOperationType"
INTERNALERROR_CONNECTORNOTEXIST = "InternalError.ConnectorNotExist"
INTERNALERROR_DATABASEERROR = "InternalError.DatabaseError"
INTERNALERROR_RPCPILOTSERVERERROR = "InternalError.RpcPilotServerError"
INVALIDPARAMETERVALUE_PILOTZONENOTSUPPORTED = "InvalidParameterValue.PilotZoneNotSupported"
INVALIDPARAMETERVALUE_PROJECTANDINSTANCENOTMATCH = "InvalidParameterValue.ProjectAndInstanceNotMatch"
INVALIDPARAMETERVALUE_PROJECTINSTANCENOTFOUND = "InvalidParameterValue.ProjectInstanceNotFound"

func (*Client) ListRuntimeDeployedInstancesMC

func (c *Client) ListRuntimeDeployedInstancesMC(request *ListRuntimeDeployedInstancesMCRequest) (response *ListRuntimeDeployedInstancesMCResponse, err error)

ListRuntimeDeployedInstancesMC 获取运行时部署的应用实例列表

可能返回的错误码:

INTERNALERROR_CHECKRUNTIMEFAILED = "InternalError.CheckRuntimeFailed"
INTERNALERROR_DATABASEERROR = "InternalError.DatabaseError"
INTERNALERROR_LISTRUNTIMEINSTANCESFAILED = "InternalError.ListRuntimeInstancesFailed"
INTERNALERROR_METACOMPILERERROR = "InternalError.MetaCompilerError"
INTERNALERROR_RPCPILOTSERVERERROR = "InternalError.RpcPilotServerError"
INVALIDPARAMETERVALUE_PILOTZONENOTSUPPORTED = "InvalidParameterValue.PilotZoneNotSupported"
INVALIDPARAMETERVALUE_RUNTIMEALREADYDELETED = "InvalidParameterValue.RuntimeAlreadyDeleted"
INVALIDPARAMETERVALUE_RUNTIMEIDNOTEXIST = "InvalidParameterValue.RuntimeIdNotExist"
INVALIDPARAMETERVALUE_RUNTIMEZONENOTEXISTED = "InvalidParameterValue.RuntimeZoneNotExisted"

func (*Client) ListRuntimeDeployedInstancesMCWithContext added in v1.0.324

func (c *Client) ListRuntimeDeployedInstancesMCWithContext(ctx context.Context, request *ListRuntimeDeployedInstancesMCRequest) (response *ListRuntimeDeployedInstancesMCResponse, err error)

ListRuntimeDeployedInstancesMC 获取运行时部署的应用实例列表

可能返回的错误码:

INTERNALERROR_CHECKRUNTIMEFAILED = "InternalError.CheckRuntimeFailed"
INTERNALERROR_DATABASEERROR = "InternalError.DatabaseError"
INTERNALERROR_LISTRUNTIMEINSTANCESFAILED = "InternalError.ListRuntimeInstancesFailed"
INTERNALERROR_METACOMPILERERROR = "InternalError.MetaCompilerError"
INTERNALERROR_RPCPILOTSERVERERROR = "InternalError.RpcPilotServerError"
INVALIDPARAMETERVALUE_PILOTZONENOTSUPPORTED = "InvalidParameterValue.PilotZoneNotSupported"
INVALIDPARAMETERVALUE_RUNTIMEALREADYDELETED = "InvalidParameterValue.RuntimeAlreadyDeleted"
INVALIDPARAMETERVALUE_RUNTIMEIDNOTEXIST = "InvalidParameterValue.RuntimeIdNotExist"
INVALIDPARAMETERVALUE_RUNTIMEZONENOTEXISTED = "InvalidParameterValue.RuntimeZoneNotExisted"

func (*Client) ListRuntimesMC

func (c *Client) ListRuntimesMC(request *ListRuntimesMCRequest) (response *ListRuntimesMCResponse, err error)

ListRuntimesMC 返回用户的运行时列表,运行时管理主页使用,包含沙箱、共享运行时及独立运行时环境,不包含已经删除的运行时

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_AUTHENTICATIONFAILED = "FailedOperation.AuthenticationFailed"
FAILEDOPERATION_METACOMPILERERROR = "FailedOperation.MetaCompilerError"
FAILEDOPERATION_UNSUPPORTEDOPERATIONTYPE = "FailedOperation.UnSupportedOperationType"
INTERNALERROR_DATABASEERROR = "InternalError.DatabaseError"
INTERNALERROR_LISTRUNTIMESFAILED = "InternalError.ListRuntimesFailed"
INTERNALERROR_METACOMPILERERROR = "InternalError.MetaCompilerError"
INTERNALERROR_RPCPILOTSERVERERROR = "InternalError.RpcPilotServerError"
INVALIDPARAMETERVALUE_PILOTZONENOTSUPPORTED = "InvalidParameterValue.PilotZoneNotSupported"
RESOURCEUNAVAILABLE = "ResourceUnavailable"

func (*Client) ListRuntimesMCWithContext added in v1.0.324

func (c *Client) ListRuntimesMCWithContext(ctx context.Context, request *ListRuntimesMCRequest) (response *ListRuntimesMCResponse, err error)

ListRuntimesMC 返回用户的运行时列表,运行时管理主页使用,包含沙箱、共享运行时及独立运行时环境,不包含已经删除的运行时

可能返回的错误码:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_AUTHENTICATIONFAILED = "FailedOperation.AuthenticationFailed"
FAILEDOPERATION_METACOMPILERERROR = "FailedOperation.MetaCompilerError"
FAILEDOPERATION_UNSUPPORTEDOPERATIONTYPE = "FailedOperation.UnSupportedOperationType"
INTERNALERROR_DATABASEERROR = "InternalError.DatabaseError"
INTERNALERROR_LISTRUNTIMESFAILED = "InternalError.ListRuntimesFailed"
INTERNALERROR_METACOMPILERERROR = "InternalError.MetaCompilerError"
INTERNALERROR_RPCPILOTSERVERERROR = "InternalError.RpcPilotServerError"
INVALIDPARAMETERVALUE_PILOTZONENOTSUPPORTED = "InvalidParameterValue.PilotZoneNotSupported"
RESOURCEUNAVAILABLE = "ResourceUnavailable"

type GetRuntimeMCRequest

type GetRuntimeMCRequest struct {
	*tchttp.BaseRequest

	// 环境id
	RuntimeId *int64 `json:"RuntimeId,omitnil,omitempty" name:"RuntimeId"`

	// 环境地域
	Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`

	// 环境运行类型:0:运行时类型、1:api类型
	RuntimeClass *int64 `json:"RuntimeClass,omitnil,omitempty" name:"RuntimeClass"`
}

func NewGetRuntimeMCRequest

func NewGetRuntimeMCRequest() (request *GetRuntimeMCRequest)

func (*GetRuntimeMCRequest) FromJsonString

func (r *GetRuntimeMCRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetRuntimeMCRequest) ToJsonString

func (r *GetRuntimeMCRequest) ToJsonString() string

type GetRuntimeMCRequestParams added in v1.0.426

type GetRuntimeMCRequestParams struct {
	// 环境id
	RuntimeId *int64 `json:"RuntimeId,omitnil,omitempty" name:"RuntimeId"`

	// 环境地域
	Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`

	// 环境运行类型:0:运行时类型、1:api类型
	RuntimeClass *int64 `json:"RuntimeClass,omitnil,omitempty" name:"RuntimeClass"`
}

Predefined struct for user

type GetRuntimeMCResponse

type GetRuntimeMCResponse struct {
	*tchttp.BaseResponse
	Response *GetRuntimeMCResponseParams `json:"Response"`
}

func NewGetRuntimeMCResponse

func NewGetRuntimeMCResponse() (response *GetRuntimeMCResponse)

func (*GetRuntimeMCResponse) FromJsonString

func (r *GetRuntimeMCResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetRuntimeMCResponse) ToJsonString

func (r *GetRuntimeMCResponse) ToJsonString() string

type GetRuntimeMCResponseParams added in v1.0.426

type GetRuntimeMCResponseParams struct {
	// 运行时详情
	Runtime *RuntimeMC `json:"Runtime,omitnil,omitempty" name:"Runtime"`

	// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type GetRuntimeResourceMonitorMetricMCRequest

type GetRuntimeResourceMonitorMetricMCRequest struct {
	*tchttp.BaseRequest

	// 运行时id
	RuntimeId *int64 `json:"RuntimeId,omitnil,omitempty" name:"RuntimeId"`

	// 起始时间
	StartTime *int64 `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// 结束时间
	EndTime *int64 `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// 指标类型:0:CPU, 1:MemUsageBytes, 2:K8sWorkloadNetworkReceiveBytesBw, 3:K8sWorkloadNetworkTransmitBytesBw
	MetricType *int64 `json:"MetricType,omitnil,omitempty" name:"MetricType"`

	// 是否返回百分比数值,仅支持CPU,Memory
	RateType *bool `json:"RateType,omitnil,omitempty" name:"RateType"`

	// 采样粒度:60(s), 300(s), 3600(s), 86400(s)
	Interval *int64 `json:"Interval,omitnil,omitempty" name:"Interval"`

	// 环境运行类型:0:运行时类型、1:api类型
	RuntimeClass *int64 `json:"RuntimeClass,omitnil,omitempty" name:"RuntimeClass"`

	// 资源指标聚合类型:0: 环境维度 1:执行引擎维度 2:datatwaypy维度 3.datawayjava维度
	AggregationType *int64 `json:"AggregationType,omitnil,omitempty" name:"AggregationType"`
}

func NewGetRuntimeResourceMonitorMetricMCRequest

func NewGetRuntimeResourceMonitorMetricMCRequest() (request *GetRuntimeResourceMonitorMetricMCRequest)

func (*GetRuntimeResourceMonitorMetricMCRequest) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetRuntimeResourceMonitorMetricMCRequest) ToJsonString

type GetRuntimeResourceMonitorMetricMCRequestParams added in v1.0.426

type GetRuntimeResourceMonitorMetricMCRequestParams struct {
	// 运行时id
	RuntimeId *int64 `json:"RuntimeId,omitnil,omitempty" name:"RuntimeId"`

	// 起始时间
	StartTime *int64 `json:"StartTime,omitnil,omitempty" name:"StartTime"`

	// 结束时间
	EndTime *int64 `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// 指标类型:0:CPU, 1:MemUsageBytes, 2:K8sWorkloadNetworkReceiveBytesBw, 3:K8sWorkloadNetworkTransmitBytesBw
	MetricType *int64 `json:"MetricType,omitnil,omitempty" name:"MetricType"`

	// 是否返回百分比数值,仅支持CPU,Memory
	RateType *bool `json:"RateType,omitnil,omitempty" name:"RateType"`

	// 采样粒度:60(s), 300(s), 3600(s), 86400(s)
	Interval *int64 `json:"Interval,omitnil,omitempty" name:"Interval"`

	// 环境运行类型:0:运行时类型、1:api类型
	RuntimeClass *int64 `json:"RuntimeClass,omitnil,omitempty" name:"RuntimeClass"`

	// 资源指标聚合类型:0: 环境维度 1:执行引擎维度 2:datatwaypy维度 3.datawayjava维度
	AggregationType *int64 `json:"AggregationType,omitnil,omitempty" name:"AggregationType"`
}

Predefined struct for user

type GetRuntimeResourceMonitorMetricMCResponse

type GetRuntimeResourceMonitorMetricMCResponse struct {
	*tchttp.BaseResponse
	Response *GetRuntimeResourceMonitorMetricMCResponseParams `json:"Response"`
}

func NewGetRuntimeResourceMonitorMetricMCResponse

func NewGetRuntimeResourceMonitorMetricMCResponse() (response *GetRuntimeResourceMonitorMetricMCResponse)

func (*GetRuntimeResourceMonitorMetricMCResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetRuntimeResourceMonitorMetricMCResponse) ToJsonString

type GetRuntimeResourceMonitorMetricMCResponseParams added in v1.0.426

type GetRuntimeResourceMonitorMetricMCResponseParams struct {
	// 指标名称,K8sWorkloadCpuCoreUsed,K8sWorkloadMemUsageBytes,K8sWorkloadNetworkReceiveBytesBw,K8sWorkloadNetworkTransmitBytesBw
	MetricType *string `json:"MetricType,omitnil,omitempty" name:"MetricType"`

	// metric数值列表
	Values []*MetricValueMC `json:"Values,omitnil,omitempty" name:"Values"`

	// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ListDeployableRuntimesMCRequest

type ListDeployableRuntimesMCRequest struct {
	*tchttp.BaseRequest

	// 应用id
	ProjectId *int64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// 实例id
	InstanceId *int64 `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// 版本类型 0-pro 1-lite
	PlanType *int64 `json:"PlanType,omitnil,omitempty" name:"PlanType"`

	// 0:应用集成,1:API,2:ETL
	RuntimeClass *int64 `json:"RuntimeClass,omitnil,omitempty" name:"RuntimeClass"`
}

func NewListDeployableRuntimesMCRequest

func NewListDeployableRuntimesMCRequest() (request *ListDeployableRuntimesMCRequest)

func (*ListDeployableRuntimesMCRequest) FromJsonString

func (r *ListDeployableRuntimesMCRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ListDeployableRuntimesMCRequest) ToJsonString

func (r *ListDeployableRuntimesMCRequest) ToJsonString() string

type ListDeployableRuntimesMCRequestParams added in v1.0.426

type ListDeployableRuntimesMCRequestParams struct {
	// 应用id
	ProjectId *int64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// 实例id
	InstanceId *int64 `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// 版本类型 0-pro 1-lite
	PlanType *int64 `json:"PlanType,omitnil,omitempty" name:"PlanType"`

	// 0:应用集成,1:API,2:ETL
	RuntimeClass *int64 `json:"RuntimeClass,omitnil,omitempty" name:"RuntimeClass"`
}

Predefined struct for user

type ListDeployableRuntimesMCResponse

type ListDeployableRuntimesMCResponse struct {
	*tchttp.BaseResponse
	Response *ListDeployableRuntimesMCResponseParams `json:"Response"`
}

func NewListDeployableRuntimesMCResponse

func NewListDeployableRuntimesMCResponse() (response *ListDeployableRuntimesMCResponse)

func (*ListDeployableRuntimesMCResponse) FromJsonString

func (r *ListDeployableRuntimesMCResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ListDeployableRuntimesMCResponse) ToJsonString

func (r *ListDeployableRuntimesMCResponse) ToJsonString() string

type ListDeployableRuntimesMCResponseParams added in v1.0.426

type ListDeployableRuntimesMCResponseParams struct {
	// 运行时列表
	Runtimes []*AbstractRuntimeMC `json:"Runtimes,omitnil,omitempty" name:"Runtimes"`

	// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ListRuntimeDeployedInstancesMCRequest

type ListRuntimeDeployedInstancesMCRequest struct {
	*tchttp.BaseRequest

	// 运行时id
	RuntimeId *int64 `json:"RuntimeId,omitnil,omitempty" name:"RuntimeId"`

	// 最大请求数量
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// 请求偏移量
	Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// 排序类型:1:创建时间排序, 2:更新时间排序(默认)
	SortType *int64 `json:"SortType,omitnil,omitempty" name:"SortType"`

	// 排序方式:asc,desc(默认)
	Sort *string `json:"Sort,omitnil,omitempty" name:"Sort"`

	// 运行时地域
	Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`

	// 1:3.0版本新控制台传1;否则传0
	ApiVersion *int64 `json:"ApiVersion,omitnil,omitempty" name:"ApiVersion"`

	// -1:不按项目筛选,获取所有
	// >=0: 按项目id筛选
	GroupId *int64 `json:"GroupId,omitnil,omitempty" name:"GroupId"`

	// -2: 不按状态筛选,获取所有
	// 0: 运行中
	// 2: 已停止
	Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`

	// 0: 应用集成
	// 1: API管理
	// 2: ETL
	RuntimeClass *int64 `json:"RuntimeClass,omitnil,omitempty" name:"RuntimeClass"`
}

func NewListRuntimeDeployedInstancesMCRequest

func NewListRuntimeDeployedInstancesMCRequest() (request *ListRuntimeDeployedInstancesMCRequest)

func (*ListRuntimeDeployedInstancesMCRequest) FromJsonString

func (r *ListRuntimeDeployedInstancesMCRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ListRuntimeDeployedInstancesMCRequest) ToJsonString

type ListRuntimeDeployedInstancesMCRequestParams added in v1.0.426

type ListRuntimeDeployedInstancesMCRequestParams struct {
	// 运行时id
	RuntimeId *int64 `json:"RuntimeId,omitnil,omitempty" name:"RuntimeId"`

	// 最大请求数量
	Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`

	// 请求偏移量
	Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`

	// 排序类型:1:创建时间排序, 2:更新时间排序(默认)
	SortType *int64 `json:"SortType,omitnil,omitempty" name:"SortType"`

	// 排序方式:asc,desc(默认)
	Sort *string `json:"Sort,omitnil,omitempty" name:"Sort"`

	// 运行时地域
	Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`

	// 1:3.0版本新控制台传1;否则传0
	ApiVersion *int64 `json:"ApiVersion,omitnil,omitempty" name:"ApiVersion"`

	// -1:不按项目筛选,获取所有
	// >=0: 按项目id筛选
	GroupId *int64 `json:"GroupId,omitnil,omitempty" name:"GroupId"`

	// -2: 不按状态筛选,获取所有
	// 0: 运行中
	// 2: 已停止
	Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`

	// 0: 应用集成
	// 1: API管理
	// 2: ETL
	RuntimeClass *int64 `json:"RuntimeClass,omitnil,omitempty" name:"RuntimeClass"`
}

Predefined struct for user

type ListRuntimeDeployedInstancesMCResponse

type ListRuntimeDeployedInstancesMCResponse struct {
	*tchttp.BaseResponse
	Response *ListRuntimeDeployedInstancesMCResponseParams `json:"Response"`
}

func NewListRuntimeDeployedInstancesMCResponse

func NewListRuntimeDeployedInstancesMCResponse() (response *ListRuntimeDeployedInstancesMCResponse)

func (*ListRuntimeDeployedInstancesMCResponse) FromJsonString

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ListRuntimeDeployedInstancesMCResponse) ToJsonString

type ListRuntimeDeployedInstancesMCResponseParams added in v1.0.426

type ListRuntimeDeployedInstancesMCResponseParams struct {
	// 运行时所部属的应用实例列表
	Instances []*RuntimeDeployedInstanceMC `json:"Instances,omitnil,omitempty" name:"Instances"`

	// 满足条件的记录总数,用于分页器
	TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`

	// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type ListRuntimesMCRequest

type ListRuntimesMCRequest struct {
	*tchttp.BaseRequest

	// 环境运行类型:0:运行时类型、1:api类型
	RuntimeClass *int64 `json:"RuntimeClass,omitnil,omitempty" name:"RuntimeClass"`

	// 计划类型:0-pro 1-lite
	PlanType *int64 `json:"PlanType,omitnil,omitempty" name:"PlanType"`
}

func NewListRuntimesMCRequest

func NewListRuntimesMCRequest() (request *ListRuntimesMCRequest)

func (*ListRuntimesMCRequest) FromJsonString

func (r *ListRuntimesMCRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ListRuntimesMCRequest) ToJsonString

func (r *ListRuntimesMCRequest) ToJsonString() string

type ListRuntimesMCRequestParams added in v1.0.426

type ListRuntimesMCRequestParams struct {
	// 环境运行类型:0:运行时类型、1:api类型
	RuntimeClass *int64 `json:"RuntimeClass,omitnil,omitempty" name:"RuntimeClass"`

	// 计划类型:0-pro 1-lite
	PlanType *int64 `json:"PlanType,omitnil,omitempty" name:"PlanType"`
}

Predefined struct for user

type ListRuntimesMCResponse

type ListRuntimesMCResponse struct {
	*tchttp.BaseResponse
	Response *ListRuntimesMCResponseParams `json:"Response"`
}

func NewListRuntimesMCResponse

func NewListRuntimesMCResponse() (response *ListRuntimesMCResponse)

func (*ListRuntimesMCResponse) FromJsonString

func (r *ListRuntimesMCResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ListRuntimesMCResponse) ToJsonString

func (r *ListRuntimesMCResponse) ToJsonString() string

type ListRuntimesMCResponseParams added in v1.0.426

type ListRuntimesMCResponseParams struct {
	// 运行时列表
	Runtimes []*RuntimeMC `json:"Runtimes,omitnil,omitempty" name:"Runtimes"`

	// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type MetricValueMC

type MetricValueMC struct {
	// 时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	Time *int64 `json:"Time,omitnil,omitempty" name:"Time"`

	// 对应的value值
	// 注意:此字段可能返回 null,表示取不到有效值。
	Val *string `json:"Val,omitnil,omitempty" name:"Val"`
}

type RuntimeDeployedInstanceMC

type RuntimeDeployedInstanceMC struct {
	// 项目id
	GroupId *int64 `json:"GroupId,omitnil,omitempty" name:"GroupId"`

	// 项目名称
	GroupName *string `json:"GroupName,omitnil,omitempty" name:"GroupName"`

	// 应用id
	ProjectId *int64 `json:"ProjectId,omitnil,omitempty" name:"ProjectId"`

	// 应用名称
	ProjectName *string `json:"ProjectName,omitnil,omitempty" name:"ProjectName"`

	// 应用实例id
	InstanceId *int64 `json:"InstanceId,omitnil,omitempty" name:"InstanceId"`

	// 应用实例版本
	InstanceVersion *int64 `json:"InstanceVersion,omitnil,omitempty" name:"InstanceVersion"`

	// 应用实例创建时间
	InstanceCreatedAt *int64 `json:"InstanceCreatedAt,omitnil,omitempty" name:"InstanceCreatedAt"`

	// 应用实例部署状态. 0:running, 1:deleting
	Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`

	// 应用实例部署创建时间
	CreatedAt *int64 `json:"CreatedAt,omitnil,omitempty" name:"CreatedAt"`

	// 应用实例部署更新时间
	UpdatedAt *int64 `json:"UpdatedAt,omitnil,omitempty" name:"UpdatedAt"`

	// 应用类型:0:NormalApp普通应用 1:TemplateApp模板应用 2:LightApp轻应用 3:MicroConnTemplate微连接模板 4:MicroConnApp微连接应用
	ProjectType *int64 `json:"ProjectType,omitnil,omitempty" name:"ProjectType"`

	// 应用版本:0:旧版 1:3.0新控制台
	ProjectVersion *int64 `json:"ProjectVersion,omitnil,omitempty" name:"ProjectVersion"`
}

type RuntimeExtensionMC added in v1.0.538

type RuntimeExtensionMC struct {
	// 扩展组件类型:0:cdc 1:dataway-java
	Type *int64 `json:"Type,omitnil,omitempty" name:"Type"`

	// 部署规格vcore数
	Size *float64 `json:"Size,omitnil,omitempty" name:"Size"`

	// 副本数
	Replica *int64 `json:"Replica,omitnil,omitempty" name:"Replica"`

	// 扩展组件名称
	Name *string `json:"Name,omitnil,omitempty" name:"Name"`

	// 状态 1:未启用 2:已启用
	Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`

	// 创建时间
	CreatedAt *int64 `json:"CreatedAt,omitnil,omitempty" name:"CreatedAt"`

	// 修改时间
	UpdatedAt *int64 `json:"UpdatedAt,omitnil,omitempty" name:"UpdatedAt"`
}

type RuntimeMC

type RuntimeMC struct {
	// 环境id
	RuntimeId *int64 `json:"RuntimeId,omitnil,omitempty" name:"RuntimeId"`

	// 主账号uin
	Uin *string `json:"Uin,omitnil,omitempty" name:"Uin"`

	// 环境名称,用户输入,同一uin内唯一
	DisplayName *string `json:"DisplayName,omitnil,omitempty" name:"DisplayName"`

	// 环境所在地域,tianjin,beijiing,guangzhou等
	Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`

	// 环境类型:0: sandbox, 1:shared, 2:private 3: trial
	Type *int64 `json:"Type,omitnil,omitempty" name:"Type"`

	// 运行时状态:1:running, 2:deleting, 3:creating, 4:scaling, 5:unavailable, 6:deleted, 7:errored
	Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`

	// 环境创建时间
	CreatedAt *int64 `json:"CreatedAt,omitnil,omitempty" name:"CreatedAt"`

	// 环境更新时间
	UpdatedAt *int64 `json:"UpdatedAt,omitnil,omitempty" name:"UpdatedAt"`

	// 环境资源配置,worker总配额,0:0vCore0G, 1:1vCore2G, 2:2vCore4G, 4:4vCore8G, 8:8vCore16G, 12:12vCore24G, 16:16vCore32G, 100:unlimited
	WorkerSize *int64 `json:"WorkerSize,omitnil,omitempty" name:"WorkerSize"`

	// 环境资源配置,worker副本数
	WorkerReplica *int64 `json:"WorkerReplica,omitnil,omitempty" name:"WorkerReplica"`

	// 正在运行的应用实例数量
	RunningInstanceCount *int64 `json:"RunningInstanceCount,omitnil,omitempty" name:"RunningInstanceCount"`

	// 已使用cpu核数
	CpuUsed *float64 `json:"CpuUsed,omitnil,omitempty" name:"CpuUsed"`

	// cpu核数上限
	CpuLimit *float64 `json:"CpuLimit,omitnil,omitempty" name:"CpuLimit"`

	// 已使用内存 MB
	MemoryUsed *float64 `json:"MemoryUsed,omitnil,omitempty" name:"MemoryUsed"`

	// 内存上限 MB
	MemoryLimit *float64 `json:"MemoryLimit,omitnil,omitempty" name:"MemoryLimit"`

	// 环境过期时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	ExpiredAt *int64 `json:"ExpiredAt,omitnil,omitempty" name:"ExpiredAt"`

	// 收费类型:0:缺省,1:自助下单页购买(支持续费/升配等操作),2:代销下单页购买
	// 注意:此字段可能返回 null,表示取不到有效值。
	ChargeType *int64 `json:"ChargeType,omitnil,omitempty" name:"ChargeType"`

	// 资源限制类型:0:无限制,1:有限制
	// 注意:此字段可能返回 null,表示取不到有效值。
	ResourceLimitType *int64 `json:"ResourceLimitType,omitnil,omitempty" name:"ResourceLimitType"`

	// 是否开启自动续费
	// 注意:此字段可能返回 null,表示取不到有效值。
	AutoRenewal *bool `json:"AutoRenewal,omitnil,omitempty" name:"AutoRenewal"`

	// 扩展组件列表
	// 注意:此字段可能返回 null,表示取不到有效值。
	WorkerExtensions []*RuntimeExtensionMC `json:"WorkerExtensions,omitnil,omitempty" name:"WorkerExtensions"`

	// 环境类型:0: sandbox, 1:shared, 2:private 3: trial
	// 注意:此字段可能返回 null,表示取不到有效值。
	RuntimeType *int64 `json:"RuntimeType,omitnil,omitempty" name:"RuntimeType"`

	// 环境运行类型:0:运行时类型、1:api类型、2:etl环境
	// 注意:此字段可能返回 null,表示取不到有效值。
	RuntimeClass *int64 `json:"RuntimeClass,omitnil,omitempty" name:"RuntimeClass"`

	// 已使用出带宽 Mbps
	// 注意:此字段可能返回 null,表示取不到有效值。
	BandwidthOutUsed *float64 `json:"BandwidthOutUsed,omitnil,omitempty" name:"BandwidthOutUsed"`

	// 出带宽上限 Mbps
	// 注意:此字段可能返回 null,表示取不到有效值。
	BandwidthOutLimit *float64 `json:"BandwidthOutLimit,omitnil,omitempty" name:"BandwidthOutLimit"`
}

Jump to

Keyboard shortcuts

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