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,77 @@
|
|
|
1
|
+
import * as Binding from "alchemy/Binding";
|
|
2
|
+
import type { RuntimeContext } from "alchemy/RuntimeContext";
|
|
3
|
+
import type * as Effect from "effect/Effect";
|
|
4
|
+
import type { ApiToken } from "../BetterStackBindings.ts";
|
|
5
|
+
import type { CreateReleaseError, CreateReleaseResponse } from "../sdk/services/errors.ts";
|
|
6
|
+
import type { Application } from "./Application.ts";
|
|
7
|
+
|
|
8
|
+
export type { CreateReleaseError, CreateReleaseResponse } from "../sdk/services/errors.ts";
|
|
9
|
+
|
|
10
|
+
/** A release of the bound application: its version (a semver or a commit ref) and environments. */
|
|
11
|
+
export interface RegisterReleaseRequest {
|
|
12
|
+
/** Release version or commit ref, as the Sentry SDK's `release` option sends it. */
|
|
13
|
+
readonly version: string;
|
|
14
|
+
/** Environments the release was deployed to; added to any it already has. */
|
|
15
|
+
readonly environment?: ReadonlyArray<string> | undefined;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/** Register a release on the bound application. */
|
|
19
|
+
export type RegisterReleaseClient = (
|
|
20
|
+
request: RegisterReleaseRequest,
|
|
21
|
+
) => Effect.Effect<CreateReleaseResponse, CreateReleaseError, RuntimeContext>;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Register a release of an {@link Application} (`create_release`), so error
|
|
25
|
+
* tracking can tell which version introduced or fixed an exception. Meant
|
|
26
|
+
* for deploy pipelines and release jobs: a host that ships a version
|
|
27
|
+
* registers it once, with the version its Sentry SDK reports.
|
|
28
|
+
*
|
|
29
|
+
* **Credential.** Registering a release needs an API token: the
|
|
30
|
+
* application's DSN can only report events. The host receives the
|
|
31
|
+
* {@link ApiToken} you pass — explicitly, never the deployer's own — under
|
|
32
|
+
* the name you give it (`Redacted`), plus `<name>_TEAM_ID` when given, and
|
|
33
|
+
* the application's id. The token can do whatever it can do in
|
|
34
|
+
* the Errors API, so use a **team-scoped Errors API token**, never a global
|
|
35
|
+
* one when you can avoid it.
|
|
36
|
+
*
|
|
37
|
+
* **Notifies.** Nobody; a release is a marker on the application's
|
|
38
|
+
* timeline.
|
|
39
|
+
*
|
|
40
|
+
* Provide {@link RegisterReleaseHttp} on the host's implementation.
|
|
41
|
+
*
|
|
42
|
+
* @see https://betterstack.com/docs/errors/api/releases/create/
|
|
43
|
+
*
|
|
44
|
+
* ### Registering the running version
|
|
45
|
+
* **Example:** A release job in a Cloud.Service
|
|
46
|
+
* ```typescript
|
|
47
|
+
* const ErrorsToken = BetterStack.apiTokenFromConfig("BETTERSTACK_ERRORS_TOKEN");
|
|
48
|
+
*
|
|
49
|
+
* export default class Releaser extends BetterStack.Cloud.Service<Releaser>()(
|
|
50
|
+
* "Releaser",
|
|
51
|
+
* { server: Box, main: import.meta.url },
|
|
52
|
+
* Effect.gen(function* () {
|
|
53
|
+
* const register = yield* BetterStack.Errors.RegisterRelease(Errors, ErrorsToken);
|
|
54
|
+
* const inHost = yield* BetterStack.withHostRuntime;
|
|
55
|
+
* const host = yield* ServerHost;
|
|
56
|
+
* yield* host.run(
|
|
57
|
+
* inHost(register({ version: "1.4.2", environment: ["production"] }).pipe(Effect.ignore)),
|
|
58
|
+
* );
|
|
59
|
+
* }).pipe(Effect.provide(BetterStack.Errors.RegisterReleaseHttp)),
|
|
60
|
+
* ) {}
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* The same binding works on any Alchemy host (a Worker's deploy hook, a
|
|
64
|
+
* Lambda Function): token and id are bound through `RuntimeContext`.
|
|
65
|
+
*
|
|
66
|
+
* @binding
|
|
67
|
+
* @product Errors
|
|
68
|
+
*/
|
|
69
|
+
export interface RegisterRelease extends Binding.Service<
|
|
70
|
+
RegisterRelease,
|
|
71
|
+
"BetterStack.Errors.RegisterRelease",
|
|
72
|
+
(application: Application, token: ApiToken) => Effect.Effect<RegisterReleaseClient>
|
|
73
|
+
> {}
|
|
74
|
+
|
|
75
|
+
export const RegisterRelease = Binding.Service<RegisterRelease>(
|
|
76
|
+
"BetterStack.Errors.RegisterRelease",
|
|
77
|
+
);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect";
|
|
2
|
+
import * as Layer from "effect/Layer";
|
|
3
|
+
import {
|
|
4
|
+
bindApiToken,
|
|
5
|
+
bindId,
|
|
6
|
+
envKey,
|
|
7
|
+
withCredentials,
|
|
8
|
+
type ApiToken,
|
|
9
|
+
type EnvValue,
|
|
10
|
+
} from "../BetterStackBindings.ts";
|
|
11
|
+
import * as Errors from "../sdk/services/errors.ts";
|
|
12
|
+
import type { Application } from "./Application.ts";
|
|
13
|
+
import { RegisterRelease, type RegisterReleaseClient } from "./RegisterRelease.ts";
|
|
14
|
+
|
|
15
|
+
const TAG = "BetterStack.Errors.RegisterRelease";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The HTTP implementation of {@link RegisterRelease} (`Errors.createRelease`
|
|
19
|
+
* with the API token you pass, on the bound application only). Provide it on
|
|
20
|
+
* the host's implementation.
|
|
21
|
+
*
|
|
22
|
+
* @layer
|
|
23
|
+
* @product Errors
|
|
24
|
+
* @provides BetterStack.Errors.RegisterRelease
|
|
25
|
+
*/
|
|
26
|
+
export const RegisterReleaseHttp = Layer.succeed(
|
|
27
|
+
RegisterRelease,
|
|
28
|
+
Effect.fn(TAG)(function* (application: Application, token: ApiToken) {
|
|
29
|
+
const credentials = yield* bindApiToken(TAG, "errors", token);
|
|
30
|
+
const applicationId = yield* bindId(
|
|
31
|
+
TAG,
|
|
32
|
+
envKey("ERRORS_APPLICATION", application, "ID"),
|
|
33
|
+
// Cast: at bind time an attribute is its Output, but the resource type declares the resolved value.
|
|
34
|
+
application.id as unknown as EnvValue,
|
|
35
|
+
);
|
|
36
|
+
const create = withCredentials(Errors.createRelease, credentials);
|
|
37
|
+
const client: RegisterReleaseClient = (request) =>
|
|
38
|
+
Effect.flatMap(applicationId, (id) =>
|
|
39
|
+
create({
|
|
40
|
+
version: request.version,
|
|
41
|
+
applications: [Number(id)],
|
|
42
|
+
...(request.environment !== undefined ? { environment: [...request.environment] } : {}),
|
|
43
|
+
}),
|
|
44
|
+
);
|
|
45
|
+
return client;
|
|
46
|
+
}),
|
|
47
|
+
);
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
import { Unowned } from "alchemy/AdoptPolicy";
|
|
2
|
+
import { isResolved } from "alchemy/Diff";
|
|
3
|
+
import * as Provider from "alchemy/Provider";
|
|
4
|
+
import { Resource } from "alchemy/Resource";
|
|
5
|
+
import * as Data from "effect/Data";
|
|
6
|
+
import * as Effect from "effect/Effect";
|
|
7
|
+
import * as Stream from "effect/Stream";
|
|
8
|
+
import { AmbiguousLookup } from "../internal/errors.ts";
|
|
9
|
+
import { same } from "../internal/fields.ts";
|
|
10
|
+
import { orUndefined } from "../internal/gone.ts";
|
|
11
|
+
import type { Providers } from "../Providers.ts";
|
|
12
|
+
import * as Errors from "../sdk/services/errors.ts";
|
|
13
|
+
|
|
14
|
+
/** Props of {@link Release}. Every change replaces the release (the API has no update). */
|
|
15
|
+
export interface ReleaseProps extends Pick<Errors.CreateReleaseRequest, "version" | "teamId"> {
|
|
16
|
+
/** The {@link Application} to register the release on: its `id`. */
|
|
17
|
+
applicationId: string;
|
|
18
|
+
/**
|
|
19
|
+
* Environments this release was deployed to, such as `["production"]`.
|
|
20
|
+
* Added to any environments the release already has. Never returned by the
|
|
21
|
+
* API on its own: the attributes keep what was sent.
|
|
22
|
+
*/
|
|
23
|
+
environment?: Errors.CreateReleaseRequestEnvironmentList;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** Attributes of {@link Release}: the release as the API returns it, plus what was sent. */
|
|
27
|
+
export interface ReleaseAttributes extends Omit<Errors.Release, "applicationId"> {
|
|
28
|
+
/**
|
|
29
|
+
* The application the props named (for a release found by `list`/`lookup`,
|
|
30
|
+
* the one the API answers). A connected application's release lives on the
|
|
31
|
+
* application it is connected to, whose id the API answers instead.
|
|
32
|
+
*/
|
|
33
|
+
applicationId: string;
|
|
34
|
+
/** Environments sent on create (`environments` is what the API holds). */
|
|
35
|
+
environment?: Errors.CreateReleaseRequestEnvironmentList | undefined;
|
|
36
|
+
/** The team sent on create, if any. Never returned by the API. */
|
|
37
|
+
teamId?: string | undefined;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** Props for {@link Release.lookup}: find a release this stack doesn't manage. */
|
|
41
|
+
export type ReleaseLookup =
|
|
42
|
+
| {
|
|
43
|
+
/** The release's id. */
|
|
44
|
+
id: string;
|
|
45
|
+
}
|
|
46
|
+
| {
|
|
47
|
+
/** The {@link Application} the release is on: its `id`. */
|
|
48
|
+
applicationId: string;
|
|
49
|
+
/** The release's version, such as `v1.2.3`. More than one match fails with `AmbiguousLookup`. */
|
|
50
|
+
version: string;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export type Release = Resource<
|
|
54
|
+
"BetterStack.Errors.Release",
|
|
55
|
+
ReleaseProps,
|
|
56
|
+
ReleaseAttributes,
|
|
57
|
+
never,
|
|
58
|
+
Providers,
|
|
59
|
+
ReleaseLookup
|
|
60
|
+
>;
|
|
61
|
+
|
|
62
|
+
/** `create_release` answered without a release on the requested application. */
|
|
63
|
+
export class ReleaseNotRegistered extends Data.TaggedError("ReleaseNotRegistered")<{
|
|
64
|
+
readonly message: string;
|
|
65
|
+
readonly applicationId: string;
|
|
66
|
+
readonly version: string;
|
|
67
|
+
}> {}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* A release of an error-tracking {@link Application}: registers a version
|
|
71
|
+
* (and the environments it was deployed to) so it appears the moment it
|
|
72
|
+
* deploys, before the first event that carries it, and errors can be
|
|
73
|
+
* resolved "in the current release".
|
|
74
|
+
*
|
|
75
|
+
* The API has no update: changing `version`, `applicationId`, `environment`
|
|
76
|
+
* or `teamId` replaces the release. When `version` and `applicationId` stay
|
|
77
|
+
* the same (an `environment` or `teamId` change), the old release is deleted
|
|
78
|
+
* first, because registering the same version again answers the same
|
|
79
|
+
* release. A version the application already reports (detected from events)
|
|
80
|
+
* is that existing release: it is adopted only with `--adopt`.
|
|
81
|
+
*
|
|
82
|
+
* Destroying the release deletes it; its errors are kept, and a version that
|
|
83
|
+
* still receives events is detected again by Better Stack's next scan.
|
|
84
|
+
*
|
|
85
|
+
* @see https://betterstack.com/docs/errors/api/releases/create/
|
|
86
|
+
*
|
|
87
|
+
* ### Registering a release
|
|
88
|
+
* **Example:** The version a deploy ships
|
|
89
|
+
* ```typescript
|
|
90
|
+
* const errors = yield* BetterStack.Errors.Application("api-errors", {
|
|
91
|
+
* platform: "bun_errors",
|
|
92
|
+
* });
|
|
93
|
+
* yield* BetterStack.Errors.Release("v1", {
|
|
94
|
+
* applicationId: errors.id,
|
|
95
|
+
* version: "v1.2.3",
|
|
96
|
+
* environment: ["production"],
|
|
97
|
+
* });
|
|
98
|
+
* ```
|
|
99
|
+
*
|
|
100
|
+
* The service reports the same version with `SENTRY_RELEASE` (or `release`
|
|
101
|
+
* in `Sentry.init`), so its events land on this release.
|
|
102
|
+
*
|
|
103
|
+
* ### Looking up an existing release
|
|
104
|
+
* **Example:** By id, or by its application and version (a version Better Stack detected from events)
|
|
105
|
+
* ```typescript
|
|
106
|
+
* const byId = BetterStack.Errors.Release.lookup({ id: "123456" });
|
|
107
|
+
* const detected = BetterStack.Errors.Release.lookup({ applicationId: "4321", version: "v1.2.2" });
|
|
108
|
+
* ```
|
|
109
|
+
*
|
|
110
|
+
* @resource
|
|
111
|
+
* @product Errors
|
|
112
|
+
*/
|
|
113
|
+
export const Release = Resource<Release>("BetterStack.Errors.Release");
|
|
114
|
+
|
|
115
|
+
const toAttrs = (release: Errors.Release, props: ReleaseProps | undefined): ReleaseAttributes => {
|
|
116
|
+
const { applicationId, ...rest } = release;
|
|
117
|
+
return {
|
|
118
|
+
...rest,
|
|
119
|
+
// The application named in the props; the API's own when there are none (list, lookup).
|
|
120
|
+
applicationId:
|
|
121
|
+
props?.applicationId ?? (applicationId === undefined ? "" : String(applicationId)),
|
|
122
|
+
...(props?.environment !== undefined ? { environment: props.environment } : {}),
|
|
123
|
+
...(props?.teamId !== undefined ? { teamId: props.teamId } : {}),
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
/** The members whose change replaces a release (all of them). */
|
|
128
|
+
const MEMBERS = ["version", "applicationId", "environment", "teamId"] as const;
|
|
129
|
+
|
|
130
|
+
export const ReleaseProvider = () =>
|
|
131
|
+
Provider.effect(
|
|
132
|
+
Release,
|
|
133
|
+
Effect.succeed({
|
|
134
|
+
stables: ["id", "applicationId", "version", "createdAt", "firstSeenAt"],
|
|
135
|
+
|
|
136
|
+
diff: Effect.fn(function* ({ news, olds }) {
|
|
137
|
+
// Every member replaces, so one still unknown at plan time (an application created
|
|
138
|
+
// or replaced in this deploy) is a replace: an update would keep the release on
|
|
139
|
+
// the old application.
|
|
140
|
+
if (!isResolved(news)) return { action: "replace" } as const;
|
|
141
|
+
const changed = MEMBERS.some((key) => !same(news[key], olds?.[key]));
|
|
142
|
+
if (!changed) return { action: "noop" } as const;
|
|
143
|
+
// Same version on the same application: registering again answers the
|
|
144
|
+
// same release, so the old generation must go first.
|
|
145
|
+
const sameRelease =
|
|
146
|
+
news.version === olds?.version && news.applicationId === olds?.applicationId;
|
|
147
|
+
return { action: "replace", deleteFirst: sameRelease } as const;
|
|
148
|
+
}),
|
|
149
|
+
|
|
150
|
+
read: Effect.fn(function* ({ olds, output, previous }) {
|
|
151
|
+
if (output !== undefined) {
|
|
152
|
+
const found = yield* orUndefined(Errors.getRelease({ id: output.id }));
|
|
153
|
+
return found === undefined ? undefined : toAttrs(found, olds);
|
|
154
|
+
}
|
|
155
|
+
if (olds === undefined) return undefined;
|
|
156
|
+
// No state yet: a version the application already reports is that release.
|
|
157
|
+
const head = yield* Errors.listRelease
|
|
158
|
+
.items({ applicationId: olds.applicationId, version: olds.version })
|
|
159
|
+
.pipe(
|
|
160
|
+
Stream.filter(
|
|
161
|
+
(r) => r.version === olds.version && String(r.applicationId) === olds.applicationId,
|
|
162
|
+
),
|
|
163
|
+
Stream.runHead,
|
|
164
|
+
);
|
|
165
|
+
if (head._tag === "None") return undefined;
|
|
166
|
+
// During a replacement, the generation being replaced is not the replacement.
|
|
167
|
+
if (previous !== undefined && previous.id === head.value.id) return undefined;
|
|
168
|
+
return Unowned(toAttrs(head.value, olds));
|
|
169
|
+
}),
|
|
170
|
+
|
|
171
|
+
reconcile: Effect.fn(function* ({ news, output }) {
|
|
172
|
+
if (output !== undefined) {
|
|
173
|
+
const found = yield* orUndefined(Errors.getRelease({ id: output.id }));
|
|
174
|
+
// Nothing to sync: every prop change is a replace.
|
|
175
|
+
if (found !== undefined) return toAttrs(found, news);
|
|
176
|
+
}
|
|
177
|
+
// The official create_release schema takes `applications` (integer ids);
|
|
178
|
+
// the Terraform provider sends `application_id` instead (catalog disagreement).
|
|
179
|
+
const created = yield* Errors.createRelease({
|
|
180
|
+
version: news.version,
|
|
181
|
+
applications: [Number(news.applicationId)],
|
|
182
|
+
...(news.environment !== undefined ? { environment: news.environment } : {}),
|
|
183
|
+
...(news.teamId !== undefined ? { teamId: news.teamId } : {}),
|
|
184
|
+
});
|
|
185
|
+
// One application was asked for. A connected application's release is
|
|
186
|
+
// registered on the application it is connected to, so a single answer is
|
|
187
|
+
// the release even when its application differs.
|
|
188
|
+
const releases = created.releases ?? [];
|
|
189
|
+
const registered =
|
|
190
|
+
releases.find((r) => String(r.applicationId) === news.applicationId) ??
|
|
191
|
+
(releases.length === 1 ? releases[0] : undefined);
|
|
192
|
+
if (registered?.id === undefined) {
|
|
193
|
+
return yield* new ReleaseNotRegistered({
|
|
194
|
+
message: `Errors.Release: ${news.version} was not registered on application ${news.applicationId}`,
|
|
195
|
+
applicationId: news.applicationId,
|
|
196
|
+
version: news.version,
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
const release = yield* Errors.getRelease({ id: String(registered.id) });
|
|
200
|
+
return toAttrs(release, news);
|
|
201
|
+
}),
|
|
202
|
+
|
|
203
|
+
delete: Effect.fn(function* ({ output }) {
|
|
204
|
+
yield* Effect.asVoid(orUndefined(Errors.deleteRelease({ id: output.id })));
|
|
205
|
+
}),
|
|
206
|
+
|
|
207
|
+
list: () =>
|
|
208
|
+
Stream.runCollect(Errors.listRelease.items({})).pipe(
|
|
209
|
+
Effect.map((items) => Array.from(items, (r) => toAttrs(r, undefined))),
|
|
210
|
+
),
|
|
211
|
+
|
|
212
|
+
lookup: Effect.fn(function* (lookup: ReleaseLookup) {
|
|
213
|
+
if ("id" in lookup) {
|
|
214
|
+
const found = yield* orUndefined(Errors.getRelease({ id: lookup.id }));
|
|
215
|
+
return found === undefined ? undefined : toAttrs(found, undefined);
|
|
216
|
+
}
|
|
217
|
+
// By application and version: the one listed release that has both.
|
|
218
|
+
const matches = Array.from(
|
|
219
|
+
yield* Errors.listRelease
|
|
220
|
+
.items({ applicationId: lookup.applicationId, version: lookup.version })
|
|
221
|
+
.pipe(
|
|
222
|
+
Stream.filter(
|
|
223
|
+
(r) =>
|
|
224
|
+
r.version === lookup.version && String(r.applicationId) === lookup.applicationId,
|
|
225
|
+
),
|
|
226
|
+
Stream.take(2),
|
|
227
|
+
Stream.runCollect,
|
|
228
|
+
),
|
|
229
|
+
);
|
|
230
|
+
if (matches.length > 1) {
|
|
231
|
+
return yield* new AmbiguousLookup({
|
|
232
|
+
message: `BetterStack.Errors.Release: more than one release matches ${JSON.stringify(lookup)}; look it up by its id`,
|
|
233
|
+
type: "BetterStack.Errors.Release",
|
|
234
|
+
lookup,
|
|
235
|
+
matches: matches.length,
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
return matches[0] === undefined ? undefined : toAttrs(matches[0], undefined);
|
|
239
|
+
}),
|
|
240
|
+
}),
|
|
241
|
+
);
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { Resource } from "alchemy/Resource";
|
|
2
|
+
import { stringifyApplicationIds } from "../internal/applicationIds.ts";
|
|
3
|
+
import { crud } from "../internal/crud.ts";
|
|
4
|
+
import { mapItems, mapOutput } from "../internal/ops.ts";
|
|
5
|
+
import type { TeamProp } from "../internal/scope.ts";
|
|
6
|
+
import type { Providers } from "../Providers.ts";
|
|
7
|
+
import * as Errors from "../sdk/services/errors.ts";
|
|
8
|
+
|
|
9
|
+
/** Props of {@link SlackIntegration}: the integration to take over, and the settings to apply. */
|
|
10
|
+
export interface SlackIntegrationProps
|
|
11
|
+
extends Omit<Errors.UpdateErrorsSlackIntegrationRequest, "id" | "teamId">, TeamProp {
|
|
12
|
+
/**
|
|
13
|
+
* The id of the Slack integration to take over: one connected in the Better
|
|
14
|
+
* Stack web app (Errors → Integrations → Slack), from
|
|
15
|
+
* [List Slack integrations](https://betterstack.com/docs/errors/api/integrations/slack/list/).
|
|
16
|
+
* Changing it takes over that integration instead; the previous one keeps
|
|
17
|
+
* its settings.
|
|
18
|
+
*/
|
|
19
|
+
integrationId: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/** Attributes of {@link SlackIntegration}: the integration as the API returns it. */
|
|
23
|
+
export interface SlackIntegrationAttributes extends Omit<
|
|
24
|
+
Errors.ErrorsSlackIntegration,
|
|
25
|
+
"applications"
|
|
26
|
+
> {
|
|
27
|
+
/** Applications whose errors this integration posts, each with its environments (ids as strings). */
|
|
28
|
+
applications?: Errors.UpdateErrorsSlackIntegrationRequestApplicationsList | undefined;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** Props for {@link SlackIntegration.lookup}. */
|
|
32
|
+
export interface SlackIntegrationLookup {
|
|
33
|
+
/** The integration's id. */
|
|
34
|
+
id: string;
|
|
35
|
+
/** Team that owns it, such as `t123`. Defaults to the credentials' team. */
|
|
36
|
+
teamId?: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export type SlackIntegration = Resource<
|
|
40
|
+
"BetterStack.Errors.SlackIntegration",
|
|
41
|
+
SlackIntegrationProps,
|
|
42
|
+
SlackIntegrationAttributes,
|
|
43
|
+
never,
|
|
44
|
+
Providers,
|
|
45
|
+
SlackIntegrationLookup
|
|
46
|
+
>;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* An Error tracking Slack integration: the Slack channel that gets error
|
|
50
|
+
* notifications, which errors reach it and how updates are posted.
|
|
51
|
+
*
|
|
52
|
+
* The API cannot create or delete one: connect Slack in the Better Stack web
|
|
53
|
+
* app first (it needs Slack's OAuth consent), then this resource **takes
|
|
54
|
+
* over** the integration named by `integrationId` and applies the settings
|
|
55
|
+
* you declare. Destroying the resource only forgets it; the integration and
|
|
56
|
+
* its settings stay in Better Stack. A missing `integrationId` fails the
|
|
57
|
+
* deploy.
|
|
58
|
+
*
|
|
59
|
+
* `applications` and `tagFilter` are replaced as a whole on update;
|
|
60
|
+
* `notifications` changes only the toggles sent, and only the toggles you
|
|
61
|
+
* declare are compared with what the API answers.
|
|
62
|
+
*
|
|
63
|
+
* @see https://betterstack.com/docs/errors/api/integrations/slack/update/
|
|
64
|
+
*
|
|
65
|
+
* ### Configuring a connected Slack integration
|
|
66
|
+
* **Example:** Post new errors of one application to the channel, in threads
|
|
67
|
+
* ```typescript
|
|
68
|
+
* const errors = yield* BetterStack.Errors.Application("api-errors", {
|
|
69
|
+
* platform: "bun_errors",
|
|
70
|
+
* });
|
|
71
|
+
* yield* BetterStack.Errors.SlackIntegration("slack", {
|
|
72
|
+
* integrationId: "12345",
|
|
73
|
+
* applications: [{ applicationId: errors.id, environments: ["production"] }],
|
|
74
|
+
* postUpdates: "thread_based",
|
|
75
|
+
* occurrenceThresholdCount: 50,
|
|
76
|
+
* occurrenceThresholdInterval: "hour",
|
|
77
|
+
* });
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
80
|
+
* @resource
|
|
81
|
+
* @product Errors
|
|
82
|
+
*/
|
|
83
|
+
export const SlackIntegration = Resource<SlackIntegration>("BetterStack.Errors.SlackIntegration");
|
|
84
|
+
|
|
85
|
+
const normalize = ({ applications, ...integration }: Errors.ErrorsSlackIntegration) => ({
|
|
86
|
+
...integration,
|
|
87
|
+
applications: stringifyApplicationIds(applications),
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
export const SlackIntegrationProvider = () =>
|
|
91
|
+
crud(SlackIntegration, {
|
|
92
|
+
ops: {
|
|
93
|
+
read: mapOutput(Errors.getErrorsSlackIntegration, normalize),
|
|
94
|
+
update: Errors.updateErrorsSlackIntegration,
|
|
95
|
+
list: mapItems(Errors.listErrorsSlackIntegration, normalize),
|
|
96
|
+
},
|
|
97
|
+
key: (integration) => ({ id: integration.id }),
|
|
98
|
+
takeOver: (props) => ({ id: props.integrationId }),
|
|
99
|
+
// The API merges `notifications`: only the declared toggles are compared.
|
|
100
|
+
compare: { notifications: "subset" },
|
|
101
|
+
replaceOn: ["integrationId"],
|
|
102
|
+
stables: ["id", "teamId"],
|
|
103
|
+
// Never deleted, so nothing to nuke.
|
|
104
|
+
nuke: { skip: true },
|
|
105
|
+
});
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Better Stack Errors resources — the Errors API, `errors.betterstack.com`: applications, application groups, releases, integrations.
|
|
3
|
+
*
|
|
4
|
+
* Adding a resource `src/Errors/<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 { Application, ApplicationProvider } from "./Application.ts";
|
|
10
|
+
import { ApplicationGroup, ApplicationGroupProvider } from "./ApplicationGroup.ts";
|
|
11
|
+
import { JiraIntegration, JiraIntegrationProvider } from "./JiraIntegration.ts";
|
|
12
|
+
import { LinearIntegration, LinearIntegrationProvider } from "./LinearIntegration.ts";
|
|
13
|
+
import {
|
|
14
|
+
MicrosoftTeamsIntegration,
|
|
15
|
+
MicrosoftTeamsIntegrationProvider,
|
|
16
|
+
} from "./MicrosoftTeamsIntegration.ts";
|
|
17
|
+
import { Release, ReleaseProvider } from "./Release.ts";
|
|
18
|
+
import { SlackIntegration, SlackIntegrationProvider } from "./SlackIntegration.ts";
|
|
19
|
+
|
|
20
|
+
export * from "./Application.ts";
|
|
21
|
+
export * from "./ApplicationGroup.ts";
|
|
22
|
+
export * from "./Dsn.ts";
|
|
23
|
+
export * from "./JiraIntegration.ts";
|
|
24
|
+
export * from "./LinearIntegration.ts";
|
|
25
|
+
export * from "./MicrosoftTeamsIntegration.ts";
|
|
26
|
+
export * from "./Reference.ts";
|
|
27
|
+
export * from "./RegisterRelease.ts";
|
|
28
|
+
export * from "./RegisterReleaseHttp.ts";
|
|
29
|
+
export * from "./Release.ts";
|
|
30
|
+
export * from "./SlackIntegration.ts";
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* The Errors resource classes, registered in the BetterStack provider
|
|
34
|
+
* collection by `providers()` in `src/Providers.ts`.
|
|
35
|
+
*/
|
|
36
|
+
export const resources = [
|
|
37
|
+
Application,
|
|
38
|
+
ApplicationGroup,
|
|
39
|
+
JiraIntegration,
|
|
40
|
+
LinearIntegration,
|
|
41
|
+
MicrosoftTeamsIntegration,
|
|
42
|
+
Release,
|
|
43
|
+
SlackIntegration,
|
|
44
|
+
] as const;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* The Errors resource provider layers, merged into the package-wide
|
|
48
|
+
* `BetterStack.providers()`. Not a complete provider layer on its own: the
|
|
49
|
+
* SDK credentials, HTTP client and retry policy come from `providers()`.
|
|
50
|
+
*/
|
|
51
|
+
export const providers = () =>
|
|
52
|
+
Layer.mergeAll(
|
|
53
|
+
ApplicationProvider(),
|
|
54
|
+
ApplicationGroupProvider(),
|
|
55
|
+
JiraIntegrationProvider(),
|
|
56
|
+
LinearIntegrationProvider(),
|
|
57
|
+
MicrosoftTeamsIntegrationProvider(),
|
|
58
|
+
ReleaseProvider(),
|
|
59
|
+
SlackIntegrationProvider(),
|
|
60
|
+
);
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import * as Binding from "alchemy/Binding";
|
|
2
|
+
import type { RuntimeContext } from "alchemy/RuntimeContext";
|
|
3
|
+
import type * as Effect from "effect/Effect";
|
|
4
|
+
import type { ApiToken } from "../BetterStackBindings.ts";
|
|
5
|
+
import type {
|
|
6
|
+
AcknowledgeIncidentError,
|
|
7
|
+
AcknowledgeIncidentRequest,
|
|
8
|
+
Incident,
|
|
9
|
+
} from "../sdk/services/incidents.ts";
|
|
10
|
+
|
|
11
|
+
export type {
|
|
12
|
+
AcknowledgeIncidentError,
|
|
13
|
+
AcknowledgeIncidentRequest,
|
|
14
|
+
} from "../sdk/services/incidents.ts";
|
|
15
|
+
|
|
16
|
+
/** Acknowledge an ongoing incident by id. */
|
|
17
|
+
export type AcknowledgeIncidentClient = (
|
|
18
|
+
request: Omit<AcknowledgeIncidentRequest, "teamId">,
|
|
19
|
+
) => Effect.Effect<Incident, AcknowledgeIncidentError, RuntimeContext>;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Acknowledge an ongoing incident from running code
|
|
23
|
+
* (`acknowledge_incident`), which pauses its escalation: nobody further down
|
|
24
|
+
* the escalation policy is alerted. `acknowledgedBy` credits a person (an
|
|
25
|
+
* e-mail) or any text; it defaults to `API` with an API token.
|
|
26
|
+
*
|
|
27
|
+
* **Notifies.** Nobody new; it stops the escalation. Connected integrations
|
|
28
|
+
* (Slack, …) show the acknowledgement. A resolved incident answers
|
|
29
|
+
* `Conflict`.
|
|
30
|
+
*
|
|
31
|
+
* **Credential.** These operations need an API token: Better Stack has no
|
|
32
|
+
* narrower credential for them (no per-incident or per-page token, no
|
|
33
|
+
* scopes). The host receives the {@link ApiToken} you pass — explicitly,
|
|
34
|
+
* never the deployer's own — under the name you give it (`Redacted`, a
|
|
35
|
+
* secret on every host), plus `<name>_TEAM_ID` when you give a team.
|
|
36
|
+
* The token can do everything it can do in the Uptime API, so use a
|
|
37
|
+
* **team-scoped Uptime API token** (Settings → API tokens) rather than a
|
|
38
|
+
* global one, and bind it only into hosts that need it.
|
|
39
|
+
*
|
|
40
|
+
* Provide {@link AcknowledgeIncidentHttp} on the host's implementation.
|
|
41
|
+
*
|
|
42
|
+
* @see https://betterstack.com/docs/uptime/api/acknowledge-an-ongoing-incident/
|
|
43
|
+
*
|
|
44
|
+
* ### From a Cloud.Service
|
|
45
|
+
* **Example:** Bind it with an explicit token
|
|
46
|
+
* ```typescript
|
|
47
|
+
* export default class Api extends BetterStack.Cloud.Service<Api>()(
|
|
48
|
+
* "Api",
|
|
49
|
+
* { server: Box, main: import.meta.url, port: 3000 },
|
|
50
|
+
* Effect.gen(function* () {
|
|
51
|
+
* const acknowledge = yield* BetterStack.Incidents.AcknowledgeIncident(IncidentsToken);
|
|
52
|
+
* return {
|
|
53
|
+
* fetch: Effect.gen(function* () {
|
|
54
|
+
* yield* acknowledge({ id: "123", acknowledgedBy: "bot@example.com" });
|
|
55
|
+
* return HttpServerResponse.text("acknowledged");
|
|
56
|
+
* }).pipe(Effect.orDie),
|
|
57
|
+
* };
|
|
58
|
+
* }).pipe(Effect.provide(BetterStack.Incidents.AcknowledgeIncidentHttp)),
|
|
59
|
+
* ) {}
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
62
|
+
* ### On any Alchemy host
|
|
63
|
+
* The token and ids are bound through `RuntimeContext`, so the same
|
|
64
|
+
* `yield* BetterStack.Incidents.AcknowledgeIncident(…)` works in a Cloudflare Worker or a
|
|
65
|
+
* Lambda Function, where the token becomes the host's secret.
|
|
66
|
+
*
|
|
67
|
+
* @binding
|
|
68
|
+
* @product Incidents
|
|
69
|
+
*/
|
|
70
|
+
export interface AcknowledgeIncident extends Binding.Service<
|
|
71
|
+
AcknowledgeIncident,
|
|
72
|
+
"BetterStack.Incidents.AcknowledgeIncident",
|
|
73
|
+
(token: ApiToken) => Effect.Effect<AcknowledgeIncidentClient>
|
|
74
|
+
> {}
|
|
75
|
+
|
|
76
|
+
export const AcknowledgeIncident = Binding.Service<AcknowledgeIncident>(
|
|
77
|
+
"BetterStack.Incidents.AcknowledgeIncident",
|
|
78
|
+
);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect";
|
|
2
|
+
import * as Layer from "effect/Layer";
|
|
3
|
+
import type { ApiToken } from "../BetterStackBindings.ts";
|
|
4
|
+
import * as Incidents from "../sdk/services/incidents.ts";
|
|
5
|
+
import { AcknowledgeIncident, type AcknowledgeIncidentClient } from "./AcknowledgeIncident.ts";
|
|
6
|
+
import { bindIncidentsOperation } from "./BindingHttp.ts";
|
|
7
|
+
|
|
8
|
+
const TAG = "BetterStack.Incidents.AcknowledgeIncident";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* The HTTP implementation of {@link AcknowledgeIncident} (`Incidents.acknowledgeIncident` with the API
|
|
12
|
+
* token you pass). Provide it on the host's implementation.
|
|
13
|
+
*
|
|
14
|
+
* @layer
|
|
15
|
+
* @product Incidents
|
|
16
|
+
* @provides BetterStack.Incidents.AcknowledgeIncident
|
|
17
|
+
*/
|
|
18
|
+
export const AcknowledgeIncidentHttp = Layer.succeed(
|
|
19
|
+
AcknowledgeIncident,
|
|
20
|
+
Effect.fn(TAG)(function* (token: ApiToken) {
|
|
21
|
+
const client: AcknowledgeIncidentClient = yield* bindIncidentsOperation(
|
|
22
|
+
TAG,
|
|
23
|
+
Incidents.acknowledgeIncident,
|
|
24
|
+
token,
|
|
25
|
+
);
|
|
26
|
+
return client;
|
|
27
|
+
}),
|
|
28
|
+
);
|