betterstack-alchemy 0.0.0-stage → 0.1.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/LICENSES/Apache-2.0.txt +201 -0
- package/NOTICE +182 -0
- package/README.md +165 -2
- package/lib/Account/Reference.d.ts +89 -0
- package/lib/Account/Reference.d.ts.map +1 -0
- package/lib/Account/Reference.js +90 -0
- package/lib/Account/Reference.js.map +1 -0
- package/lib/Account/Team.d.ts +69 -0
- package/lib/Account/Team.d.ts.map +1 -0
- package/lib/Account/Team.js +74 -0
- package/lib/Account/Team.js.map +1 -0
- package/lib/Account/TeamMember.d.ts +78 -0
- package/lib/Account/TeamMember.d.ts.map +1 -0
- package/lib/Account/TeamMember.js +159 -0
- package/lib/Account/TeamMember.js.map +1 -0
- package/lib/Account/index.d.ts +25 -0
- package/lib/Account/index.d.ts.map +1 -0
- package/lib/Account/index.js +25 -0
- package/lib/Account/index.js.map +1 -0
- package/lib/AuthProvider.d.ts +38 -0
- package/lib/AuthProvider.d.ts.map +1 -0
- package/lib/AuthProvider.js +134 -0
- package/lib/AuthProvider.js.map +1 -0
- package/lib/BetterStackBindings.d.ts +227 -0
- package/lib/BetterStackBindings.d.ts.map +1 -0
- package/lib/BetterStackBindings.js +223 -0
- package/lib/BetterStackBindings.js.map +1 -0
- package/lib/Cloud/Bootstrap.d.ts +20 -0
- package/lib/Cloud/Bootstrap.d.ts.map +1 -0
- package/lib/Cloud/Bootstrap.js +85 -0
- package/lib/Cloud/Bootstrap.js.map +1 -0
- package/lib/Cloud/Certificate.d.ts +97 -0
- package/lib/Cloud/Certificate.d.ts.map +1 -0
- package/lib/Cloud/Certificate.js +96 -0
- package/lib/Cloud/Certificate.js.map +1 -0
- package/lib/Cloud/ClickHouse.d.ts +184 -0
- package/lib/Cloud/ClickHouse.d.ts.map +1 -0
- package/lib/Cloud/ClickHouse.js +179 -0
- package/lib/Cloud/ClickHouse.js.map +1 -0
- package/lib/Cloud/ClickHouseScheduledSnapshot.d.ts +77 -0
- package/lib/Cloud/ClickHouseScheduledSnapshot.d.ts.map +1 -0
- package/lib/Cloud/ClickHouseScheduledSnapshot.js +76 -0
- package/lib/Cloud/ClickHouseScheduledSnapshot.js.map +1 -0
- package/lib/Cloud/ClickHouseSnapshot.d.ts +107 -0
- package/lib/Cloud/ClickHouseSnapshot.d.ts.map +1 -0
- package/lib/Cloud/ClickHouseSnapshot.js +78 -0
- package/lib/Cloud/ClickHouseSnapshot.js.map +1 -0
- package/lib/Cloud/Firewall.d.ts +134 -0
- package/lib/Cloud/Firewall.d.ts.map +1 -0
- package/lib/Cloud/Firewall.js +169 -0
- package/lib/Cloud/Firewall.js.map +1 -0
- package/lib/Cloud/FirewallRule.d.ts +114 -0
- package/lib/Cloud/FirewallRule.d.ts.map +1 -0
- package/lib/Cloud/FirewallRule.js +130 -0
- package/lib/Cloud/FirewallRule.js.map +1 -0
- package/lib/Cloud/InferEnv.d.ts +28 -0
- package/lib/Cloud/InferEnv.d.ts.map +1 -0
- package/lib/Cloud/InferEnv.js +1 -0
- package/lib/Cloud/InferEnv.js.map +1 -0
- package/lib/Cloud/Kafka.d.ts +204 -0
- package/lib/Cloud/Kafka.d.ts.map +1 -0
- package/lib/Cloud/Kafka.js +194 -0
- package/lib/Cloud/Kafka.js.map +1 -0
- package/lib/Cloud/KafkaTopic.d.ts +90 -0
- package/lib/Cloud/KafkaTopic.d.ts.map +1 -0
- package/lib/Cloud/KafkaTopic.js +83 -0
- package/lib/Cloud/KafkaTopic.js.map +1 -0
- package/lib/Cloud/KafkaUser.d.ts +121 -0
- package/lib/Cloud/KafkaUser.d.ts.map +1 -0
- package/lib/Cloud/KafkaUser.js +103 -0
- package/lib/Cloud/KafkaUser.js.map +1 -0
- package/lib/Cloud/KubernetesCluster.d.ts +204 -0
- package/lib/Cloud/KubernetesCluster.d.ts.map +1 -0
- package/lib/Cloud/KubernetesCluster.js +190 -0
- package/lib/Cloud/KubernetesCluster.js.map +1 -0
- package/lib/Cloud/KubernetesNodePool.d.ts +100 -0
- package/lib/Cloud/KubernetesNodePool.d.ts.map +1 -0
- package/lib/Cloud/KubernetesNodePool.js +133 -0
- package/lib/Cloud/KubernetesNodePool.js.map +1 -0
- package/lib/Cloud/KubernetesScheduledSnapshot.d.ts +73 -0
- package/lib/Cloud/KubernetesScheduledSnapshot.d.ts.map +1 -0
- package/lib/Cloud/KubernetesScheduledSnapshot.js +78 -0
- package/lib/Cloud/KubernetesScheduledSnapshot.js.map +1 -0
- package/lib/Cloud/LoadBalancer.d.ts +187 -0
- package/lib/Cloud/LoadBalancer.d.ts.map +1 -0
- package/lib/Cloud/LoadBalancer.js +228 -0
- package/lib/Cloud/LoadBalancer.js.map +1 -0
- package/lib/Cloud/LoadBalancerService.d.ts +116 -0
- package/lib/Cloud/LoadBalancerService.d.ts.map +1 -0
- package/lib/Cloud/LoadBalancerService.js +132 -0
- package/lib/Cloud/LoadBalancerService.js.map +1 -0
- package/lib/Cloud/LoadBalancerTarget.d.ts +110 -0
- package/lib/Cloud/LoadBalancerTarget.d.ts.map +1 -0
- package/lib/Cloud/LoadBalancerTarget.js +138 -0
- package/lib/Cloud/LoadBalancerTarget.js.map +1 -0
- package/lib/Cloud/MountVolume.d.ts +109 -0
- package/lib/Cloud/MountVolume.d.ts.map +1 -0
- package/lib/Cloud/MountVolume.js +59 -0
- package/lib/Cloud/MountVolume.js.map +1 -0
- package/lib/Cloud/MySQL.d.ts +285 -0
- package/lib/Cloud/MySQL.d.ts.map +1 -0
- package/lib/Cloud/MySQL.js +225 -0
- package/lib/Cloud/MySQL.js.map +1 -0
- package/lib/Cloud/MySQLScheduledSnapshot.d.ts +74 -0
- package/lib/Cloud/MySQLScheduledSnapshot.d.ts.map +1 -0
- package/lib/Cloud/MySQLScheduledSnapshot.js +73 -0
- package/lib/Cloud/MySQLScheduledSnapshot.js.map +1 -0
- package/lib/Cloud/MySQLSnapshot.d.ts +107 -0
- package/lib/Cloud/MySQLSnapshot.d.ts.map +1 -0
- package/lib/Cloud/MySQLSnapshot.js +78 -0
- package/lib/Cloud/MySQLSnapshot.js.map +1 -0
- package/lib/Cloud/Network.d.ts +69 -0
- package/lib/Cloud/Network.d.ts.map +1 -0
- package/lib/Cloud/Network.js +80 -0
- package/lib/Cloud/Network.js.map +1 -0
- package/lib/Cloud/ObjectCache.d.ts +226 -0
- package/lib/Cloud/ObjectCache.d.ts.map +1 -0
- package/lib/Cloud/ObjectCache.js +258 -0
- package/lib/Cloud/ObjectCache.js.map +1 -0
- package/lib/Cloud/ObjectCacheBucket.d.ts +112 -0
- package/lib/Cloud/ObjectCacheBucket.d.ts.map +1 -0
- package/lib/Cloud/ObjectCacheBucket.js +123 -0
- package/lib/Cloud/ObjectCacheBucket.js.map +1 -0
- package/lib/Cloud/Otlp.d.ts +93 -0
- package/lib/Cloud/Otlp.d.ts.map +1 -0
- package/lib/Cloud/Otlp.js +79 -0
- package/lib/Cloud/Otlp.js.map +1 -0
- package/lib/Cloud/PlacementGroup.d.ts +85 -0
- package/lib/Cloud/PlacementGroup.d.ts.map +1 -0
- package/lib/Cloud/PlacementGroup.js +86 -0
- package/lib/Cloud/PlacementGroup.js.map +1 -0
- package/lib/Cloud/Postgres.d.ts +331 -0
- package/lib/Cloud/Postgres.d.ts.map +1 -0
- package/lib/Cloud/Postgres.js +255 -0
- package/lib/Cloud/Postgres.js.map +1 -0
- package/lib/Cloud/PostgresDatabase.d.ts +77 -0
- package/lib/Cloud/PostgresDatabase.d.ts.map +1 -0
- package/lib/Cloud/PostgresDatabase.js +79 -0
- package/lib/Cloud/PostgresDatabase.js.map +1 -0
- package/lib/Cloud/PostgresScheduledSnapshot.d.ts +74 -0
- package/lib/Cloud/PostgresScheduledSnapshot.d.ts.map +1 -0
- package/lib/Cloud/PostgresScheduledSnapshot.js +73 -0
- package/lib/Cloud/PostgresScheduledSnapshot.js.map +1 -0
- package/lib/Cloud/PostgresSnapshot.d.ts +107 -0
- package/lib/Cloud/PostgresSnapshot.d.ts.map +1 -0
- package/lib/Cloud/PostgresSnapshot.js +78 -0
- package/lib/Cloud/PostgresSnapshot.js.map +1 -0
- package/lib/Cloud/PostgresUser.d.ts +118 -0
- package/lib/Cloud/PostgresUser.d.ts.map +1 -0
- package/lib/Cloud/PostgresUser.js +102 -0
- package/lib/Cloud/PostgresUser.js.map +1 -0
- package/lib/Cloud/Reference.d.ts +508 -0
- package/lib/Cloud/Reference.d.ts.map +1 -0
- package/lib/Cloud/Reference.js +542 -0
- package/lib/Cloud/Reference.js.map +1 -0
- package/lib/Cloud/ReservedIp.d.ts +113 -0
- package/lib/Cloud/ReservedIp.d.ts.map +1 -0
- package/lib/Cloud/ReservedIp.js +146 -0
- package/lib/Cloud/ReservedIp.js.map +1 -0
- package/lib/Cloud/ScheduledSnapshot.d.ts +49 -0
- package/lib/Cloud/ScheduledSnapshot.d.ts.map +1 -0
- package/lib/Cloud/ScheduledSnapshot.js +43 -0
- package/lib/Cloud/ScheduledSnapshot.js.map +1 -0
- package/lib/Cloud/ScheduledVolumeSnapshot.d.ts +48 -0
- package/lib/Cloud/ScheduledVolumeSnapshot.d.ts.map +1 -0
- package/lib/Cloud/ScheduledVolumeSnapshot.js +42 -0
- package/lib/Cloud/ScheduledVolumeSnapshot.js.map +1 -0
- package/lib/Cloud/Server.d.ts +375 -0
- package/lib/Cloud/Server.d.ts.map +1 -0
- package/lib/Cloud/Server.js +966 -0
- package/lib/Cloud/Server.js.map +1 -0
- package/lib/Cloud/ServerPool.d.ts +64 -0
- package/lib/Cloud/ServerPool.d.ts.map +1 -0
- package/lib/Cloud/ServerPool.js +59 -0
- package/lib/Cloud/ServerPool.js.map +1 -0
- package/lib/Cloud/ServerPrivateIp.d.ts +62 -0
- package/lib/Cloud/ServerPrivateIp.d.ts.map +1 -0
- package/lib/Cloud/ServerPrivateIp.js +68 -0
- package/lib/Cloud/ServerPrivateIp.js.map +1 -0
- package/lib/Cloud/Service.d.ts +554 -0
- package/lib/Cloud/Service.d.ts.map +1 -0
- package/lib/Cloud/Service.js +765 -0
- package/lib/Cloud/Service.js.map +1 -0
- package/lib/Cloud/ServiceHandler.d.ts +10 -0
- package/lib/Cloud/ServiceHandler.d.ts.map +1 -0
- package/lib/Cloud/ServiceHandler.js +102 -0
- package/lib/Cloud/ServiceHandler.js.map +1 -0
- package/lib/Cloud/Snapshot.d.ts +103 -0
- package/lib/Cloud/Snapshot.d.ts.map +1 -0
- package/lib/Cloud/Snapshot.js +96 -0
- package/lib/Cloud/Snapshot.js.map +1 -0
- package/lib/Cloud/Ssh.d.ts +241 -0
- package/lib/Cloud/Ssh.d.ts.map +1 -0
- package/lib/Cloud/Ssh.js +292 -0
- package/lib/Cloud/Ssh.js.map +1 -0
- package/lib/Cloud/SshKey.d.ts +120 -0
- package/lib/Cloud/SshKey.d.ts.map +1 -0
- package/lib/Cloud/SshKey.js +161 -0
- package/lib/Cloud/SshKey.js.map +1 -0
- package/lib/Cloud/Valkey.d.ts +212 -0
- package/lib/Cloud/Valkey.d.ts.map +1 -0
- package/lib/Cloud/Valkey.js +155 -0
- package/lib/Cloud/Valkey.js.map +1 -0
- package/lib/Cloud/ValkeyScheduledSnapshot.d.ts +75 -0
- package/lib/Cloud/ValkeyScheduledSnapshot.d.ts.map +1 -0
- package/lib/Cloud/ValkeyScheduledSnapshot.js +74 -0
- package/lib/Cloud/ValkeyScheduledSnapshot.js.map +1 -0
- package/lib/Cloud/ValkeySnapshot.d.ts +107 -0
- package/lib/Cloud/ValkeySnapshot.d.ts.map +1 -0
- package/lib/Cloud/ValkeySnapshot.js +80 -0
- package/lib/Cloud/ValkeySnapshot.js.map +1 -0
- package/lib/Cloud/Volume.d.ts +133 -0
- package/lib/Cloud/Volume.d.ts.map +1 -0
- package/lib/Cloud/Volume.js +329 -0
- package/lib/Cloud/Volume.js.map +1 -0
- package/lib/Cloud/VolumeSnapshot.d.ts +95 -0
- package/lib/Cloud/VolumeSnapshot.d.ts.map +1 -0
- package/lib/Cloud/VolumeSnapshot.js +88 -0
- package/lib/Cloud/VolumeSnapshot.js.map +1 -0
- package/lib/Cloud/Webhook.d.ts +93 -0
- package/lib/Cloud/Webhook.d.ts.map +1 -0
- package/lib/Cloud/Webhook.js +92 -0
- package/lib/Cloud/Webhook.js.map +1 -0
- package/lib/Cloud/Website/Astro.d.ts +106 -0
- package/lib/Cloud/Website/Astro.d.ts.map +1 -0
- package/lib/Cloud/Website/Astro.js +76 -0
- package/lib/Cloud/Website/Astro.js.map +1 -0
- package/lib/Cloud/Website/Foldkit.d.ts +70 -0
- package/lib/Cloud/Website/Foldkit.d.ts.map +1 -0
- package/lib/Cloud/Website/Foldkit.js +67 -0
- package/lib/Cloud/Website/Foldkit.js.map +1 -0
- package/lib/Cloud/Website/FrameworkSite.d.ts +277 -0
- package/lib/Cloud/Website/FrameworkSite.d.ts.map +1 -0
- package/lib/Cloud/Website/FrameworkSite.js +245 -0
- package/lib/Cloud/Website/FrameworkSite.js.map +1 -0
- package/lib/Cloud/Website/Nextjs.d.ts +70 -0
- package/lib/Cloud/Website/Nextjs.d.ts.map +1 -0
- package/lib/Cloud/Website/Nextjs.js +66 -0
- package/lib/Cloud/Website/Nextjs.js.map +1 -0
- package/lib/Cloud/Website/Nuxt.d.ts +71 -0
- package/lib/Cloud/Website/Nuxt.d.ts.map +1 -0
- package/lib/Cloud/Website/Nuxt.js +60 -0
- package/lib/Cloud/Website/Nuxt.js.map +1 -0
- package/lib/Cloud/Website/Octane.d.ts +64 -0
- package/lib/Cloud/Website/Octane.d.ts.map +1 -0
- package/lib/Cloud/Website/Octane.js +58 -0
- package/lib/Cloud/Website/Octane.js.map +1 -0
- package/lib/Cloud/Website/Providers.d.ts +16 -0
- package/lib/Cloud/Website/Providers.d.ts.map +1 -0
- package/lib/Cloud/Website/Providers.js +16 -0
- package/lib/Cloud/Website/Providers.js.map +1 -0
- package/lib/Cloud/Website/ReactRouter.d.ts +96 -0
- package/lib/Cloud/Website/ReactRouter.d.ts.map +1 -0
- package/lib/Cloud/Website/ReactRouter.js +90 -0
- package/lib/Cloud/Website/ReactRouter.js.map +1 -0
- package/lib/Cloud/Website/SolidStart.d.ts +108 -0
- package/lib/Cloud/Website/SolidStart.d.ts.map +1 -0
- package/lib/Cloud/Website/SolidStart.js +90 -0
- package/lib/Cloud/Website/SolidStart.js.map +1 -0
- package/lib/Cloud/Website/StaticSite.d.ts +170 -0
- package/lib/Cloud/Website/StaticSite.d.ts.map +1 -0
- package/lib/Cloud/Website/StaticSite.js +193 -0
- package/lib/Cloud/Website/StaticSite.js.map +1 -0
- package/lib/Cloud/Website/SvelteKit.d.ts +70 -0
- package/lib/Cloud/Website/SvelteKit.d.ts.map +1 -0
- package/lib/Cloud/Website/SvelteKit.js +59 -0
- package/lib/Cloud/Website/SvelteKit.js.map +1 -0
- package/lib/Cloud/Website/TanStackStart.d.ts +91 -0
- package/lib/Cloud/Website/TanStackStart.d.ts.map +1 -0
- package/lib/Cloud/Website/TanStackStart.js +85 -0
- package/lib/Cloud/Website/TanStackStart.js.map +1 -0
- package/lib/Cloud/Website/Vinext.d.ts +80 -0
- package/lib/Cloud/Website/Vinext.d.ts.map +1 -0
- package/lib/Cloud/Website/Vinext.js +75 -0
- package/lib/Cloud/Website/Vinext.js.map +1 -0
- package/lib/Cloud/Website/Vite.d.ts +114 -0
- package/lib/Cloud/Website/Vite.d.ts.map +1 -0
- package/lib/Cloud/Website/Vite.js +112 -0
- package/lib/Cloud/Website/Vite.js.map +1 -0
- package/lib/Cloud/Website/Vocs.d.ts +67 -0
- package/lib/Cloud/Website/Vocs.d.ts.map +1 -0
- package/lib/Cloud/Website/Vocs.js +56 -0
- package/lib/Cloud/Website/Vocs.js.map +1 -0
- package/lib/Cloud/Website/Waku.d.ts +71 -0
- package/lib/Cloud/Website/Waku.d.ts.map +1 -0
- package/lib/Cloud/Website/Waku.js +59 -0
- package/lib/Cloud/Website/Waku.js.map +1 -0
- package/lib/Cloud/Website/index.d.ts +16 -0
- package/lib/Cloud/Website/index.d.ts.map +1 -0
- package/lib/Cloud/Website/index.js +17 -0
- package/lib/Cloud/Website/index.js.map +1 -0
- package/lib/Cloud/hosted.d.ts +324 -0
- package/lib/Cloud/hosted.d.ts.map +1 -0
- package/lib/Cloud/hosted.js +750 -0
- package/lib/Cloud/hosted.js.map +1 -0
- package/lib/Cloud/index.d.ts +111 -0
- package/lib/Cloud/index.d.ts.map +1 -0
- package/lib/Cloud/index.js +156 -0
- package/lib/Cloud/index.js.map +1 -0
- package/lib/Contributions.d.ts +12 -0
- package/lib/Contributions.d.ts.map +1 -0
- package/lib/Contributions.js +12 -0
- package/lib/Contributions.js.map +1 -0
- package/lib/Credentials.d.ts +25 -0
- package/lib/Credentials.d.ts.map +1 -0
- package/lib/Credentials.js +35 -0
- package/lib/Credentials.js.map +1 -0
- package/lib/Errors/Application.d.ts +136 -0
- package/lib/Errors/Application.d.ts.map +1 -0
- package/lib/Errors/Application.js +146 -0
- package/lib/Errors/Application.js.map +1 -0
- package/lib/Errors/ApplicationGroup.d.ts +67 -0
- package/lib/Errors/ApplicationGroup.d.ts.map +1 -0
- package/lib/Errors/ApplicationGroup.js +72 -0
- package/lib/Errors/ApplicationGroup.js.map +1 -0
- package/lib/Errors/Dsn.d.ts +87 -0
- package/lib/Errors/Dsn.d.ts.map +1 -0
- package/lib/Errors/Dsn.js +34 -0
- package/lib/Errors/Dsn.js.map +1 -0
- package/lib/Errors/JiraIntegration.d.ts +69 -0
- package/lib/Errors/JiraIntegration.d.ts.map +1 -0
- package/lib/Errors/JiraIntegration.js +64 -0
- package/lib/Errors/JiraIntegration.js.map +1 -0
- package/lib/Errors/LinearIntegration.d.ts +71 -0
- package/lib/Errors/LinearIntegration.d.ts.map +1 -0
- package/lib/Errors/LinearIntegration.js +66 -0
- package/lib/Errors/LinearIntegration.js.map +1 -0
- package/lib/Errors/MicrosoftTeamsIntegration.d.ts +75 -0
- package/lib/Errors/MicrosoftTeamsIntegration.d.ts.map +1 -0
- package/lib/Errors/MicrosoftTeamsIntegration.js +72 -0
- package/lib/Errors/MicrosoftTeamsIntegration.js.map +1 -0
- package/lib/Errors/Reference.d.ts +133 -0
- package/lib/Errors/Reference.d.ts.map +1 -0
- package/lib/Errors/Reference.js +123 -0
- package/lib/Errors/Reference.js.map +1 -0
- package/lib/Errors/RegisterRelease.d.ts +66 -0
- package/lib/Errors/RegisterRelease.d.ts.map +1 -0
- package/lib/Errors/RegisterRelease.js +3 -0
- package/lib/Errors/RegisterRelease.js.map +1 -0
- package/lib/Errors/RegisterReleaseHttp.d.ts +13 -0
- package/lib/Errors/RegisterReleaseHttp.d.ts.map +1 -0
- package/lib/Errors/RegisterReleaseHttp.js +29 -0
- package/lib/Errors/RegisterReleaseHttp.js.map +1 -0
- package/lib/Errors/Release.d.ts +97 -0
- package/lib/Errors/Release.d.ts.map +1 -0
- package/lib/Errors/Release.js +161 -0
- package/lib/Errors/Release.js.map +1 -0
- package/lib/Errors/SlackIntegration.d.ts +66 -0
- package/lib/Errors/SlackIntegration.d.ts.map +1 -0
- package/lib/Errors/SlackIntegration.js +61 -0
- package/lib/Errors/SlackIntegration.js.map +1 -0
- package/lib/Errors/index.d.ts +38 -0
- package/lib/Errors/index.d.ts.map +1 -0
- package/lib/Errors/index.js +46 -0
- package/lib/Errors/index.js.map +1 -0
- package/lib/Incidents/AcknowledgeIncident.d.ts +61 -0
- package/lib/Incidents/AcknowledgeIncident.d.ts.map +1 -0
- package/lib/Incidents/AcknowledgeIncident.js +3 -0
- package/lib/Incidents/AcknowledgeIncident.js.map +1 -0
- package/lib/Incidents/AcknowledgeIncidentHttp.d.ts +12 -0
- package/lib/Incidents/AcknowledgeIncidentHttp.d.ts.map +1 -0
- package/lib/Incidents/AcknowledgeIncidentHttp.js +19 -0
- package/lib/Incidents/AcknowledgeIncidentHttp.js.map +1 -0
- package/lib/Incidents/AmazonSnsIntegration.d.ts +83 -0
- package/lib/Incidents/AmazonSnsIntegration.d.ts.map +1 -0
- package/lib/Incidents/AmazonSnsIntegration.js +91 -0
- package/lib/Incidents/AmazonSnsIntegration.js.map +1 -0
- package/lib/Incidents/AwsCloudWatchIntegration.d.ts +64 -0
- package/lib/Incidents/AwsCloudWatchIntegration.d.ts.map +1 -0
- package/lib/Incidents/AwsCloudWatchIntegration.js +64 -0
- package/lib/Incidents/AwsCloudWatchIntegration.js.map +1 -0
- package/lib/Incidents/AzureIntegration.d.ts +63 -0
- package/lib/Incidents/AzureIntegration.d.ts.map +1 -0
- package/lib/Incidents/AzureIntegration.js +63 -0
- package/lib/Incidents/AzureIntegration.js.map +1 -0
- package/lib/Incidents/BindingHttp.d.ts +28 -0
- package/lib/Incidents/BindingHttp.d.ts.map +1 -0
- package/lib/Incidents/BindingHttp.js +28 -0
- package/lib/Incidents/BindingHttp.js.map +1 -0
- package/lib/Incidents/CatalogRecord.d.ts +69 -0
- package/lib/Incidents/CatalogRecord.d.ts.map +1 -0
- package/lib/Incidents/CatalogRecord.js +69 -0
- package/lib/Incidents/CatalogRecord.js.map +1 -0
- package/lib/Incidents/CatalogRelation.d.ts +78 -0
- package/lib/Incidents/CatalogRelation.d.ts.map +1 -0
- package/lib/Incidents/CatalogRelation.js +79 -0
- package/lib/Incidents/CatalogRelation.js.map +1 -0
- package/lib/Incidents/CreateIncident.d.ts +67 -0
- package/lib/Incidents/CreateIncident.d.ts.map +1 -0
- package/lib/Incidents/CreateIncident.js +3 -0
- package/lib/Incidents/CreateIncident.js.map +1 -0
- package/lib/Incidents/CreateIncidentHttp.d.ts +12 -0
- package/lib/Incidents/CreateIncidentHttp.d.ts.map +1 -0
- package/lib/Incidents/CreateIncidentHttp.js +19 -0
- package/lib/Incidents/CreateIncidentHttp.js.map +1 -0
- package/lib/Incidents/CreateStatusReport.d.ts +71 -0
- package/lib/Incidents/CreateStatusReport.d.ts.map +1 -0
- package/lib/Incidents/CreateStatusReport.js +3 -0
- package/lib/Incidents/CreateStatusReport.js.map +1 -0
- package/lib/Incidents/CreateStatusReportHttp.d.ts +12 -0
- package/lib/Incidents/CreateStatusReportHttp.d.ts.map +1 -0
- package/lib/Incidents/CreateStatusReportHttp.js +27 -0
- package/lib/Incidents/CreateStatusReportHttp.js.map +1 -0
- package/lib/Incidents/CreateStatusUpdate.d.ts +67 -0
- package/lib/Incidents/CreateStatusUpdate.d.ts.map +1 -0
- package/lib/Incidents/CreateStatusUpdate.js +3 -0
- package/lib/Incidents/CreateStatusUpdate.js.map +1 -0
- package/lib/Incidents/CreateStatusUpdateHttp.d.ts +12 -0
- package/lib/Incidents/CreateStatusUpdateHttp.d.ts.map +1 -0
- package/lib/Incidents/CreateStatusUpdateHttp.js +27 -0
- package/lib/Incidents/CreateStatusUpdateHttp.js.map +1 -0
- package/lib/Incidents/DatadogIntegration.d.ts +70 -0
- package/lib/Incidents/DatadogIntegration.d.ts.map +1 -0
- package/lib/Incidents/DatadogIntegration.js +70 -0
- package/lib/Incidents/DatadogIntegration.js.map +1 -0
- package/lib/Incidents/ElasticIntegration.d.ts +62 -0
- package/lib/Incidents/ElasticIntegration.d.ts.map +1 -0
- package/lib/Incidents/ElasticIntegration.js +62 -0
- package/lib/Incidents/ElasticIntegration.js.map +1 -0
- package/lib/Incidents/EscalationPolicy.d.ts +106 -0
- package/lib/Incidents/EscalationPolicy.d.ts.map +1 -0
- package/lib/Incidents/EscalationPolicy.js +103 -0
- package/lib/Incidents/EscalationPolicy.js.map +1 -0
- package/lib/Incidents/EscalationPolicyGroup.d.ts +49 -0
- package/lib/Incidents/EscalationPolicyGroup.d.ts.map +1 -0
- package/lib/Incidents/EscalationPolicyGroup.js +48 -0
- package/lib/Incidents/EscalationPolicyGroup.js.map +1 -0
- package/lib/Incidents/FailHeartbeat.d.ts +49 -0
- package/lib/Incidents/FailHeartbeat.d.ts.map +1 -0
- package/lib/Incidents/FailHeartbeat.js +3 -0
- package/lib/Incidents/FailHeartbeat.js.map +1 -0
- package/lib/Incidents/FailHeartbeatHttp.d.ts +12 -0
- package/lib/Incidents/FailHeartbeatHttp.d.ts.map +1 -0
- package/lib/Incidents/FailHeartbeatHttp.js +22 -0
- package/lib/Incidents/FailHeartbeatHttp.js.map +1 -0
- package/lib/Incidents/GoogleMonitoringIntegration.d.ts +63 -0
- package/lib/Incidents/GoogleMonitoringIntegration.d.ts.map +1 -0
- package/lib/Incidents/GoogleMonitoringIntegration.js +63 -0
- package/lib/Incidents/GoogleMonitoringIntegration.js.map +1 -0
- package/lib/Incidents/GrafanaIntegration.d.ts +73 -0
- package/lib/Incidents/GrafanaIntegration.d.ts.map +1 -0
- package/lib/Incidents/GrafanaIntegration.js +73 -0
- package/lib/Incidents/GrafanaIntegration.js.map +1 -0
- package/lib/Incidents/Heartbeat.d.ts +99 -0
- package/lib/Incidents/Heartbeat.d.ts.map +1 -0
- package/lib/Incidents/Heartbeat.js +104 -0
- package/lib/Incidents/Heartbeat.js.map +1 -0
- package/lib/Incidents/HeartbeatGroup.d.ts +49 -0
- package/lib/Incidents/HeartbeatGroup.d.ts.map +1 -0
- package/lib/Incidents/HeartbeatGroup.js +48 -0
- package/lib/Incidents/HeartbeatGroup.js.map +1 -0
- package/lib/Incidents/IncomingEmailIntegration.d.ts +71 -0
- package/lib/Incidents/IncomingEmailIntegration.d.ts.map +1 -0
- package/lib/Incidents/IncomingEmailIntegration.js +81 -0
- package/lib/Incidents/IncomingEmailIntegration.js.map +1 -0
- package/lib/Incidents/IncomingWebhookIntegration.d.ts +85 -0
- package/lib/Incidents/IncomingWebhookIntegration.d.ts.map +1 -0
- package/lib/Incidents/IncomingWebhookIntegration.js +95 -0
- package/lib/Incidents/IncomingWebhookIntegration.js.map +1 -0
- package/lib/Incidents/JiraIntegration.d.ts +59 -0
- package/lib/Incidents/JiraIntegration.d.ts.map +1 -0
- package/lib/Incidents/JiraIntegration.js +50 -0
- package/lib/Incidents/JiraIntegration.js.map +1 -0
- package/lib/Incidents/LinearIntegration.d.ts +62 -0
- package/lib/Incidents/LinearIntegration.d.ts.map +1 -0
- package/lib/Incidents/LinearIntegration.js +60 -0
- package/lib/Incidents/LinearIntegration.js.map +1 -0
- package/lib/Incidents/Metadata.d.ts +85 -0
- package/lib/Incidents/Metadata.d.ts.map +1 -0
- package/lib/Incidents/Metadata.js +91 -0
- package/lib/Incidents/Metadata.js.map +1 -0
- package/lib/Incidents/Monitor.d.ts +91 -0
- package/lib/Incidents/Monitor.d.ts.map +1 -0
- package/lib/Incidents/Monitor.js +107 -0
- package/lib/Incidents/Monitor.js.map +1 -0
- package/lib/Incidents/MonitorGroup.d.ts +57 -0
- package/lib/Incidents/MonitorGroup.d.ts.map +1 -0
- package/lib/Incidents/MonitorGroup.js +56 -0
- package/lib/Incidents/MonitorGroup.js.map +1 -0
- package/lib/Incidents/NewRelicIntegration.d.ts +70 -0
- package/lib/Incidents/NewRelicIntegration.d.ts.map +1 -0
- package/lib/Incidents/NewRelicIntegration.js +70 -0
- package/lib/Incidents/NewRelicIntegration.js.map +1 -0
- package/lib/Incidents/OnCallRotation.d.ts +96 -0
- package/lib/Incidents/OnCallRotation.d.ts.map +1 -0
- package/lib/Incidents/OnCallRotation.js +206 -0
- package/lib/Incidents/OnCallRotation.js.map +1 -0
- package/lib/Incidents/OnCallSchedule.d.ts +80 -0
- package/lib/Incidents/OnCallSchedule.d.ts.map +1 -0
- package/lib/Incidents/OnCallSchedule.js +73 -0
- package/lib/Incidents/OnCallSchedule.js.map +1 -0
- package/lib/Incidents/OutgoingEmailIntegration.d.ts +54 -0
- package/lib/Incidents/OutgoingEmailIntegration.d.ts.map +1 -0
- package/lib/Incidents/OutgoingEmailIntegration.js +53 -0
- package/lib/Incidents/OutgoingEmailIntegration.js.map +1 -0
- package/lib/Incidents/OutgoingPagerDutyIntegration.d.ts +48 -0
- package/lib/Incidents/OutgoingPagerDutyIntegration.d.ts.map +1 -0
- package/lib/Incidents/OutgoingPagerDutyIntegration.js +47 -0
- package/lib/Incidents/OutgoingPagerDutyIntegration.js.map +1 -0
- package/lib/Incidents/OutgoingWebhookIntegration.d.ts +83 -0
- package/lib/Incidents/OutgoingWebhookIntegration.d.ts.map +1 -0
- package/lib/Incidents/OutgoingWebhookIntegration.js +98 -0
- package/lib/Incidents/OutgoingWebhookIntegration.js.map +1 -0
- package/lib/Incidents/PrometheusIntegration.d.ts +77 -0
- package/lib/Incidents/PrometheusIntegration.d.ts.map +1 -0
- package/lib/Incidents/PrometheusIntegration.js +77 -0
- package/lib/Incidents/PrometheusIntegration.js.map +1 -0
- package/lib/Incidents/Reference.d.ts +140 -0
- package/lib/Incidents/Reference.d.ts.map +1 -0
- package/lib/Incidents/Reference.js +136 -0
- package/lib/Incidents/Reference.js.map +1 -0
- package/lib/Incidents/ReportHeartbeat.d.ts +106 -0
- package/lib/Incidents/ReportHeartbeat.d.ts.map +1 -0
- package/lib/Incidents/ReportHeartbeat.js +63 -0
- package/lib/Incidents/ReportHeartbeat.js.map +1 -0
- package/lib/Incidents/ReportHeartbeatHttp.d.ts +12 -0
- package/lib/Incidents/ReportHeartbeatHttp.d.ts.map +1 -0
- package/lib/Incidents/ReportHeartbeatHttp.js +22 -0
- package/lib/Incidents/ReportHeartbeatHttp.js.map +1 -0
- package/lib/Incidents/ResolveIncident.d.ts +60 -0
- package/lib/Incidents/ResolveIncident.d.ts.map +1 -0
- package/lib/Incidents/ResolveIncident.js +3 -0
- package/lib/Incidents/ResolveIncident.js.map +1 -0
- package/lib/Incidents/ResolveIncidentHttp.d.ts +12 -0
- package/lib/Incidents/ResolveIncidentHttp.d.ts.map +1 -0
- package/lib/Incidents/ResolveIncidentHttp.js +19 -0
- package/lib/Incidents/ResolveIncidentHttp.js.map +1 -0
- package/lib/Incidents/SendHeartbeat.d.ts +56 -0
- package/lib/Incidents/SendHeartbeat.d.ts.map +1 -0
- package/lib/Incidents/SendHeartbeat.js +3 -0
- package/lib/Incidents/SendHeartbeat.js.map +1 -0
- package/lib/Incidents/SendHeartbeatHttp.d.ts +12 -0
- package/lib/Incidents/SendHeartbeatHttp.d.ts.map +1 -0
- package/lib/Incidents/SendHeartbeatHttp.js +22 -0
- package/lib/Incidents/SendHeartbeatHttp.js.map +1 -0
- package/lib/Incidents/Severity.d.ts +83 -0
- package/lib/Incidents/Severity.d.ts.map +1 -0
- package/lib/Incidents/Severity.js +79 -0
- package/lib/Incidents/Severity.js.map +1 -0
- package/lib/Incidents/SeverityGroup.d.ts +51 -0
- package/lib/Incidents/SeverityGroup.d.ts.map +1 -0
- package/lib/Incidents/SeverityGroup.js +50 -0
- package/lib/Incidents/SeverityGroup.js.map +1 -0
- package/lib/Incidents/SplunkOnCallIntegration.d.ts +46 -0
- package/lib/Incidents/SplunkOnCallIntegration.d.ts.map +1 -0
- package/lib/Incidents/SplunkOnCallIntegration.js +45 -0
- package/lib/Incidents/SplunkOnCallIntegration.js.map +1 -0
- package/lib/Incidents/StatusPage.d.ts +125 -0
- package/lib/Incidents/StatusPage.d.ts.map +1 -0
- package/lib/Incidents/StatusPage.js +133 -0
- package/lib/Incidents/StatusPage.js.map +1 -0
- package/lib/Incidents/StatusPageGroup.d.ts +50 -0
- package/lib/Incidents/StatusPageGroup.d.ts.map +1 -0
- package/lib/Incidents/StatusPageGroup.js +49 -0
- package/lib/Incidents/StatusPageGroup.js.map +1 -0
- package/lib/Incidents/StatusPageResource.d.ts +91 -0
- package/lib/Incidents/StatusPageResource.d.ts.map +1 -0
- package/lib/Incidents/StatusPageResource.js +87 -0
- package/lib/Incidents/StatusPageResource.js.map +1 -0
- package/lib/Incidents/StatusPageSection.d.ts +65 -0
- package/lib/Incidents/StatusPageSection.d.ts.map +1 -0
- package/lib/Incidents/StatusPageSection.js +65 -0
- package/lib/Incidents/StatusPageSection.js.map +1 -0
- package/lib/Incidents/StatusPageSubscriber.d.ts +93 -0
- package/lib/Incidents/StatusPageSubscriber.d.ts.map +1 -0
- package/lib/Incidents/StatusPageSubscriber.js +100 -0
- package/lib/Incidents/StatusPageSubscriber.js.map +1 -0
- package/lib/Incidents/index.d.ts +108 -0
- package/lib/Incidents/index.d.ts.map +1 -0
- package/lib/Incidents/index.js +143 -0
- package/lib/Incidents/index.js.map +1 -0
- package/lib/Incidents/integrationFields.d.ts +124 -0
- package/lib/Incidents/integrationFields.d.ts.map +1 -0
- package/lib/Incidents/integrationFields.js +74 -0
- package/lib/Incidents/integrationFields.js.map +1 -0
- package/lib/Providers.d.ts +36 -0
- package/lib/Providers.d.ts.map +1 -0
- package/lib/Providers.js +54 -0
- package/lib/Providers.js.map +1 -0
- package/lib/Telemetry/Alert.d.ts +99 -0
- package/lib/Telemetry/Alert.d.ts.map +1 -0
- package/lib/Telemetry/Alert.js +91 -0
- package/lib/Telemetry/Alert.js.map +1 -0
- package/lib/Telemetry/AwsLogGroupSubscription.d.ts +57 -0
- package/lib/Telemetry/AwsLogGroupSubscription.d.ts.map +1 -0
- package/lib/Telemetry/AwsLogGroupSubscription.js +57 -0
- package/lib/Telemetry/AwsLogGroupSubscription.js.map +1 -0
- package/lib/Telemetry/BindingHttp.d.ts +23 -0
- package/lib/Telemetry/BindingHttp.d.ts.map +1 -0
- package/lib/Telemetry/BindingHttp.js +25 -0
- package/lib/Telemetry/BindingHttp.js.map +1 -0
- package/lib/Telemetry/Chart.d.ts +171 -0
- package/lib/Telemetry/Chart.d.ts.map +1 -0
- package/lib/Telemetry/Chart.js +92 -0
- package/lib/Telemetry/Chart.js.map +1 -0
- package/lib/Telemetry/Collector.d.ts +78 -0
- package/lib/Telemetry/Collector.d.ts.map +1 -0
- package/lib/Telemetry/Collector.js +111 -0
- package/lib/Telemetry/Collector.js.map +1 -0
- package/lib/Telemetry/CollectorTarget.d.ts +69 -0
- package/lib/Telemetry/CollectorTarget.d.ts.map +1 -0
- package/lib/Telemetry/CollectorTarget.js +69 -0
- package/lib/Telemetry/CollectorTarget.js.map +1 -0
- package/lib/Telemetry/Connection.d.ts +79 -0
- package/lib/Telemetry/Connection.d.ts.map +1 -0
- package/lib/Telemetry/Connection.js +128 -0
- package/lib/Telemetry/Connection.js.map +1 -0
- package/lib/Telemetry/Dashboard.d.ts +108 -0
- package/lib/Telemetry/Dashboard.d.ts.map +1 -0
- package/lib/Telemetry/Dashboard.js +112 -0
- package/lib/Telemetry/Dashboard.js.map +1 -0
- package/lib/Telemetry/DashboardChart.d.ts +104 -0
- package/lib/Telemetry/DashboardChart.d.ts.map +1 -0
- package/lib/Telemetry/DashboardChart.js +119 -0
- package/lib/Telemetry/DashboardChart.js.map +1 -0
- package/lib/Telemetry/DashboardGroup.d.ts +53 -0
- package/lib/Telemetry/DashboardGroup.d.ts.map +1 -0
- package/lib/Telemetry/DashboardGroup.js +47 -0
- package/lib/Telemetry/DashboardGroup.js.map +1 -0
- package/lib/Telemetry/DashboardSection.d.ts +65 -0
- package/lib/Telemetry/DashboardSection.d.ts.map +1 -0
- package/lib/Telemetry/DashboardSection.js +65 -0
- package/lib/Telemetry/DashboardSection.js.map +1 -0
- package/lib/Telemetry/Exploration.d.ts +77 -0
- package/lib/Telemetry/Exploration.d.ts.map +1 -0
- package/lib/Telemetry/Exploration.js +97 -0
- package/lib/Telemetry/Exploration.js.map +1 -0
- package/lib/Telemetry/ExplorationGroup.d.ts +58 -0
- package/lib/Telemetry/ExplorationGroup.d.ts.map +1 -0
- package/lib/Telemetry/ExplorationGroup.js +52 -0
- package/lib/Telemetry/ExplorationGroup.js.map +1 -0
- package/lib/Telemetry/Export.d.ts +183 -0
- package/lib/Telemetry/Export.d.ts.map +1 -0
- package/lib/Telemetry/Export.js +152 -0
- package/lib/Telemetry/Export.js.map +1 -0
- package/lib/Telemetry/ExtractedMetric.d.ts +67 -0
- package/lib/Telemetry/ExtractedMetric.d.ts.map +1 -0
- package/lib/Telemetry/ExtractedMetric.js +66 -0
- package/lib/Telemetry/ExtractedMetric.js.map +1 -0
- package/lib/Telemetry/IngestLogs.d.ts +87 -0
- package/lib/Telemetry/IngestLogs.d.ts.map +1 -0
- package/lib/Telemetry/IngestLogs.js +3 -0
- package/lib/Telemetry/IngestLogs.js.map +1 -0
- package/lib/Telemetry/IngestLogsHttp.d.ts +12 -0
- package/lib/Telemetry/IngestLogsHttp.d.ts.map +1 -0
- package/lib/Telemetry/IngestLogsHttp.js +21 -0
- package/lib/Telemetry/IngestLogsHttp.js.map +1 -0
- package/lib/Telemetry/IngestMetrics.d.ts +68 -0
- package/lib/Telemetry/IngestMetrics.d.ts.map +1 -0
- package/lib/Telemetry/IngestMetrics.js +3 -0
- package/lib/Telemetry/IngestMetrics.js.map +1 -0
- package/lib/Telemetry/IngestMetricsHttp.d.ts +12 -0
- package/lib/Telemetry/IngestMetricsHttp.d.ts.map +1 -0
- package/lib/Telemetry/IngestMetricsHttp.js +21 -0
- package/lib/Telemetry/IngestMetricsHttp.js.map +1 -0
- package/lib/Telemetry/OtelHeaders.d.ts +36 -0
- package/lib/Telemetry/OtelHeaders.d.ts.map +1 -0
- package/lib/Telemetry/OtelHeaders.js +34 -0
- package/lib/Telemetry/OtelHeaders.js.map +1 -0
- package/lib/Telemetry/Query.d.ts +66 -0
- package/lib/Telemetry/Query.d.ts.map +1 -0
- package/lib/Telemetry/Query.js +3 -0
- package/lib/Telemetry/Query.js.map +1 -0
- package/lib/Telemetry/QueryHttp.d.ts +12 -0
- package/lib/Telemetry/QueryHttp.d.ts.map +1 -0
- package/lib/Telemetry/QueryHttp.js +24 -0
- package/lib/Telemetry/QueryHttp.js.map +1 -0
- package/lib/Telemetry/Reference.d.ts +115 -0
- package/lib/Telemetry/Reference.d.ts.map +1 -0
- package/lib/Telemetry/Reference.js +110 -0
- package/lib/Telemetry/Reference.js.map +1 -0
- package/lib/Telemetry/ShipLogs.d.ts +89 -0
- package/lib/Telemetry/ShipLogs.d.ts.map +1 -0
- package/lib/Telemetry/ShipLogs.js +119 -0
- package/lib/Telemetry/ShipLogs.js.map +1 -0
- package/lib/Telemetry/Source.d.ts +184 -0
- package/lib/Telemetry/Source.d.ts.map +1 -0
- package/lib/Telemetry/Source.js +238 -0
- package/lib/Telemetry/Source.js.map +1 -0
- package/lib/Telemetry/SourceAwsAccount.d.ts +73 -0
- package/lib/Telemetry/SourceAwsAccount.d.ts.map +1 -0
- package/lib/Telemetry/SourceAwsAccount.js +57 -0
- package/lib/Telemetry/SourceAwsAccount.js.map +1 -0
- package/lib/Telemetry/SourceGcpProject.d.ts +81 -0
- package/lib/Telemetry/SourceGcpProject.d.ts.map +1 -0
- package/lib/Telemetry/SourceGcpProject.js +69 -0
- package/lib/Telemetry/SourceGcpProject.js.map +1 -0
- package/lib/Telemetry/SourceGroup.d.ts +65 -0
- package/lib/Telemetry/SourceGroup.d.ts.map +1 -0
- package/lib/Telemetry/SourceGroup.js +67 -0
- package/lib/Telemetry/SourceGroup.js.map +1 -0
- package/lib/Telemetry/customBucket.d.ts +26 -0
- package/lib/Telemetry/customBucket.d.ts.map +1 -0
- package/lib/Telemetry/customBucket.js +45 -0
- package/lib/Telemetry/customBucket.js.map +1 -0
- package/lib/Telemetry/index.d.ts +64 -0
- package/lib/Telemetry/index.d.ts.map +1 -0
- package/lib/Telemetry/index.js +81 -0
- package/lib/Telemetry/index.js.map +1 -0
- package/lib/index.d.ts +14 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +14 -0
- package/lib/index.js.map +1 -0
- package/lib/internal/DeployRetry.d.ts +19 -0
- package/lib/internal/DeployRetry.d.ts.map +1 -0
- package/lib/internal/DeployRetry.js +52 -0
- package/lib/internal/DeployRetry.js.map +1 -0
- package/lib/internal/actionWait.d.ts +12 -0
- package/lib/internal/actionWait.d.ts.map +1 -0
- package/lib/internal/actionWait.js +21 -0
- package/lib/internal/actionWait.js.map +1 -0
- package/lib/internal/applicationIds.d.ts +17 -0
- package/lib/internal/applicationIds.d.ts.map +1 -0
- package/lib/internal/applicationIds.js +12 -0
- package/lib/internal/applicationIds.js.map +1 -0
- package/lib/internal/attachments.d.ts +23 -0
- package/lib/internal/attachments.d.ts.map +1 -0
- package/lib/internal/attachments.js +22 -0
- package/lib/internal/attachments.js.map +1 -0
- package/lib/internal/budget.d.ts +46 -0
- package/lib/internal/budget.d.ts.map +1 -0
- package/lib/internal/budget.js +44 -0
- package/lib/internal/budget.js.map +1 -0
- package/lib/internal/connection.d.ts +65 -0
- package/lib/internal/connection.d.ts.map +1 -0
- package/lib/internal/connection.js +160 -0
- package/lib/internal/connection.js.map +1 -0
- package/lib/internal/crud.d.ts +195 -0
- package/lib/internal/crud.d.ts.map +1 -0
- package/lib/internal/crud.js +614 -0
- package/lib/internal/crud.js.map +1 -0
- package/lib/internal/errors.d.ts +35 -0
- package/lib/internal/errors.d.ts.map +1 -0
- package/lib/internal/errors.js +19 -0
- package/lib/internal/errors.js.map +1 -0
- package/lib/internal/fields.d.ts +47 -0
- package/lib/internal/fields.d.ts.map +1 -0
- package/lib/internal/fields.js +136 -0
- package/lib/internal/fields.js.map +1 -0
- package/lib/internal/gone.d.ts +13 -0
- package/lib/internal/gone.d.ts.map +1 -0
- package/lib/internal/gone.js +14 -0
- package/lib/internal/gone.js.map +1 -0
- package/lib/internal/managedDatabase.d.ts +137 -0
- package/lib/internal/managedDatabase.d.ts.map +1 -0
- package/lib/internal/managedDatabase.js +186 -0
- package/lib/internal/managedDatabase.js.map +1 -0
- package/lib/internal/managedService.d.ts +184 -0
- package/lib/internal/managedService.d.ts.map +1 -0
- package/lib/internal/managedService.js +208 -0
- package/lib/internal/managedService.js.map +1 -0
- package/lib/internal/migrations.d.ts +138 -0
- package/lib/internal/migrations.d.ts.map +1 -0
- package/lib/internal/migrations.js +288 -0
- package/lib/internal/migrations.js.map +1 -0
- package/lib/internal/ops.d.ts +43 -0
- package/lib/internal/ops.d.ts.map +1 -0
- package/lib/internal/ops.js +46 -0
- package/lib/internal/ops.js.map +1 -0
- package/lib/internal/ownership.d.ts +55 -0
- package/lib/internal/ownership.d.ts.map +1 -0
- package/lib/internal/ownership.js +74 -0
- package/lib/internal/ownership.js.map +1 -0
- package/lib/internal/reference.d.ts +36 -0
- package/lib/internal/reference.d.ts.map +1 -0
- package/lib/internal/reference.js +49 -0
- package/lib/internal/reference.js.map +1 -0
- package/lib/internal/scope.d.ts +51 -0
- package/lib/internal/scope.d.ts.map +1 -0
- package/lib/internal/scope.js +34 -0
- package/lib/internal/scope.js.map +1 -0
- package/lib/internal/snapshot.d.ts +120 -0
- package/lib/internal/snapshot.d.ts.map +1 -0
- package/lib/internal/snapshot.js +92 -0
- package/lib/internal/snapshot.js.map +1 -0
- package/lib/internal/unpaged.d.ts +22 -0
- package/lib/internal/unpaged.d.ts.map +1 -0
- package/lib/internal/unpaged.js +17 -0
- package/lib/internal/unpaged.js.map +1 -0
- package/lib/internal/wait.d.ts +55 -0
- package/lib/internal/wait.d.ts.map +1 -0
- package/lib/internal/wait.js +56 -0
- package/lib/internal/wait.js.map +1 -0
- package/lib/sdk/credentials.d.ts +97 -0
- package/lib/sdk/credentials.d.ts.map +1 -0
- package/lib/sdk/credentials.js +135 -0
- package/lib/sdk/credentials.js.map +1 -0
- package/lib/sdk/errors.d.ts +98 -0
- package/lib/sdk/errors.d.ts.map +1 -0
- package/lib/sdk/errors.js +86 -0
- package/lib/sdk/errors.js.map +1 -0
- package/lib/sdk/index.d.ts +49 -0
- package/lib/sdk/index.d.ts.map +1 -0
- package/lib/sdk/index.js +49 -0
- package/lib/sdk/index.js.map +1 -0
- package/lib/sdk/pagination.d.ts +35 -0
- package/lib/sdk/pagination.d.ts.map +1 -0
- package/lib/sdk/pagination.js +80 -0
- package/lib/sdk/pagination.js.map +1 -0
- package/lib/sdk/protocol.d.ts +109 -0
- package/lib/sdk/protocol.d.ts.map +1 -0
- package/lib/sdk/protocol.js +451 -0
- package/lib/sdk/protocol.js.map +1 -0
- package/lib/sdk/retry.d.ts +32 -0
- package/lib/sdk/retry.d.ts.map +1 -0
- package/lib/sdk/retry.js +33 -0
- package/lib/sdk/retry.js.map +1 -0
- package/lib/sdk/services/account.d.ts +372 -0
- package/lib/sdk/services/account.d.ts.map +1 -0
- package/lib/sdk/services/account.js +553 -0
- package/lib/sdk/services/account.js.map +1 -0
- package/lib/sdk/services/cloud.d.ts +11910 -0
- package/lib/sdk/services/cloud.d.ts.map +1 -0
- package/lib/sdk/services/cloud.js +18446 -0
- package/lib/sdk/services/cloud.js.map +1 -0
- package/lib/sdk/services/errors.d.ts +2203 -0
- package/lib/sdk/services/errors.d.ts.map +1 -0
- package/lib/sdk/services/errors.js +2676 -0
- package/lib/sdk/services/errors.js.map +1 -0
- package/lib/sdk/services/heartbeat.d.ts +36 -0
- package/lib/sdk/services/heartbeat.d.ts.map +1 -0
- package/lib/sdk/services/heartbeat.js +94 -0
- package/lib/sdk/services/heartbeat.js.map +1 -0
- package/lib/sdk/services/incidents.d.ts +9948 -0
- package/lib/sdk/services/incidents.d.ts.map +1 -0
- package/lib/sdk/services/incidents.js +9730 -0
- package/lib/sdk/services/incidents.js.map +1 -0
- package/lib/sdk/services/index.d.ts +8 -0
- package/lib/sdk/services/index.d.ts.map +1 -0
- package/lib/sdk/services/index.js +9 -0
- package/lib/sdk/services/index.js.map +1 -0
- package/lib/sdk/services/ingest.d.ts +158 -0
- package/lib/sdk/services/ingest.d.ts.map +1 -0
- package/lib/sdk/services/ingest.js +200 -0
- package/lib/sdk/services/ingest.js.map +1 -0
- package/lib/sdk/services/telemetry.d.ts +6789 -0
- package/lib/sdk/services/telemetry.d.ts.map +1 -0
- package/lib/sdk/services/telemetry.js +5613 -0
- package/lib/sdk/services/telemetry.js.map +1 -0
- package/lib/sdk/traits.d.ts +26 -0
- package/lib/sdk/traits.d.ts.map +1 -0
- package/lib/sdk/traits.js +15 -0
- package/lib/sdk/traits.js.map +1 -0
- package/package.json +190 -4
- package/src/Account/Reference.ts +120 -0
- package/src/Account/Team.ts +106 -0
- package/src/Account/TeamMember.ts +218 -0
- package/src/Account/index.ts +27 -0
- package/src/AuthProvider.ts +172 -0
- package/src/BetterStackBindings.ts +447 -0
- package/src/Cloud/Bootstrap.ts +116 -0
- package/src/Cloud/Certificate.ts +146 -0
- package/src/Cloud/ClickHouse.ts +272 -0
- package/src/Cloud/ClickHouseScheduledSnapshot.ts +114 -0
- package/src/Cloud/ClickHouseSnapshot.ts +137 -0
- package/src/Cloud/Firewall.ts +277 -0
- package/src/Cloud/FirewallRule.ts +175 -0
- package/src/Cloud/InferEnv.ts +30 -0
- package/src/Cloud/Kafka.ts +301 -0
- package/src/Cloud/KafkaTopic.ts +129 -0
- package/src/Cloud/KafkaUser.ts +175 -0
- package/src/Cloud/KubernetesCluster.ts +312 -0
- package/src/Cloud/KubernetesNodePool.ts +196 -0
- package/src/Cloud/KubernetesScheduledSnapshot.ts +116 -0
- package/src/Cloud/LoadBalancer.ts +336 -0
- package/src/Cloud/LoadBalancerService.ts +181 -0
- package/src/Cloud/LoadBalancerTarget.ts +203 -0
- package/src/Cloud/MountVolume.ts +167 -0
- package/src/Cloud/MySQL.ts +363 -0
- package/src/Cloud/MySQLScheduledSnapshot.ts +111 -0
- package/src/Cloud/MySQLSnapshot.ts +133 -0
- package/src/Cloud/Network.ts +116 -0
- package/src/Cloud/ObjectCache.ts +420 -0
- package/src/Cloud/ObjectCacheBucket.ts +197 -0
- package/src/Cloud/Otlp.ts +131 -0
- package/src/Cloud/PlacementGroup.ts +132 -0
- package/src/Cloud/Postgres.ts +410 -0
- package/src/Cloud/PostgresDatabase.ts +118 -0
- package/src/Cloud/PostgresScheduledSnapshot.ts +111 -0
- package/src/Cloud/PostgresSnapshot.ts +133 -0
- package/src/Cloud/PostgresUser.ts +175 -0
- package/src/Cloud/Reference.ts +743 -0
- package/src/Cloud/ReservedIp.ts +214 -0
- package/src/Cloud/ScheduledSnapshot.ts +75 -0
- package/src/Cloud/ScheduledVolumeSnapshot.ts +76 -0
- package/src/Cloud/Server.ts +1469 -0
- package/src/Cloud/ServerPool.ts +100 -0
- package/src/Cloud/ServerPrivateIp.ts +109 -0
- package/src/Cloud/Service.ts +1101 -0
- package/src/Cloud/ServiceHandler.ts +113 -0
- package/src/Cloud/Snapshot.ts +161 -0
- package/src/Cloud/Ssh.ts +528 -0
- package/src/Cloud/SshKey.ts +241 -0
- package/src/Cloud/Valkey.ts +284 -0
- package/src/Cloud/ValkeyScheduledSnapshot.ts +112 -0
- package/src/Cloud/ValkeySnapshot.ts +135 -0
- package/src/Cloud/Volume.ts +522 -0
- package/src/Cloud/VolumeSnapshot.ts +153 -0
- package/src/Cloud/Webhook.ts +145 -0
- package/src/Cloud/Website/Astro.ts +118 -0
- package/src/Cloud/Website/Foldkit.ts +78 -0
- package/src/Cloud/Website/FrameworkSite.ts +499 -0
- package/src/Cloud/Website/Nextjs.ts +70 -0
- package/src/Cloud/Website/Nuxt.ts +72 -0
- package/src/Cloud/Website/Octane.ts +63 -0
- package/src/Cloud/Website/Providers.ts +20 -0
- package/src/Cloud/Website/ReactRouter.ts +96 -0
- package/src/Cloud/Website/SolidStart.ts +109 -0
- package/src/Cloud/Website/StaticSite.ts +273 -0
- package/src/Cloud/Website/SvelteKit.ts +71 -0
- package/src/Cloud/Website/TanStackStart.ts +91 -0
- package/src/Cloud/Website/Vinext.ts +79 -0
- package/src/Cloud/Website/Vite.ts +131 -0
- package/src/Cloud/Website/Vocs.ts +69 -0
- package/src/Cloud/Website/Waku.ts +76 -0
- package/src/Cloud/Website/index.ts +16 -0
- package/src/Cloud/hosted.ts +1022 -0
- package/src/Cloud/index.ts +223 -0
- package/src/Contributions.ts +15 -0
- package/src/Credentials.ts +70 -0
- package/src/Errors/Application.ts +208 -0
- package/src/Errors/ApplicationGroup.ts +119 -0
- package/src/Errors/Dsn.ts +119 -0
- package/src/Errors/JiraIntegration.ts +108 -0
- package/src/Errors/LinearIntegration.ts +112 -0
- package/src/Errors/MicrosoftTeamsIntegration.ts +121 -0
- package/src/Errors/Reference.ts +189 -0
- package/src/Errors/RegisterRelease.ts +77 -0
- package/src/Errors/RegisterReleaseHttp.ts +47 -0
- package/src/Errors/Release.ts +241 -0
- package/src/Errors/SlackIntegration.ts +105 -0
- package/src/Errors/index.ts +60 -0
- package/src/Incidents/AcknowledgeIncident.ts +78 -0
- package/src/Incidents/AcknowledgeIncidentHttp.ts +28 -0
- package/src/Incidents/AmazonSnsIntegration.ts +134 -0
- package/src/Incidents/AwsCloudWatchIntegration.ts +99 -0
- package/src/Incidents/AzureIntegration.ts +95 -0
- package/src/Incidents/BindingHttp.ts +62 -0
- package/src/Incidents/CatalogRecord.ts +106 -0
- package/src/Incidents/CatalogRelation.ts +111 -0
- package/src/Incidents/CreateIncident.ts +81 -0
- package/src/Incidents/CreateIncidentHttp.ts +28 -0
- package/src/Incidents/CreateStatusReport.ts +88 -0
- package/src/Incidents/CreateStatusReportHttp.ts +35 -0
- package/src/Incidents/CreateStatusUpdate.ts +84 -0
- package/src/Incidents/CreateStatusUpdateHttp.ts +35 -0
- package/src/Incidents/DatadogIntegration.ts +102 -0
- package/src/Incidents/ElasticIntegration.ts +94 -0
- package/src/Incidents/EscalationPolicy.ts +144 -0
- package/src/Incidents/EscalationPolicyGroup.ts +82 -0
- package/src/Incidents/FailHeartbeat.ts +55 -0
- package/src/Incidents/FailHeartbeatHttp.ts +28 -0
- package/src/Incidents/GoogleMonitoringIntegration.ts +98 -0
- package/src/Incidents/GrafanaIntegration.ts +105 -0
- package/src/Incidents/Heartbeat.ts +143 -0
- package/src/Incidents/HeartbeatGroup.ts +83 -0
- package/src/Incidents/IncomingEmailIntegration.ts +120 -0
- package/src/Incidents/IncomingWebhookIntegration.ts +141 -0
- package/src/Incidents/JiraIntegration.ts +83 -0
- package/src/Incidents/LinearIntegration.ts +94 -0
- package/src/Incidents/Metadata.ts +133 -0
- package/src/Incidents/Monitor.ts +150 -0
- package/src/Incidents/MonitorGroup.ts +91 -0
- package/src/Incidents/NewRelicIntegration.ts +102 -0
- package/src/Incidents/OnCallRotation.ts +295 -0
- package/src/Incidents/OnCallSchedule.ts +115 -0
- package/src/Incidents/OutgoingEmailIntegration.ts +84 -0
- package/src/Incidents/OutgoingPagerDutyIntegration.ts +78 -0
- package/src/Incidents/OutgoingWebhookIntegration.ts +147 -0
- package/src/Incidents/PrometheusIntegration.ts +109 -0
- package/src/Incidents/Reference.ts +210 -0
- package/src/Incidents/ReportHeartbeat.ts +149 -0
- package/src/Incidents/ReportHeartbeatHttp.ts +30 -0
- package/src/Incidents/ResolveIncident.ts +74 -0
- package/src/Incidents/ResolveIncidentHttp.ts +28 -0
- package/src/Incidents/SendHeartbeat.ts +62 -0
- package/src/Incidents/SendHeartbeatHttp.ts +28 -0
- package/src/Incidents/Severity.ts +123 -0
- package/src/Incidents/SeverityGroup.ts +82 -0
- package/src/Incidents/SplunkOnCallIntegration.ts +76 -0
- package/src/Incidents/StatusPage.ts +178 -0
- package/src/Incidents/StatusPageGroup.ts +81 -0
- package/src/Incidents/StatusPageResource.ts +128 -0
- package/src/Incidents/StatusPageSection.ts +105 -0
- package/src/Incidents/StatusPageSubscriber.ts +163 -0
- package/src/Incidents/index.ts +213 -0
- package/src/Incidents/integrationFields.ts +174 -0
- package/src/Providers.ts +78 -0
- package/src/Telemetry/Alert.ts +135 -0
- package/src/Telemetry/AwsLogGroupSubscription.ts +97 -0
- package/src/Telemetry/BindingHttp.ts +40 -0
- package/src/Telemetry/Chart.ts +251 -0
- package/src/Telemetry/Collector.ts +157 -0
- package/src/Telemetry/CollectorTarget.ts +108 -0
- package/src/Telemetry/Connection.ts +182 -0
- package/src/Telemetry/Dashboard.ts +152 -0
- package/src/Telemetry/DashboardChart.ts +177 -0
- package/src/Telemetry/DashboardGroup.ts +86 -0
- package/src/Telemetry/DashboardSection.ts +115 -0
- package/src/Telemetry/Exploration.ts +139 -0
- package/src/Telemetry/ExplorationGroup.ts +93 -0
- package/src/Telemetry/Export.ts +263 -0
- package/src/Telemetry/ExtractedMetric.ts +112 -0
- package/src/Telemetry/IngestLogs.ts +95 -0
- package/src/Telemetry/IngestLogsHttp.ts +28 -0
- package/src/Telemetry/IngestMetrics.ts +76 -0
- package/src/Telemetry/IngestMetricsHttp.ts +28 -0
- package/src/Telemetry/OtelHeaders.ts +52 -0
- package/src/Telemetry/Query.ts +75 -0
- package/src/Telemetry/QueryHttp.ts +40 -0
- package/src/Telemetry/Reference.ts +164 -0
- package/src/Telemetry/ShipLogs.ts +162 -0
- package/src/Telemetry/Source.ts +328 -0
- package/src/Telemetry/SourceAwsAccount.ts +110 -0
- package/src/Telemetry/SourceGcpProject.ts +125 -0
- package/src/Telemetry/SourceGroup.ts +111 -0
- package/src/Telemetry/customBucket.ts +62 -0
- package/src/Telemetry/index.ts +104 -0
- package/src/globals.d.ts +4 -0
- package/src/index.ts +13 -0
- package/src/internal/DeployRetry.ts +64 -0
- package/src/internal/actionWait.ts +23 -0
- package/src/internal/applicationIds.ts +21 -0
- package/src/internal/attachments.ts +40 -0
- package/src/internal/budget.ts +69 -0
- package/src/internal/connection.ts +233 -0
- package/src/internal/crud.ts +1053 -0
- package/src/internal/errors.ts +32 -0
- package/src/internal/fields.ts +162 -0
- package/src/internal/gone.ts +19 -0
- package/src/internal/managedDatabase.ts +331 -0
- package/src/internal/managedService.ts +419 -0
- package/src/internal/migrations.ts +484 -0
- package/src/internal/ops.ts +86 -0
- package/src/internal/ownership.ts +84 -0
- package/src/internal/reference.ts +100 -0
- package/src/internal/scope.ts +84 -0
- package/src/internal/snapshot.ts +170 -0
- package/src/internal/unpaged.ts +29 -0
- package/src/internal/wait.ts +88 -0
- package/src/sdk/credentials.ts +222 -0
- package/src/sdk/errors.ts +125 -0
- package/src/sdk/index.ts +69 -0
- package/src/sdk/pagination.ts +100 -0
- package/src/sdk/protocol.ts +565 -0
- package/src/sdk/retry.ts +50 -0
- package/src/sdk/services/account.ts +1079 -0
- package/src/sdk/services/cloud.ts +38638 -0
- package/src/sdk/services/errors.ts +6182 -0
- package/src/sdk/services/heartbeat.ts +144 -0
- package/src/sdk/services/incidents.ts +25835 -0
- package/src/sdk/services/index.ts +8 -0
- package/src/sdk/services/ingest.ts +383 -0
- package/src/sdk/services/telemetry.ts +14868 -0
- package/src/sdk/traits.ts +77 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { Resource } from "alchemy/Resource";
|
|
2
|
+
import type { TeamProp } from "../internal/scope.ts";
|
|
3
|
+
import type { Providers } from "../Providers.ts";
|
|
4
|
+
import * as Incidents from "../sdk/services/incidents.ts";
|
|
5
|
+
/** Props of {@link StatusPageSubscriber}. */
|
|
6
|
+
export interface StatusPageSubscriberProps extends Omit<Incidents.CreateStatusPageSubscriberRequest, "teamId">, TeamProp {
|
|
7
|
+
}
|
|
8
|
+
/** Attributes of {@link StatusPageSubscriber}: the subscriber as the API returns it. */
|
|
9
|
+
export interface StatusPageSubscriberAttributes extends Omit<Incidents.StatusPageSubscriber, "statusPageId" | "statusPageResourceIds"> {
|
|
10
|
+
/** The status page the subscriber follows. */
|
|
11
|
+
statusPageId: string;
|
|
12
|
+
/**
|
|
13
|
+
* The status page resources the subscriber follows (as strings, like the
|
|
14
|
+
* props); empty when it follows the whole page.
|
|
15
|
+
*/
|
|
16
|
+
statusPageResourceIds?: Array<string> | undefined;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Props for {@link StatusPageSubscriber.lookup}: a subscriber is addressed
|
|
20
|
+
* through its page, by id or by e-mail (matched ignoring case).
|
|
21
|
+
*/
|
|
22
|
+
export type StatusPageSubscriberLookup = {
|
|
23
|
+
/** The status page's id. */
|
|
24
|
+
statusPageId: string;
|
|
25
|
+
/** The subscriber's id. */
|
|
26
|
+
id: string;
|
|
27
|
+
/** Team whose token selects the page, such as `t123`. Defaults to the credentials' team. */
|
|
28
|
+
teamId?: string;
|
|
29
|
+
} | {
|
|
30
|
+
/** The status page's id. */
|
|
31
|
+
statusPageId: string;
|
|
32
|
+
/** The subscriber's e-mail address, matched ignoring case. */
|
|
33
|
+
email: string;
|
|
34
|
+
/** Team whose token selects the page, such as `t123`. Defaults to the credentials' team. */
|
|
35
|
+
teamId?: string;
|
|
36
|
+
};
|
|
37
|
+
export type StatusPageSubscriber = Resource<"BetterStack.Incidents.StatusPageSubscriber", StatusPageSubscriberProps, StatusPageSubscriberAttributes, never, Providers, StatusPageSubscriberLookup>;
|
|
38
|
+
/**
|
|
39
|
+
* An e-mail address subscribed to a Better Stack {@link StatusPage}'s
|
|
40
|
+
* updates: for the whole page, or only for some of its
|
|
41
|
+
* {@link StatusPageResource}s (`statusPageResourceIds`). **Better Stack
|
|
42
|
+
* sends this address e-mail** whenever the page posts a status report or
|
|
43
|
+
* update, so subscribe only addresses that expect it. A subscriber created
|
|
44
|
+
* through the API is confirmed at once (no confirmation e-mail round trip).
|
|
45
|
+
*
|
|
46
|
+
* `statusPageResourceIds` changes in place; removing it from the config
|
|
47
|
+
* follows the whole page again. `email` can't be changed and `statusPageId`
|
|
48
|
+
* (the parent) and `teamId` replace the subscriber; an e-mail change that
|
|
49
|
+
* only differs in case is the same address, so the old subscription is
|
|
50
|
+
* removed before the new one is made.
|
|
51
|
+
*
|
|
52
|
+
* Deleting it unsubscribes the address ("The subscriber stops getting updates
|
|
53
|
+
* and is marked as unsubscribed"); subscribing the same address again brings
|
|
54
|
+
* the old subscriber back with its ID. An existing subscription of the same
|
|
55
|
+
* address on the page is adopted with `--adopt`.
|
|
56
|
+
*
|
|
57
|
+
* @see https://betterstack.com/docs/uptime/api/status-page-subscribers/
|
|
58
|
+
*
|
|
59
|
+
* ### Subscribing an address
|
|
60
|
+
* **Example:** The on-call mailbox follows the API only
|
|
61
|
+
* ```typescript
|
|
62
|
+
* const page = yield* BetterStack.Incidents.StatusPage("status", {
|
|
63
|
+
* companyName: "Acme Cloud",
|
|
64
|
+
* timezone: "UTC",
|
|
65
|
+
* });
|
|
66
|
+
* const api = yield* BetterStack.Incidents.StatusPageResource("api-item", {
|
|
67
|
+
* statusPageId: page.id,
|
|
68
|
+
* resourceType: "Monitor",
|
|
69
|
+
* resourceId: monitor.id,
|
|
70
|
+
* publicName: "Public API",
|
|
71
|
+
* });
|
|
72
|
+
* yield* BetterStack.Incidents.StatusPageSubscriber("oncall", {
|
|
73
|
+
* statusPageId: page.id,
|
|
74
|
+
* email: "oncall@acme.example.com",
|
|
75
|
+
* statusPageResourceIds: [api.id],
|
|
76
|
+
* });
|
|
77
|
+
* ```
|
|
78
|
+
*
|
|
79
|
+
* ### Looking up a subscriber
|
|
80
|
+
* **Example:** By e-mail on a page
|
|
81
|
+
* ```typescript
|
|
82
|
+
* const existing = BetterStack.Incidents.StatusPageSubscriber.lookup({
|
|
83
|
+
* statusPageId: "123",
|
|
84
|
+
* email: "oncall@acme.example.com",
|
|
85
|
+
* });
|
|
86
|
+
* ```
|
|
87
|
+
*
|
|
88
|
+
* @resource
|
|
89
|
+
* @product Incidents
|
|
90
|
+
*/
|
|
91
|
+
export declare const StatusPageSubscriber: import("alchemy/Resource").ResourceClass<StatusPageSubscriber>;
|
|
92
|
+
export declare const StatusPageSubscriberProvider: () => import("effect/Layer").Layer<import("alchemy/Provider").Provider<StatusPageSubscriber>, never, import("../internal/crud.ts").CrudRequirements>;
|
|
93
|
+
//# sourceMappingURL=StatusPageSubscriber.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatusPageSubscriber.d.ts","sourceRoot":"","sources":["../../src/Incidents/StatusPageSubscriber.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAK5C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,SAAS,MAAM,8BAA8B,CAAC;AAE1D,6CAA6C;AAC7C,MAAM,WAAW,yBACf,SAAQ,IAAI,CAAC,SAAS,CAAC,iCAAiC,EAAE,QAAQ,CAAC,EAAE,QAAQ;CAAG;AAElF,wFAAwF;AACxF,MAAM,WAAW,8BAA+B,SAAQ,IAAI,CAC1D,SAAS,CAAC,oBAAoB,EAC9B,cAAc,GAAG,uBAAuB,CACzC;IACC,8CAA8C;IAC9C,YAAY,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,qBAAqB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;CACnD;AAED;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAClC;IACE,4BAA4B;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,2BAA2B;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,4FAA4F;IAC5F,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GACD;IACE,4BAA4B;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,8DAA8D;IAC9D,KAAK,EAAE,MAAM,CAAC;IACd,4FAA4F;IAC5F,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEN,MAAM,MAAM,oBAAoB,GAAG,QAAQ,CACzC,4CAA4C,EAC5C,yBAAyB,EACzB,8BAA8B,EAC9B,KAAK,EACL,SAAS,EACT,0BAA0B,CAC3B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH,eAAO,MAAM,oBAAoB,gEAEhC,CAAC;AAWF,eAAO,MAAM,4BAA4B,sJAsCrC,CAAC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { Resource } from "alchemy/Resource";
|
|
2
|
+
import * as Effect from "effect/Effect";
|
|
3
|
+
import * as Stream from "effect/Stream";
|
|
4
|
+
import { crud } from "../internal/crud.js";
|
|
5
|
+
import { listWithParent, mapItems, mapOutput, withParent, wrapOp } from "../internal/ops.js";
|
|
6
|
+
import * as Incidents from "../sdk/services/incidents.js";
|
|
7
|
+
/**
|
|
8
|
+
* An e-mail address subscribed to a Better Stack {@link StatusPage}'s
|
|
9
|
+
* updates: for the whole page, or only for some of its
|
|
10
|
+
* {@link StatusPageResource}s (`statusPageResourceIds`). **Better Stack
|
|
11
|
+
* sends this address e-mail** whenever the page posts a status report or
|
|
12
|
+
* update, so subscribe only addresses that expect it. A subscriber created
|
|
13
|
+
* through the API is confirmed at once (no confirmation e-mail round trip).
|
|
14
|
+
*
|
|
15
|
+
* `statusPageResourceIds` changes in place; removing it from the config
|
|
16
|
+
* follows the whole page again. `email` can't be changed and `statusPageId`
|
|
17
|
+
* (the parent) and `teamId` replace the subscriber; an e-mail change that
|
|
18
|
+
* only differs in case is the same address, so the old subscription is
|
|
19
|
+
* removed before the new one is made.
|
|
20
|
+
*
|
|
21
|
+
* Deleting it unsubscribes the address ("The subscriber stops getting updates
|
|
22
|
+
* and is marked as unsubscribed"); subscribing the same address again brings
|
|
23
|
+
* the old subscriber back with its ID. An existing subscription of the same
|
|
24
|
+
* address on the page is adopted with `--adopt`.
|
|
25
|
+
*
|
|
26
|
+
* @see https://betterstack.com/docs/uptime/api/status-page-subscribers/
|
|
27
|
+
*
|
|
28
|
+
* ### Subscribing an address
|
|
29
|
+
* **Example:** The on-call mailbox follows the API only
|
|
30
|
+
* ```typescript
|
|
31
|
+
* const page = yield* BetterStack.Incidents.StatusPage("status", {
|
|
32
|
+
* companyName: "Acme Cloud",
|
|
33
|
+
* timezone: "UTC",
|
|
34
|
+
* });
|
|
35
|
+
* const api = yield* BetterStack.Incidents.StatusPageResource("api-item", {
|
|
36
|
+
* statusPageId: page.id,
|
|
37
|
+
* resourceType: "Monitor",
|
|
38
|
+
* resourceId: monitor.id,
|
|
39
|
+
* publicName: "Public API",
|
|
40
|
+
* });
|
|
41
|
+
* yield* BetterStack.Incidents.StatusPageSubscriber("oncall", {
|
|
42
|
+
* statusPageId: page.id,
|
|
43
|
+
* email: "oncall@acme.example.com",
|
|
44
|
+
* statusPageResourceIds: [api.id],
|
|
45
|
+
* });
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* ### Looking up a subscriber
|
|
49
|
+
* **Example:** By e-mail on a page
|
|
50
|
+
* ```typescript
|
|
51
|
+
* const existing = BetterStack.Incidents.StatusPageSubscriber.lookup({
|
|
52
|
+
* statusPageId: "123",
|
|
53
|
+
* email: "oncall@acme.example.com",
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* @resource
|
|
58
|
+
* @product Incidents
|
|
59
|
+
*/
|
|
60
|
+
export const StatusPageSubscriber = Resource("BetterStack.Incidents.StatusPageSubscriber");
|
|
61
|
+
/** The API answers the resource ids as numbers; the props take strings. */
|
|
62
|
+
const normalize = (subscriber) => ({
|
|
63
|
+
...subscriber,
|
|
64
|
+
statusPageResourceIds: subscriber.statusPageResourceIds?.map(String),
|
|
65
|
+
});
|
|
66
|
+
const sameAddress = (a, b) => a !== undefined && b !== undefined && a.toLowerCase() === b.toLowerCase();
|
|
67
|
+
export const StatusPageSubscriberProvider = () => crud(StatusPageSubscriber, {
|
|
68
|
+
// The responses carry the page id as a number: stamp it from the request.
|
|
69
|
+
ops: {
|
|
70
|
+
create: withParent(mapOutput(Incidents.createStatusPageSubscriber, normalize), [
|
|
71
|
+
"statusPageId",
|
|
72
|
+
]),
|
|
73
|
+
read: withParent(mapOutput(Incidents.getStatusPageSubscriber, normalize), ["statusPageId"]),
|
|
74
|
+
// `statusPageResourceIds` is required on update and replaces the selection: a
|
|
75
|
+
// selection removed from the config (sent as `null`) follows the whole page (`[]`).
|
|
76
|
+
update: wrapOp(Incidents.updateStatusPageSubscriber, (input) => Incidents.updateStatusPageSubscriber({
|
|
77
|
+
...input,
|
|
78
|
+
statusPageResourceIds: input.statusPageResourceIds ?? [],
|
|
79
|
+
})),
|
|
80
|
+
delete: Incidents.deleteStatusPageSubscriber,
|
|
81
|
+
list: listWithParent(mapItems(Incidents.listStatusPageSubscriber, normalize), [
|
|
82
|
+
"statusPageId",
|
|
83
|
+
]),
|
|
84
|
+
},
|
|
85
|
+
key: (subscriber) => ({ statusPageId: subscriber.statusPageId, id: subscriber.id }),
|
|
86
|
+
nullOnRemove: ["statusPageResourceIds"],
|
|
87
|
+
// Same page, same address in another case: the new subscription would be the old one.
|
|
88
|
+
deleteFirst: (news, olds) => news.statusPageId === olds.statusPageId && sameAddress(news.email, olds.email),
|
|
89
|
+
// Enumerate every status page's subscribers.
|
|
90
|
+
list: {
|
|
91
|
+
parents: Stream.runCollect(Incidents.listStatusPage.items({})).pipe(Effect.map((pages) => pages.map((page) => ({ statusPageId: page.id })))),
|
|
92
|
+
},
|
|
93
|
+
// The e-mail is unique on a page (matched ignoring case, as the API does).
|
|
94
|
+
lookup: {
|
|
95
|
+
match: (lookup, item) => "email" in lookup && sameAddress(lookup.email, item.email),
|
|
96
|
+
},
|
|
97
|
+
adoptBy: { match: (props) => (item) => sameAddress(props.email, item.email) },
|
|
98
|
+
stables: ["id", "statusPageId", "email", "createdAt"],
|
|
99
|
+
});
|
|
100
|
+
//# sourceMappingURL=StatusPageSubscriber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatusPageSubscriber.js","sourceRoot":"","sources":["../../src/Incidents/StatusPageSubscriber.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAG7F,OAAO,KAAK,SAAS,MAAM,8BAA8B,CAAC;AAmD1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,QAAQ,CAC1C,4CAA4C,CAC7C,CAAC;AAEF,2EAA2E;AAC3E,MAAM,SAAS,GAAG,CAA2C,UAAa,EAAE,EAAE,CAAC,CAAC;IAC9E,GAAG,UAAU;IACb,qBAAqB,EAAE,UAAU,CAAC,qBAAqB,EAAE,GAAG,CAAC,MAAM,CAAC;CACrE,CAAC,CAAC;AAEH,MAAM,WAAW,GAAG,CAAC,CAAqB,EAAE,CAAqB,EAAE,EAAE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E;QACJ,OAAO,EAAE,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CACjE,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,YAAY,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CACxE;KACF;IACD,2EAA2E;IAC3E,MAAM,EAAE;QACN,KAAK,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE,CAAC,OAAO,IAAI,MAAM,IAAI,WAAW,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC;KACpF;IACD,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE;IAC7E,OAAO,EAAE,CAAC,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,WAAW,CAAC;CACtD,CAAC,CAAC"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Better Stack Incidents resources — the Incidents (Uptime) API, `uptime.betterstack.com`: monitors, heartbeats, status pages, on-call, escalation policies, integrations.
|
|
3
|
+
*
|
|
4
|
+
* Adding a resource `src/Incidents/<Resource>.ts` takes three insertions here:
|
|
5
|
+
* `export * from "./<Resource>.ts";`, its resource class in {@link resources},
|
|
6
|
+
* and its `<Resource>Provider()` layer in {@link providers}.
|
|
7
|
+
*/
|
|
8
|
+
import * as Layer from "effect/Layer";
|
|
9
|
+
import { AmazonSnsIntegration } from "./AmazonSnsIntegration.ts";
|
|
10
|
+
import { AwsCloudWatchIntegration } from "./AwsCloudWatchIntegration.ts";
|
|
11
|
+
import { AzureIntegration } from "./AzureIntegration.ts";
|
|
12
|
+
import { CatalogRecord } from "./CatalogRecord.ts";
|
|
13
|
+
import { CatalogRelation } from "./CatalogRelation.ts";
|
|
14
|
+
import { DatadogIntegration } from "./DatadogIntegration.ts";
|
|
15
|
+
import { ElasticIntegration } from "./ElasticIntegration.ts";
|
|
16
|
+
import { EscalationPolicy } from "./EscalationPolicy.ts";
|
|
17
|
+
import { EscalationPolicyGroup } from "./EscalationPolicyGroup.ts";
|
|
18
|
+
import { GoogleMonitoringIntegration } from "./GoogleMonitoringIntegration.ts";
|
|
19
|
+
import { GrafanaIntegration } from "./GrafanaIntegration.ts";
|
|
20
|
+
import { Heartbeat } from "./Heartbeat.ts";
|
|
21
|
+
import { HeartbeatGroup } from "./HeartbeatGroup.ts";
|
|
22
|
+
import { IncomingEmailIntegration } from "./IncomingEmailIntegration.ts";
|
|
23
|
+
import { IncomingWebhookIntegration } from "./IncomingWebhookIntegration.ts";
|
|
24
|
+
import { JiraIntegration } from "./JiraIntegration.ts";
|
|
25
|
+
import { LinearIntegration } from "./LinearIntegration.ts";
|
|
26
|
+
import { Metadata } from "./Metadata.ts";
|
|
27
|
+
import { Monitor } from "./Monitor.ts";
|
|
28
|
+
import { MonitorGroup } from "./MonitorGroup.ts";
|
|
29
|
+
import { NewRelicIntegration } from "./NewRelicIntegration.ts";
|
|
30
|
+
import { OnCallRotation } from "./OnCallRotation.ts";
|
|
31
|
+
import { OnCallSchedule } from "./OnCallSchedule.ts";
|
|
32
|
+
import { OutgoingEmailIntegration } from "./OutgoingEmailIntegration.ts";
|
|
33
|
+
import { OutgoingPagerDutyIntegration } from "./OutgoingPagerDutyIntegration.ts";
|
|
34
|
+
import { OutgoingWebhookIntegration } from "./OutgoingWebhookIntegration.ts";
|
|
35
|
+
import { PrometheusIntegration } from "./PrometheusIntegration.ts";
|
|
36
|
+
import { Severity } from "./Severity.ts";
|
|
37
|
+
import { SeverityGroup } from "./SeverityGroup.ts";
|
|
38
|
+
import { SplunkOnCallIntegration } from "./SplunkOnCallIntegration.ts";
|
|
39
|
+
import { StatusPage } from "./StatusPage.ts";
|
|
40
|
+
import { StatusPageGroup } from "./StatusPageGroup.ts";
|
|
41
|
+
import { StatusPageResource } from "./StatusPageResource.ts";
|
|
42
|
+
import { StatusPageSection } from "./StatusPageSection.ts";
|
|
43
|
+
import { StatusPageSubscriber } from "./StatusPageSubscriber.ts";
|
|
44
|
+
export * from "./AcknowledgeIncident.ts";
|
|
45
|
+
export * from "./AcknowledgeIncidentHttp.ts";
|
|
46
|
+
export * from "./AmazonSnsIntegration.ts";
|
|
47
|
+
export * from "./AwsCloudWatchIntegration.ts";
|
|
48
|
+
export * from "./AzureIntegration.ts";
|
|
49
|
+
export * from "./CatalogRecord.ts";
|
|
50
|
+
export * from "./CatalogRelation.ts";
|
|
51
|
+
export * from "./CreateIncident.ts";
|
|
52
|
+
export * from "./CreateIncidentHttp.ts";
|
|
53
|
+
export * from "./CreateStatusReport.ts";
|
|
54
|
+
export * from "./CreateStatusReportHttp.ts";
|
|
55
|
+
export * from "./CreateStatusUpdate.ts";
|
|
56
|
+
export * from "./CreateStatusUpdateHttp.ts";
|
|
57
|
+
export * from "./DatadogIntegration.ts";
|
|
58
|
+
export * from "./ElasticIntegration.ts";
|
|
59
|
+
export * from "./EscalationPolicy.ts";
|
|
60
|
+
export * from "./EscalationPolicyGroup.ts";
|
|
61
|
+
export * from "./FailHeartbeat.ts";
|
|
62
|
+
export * from "./FailHeartbeatHttp.ts";
|
|
63
|
+
export * from "./GoogleMonitoringIntegration.ts";
|
|
64
|
+
export * from "./GrafanaIntegration.ts";
|
|
65
|
+
export * from "./Heartbeat.ts";
|
|
66
|
+
export * from "./HeartbeatGroup.ts";
|
|
67
|
+
export * from "./IncomingEmailIntegration.ts";
|
|
68
|
+
export * from "./IncomingWebhookIntegration.ts";
|
|
69
|
+
export type { AlertField, AlertingProps, AlertRule, AlertRuleType, IntegrationLookup, } from "./integrationFields.ts";
|
|
70
|
+
export * from "./JiraIntegration.ts";
|
|
71
|
+
export * from "./LinearIntegration.ts";
|
|
72
|
+
export * from "./Metadata.ts";
|
|
73
|
+
export * from "./Monitor.ts";
|
|
74
|
+
export * from "./MonitorGroup.ts";
|
|
75
|
+
export * from "./NewRelicIntegration.ts";
|
|
76
|
+
export * from "./OnCallRotation.ts";
|
|
77
|
+
export * from "./OnCallSchedule.ts";
|
|
78
|
+
export * from "./OutgoingEmailIntegration.ts";
|
|
79
|
+
export * from "./OutgoingPagerDutyIntegration.ts";
|
|
80
|
+
export * from "./OutgoingWebhookIntegration.ts";
|
|
81
|
+
export * from "./PrometheusIntegration.ts";
|
|
82
|
+
export * from "./Reference.ts";
|
|
83
|
+
export * from "./ReportHeartbeat.ts";
|
|
84
|
+
export * from "./ReportHeartbeatHttp.ts";
|
|
85
|
+
export * from "./ResolveIncident.ts";
|
|
86
|
+
export * from "./ResolveIncidentHttp.ts";
|
|
87
|
+
export * from "./SendHeartbeat.ts";
|
|
88
|
+
export * from "./SendHeartbeatHttp.ts";
|
|
89
|
+
export * from "./Severity.ts";
|
|
90
|
+
export * from "./SeverityGroup.ts";
|
|
91
|
+
export * from "./SplunkOnCallIntegration.ts";
|
|
92
|
+
export * from "./StatusPage.ts";
|
|
93
|
+
export * from "./StatusPageGroup.ts";
|
|
94
|
+
export * from "./StatusPageResource.ts";
|
|
95
|
+
export * from "./StatusPageSection.ts";
|
|
96
|
+
export * from "./StatusPageSubscriber.ts";
|
|
97
|
+
/**
|
|
98
|
+
* The Incidents resource classes, registered in the BetterStack provider
|
|
99
|
+
* collection by `providers()` in `src/Providers.ts`.
|
|
100
|
+
*/
|
|
101
|
+
export declare const resources: readonly [import("alchemy/Resource").ResourceClass<AmazonSnsIntegration>, import("alchemy/Resource").ResourceClass<AwsCloudWatchIntegration>, import("alchemy/Resource").ResourceClass<AzureIntegration>, import("alchemy/Resource").ResourceClass<CatalogRecord>, import("alchemy/Resource").ResourceClass<CatalogRelation>, import("alchemy/Resource").ResourceClass<DatadogIntegration>, import("alchemy/Resource").ResourceClass<ElasticIntegration>, import("alchemy/Resource").ResourceClass<EscalationPolicy>, import("alchemy/Resource").ResourceClass<EscalationPolicyGroup>, import("alchemy/Resource").ResourceClass<GoogleMonitoringIntegration>, import("alchemy/Resource").ResourceClass<GrafanaIntegration>, import("alchemy/Resource").ResourceClass<Heartbeat>, import("alchemy/Resource").ResourceClass<HeartbeatGroup>, import("alchemy/Resource").ResourceClass<IncomingEmailIntegration>, import("alchemy/Resource").ResourceClass<IncomingWebhookIntegration>, import("alchemy/Resource").ResourceClass<JiraIntegration>, import("alchemy/Resource").ResourceClass<LinearIntegration>, import("alchemy/Resource").ResourceClass<Metadata>, import("alchemy/Resource").ResourceClass<Monitor>, import("alchemy/Resource").ResourceClass<MonitorGroup>, import("alchemy/Resource").ResourceClass<NewRelicIntegration>, import("alchemy/Resource").ResourceClass<OnCallRotation>, import("alchemy/Resource").ResourceClass<OnCallSchedule>, import("alchemy/Resource").ResourceClass<OutgoingEmailIntegration>, import("alchemy/Resource").ResourceClass<OutgoingPagerDutyIntegration>, import("alchemy/Resource").ResourceClass<OutgoingWebhookIntegration>, import("alchemy/Resource").ResourceClass<PrometheusIntegration>, import("alchemy/Resource").ResourceClass<Severity>, import("alchemy/Resource").ResourceClass<SeverityGroup>, import("alchemy/Resource").ResourceClass<SplunkOnCallIntegration>, import("alchemy/Resource").ResourceClass<StatusPage>, import("alchemy/Resource").ResourceClass<StatusPageGroup>, import("alchemy/Resource").ResourceClass<StatusPageResource>, import("alchemy/Resource").ResourceClass<StatusPageSection>, import("alchemy/Resource").ResourceClass<StatusPageSubscriber>];
|
|
102
|
+
/**
|
|
103
|
+
* The Incidents resource provider layers, merged into the package-wide
|
|
104
|
+
* `BetterStack.providers()`. Not a complete provider layer on its own: the
|
|
105
|
+
* SDK credentials, HTTP client and retry policy come from `providers()`.
|
|
106
|
+
*/
|
|
107
|
+
export declare const providers: () => Layer.Layer<import("alchemy/Provider").Provider<AmazonSnsIntegration> | import("alchemy/Provider").Provider<AwsCloudWatchIntegration> | import("alchemy/Provider").Provider<AzureIntegration> | import("alchemy/Provider").Provider<CatalogRecord> | import("alchemy/Provider").Provider<CatalogRelation> | import("alchemy/Provider").Provider<DatadogIntegration> | import("alchemy/Provider").Provider<ElasticIntegration> | import("alchemy/Provider").Provider<EscalationPolicy> | import("alchemy/Provider").Provider<EscalationPolicyGroup> | import("alchemy/Provider").Provider<GoogleMonitoringIntegration> | import("alchemy/Provider").Provider<GrafanaIntegration> | import("alchemy/Provider").Provider<Heartbeat> | import("alchemy/Provider").Provider<HeartbeatGroup> | import("alchemy/Provider").Provider<IncomingEmailIntegration> | import("alchemy/Provider").Provider<IncomingWebhookIntegration> | import("alchemy/Provider").Provider<JiraIntegration> | import("alchemy/Provider").Provider<LinearIntegration> | import("alchemy/Provider").Provider<Metadata> | import("alchemy/Provider").Provider<Monitor> | import("alchemy/Provider").Provider<MonitorGroup> | import("alchemy/Provider").Provider<NewRelicIntegration> | import("alchemy/Provider").Provider<OnCallRotation> | import("alchemy/Provider").Provider<OnCallSchedule> | import("alchemy/Provider").Provider<OutgoingEmailIntegration> | import("alchemy/Provider").Provider<OutgoingPagerDutyIntegration> | import("alchemy/Provider").Provider<OutgoingWebhookIntegration> | import("alchemy/Provider").Provider<PrometheusIntegration> | import("alchemy/Provider").Provider<Severity> | import("alchemy/Provider").Provider<SeverityGroup> | import("alchemy/Provider").Provider<SplunkOnCallIntegration> | import("alchemy/Provider").Provider<StatusPage> | import("alchemy/Provider").Provider<StatusPageGroup> | import("alchemy/Provider").Provider<StatusPageResource> | import("alchemy/Provider").Provider<StatusPageSection> | import("alchemy/Provider").Provider<StatusPageSubscriber>, never, import("../Credentials.ts").Credentials | import("effect/http/HttpClient").HttpClient | import("alchemy/Stack").Stack | import("alchemy/Stage").Stage>;
|
|
108
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Incidents/index.ts"],"names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AC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,YAAY,EACV,UAAU,EACV,aAAa,EACb,SAAS,EACT,aAAa,EACb,iBAAiB,GAClB,MAAM,wBAAwB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAE1C;;;GAGG;AACH,eAAO,MAAM,SAAS,+mEAoCZ,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,SAAS,woEAqCnB,CAAC"}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Better Stack Incidents resources — the Incidents (Uptime) API, `uptime.betterstack.com`: monitors, heartbeats, status pages, on-call, escalation policies, integrations.
|
|
3
|
+
*
|
|
4
|
+
* Adding a resource `src/Incidents/<Resource>.ts` takes three insertions here:
|
|
5
|
+
* `export * from "./<Resource>.ts";`, its resource class in {@link resources},
|
|
6
|
+
* and its `<Resource>Provider()` layer in {@link providers}.
|
|
7
|
+
*/
|
|
8
|
+
import * as Layer from "effect/Layer";
|
|
9
|
+
import { AmazonSnsIntegration, AmazonSnsIntegrationProvider } from "./AmazonSnsIntegration.js";
|
|
10
|
+
import { AwsCloudWatchIntegration, AwsCloudWatchIntegrationProvider, } from "./AwsCloudWatchIntegration.js";
|
|
11
|
+
import { AzureIntegration, AzureIntegrationProvider } from "./AzureIntegration.js";
|
|
12
|
+
import { CatalogRecord, CatalogRecordProvider } from "./CatalogRecord.js";
|
|
13
|
+
import { CatalogRelation, CatalogRelationProvider } from "./CatalogRelation.js";
|
|
14
|
+
import { DatadogIntegration, DatadogIntegrationProvider } from "./DatadogIntegration.js";
|
|
15
|
+
import { ElasticIntegration, ElasticIntegrationProvider } from "./ElasticIntegration.js";
|
|
16
|
+
import { EscalationPolicy, EscalationPolicyProvider } from "./EscalationPolicy.js";
|
|
17
|
+
import { EscalationPolicyGroup, EscalationPolicyGroupProvider } from "./EscalationPolicyGroup.js";
|
|
18
|
+
import { GoogleMonitoringIntegration, GoogleMonitoringIntegrationProvider, } from "./GoogleMonitoringIntegration.js";
|
|
19
|
+
import { GrafanaIntegration, GrafanaIntegrationProvider } from "./GrafanaIntegration.js";
|
|
20
|
+
import { Heartbeat, HeartbeatProvider } from "./Heartbeat.js";
|
|
21
|
+
import { HeartbeatGroup, HeartbeatGroupProvider } from "./HeartbeatGroup.js";
|
|
22
|
+
import { IncomingEmailIntegration, IncomingEmailIntegrationProvider, } from "./IncomingEmailIntegration.js";
|
|
23
|
+
import { IncomingWebhookIntegration, IncomingWebhookIntegrationProvider, } from "./IncomingWebhookIntegration.js";
|
|
24
|
+
import { JiraIntegration, JiraIntegrationProvider } from "./JiraIntegration.js";
|
|
25
|
+
import { LinearIntegration, LinearIntegrationProvider } from "./LinearIntegration.js";
|
|
26
|
+
import { Metadata, MetadataProvider } from "./Metadata.js";
|
|
27
|
+
import { Monitor, MonitorProvider } from "./Monitor.js";
|
|
28
|
+
import { MonitorGroup, MonitorGroupProvider } from "./MonitorGroup.js";
|
|
29
|
+
import { NewRelicIntegration, NewRelicIntegrationProvider } from "./NewRelicIntegration.js";
|
|
30
|
+
import { OnCallRotation, OnCallRotationProvider } from "./OnCallRotation.js";
|
|
31
|
+
import { OnCallSchedule, OnCallScheduleProvider } from "./OnCallSchedule.js";
|
|
32
|
+
import { OutgoingEmailIntegration, OutgoingEmailIntegrationProvider, } from "./OutgoingEmailIntegration.js";
|
|
33
|
+
import { OutgoingPagerDutyIntegration, OutgoingPagerDutyIntegrationProvider, } from "./OutgoingPagerDutyIntegration.js";
|
|
34
|
+
import { OutgoingWebhookIntegration, OutgoingWebhookIntegrationProvider, } from "./OutgoingWebhookIntegration.js";
|
|
35
|
+
import { PrometheusIntegration, PrometheusIntegrationProvider } from "./PrometheusIntegration.js";
|
|
36
|
+
import { Severity, SeverityProvider } from "./Severity.js";
|
|
37
|
+
import { SeverityGroup, SeverityGroupProvider } from "./SeverityGroup.js";
|
|
38
|
+
import { SplunkOnCallIntegration, SplunkOnCallIntegrationProvider, } from "./SplunkOnCallIntegration.js";
|
|
39
|
+
import { StatusPage, StatusPageProvider } from "./StatusPage.js";
|
|
40
|
+
import { StatusPageGroup, StatusPageGroupProvider } from "./StatusPageGroup.js";
|
|
41
|
+
import { StatusPageResource, StatusPageResourceProvider } from "./StatusPageResource.js";
|
|
42
|
+
import { StatusPageSection, StatusPageSectionProvider } from "./StatusPageSection.js";
|
|
43
|
+
import { StatusPageSubscriber, StatusPageSubscriberProvider } from "./StatusPageSubscriber.js";
|
|
44
|
+
export * from "./AcknowledgeIncident.js";
|
|
45
|
+
export * from "./AcknowledgeIncidentHttp.js";
|
|
46
|
+
export * from "./AmazonSnsIntegration.js";
|
|
47
|
+
export * from "./AwsCloudWatchIntegration.js";
|
|
48
|
+
export * from "./AzureIntegration.js";
|
|
49
|
+
export * from "./CatalogRecord.js";
|
|
50
|
+
export * from "./CatalogRelation.js";
|
|
51
|
+
export * from "./CreateIncident.js";
|
|
52
|
+
export * from "./CreateIncidentHttp.js";
|
|
53
|
+
export * from "./CreateStatusReport.js";
|
|
54
|
+
export * from "./CreateStatusReportHttp.js";
|
|
55
|
+
export * from "./CreateStatusUpdate.js";
|
|
56
|
+
export * from "./CreateStatusUpdateHttp.js";
|
|
57
|
+
export * from "./DatadogIntegration.js";
|
|
58
|
+
export * from "./ElasticIntegration.js";
|
|
59
|
+
export * from "./EscalationPolicy.js";
|
|
60
|
+
export * from "./EscalationPolicyGroup.js";
|
|
61
|
+
export * from "./FailHeartbeat.js";
|
|
62
|
+
export * from "./FailHeartbeatHttp.js";
|
|
63
|
+
export * from "./GoogleMonitoringIntegration.js";
|
|
64
|
+
export * from "./GrafanaIntegration.js";
|
|
65
|
+
export * from "./Heartbeat.js";
|
|
66
|
+
export * from "./HeartbeatGroup.js";
|
|
67
|
+
export * from "./IncomingEmailIntegration.js";
|
|
68
|
+
export * from "./IncomingWebhookIntegration.js";
|
|
69
|
+
export * from "./JiraIntegration.js";
|
|
70
|
+
export * from "./LinearIntegration.js";
|
|
71
|
+
export * from "./Metadata.js";
|
|
72
|
+
export * from "./Monitor.js";
|
|
73
|
+
export * from "./MonitorGroup.js";
|
|
74
|
+
export * from "./NewRelicIntegration.js";
|
|
75
|
+
export * from "./OnCallRotation.js";
|
|
76
|
+
export * from "./OnCallSchedule.js";
|
|
77
|
+
export * from "./OutgoingEmailIntegration.js";
|
|
78
|
+
export * from "./OutgoingPagerDutyIntegration.js";
|
|
79
|
+
export * from "./OutgoingWebhookIntegration.js";
|
|
80
|
+
export * from "./PrometheusIntegration.js";
|
|
81
|
+
export * from "./Reference.js";
|
|
82
|
+
export * from "./ReportHeartbeat.js";
|
|
83
|
+
export * from "./ReportHeartbeatHttp.js";
|
|
84
|
+
export * from "./ResolveIncident.js";
|
|
85
|
+
export * from "./ResolveIncidentHttp.js";
|
|
86
|
+
export * from "./SendHeartbeat.js";
|
|
87
|
+
export * from "./SendHeartbeatHttp.js";
|
|
88
|
+
export * from "./Severity.js";
|
|
89
|
+
export * from "./SeverityGroup.js";
|
|
90
|
+
export * from "./SplunkOnCallIntegration.js";
|
|
91
|
+
export * from "./StatusPage.js";
|
|
92
|
+
export * from "./StatusPageGroup.js";
|
|
93
|
+
export * from "./StatusPageResource.js";
|
|
94
|
+
export * from "./StatusPageSection.js";
|
|
95
|
+
export * from "./StatusPageSubscriber.js";
|
|
96
|
+
/**
|
|
97
|
+
* The Incidents resource classes, registered in the BetterStack provider
|
|
98
|
+
* collection by `providers()` in `src/Providers.ts`.
|
|
99
|
+
*/
|
|
100
|
+
export const resources = [
|
|
101
|
+
AmazonSnsIntegration,
|
|
102
|
+
AwsCloudWatchIntegration,
|
|
103
|
+
AzureIntegration,
|
|
104
|
+
CatalogRecord,
|
|
105
|
+
CatalogRelation,
|
|
106
|
+
DatadogIntegration,
|
|
107
|
+
ElasticIntegration,
|
|
108
|
+
EscalationPolicy,
|
|
109
|
+
EscalationPolicyGroup,
|
|
110
|
+
GoogleMonitoringIntegration,
|
|
111
|
+
GrafanaIntegration,
|
|
112
|
+
Heartbeat,
|
|
113
|
+
HeartbeatGroup,
|
|
114
|
+
IncomingEmailIntegration,
|
|
115
|
+
IncomingWebhookIntegration,
|
|
116
|
+
JiraIntegration,
|
|
117
|
+
LinearIntegration,
|
|
118
|
+
Metadata,
|
|
119
|
+
Monitor,
|
|
120
|
+
MonitorGroup,
|
|
121
|
+
NewRelicIntegration,
|
|
122
|
+
OnCallRotation,
|
|
123
|
+
OnCallSchedule,
|
|
124
|
+
OutgoingEmailIntegration,
|
|
125
|
+
OutgoingPagerDutyIntegration,
|
|
126
|
+
OutgoingWebhookIntegration,
|
|
127
|
+
PrometheusIntegration,
|
|
128
|
+
Severity,
|
|
129
|
+
SeverityGroup,
|
|
130
|
+
SplunkOnCallIntegration,
|
|
131
|
+
StatusPage,
|
|
132
|
+
StatusPageGroup,
|
|
133
|
+
StatusPageResource,
|
|
134
|
+
StatusPageSection,
|
|
135
|
+
StatusPageSubscriber,
|
|
136
|
+
];
|
|
137
|
+
/**
|
|
138
|
+
* The Incidents resource provider layers, merged into the package-wide
|
|
139
|
+
* `BetterStack.providers()`. Not a complete provider layer on its own: the
|
|
140
|
+
* SDK credentials, HTTP client and retry policy come from `providers()`.
|
|
141
|
+
*/
|
|
142
|
+
export const providers = () => Layer.mergeAll(AmazonSnsIntegrationProvider(), AwsCloudWatchIntegrationProvider(), AzureIntegrationProvider(), CatalogRecordProvider(), CatalogRelationProvider(), DatadogIntegrationProvider(), ElasticIntegrationProvider(), EscalationPolicyProvider(), EscalationPolicyGroupProvider(), GoogleMonitoringIntegrationProvider(), GrafanaIntegrationProvider(), HeartbeatProvider(), HeartbeatGroupProvider(), IncomingEmailIntegrationProvider(), IncomingWebhookIntegrationProvider(), JiraIntegrationProvider(), LinearIntegrationProvider(), MetadataProvider(), MonitorProvider(), MonitorGroupProvider(), NewRelicIntegrationProvider(), OnCallRotationProvider(), OnCallScheduleProvider(), OutgoingEmailIntegrationProvider(), OutgoingPagerDutyIntegrationProvider(), OutgoingWebhookIntegrationProvider(), PrometheusIntegrationProvider(), SeverityProvider(), SeverityGroupProvider(), SplunkOnCallIntegrationProvider(), StatusPageProvider(), StatusPageGroupProvider(), StatusPageResourceProvider(), StatusPageSectionProvider(), StatusPageSubscriberProvider());
|
|
143
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Incidents/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,oBAAoB,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AAC/F,OAAO,EACL,wBAAwB,EACxB,gCAAgC,GACjC,MAAM,+B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B,EAAE,CAC/B,CAAC"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shapes and settings shared by the Incidents alert integrations, so each
|
|
3
|
+
* integration file only states what is its own.
|
|
4
|
+
*
|
|
5
|
+
* Three families share most of their shape:
|
|
6
|
+
*
|
|
7
|
+
* - **Alerting integrations** (`AwsCloudWatchIntegration`, `AzureIntegration`,
|
|
8
|
+
* `DatadogIntegration`, `ElasticIntegration`, `GoogleMonitoringIntegration`,
|
|
9
|
+
* `GrafanaIntegration`, `NewRelicIntegration`, `PrometheusIntegration`):
|
|
10
|
+
* Better Stack gives you a `webhookUrl` to paste into the other tool, and
|
|
11
|
+
* the alerts that tool sends there open incidents. They share the
|
|
12
|
+
* {@link AlertingProps} (who is alerted and how) and nothing else, except
|
|
13
|
+
* `alertingRule` on Datadog and New Relic.
|
|
14
|
+
* - **Rule-based incoming integrations** (`AmazonSnsIntegration`,
|
|
15
|
+
* `IncomingEmailIntegration`, `IncomingWebhookIntegration`): the same
|
|
16
|
+
* alerting props, plus rules that decide whether a notification opens,
|
|
17
|
+
* acknowledges or resolves an incident ({@link AlertRule},
|
|
18
|
+
* {@link AlertRuleType}) and fields that extract the cause, title, alert id
|
|
19
|
+
* and custom metadata from it ({@link AlertField}).
|
|
20
|
+
* - **Outgoing integrations** (`OutgoingEmailIntegration`,
|
|
21
|
+
* `OutgoingPagerDutyIntegration`, `OutgoingWebhookIntegration`,
|
|
22
|
+
* `SplunkOnCallIntegration`) send incidents somewhere else; take-over
|
|
23
|
+
* integrations (`JiraIntegration`, `LinearIntegration`) are connected in
|
|
24
|
+
* the Better Stack web app and only configured from here.
|
|
25
|
+
*
|
|
26
|
+
* The SDK generates one type per integration and member (they are
|
|
27
|
+
* structurally the same); the aliases here name the shared shape once, so a
|
|
28
|
+
* rule or field written for one integration can be reused on another.
|
|
29
|
+
*/
|
|
30
|
+
import type * as Incidents from "../sdk/services/incidents.ts";
|
|
31
|
+
/**
|
|
32
|
+
* Who an incident alerts, and how. Shared by every incoming integration;
|
|
33
|
+
* the members are documented on each integration's props.
|
|
34
|
+
*/
|
|
35
|
+
export type AlertingProps = Pick<Incidents.CreateIncidentsGrafanaIntegrationRequest, "escalationPolicyId" | "paused" | "call" | "sms" | "email" | "push" | "criticalAlert" | "teamWait">;
|
|
36
|
+
/**
|
|
37
|
+
* How to extract one value (the cause, the title, an alert id, or a custom
|
|
38
|
+
* metadata field) from an incoming notification: which part of the payload
|
|
39
|
+
* to read (`fieldTarget`: `json`, `header`, `query_string`, `body`, `xml`,
|
|
40
|
+
* `sns_envelope` for Amazon SNS; `from_email`, `subject`, `body` for
|
|
41
|
+
* e-mail), which value (`targetField`, such as
|
|
42
|
+
* `alert.id`), and what to keep of it (`matchType`, with `content`,
|
|
43
|
+
* `contentBefore`, `contentAfter`). Custom fields also have a `name`, the
|
|
44
|
+
* metadata key their value is saved under.
|
|
45
|
+
*
|
|
46
|
+
* **Example:** The cause is the `message` member of a JSON body
|
|
47
|
+
* ```typescript
|
|
48
|
+
* const cause: AlertField = { fieldTarget: "json", targetField: "message", matchType: "match_everything" };
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
export type AlertField = Incidents.CreateIncidentsIncomingWebhookIntegrationRequestCauseField;
|
|
52
|
+
/**
|
|
53
|
+
* One condition an incoming notification is checked against: the value
|
|
54
|
+
* `targetField` names in `ruleTarget` (`json`, `header`, `query_string`,
|
|
55
|
+
* `body`, `xml`, `sns_envelope`; `from_email`, `subject`, `body` for e-mail)
|
|
56
|
+
* compared with `content` by `matchType`
|
|
57
|
+
* (`equals`, `contains`, `matches_regex` and their `_not` forms).
|
|
58
|
+
*
|
|
59
|
+
* **Example:** Open an incident when `status` is `firing`
|
|
60
|
+
* ```typescript
|
|
61
|
+
* const firing: AlertRule = { ruleTarget: "json", targetField: "status", matchType: "equals", content: "firing" };
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
export type AlertRule = Incidents.CreateIncidentsIncomingWebhookIntegrationRequestStartedRulesItem;
|
|
65
|
+
/**
|
|
66
|
+
* How a list of {@link AlertRule}s combines: `unused` (the stage is not
|
|
67
|
+
* driven by rules), `any` (one rule matching is enough) or `all`.
|
|
68
|
+
* Acknowledging and resolving by rule also need the started and the
|
|
69
|
+
* acknowledged/resolved alert id fields, so the notification finds its
|
|
70
|
+
* incident.
|
|
71
|
+
*/
|
|
72
|
+
export type AlertRuleType = Incidents.CreateIncidentsIncomingWebhookIntegrationRequestStartedRuleType;
|
|
73
|
+
/** Props for the `lookup` of every integration: find one this stack doesn't manage. */
|
|
74
|
+
export interface IntegrationLookup {
|
|
75
|
+
/** The integration's id. */
|
|
76
|
+
id: string;
|
|
77
|
+
/** Team that owns it, such as `t123`. Defaults to the credentials' team. */
|
|
78
|
+
teamId?: string;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Alerting props cleared with `null` when removed from the config (the
|
|
82
|
+
* catalog's `nullableOnUpdateFields`, minus `name`, which is generated when
|
|
83
|
+
* omitted): removing `escalationPolicyId` alerts the on-call person directly
|
|
84
|
+
* again, removing `teamWait` never escalates to the whole team.
|
|
85
|
+
*/
|
|
86
|
+
export declare const ALERTING_NULL_ON_REMOVE: readonly ["escalationPolicyId", "teamWait"];
|
|
87
|
+
/**
|
|
88
|
+
* `adoptBy.match` for integrations with an optional `name`: an existing
|
|
89
|
+
* integration with the same explicit name is adopted (with `--adopt`); a
|
|
90
|
+
* generated name never matches anything.
|
|
91
|
+
*/
|
|
92
|
+
export declare const matchByName: (props: {
|
|
93
|
+
readonly name?: string | null | undefined;
|
|
94
|
+
}) => ((item: {
|
|
95
|
+
readonly name?: string | null | undefined;
|
|
96
|
+
}) => boolean) | undefined;
|
|
97
|
+
declare const RULE_LISTS: readonly ["startedRules", "acknowledgedRules", "resolvedRules"];
|
|
98
|
+
declare const FIELD_ROLES: {
|
|
99
|
+
readonly causeField: "cause";
|
|
100
|
+
readonly titleField: "title";
|
|
101
|
+
readonly startedAlertIdField: "alert_id";
|
|
102
|
+
readonly acknowledgedAlertIdField: "alert_id";
|
|
103
|
+
readonly resolvedAlertIdField: "alert_id";
|
|
104
|
+
};
|
|
105
|
+
declare const FIELD_LISTS: readonly ["otherStartedFields", "otherAcknowledgedFields", "otherResolvedFields"];
|
|
106
|
+
/**
|
|
107
|
+
* A rule-based integration as the props would state it, so a redeploy
|
|
108
|
+
* compares like with like: rule items lose the `createdAt`/`updatedAt` the
|
|
109
|
+
* API adds to each rule; extraction fields lose their `null` members and
|
|
110
|
+
* the `specialType` their member already implies (`causeField` is `cause`,
|
|
111
|
+
* `titleField` `title`, the alert id fields `alert_id`, custom fields
|
|
112
|
+
* `null`). Nothing the config can set is dropped.
|
|
113
|
+
*/
|
|
114
|
+
export declare const normalizeRuleBased: <T extends object>(integration: T) => T;
|
|
115
|
+
/**
|
|
116
|
+
* `crud`'s `compare` for a rule-based integration: the rule lists and the
|
|
117
|
+
* extraction fields are compared as subsets of what the API answers (it adds
|
|
118
|
+
* `createdAt`/`updatedAt` to each rule, `null` members and the implied
|
|
119
|
+
* `specialType` to each field), so a redeploy that declares them never
|
|
120
|
+
* re-sends them.
|
|
121
|
+
*/
|
|
122
|
+
export declare const ruleBasedCompare: { readonly [K in (typeof RULE_LISTS)[number] | keyof typeof FIELD_ROLES | (typeof FIELD_LISTS)[number]]: "subset"; };
|
|
123
|
+
export {};
|
|
124
|
+
//# sourceMappingURL=integrationFields.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrationFields.d.ts","sourceRoot":"","sources":["../../src/Incidents/integrationFields.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,KAAK,KAAK,SAAS,MAAM,8BAA8B,CAAC;AAE/D;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,IAAI,CAC9B,SAAS,CAAC,wCAAwC,EAClD,oBAAoB,GAAG,QAAQ,GAAG,MAAM,GAAG,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