tencentcloud-sdk-nodejs-intl-en
Version:
1,866 lines (1,575 loc) • 232 kB
JavaScript
/*
* Copyright (c) 2018 Tencent. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
const AbstractModel = require("../../common/abstract_model");
/**
* DescribeApmAssociation response structure.
* @class
*/
class DescribeApmAssociationResponse extends AbstractModel {
constructor(){
super();
/**
* Associated product instance ID.
* @type {ApmAssociation || null}
*/
this.ApmAssociation = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.ApmAssociation) {
let obj = new ApmAssociation();
obj.deserialize(params.ApmAssociation)
this.ApmAssociation = obj;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* CreateApmInstance request structure.
* @class
*/
class CreateApmInstanceRequest extends AbstractModel {
constructor(){
super();
/**
* Business system name.
* @type {string || null}
*/
this.Name = null;
/**
* Business system description information.
* @type {string || null}
*/
this.Description = null;
/**
* Retention period of trace data (unit: days, the default storage duration is 3 days).
* @type {number || null}
*/
this.TraceDuration = null;
/**
* Business system tag list.
* @type {Array.<ApmTag> || null}
*/
this.Tags = null;
/**
* The report quota value of the business system. the default value is 0, indicating no limit on the report quota. (obsolete).
* @type {number || null}
*/
this.SpanDailyCounters = null;
/**
* Billing model of the business system (0: pay-as-you-go, 1: prepaid).
* @type {number || null}
*/
this.PayMode = null;
/**
* Whether it is a free edition business system (0 = paid edition; 1 = tsf restricted free edition; 2 = free edition).
* @type {number || null}
*/
this.Free = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Name = 'Name' in params ? params.Name : null;
this.Description = 'Description' in params ? params.Description : null;
this.TraceDuration = 'TraceDuration' in params ? params.TraceDuration : null;
if (params.Tags) {
this.Tags = new Array();
for (let z in params.Tags) {
let obj = new ApmTag();
obj.deserialize(params.Tags[z]);
this.Tags.push(obj);
}
}
this.SpanDailyCounters = 'SpanDailyCounters' in params ? params.SpanDailyCounters : null;
this.PayMode = 'PayMode' in params ? params.PayMode : null;
this.Free = 'Free' in params ? params.Free : null;
}
}
/**
* DescribeApmVulnerabilityCount response structure.
* @class
*/
class DescribeApmVulnerabilityCountResponse extends AbstractModel {
constructor(){
super();
/**
* Vulnerability metrics as well as number of business systems
* @type {Array.<ApmMetricRecord> || null}
*/
this.VulnerabilityList = null;
/**
* Total number of vulnerabilities
* @type {number || null}
*/
this.VulnerabilityCount = null;
/**
* Number of critical vulnerabilities
* @type {number || null}
*/
this.ImportantVulnerabilityCount = null;
/**
* High-risk vulnerability count
* @type {number || null}
*/
this.CriticalVulnerabilityCount = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.VulnerabilityList) {
this.VulnerabilityList = new Array();
for (let z in params.VulnerabilityList) {
let obj = new ApmMetricRecord();
obj.deserialize(params.VulnerabilityList[z]);
this.VulnerabilityList.push(obj);
}
}
this.VulnerabilityCount = 'VulnerabilityCount' in params ? params.VulnerabilityCount : null;
this.ImportantVulnerabilityCount = 'ImportantVulnerabilityCount' in params ? params.ImportantVulnerabilityCount : null;
this.CriticalVulnerabilityCount = 'CriticalVulnerabilityCount' in params ? params.CriticalVulnerabilityCount : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeServiceOverview response structure.
* @class
*/
class DescribeServiceOverviewResponse extends AbstractModel {
constructor(){
super();
/**
* Indicator result set.
* @type {Array.<ApmMetricRecord> || null}
*/
this.Records = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Records) {
this.Records = new Array();
for (let z in params.Records) {
let obj = new ApmMetricRecord();
obj.deserialize(params.Records[z]);
this.Records.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* Sampling configuration
* @class
*/
class ApmSampleConfig extends AbstractModel {
constructor(){
super();
/**
* Instance ID.
* @type {string || null}
*/
this.InstanceKey = null;
/**
* Service name.
* @type {string || null}
*/
this.ServiceName = null;
/**
* Sampling name
* @type {string || null}
*/
this.SampleName = null;
/**
* API name.
* @type {string || null}
*/
this.OperationName = null;
/**
* Number of spans sampled
* @type {number || null}
*/
this.SpanNum = null;
/**
* Sampling configuration switch. 0: Off; 1: On
* @type {number || null}
*/
this.Status = null;
/**
* Tag array
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<APMKVItem> || null}
*/
this.Tags = null;
/**
* Sampling rate.
* @type {number || null}
*/
this.SampleRate = null;
/**
* Specifies the matching method. 0: exact match (default); 1: prefix match; 2: suffix match.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.OperationType = null;
/**
* Configuration ID.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.Id = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.InstanceKey = 'InstanceKey' in params ? params.InstanceKey : null;
this.ServiceName = 'ServiceName' in params ? params.ServiceName : null;
this.SampleName = 'SampleName' in params ? params.SampleName : null;
this.OperationName = 'OperationName' in params ? params.OperationName : null;
this.SpanNum = 'SpanNum' in params ? params.SpanNum : null;
this.Status = 'Status' in params ? params.Status : null;
if (params.Tags) {
this.Tags = new Array();
for (let z in params.Tags) {
let obj = new APMKVItem();
obj.deserialize(params.Tags[z]);
this.Tags.push(obj);
}
}
this.SampleRate = 'SampleRate' in params ? params.SampleRate : null;
this.OperationType = 'OperationType' in params ? params.OperationType : null;
this.Id = 'Id' in params ? params.Id : null;
}
}
/**
* DescribeApmSQLInjectionDetail response structure.
* @class
*/
class DescribeApmSQLInjectionDetailResponse extends AbstractModel {
constructor(){
super();
/**
* SQL dimension information
* @type {Array.<ApmTag> || null}
*/
this.Tags = null;
/**
* Link information
* @type {Array.<ApmMetricRecord> || null}
*/
this.Records = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Tags) {
this.Tags = new Array();
for (let z in params.Tags) {
let obj = new ApmTag();
obj.deserialize(params.Tags[z]);
this.Tags.push(obj);
}
}
if (params.Records) {
this.Records = new Array();
for (let z in params.Records) {
let obj = new ApmMetricRecord();
obj.deserialize(params.Records[z]);
this.Records.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* Related configurations of the probe APIs.
* @class
*/
class AgentOperationConfigView extends AbstractModel {
constructor(){
super();
/**
* Whether allowlist configuration is enabled for the current API.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {boolean || null}
*/
this.RetentionValid = null;
/**
* Effective when RetentionValid is false. It indicates blocklist configuration in API settings. The APIs specified in the configuration do not support collection.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.IgnoreOperation = null;
/**
* Effective when RetentionValid is true. It indicates allowlist configuration in API settings. Only the APIs specified in the configuration support collection.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.RetentionOperation = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.RetentionValid = 'RetentionValid' in params ? params.RetentionValid : null;
this.IgnoreOperation = 'IgnoreOperation' in params ? params.IgnoreOperation : null;
this.RetentionOperation = 'RetentionOperation' in params ? params.RetentionOperation : null;
}
}
/**
* Contains the quantities of components and healthy nodes in the nodes.
* @class
*/
class SelectorView extends AbstractModel {
constructor(){
super();
/**
* Component Count
Note: This field may return null, indicating that no valid values can be obtained.
* @type {ComponentTopologyView || null}
*/
this.Component = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Component) {
let obj = new ComponentTopologyView();
obj.deserialize(params.Component)
this.Component = obj;
}
}
}
/**
* DescribeApmSampleConfig request structure.
* @class
*/
class DescribeApmSampleConfigRequest extends AbstractModel {
constructor(){
super();
/**
* Business system ID
* @type {string || null}
*/
this.InstanceId = null;
/**
* Sampling rule name.
* @type {string || null}
*/
this.SampleName = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
this.SampleName = 'SampleName' in params ? params.SampleName : null;
}
}
/**
* DescribeApmAllVulCount response structure.
* @class
*/
class DescribeApmAllVulCountResponse extends AbstractModel {
constructor(){
super();
/**
* Vulnerability metrics as well as number of business systems
* @type {Array.<ApmMetricRecord> || null}
*/
this.VulnerabilityList = null;
/**
* Total number of vulnerabilities
* @type {number || null}
*/
this.VulnerabilityCount = null;
/**
* Number of critical vulnerabilities
* @type {number || null}
*/
this.ImportantVulnerabilityCount = null;
/**
* High-risk vulnerability count
* @type {number || null}
*/
this.CriticalVulnerabilityCount = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.VulnerabilityList) {
this.VulnerabilityList = new Array();
for (let z in params.VulnerabilityList) {
let obj = new ApmMetricRecord();
obj.deserialize(params.VulnerabilityList[z]);
this.VulnerabilityList.push(obj);
}
}
this.VulnerabilityCount = 'VulnerabilityCount' in params ? params.VulnerabilityCount : null;
this.ImportantVulnerabilityCount = 'ImportantVulnerabilityCount' in params ? params.ImportantVulnerabilityCount : null;
this.CriticalVulnerabilityCount = 'CriticalVulnerabilityCount' in params ? params.CriticalVulnerabilityCount : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeApmSampleConfig response structure.
* @class
*/
class DescribeApmSampleConfigResponse extends AbstractModel {
constructor(){
super();
/**
* Sampling configuration list
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<ApmSampleConfig> || null}
*/
this.ApmSampleConfigs = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.ApmSampleConfigs) {
this.ApmSampleConfigs = new Array();
for (let z in params.ApmSampleConfigs) {
let obj = new ApmSampleConfig();
obj.deserialize(params.ApmSampleConfigs[z]);
this.ApmSampleConfigs.push(obj);
}
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeServiceOverview request structure.
* @class
*/
class DescribeServiceOverviewRequest extends AbstractModel {
constructor(){
super();
/**
* Metric list.
* @type {Array.<QueryMetricItem> || null}
*/
this.Metrics = null;
/**
* Business system id.
* @type {string || null}
*/
this.InstanceId = null;
/**
* Aggregation dimension.
* @type {Array.<string> || null}
*/
this.GroupBy = null;
/**
* Start time (unit: sec).
* @type {number || null}
*/
this.StartTime = null;
/**
* End time (unit: seconds).
* @type {number || null}
*/
this.EndTime = null;
/**
* Filter criteria.
* @type {Array.<Filter> || null}
*/
this.Filters = null;
/**
* Sorting method
.
Value: fill in.
-Asc: sorts query metrics in ascending order.
- desc: sort query metrics in descending order.
* @type {OrderBy || null}
*/
this.OrderBy = null;
/**
* Page size.
* @type {number || null}
*/
this.Limit = null;
/**
* Paging starting point.
* @type {number || null}
*/
this.Offset = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Metrics) {
this.Metrics = new Array();
for (let z in params.Metrics) {
let obj = new QueryMetricItem();
obj.deserialize(params.Metrics[z]);
this.Metrics.push(obj);
}
}
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
this.GroupBy = 'GroupBy' in params ? params.GroupBy : null;
this.StartTime = 'StartTime' in params ? params.StartTime : null;
this.EndTime = 'EndTime' in params ? params.EndTime : null;
if (params.Filters) {
this.Filters = new Array();
for (let z in params.Filters) {
let obj = new Filter();
obj.deserialize(params.Filters[z]);
this.Filters.push(obj);
}
}
if (params.OrderBy) {
let obj = new OrderBy();
obj.deserialize(params.OrderBy)
this.OrderBy = obj;
}
this.Limit = 'Limit' in params ? params.Limit : null;
this.Offset = 'Offset' in params ? params.Offset : null;
}
}
/**
* DescribeTopologyNew response structure.
* @class
*/
class DescribeTopologyNewResponse extends AbstractModel {
constructor(){
super();
/**
* Node collection.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {Array.<TopologyNode> || null}
*/
this.Nodes = null;
/**
* Edge set.
* @type {Array.<TopologyEdgeNew> || null}
*/
this.Edges = null;
/**
* Whether the topology map is modified
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.TopologyModifyFlag = null;
/**
* Number of nodes.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {SelectorView || null}
*/
this.Selectors = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Nodes) {
this.Nodes = new Array();
for (let z in params.Nodes) {
let obj = new TopologyNode();
obj.deserialize(params.Nodes[z]);
this.Nodes.push(obj);
}
}
if (params.Edges) {
this.Edges = new Array();
for (let z in params.Edges) {
let obj = new TopologyEdgeNew();
obj.deserialize(params.Edges[z]);
this.Edges.push(obj);
}
}
this.TopologyModifyFlag = 'TopologyModifyFlag' in params ? params.TopologyModifyFlag : null;
if (params.Selectors) {
let obj = new SelectorView();
obj.deserialize(params.Selectors)
this.Selectors = obj;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeOPRAllVulCount response structure.
* @class
*/
class DescribeOPRAllVulCountResponse extends AbstractModel {
constructor(){
super();
/**
* Vulnerability metrics as well as number of business systems
* @type {Array.<ApmMetricRecord> || null}
*/
this.VulnerabilityList = null;
/**
* Total number of vulnerabilities
* @type {number || null}
*/
this.VulnerabilityCount = null;
/**
* Number of critical vulnerabilities
* @type {number || null}
*/
this.ImportantVulnerabilityCount = null;
/**
* High-risk vulnerability count
* @type {number || null}
*/
this.CriticalVulnerabilityCount = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.VulnerabilityList) {
this.VulnerabilityList = new Array();
for (let z in params.VulnerabilityList) {
let obj = new ApmMetricRecord();
obj.deserialize(params.VulnerabilityList[z]);
this.VulnerabilityList.push(obj);
}
}
this.VulnerabilityCount = 'VulnerabilityCount' in params ? params.VulnerabilityCount : null;
this.ImportantVulnerabilityCount = 'ImportantVulnerabilityCount' in params ? params.ImportantVulnerabilityCount : null;
this.CriticalVulnerabilityCount = 'CriticalVulnerabilityCount' in params ? params.CriticalVulnerabilityCount : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* ModifyApmApplicationConfig response structure.
* @class
*/
class ModifyApmApplicationConfigResponse extends AbstractModel {
constructor(){
super();
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeApmServiceMetric response structure.
* @class
*/
class DescribeApmServiceMetricResponse extends AbstractModel {
constructor(){
super();
/**
* List of application metrics.
* @type {Array.<ApmServiceMetric> || null}
*/
this.ServiceMetricList = null;
/**
* Number of applications meeting the filtering conditions.
* @type {number || null}
*/
this.TotalCount = null;
/**
* Warning of the abnormal number of applications.
* @type {number || null}
*/
this.WarningErrorCount = null;
/**
* Total number of applications.
* @type {number || null}
*/
this.ApplicationCount = null;
/**
* Page number.
* @type {number || null}
*/
this.Page = null;
/**
* Page size.
* @type {number || null}
*/
this.PageSize = null;
/**
* Indicates the number of abnormal applications.
* @type {number || null}
*/
this.ErrorCount = null;
/**
* Warning of the number of applications.
* @type {number || null}
*/
this.WarningCount = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.ServiceMetricList) {
this.ServiceMetricList = new Array();
for (let z in params.ServiceMetricList) {
let obj = new ApmServiceMetric();
obj.deserialize(params.ServiceMetricList[z]);
this.ServiceMetricList.push(obj);
}
}
this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
this.WarningErrorCount = 'WarningErrorCount' in params ? params.WarningErrorCount : null;
this.ApplicationCount = 'ApplicationCount' in params ? params.ApplicationCount : null;
this.Page = 'Page' in params ? params.Page : null;
this.PageSize = 'PageSize' in params ? params.PageSize : null;
this.ErrorCount = 'ErrorCount' in params ? params.ErrorCount : null;
this.WarningCount = 'WarningCount' in params ? params.WarningCount : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* ModifyApmAssociation request structure.
* @class
*/
class ModifyApmAssociationRequest extends AbstractModel {
constructor(){
super();
/**
* <p>Associated product name, currently only support Prometheus, CKafka</p>
* @type {string || null}
*/
this.ProductName = null;
/**
* <p>Status of the association relationship: // Association relationship status: 1 (enabled), 2 (disabled)</p>
* @type {number || null}
*/
this.Status = null;
/**
* <p>Business system ID</p>
* @type {string || null}
*/
this.InstanceId = null;
/**
* <p>ID of the associated product instance</p>
* @type {string || null}
*/
this.PeerId = null;
/**
* <p>CKafka message topic</p>
* @type {string || null}
*/
this.Topic = null;
/**
* <p>Ckafka message topic</p>
* @type {string || null}
*/
this.MetricTopic = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ProductName = 'ProductName' in params ? params.ProductName : null;
this.Status = 'Status' in params ? params.Status : null;
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
this.PeerId = 'PeerId' in params ? params.PeerId : null;
this.Topic = 'Topic' in params ? params.Topic : null;
this.MetricTopic = 'MetricTopic' in params ? params.MetricTopic : null;
}
}
/**
* DescribeGeneralOTSpanList response structure.
* @class
*/
class DescribeGeneralOTSpanListResponse extends AbstractModel {
constructor(){
super();
/**
* <p>Total number</p>
* @type {number || null}
*/
this.TotalCount = null;
/**
* <p>The Spans field contains all content of the link data. Since the data is compressed, perform the following three steps to restore the original text.</p><ol><li>Decode the text in the Spans field with Base64 to get the compressed byte[].</li><li>Decompress the compressed byte[] with gzip to get the byte array before compression.</li><li>Convert the byte array before compression to text using the UTF-8 character set.</li></ol>
* @type {string || null}
*/
this.Spans = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
this.Spans = 'Spans' in params ? params.Spans : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeApmApplicationConfig response structure.
* @class
*/
class DescribeApmApplicationConfigResponse extends AbstractModel {
constructor(){
super();
/**
* Apm application configuration.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {ApmAppConfig || null}
*/
this.ApmAppConfig = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.ApmAppConfig) {
let obj = new ApmAppConfig();
obj.deserialize(params.ApmAppConfig)
this.ApmAppConfig = obj;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* DescribeApmAssociation request structure.
* @class
*/
class DescribeApmAssociationRequest extends AbstractModel {
constructor(){
super();
/**
* Associated product name. currently only supports Prometheus.
* @type {string || null}
*/
this.ProductName = null;
/**
* Business System Name
* @type {string || null}
*/
this.InstanceId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ProductName = 'ProductName' in params ? params.ProductName : null;
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
}
}
/**
* APM floating-point number type key-value pair.
* @class
*/
class APMKV extends AbstractModel {
constructor(){
super();
/**
* Key value definition.
* @type {string || null}
*/
this.Key = null;
/**
* Value definition.
* @type {number || null}
*/
this.Value = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Key = 'Key' in params ? params.Key : null;
this.Value = 'Value' in params ? params.Value : null;
}
}
/**
* Node location information
* @class
*/
class Position extends AbstractModel {
constructor(){
super();
/**
* Node horizontal coordinate
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.X = null;
/**
* Node vertical coordinate
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.Y = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.X = 'X' in params ? params.X : null;
this.Y = 'Y' in params ? params.Y : null;
}
}
/**
* Contains the quantity of node component types in the view.
* @class
*/
class ComponentTopologyView extends AbstractModel {
constructor(){
super();
/**
* Number of nodes at the service level.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.Service = null;
/**
* Node count of the database.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.Database = null;
/**
* Node count of the message queue.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.MQ = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Service = 'Service' in params ? params.Service : null;
this.Database = 'Database' in params ? params.Database : null;
this.MQ = 'MQ' in params ? params.MQ : null;
}
}
/**
* CreateProfileTask request structure.
* @class
*/
class CreateProfileTaskRequest extends AbstractModel {
constructor(){
super();
/**
* Application name
* @type {string || null}
*/
this.ServiceName = null;
/**
* APM business system ID.
* @type {string || null}
*/
this.InstanceId = null;
/**
* Application instance (online).
* @type {string || null}
*/
this.ServiceInstance = null;
/**
* Event type (cpu, alloc).
* @type {string || null}
*/
this.Event = null;
/**
* Specifies the task duration in milliseconds (ms). value range: 5 to 180 seconds.
* @type {number || null}
*/
this.Duration = null;
/**
* Number of execution. value range: 1-100.
* @type {number || null}
*/
this.AllTimes = null;
/**
* Start timestamp. 0 indicates start from the current time (unit: seconds).
* @type {number || null}
*/
this.StartTime = null;
/**
* Specifies the task execution interval in milliseconds (ms). value range: 10 to 600 seconds. cannot be less than 1.5 times the Duration.
* @type {number || null}
*/
this.TaskInterval = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.ServiceName = 'ServiceName' in params ? params.ServiceName : null;
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
this.ServiceInstance = 'ServiceInstance' in params ? params.ServiceInstance : null;
this.Event = 'Event' in params ? params.Event : null;
this.Duration = 'Duration' in params ? params.Duration : null;
this.AllTimes = 'AllTimes' in params ? params.AllTimes : null;
this.StartTime = 'StartTime' in params ? params.StartTime : null;
this.TaskInterval = 'TaskInterval' in params ? params.TaskInterval : null;
}
}
/**
* DescribeApmVulnerabilityDetail request structure.
* @class
*/
class DescribeApmVulnerabilityDetailRequest extends AbstractModel {
constructor(){
super();
/**
* unix second-level timestamp
* @type {number || null}
*/
this.StartTime = null;
/**
* unix second-level timestamp
* @type {number || null}
*/
this.EndTime = null;
/**
* APM business system ID
* @type {string || null}
*/
this.InstanceId = null;
/**
* Conditional filtering, required service.name, instrumentation.name, version, vul.id
* @type {Array.<Filter> || null}
*/
this.Filters = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.StartTime = 'StartTime' in params ? params.StartTime : null;
this.EndTime = 'EndTime' in params ? params.EndTime : null;
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
if (params.Filters) {
this.Filters = new Array();
for (let z in params.Filters) {
let obj = new Filter();
obj.deserialize(params.Filters[z]);
this.Filters.push(obj);
}
}
}
}
/**
* DeleteApmSampleConfig response structure.
* @class
*/
class DeleteApmSampleConfigResponse extends AbstractModel {
constructor(){
super();
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* Topology edge definition
* @class
*/
class TopologyEdgeNew extends AbstractModel {
constructor(){
super();
/**
* Source node
* @type {string || null}
*/
this.Source = null;
/**
* Edge ID
* @type {string || null}
*/
this.Id = null;
/**
* Edge weight
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.Weight = null;
/**
* Target node
* @type {string || null}
*/
this.Target = null;
/**
* response time
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.Duration = null;
/**
* Error rate
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.ErrRate = null;
/**
* throughput
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.Qps = null;
/**
* Edge type
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Type = null;
/**
* Edge color
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Color = null;
/**
* SQL call count
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.SqlRequestCount = null;
/**
* SQL call error count
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.SqlErrorRequestCount = null;
/**
* Source node type on the edge of the topology diagram. Application/MQ/DB.
* @type {string || null}
*/
this.SourceComp = null;
/**
* Target node type on the edge of the topology diagram. Application/MQ/DB.
* @type {string || null}
*/
this.TargetComp = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Source = 'Source' in params ? params.Source : null;
this.Id = 'Id' in params ? params.Id : null;
this.Weight = 'Weight' in params ? params.Weight : null;
this.Target = 'Target' in params ? params.Target : null;
this.Duration = 'Duration' in params ? params.Duration : null;
this.ErrRate = 'ErrRate' in params ? params.ErrRate : null;
this.Qps = 'Qps' in params ? params.Qps : null;
this.Type = 'Type' in params ? params.Type : null;
this.Color = 'Color' in params ? params.Color : null;
this.SqlRequestCount = 'SqlRequestCount' in params ? params.SqlRequestCount : null;
this.SqlErrorRequestCount = 'SqlErrorRequestCount' in params ? params.SqlErrorRequestCount : null;
this.SourceComp = 'SourceComp' in params ? params.SourceComp : null;
this.TargetComp = 'TargetComp' in params ? params.TargetComp : null;
}
}
/**
* DescribeApmPrometheusRule request structure.
* @class
*/
class DescribeApmPrometheusRuleRequest extends AbstractModel {
constructor(){
super();
/**
* Business system ID
* @type {string || null}
*/
this.InstanceId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
}
}
/**
* CreateApmPrometheusRule response structure.
* @class
*/
class CreateApmPrometheusRuleResponse extends AbstractModel {
constructor(){
super();
/**
* ID of the metric match rule
* @type {number || null}
*/
this.RuleId = null;
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.RuleId = 'RuleId' in params ? params.RuleId : null;
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* TerminateApmInstance response structure.
* @class
*/
class TerminateApmInstanceResponse extends AbstractModel {
constructor(){
super();
/**
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
* @type {string || null}
*/
this.RequestId = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.RequestId = 'RequestId' in params ? params.RequestId : null;
}
}
/**
* Shows the association between the apm business system and prometheus in the return format.
* @class
*/
class ApmPrometheusRules extends AbstractModel {
constructor(){
super();
/**
* Metric match rule ID.
* @type {number || null}
*/
this.Id = null;
/**
* Metric match rule name.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Name = null;
/**
* Applications where the rule takes effect. input an empty string for all applications.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.ServiceName = null;
/**
* Specifies the metric match rule status: 1 (enabled), 2 (disabled).
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.Status = null;
/**
* Specifies the metric match rule.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.MetricNameRule = null;
/**
* Match type: 0 - precision match, 1 - prefix match, 2 - suffix match.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.MetricMatchType = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
this.Id = 'Id' in params ? params.Id : null;
this.Name = 'Name' in params ? params.Name : null;
this.ServiceName = 'ServiceName' in params ? params.ServiceName : null;
this.Status = 'Status' in params ? params.Status : null;
this.MetricNameRule = 'MetricNameRule' in params ? params.MetricNameRule : null;
this.MetricMatchType = 'MetricMatchType' in params ? params.MetricMatchType : null;
}
}
/**
* Metric list cell.
* @class
*/
class ApmMetricRecord extends AbstractModel {
constructor(){
super();
/**
* Field array, used for the query result of indicators.
* @type {Array.<ApmField> || null}
*/
this.Fields = null;
/**
* Tag array, used to distinguish the objects of groupby.
* @type {Array.<ApmTag> || null}
*/
this.Tags = null;
}
/**
* @private
*/
deserialize(params) {
if (!params) {
return;
}
if (params.Fields) {
this.Fields = new Array();
for (let z in params.Fields) {
let obj = new ApmField();
obj.deserialize(params.Fields[z]);
this.Fields.push(obj);
}
}
if (params.Tags) {
this.Tags = new Array();
for (let z in params.Tags) {
let obj = new ApmTag();
obj.deserialize(params.Tags[z]);
this.Tags.push(obj);
}
}
}
}
/**
* Topology graph edge node
* @class
*/
class TopologyNode extends AbstractModel {
constructor(){
super();
/**
* Error rate
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.ErrRate = null;
/**
* Node type.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Kind = null;
/**
* Node name
* @type {string || null}
*/
this.Name = null;
/**
* Node weight
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.Weight = null;
/**
* Node color
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Color = null;
/**
* response time
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.Duration = null;
/**
* throughput
Note: This field may return null, indicating that no valid values can be obtained.
* @type {number || null}
*/
this.Qps = null;
/**
* Node type.
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Type = null;
/**
* Node ID
* @type {string || null}
*/
this.Id = null;
/**
* Node size
Note: This field may return null, indicating that no valid values can be obtained.
* @type {string || null}
*/
this.Size = null;
/**
* Indicate whether the