cloudflare
Version:
The official TypeScript library for the Cloudflare API
42 lines • 2 kB
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from "../../core/resource.mjs";
import * as AvailableAlertsAPI from "./available-alerts.mjs";
import { AvailableAlerts, BaseAvailableAlerts, } from "./available-alerts.mjs";
import * as HistoryAPI from "./history.mjs";
import { BaseHistoryResource, HistoryResource, } from "./history.mjs";
import * as PoliciesAPI from "./policies.mjs";
import { BasePolicies, Policies, } from "./policies.mjs";
import * as SilencesAPI from "./silences.mjs";
import { BaseSilences, Silences, } from "./silences.mjs";
import * as DestinationsAPI from "./destinations/destinations.mjs";
import { BaseDestinations, Destinations } from "./destinations/destinations.mjs";
export var BaseAlerting = /* @__PURE__ */ (() => {
class BaseAlerting extends APIResource {
}
BaseAlerting._key = Object.freeze(['alerting']);
return BaseAlerting;
})();
export var Alerting = /* @__PURE__ */ (() => {
class Alerting extends BaseAlerting {
constructor() {
super(...arguments);
this.availableAlerts = new AvailableAlertsAPI.AvailableAlerts(this._client);
this.destinations = new DestinationsAPI.Destinations(this._client);
this.history = new HistoryAPI.HistoryResource(this._client);
this.policies = new PoliciesAPI.Policies(this._client);
this.silences = new SilencesAPI.Silences(this._client);
}
}
Alerting.AvailableAlerts = AvailableAlerts;
Alerting.BaseAvailableAlerts = BaseAvailableAlerts;
Alerting.Destinations = Destinations;
Alerting.BaseDestinations = BaseDestinations;
Alerting.HistoryResource = HistoryResource;
Alerting.BaseHistoryResource = BaseHistoryResource;
Alerting.Policies = Policies;
Alerting.BasePolicies = BasePolicies;
Alerting.Silences = Silences;
Alerting.BaseSilences = BaseSilences;
return Alerting;
})();
//# sourceMappingURL=alerting.mjs.map