UNPKG

tencentcloud-sdk-nodejs-intl-en

Version:
53 lines (46 loc) 1.86 kB
/* * 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 models = require("./models"); const AbstractClient = require('../../common/abstract_client') const PageByNoParams = models.PageByNoParams; const DescribeAlarmNotifyHistoriesRequest = models.DescribeAlarmNotifyHistoriesRequest; const PageByNoResult = models.PageByNoResult; const DescribeAlarmNotifyHistoriesResponse = models.DescribeAlarmNotifyHistoriesResponse; const AlarmLable = models.AlarmLable; const ChannelsReceivers = models.ChannelsReceivers; const NotifyRelatedNotice = models.NotifyRelatedNotice; const AlarmNotifyHistory = models.AlarmNotifyHistory; /** * monitor client * @class */ class MonitorClient extends AbstractClient { constructor(credential, region, profile) { super("monitor.intl.tencentcloudapi.com", "2023-06-16", credential, region, profile); } /** * Query alarm notification history as needed * @param {DescribeAlarmNotifyHistoriesRequest} req * @param {function(string, DescribeAlarmNotifyHistoriesResponse):void} cb * @public */ DescribeAlarmNotifyHistories(req, cb) { let resp = new DescribeAlarmNotifyHistoriesResponse(); this.request("DescribeAlarmNotifyHistories", req, resp, cb); } } module.exports = MonitorClient;