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,328 @@
|
|
|
1
|
+
import { Resource } from "alchemy/Resource";
|
|
2
|
+
import * as Effect from "effect/Effect";
|
|
3
|
+
import * as Redacted from "effect/Redacted";
|
|
4
|
+
import { budgetsFor } from "../internal/budget.ts";
|
|
5
|
+
import { crud } from "../internal/crud.ts";
|
|
6
|
+
import { matchesPrevious } from "../internal/fields.ts";
|
|
7
|
+
import { wrapOp } from "../internal/ops.ts";
|
|
8
|
+
import type { TeamProp } from "../internal/scope.ts";
|
|
9
|
+
import { waitFor } from "../internal/wait.ts";
|
|
10
|
+
import type { Providers } from "../Providers.ts";
|
|
11
|
+
import { fromSource } from "../sdk/credentials.ts";
|
|
12
|
+
import * as Ingest from "../sdk/services/ingest.ts";
|
|
13
|
+
import * as Telemetry from "../sdk/services/telemetry.ts";
|
|
14
|
+
import { customBucketInPlace } from "./customBucket.ts";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Members of the source API that belong to {@link SourceAwsAccount} and
|
|
18
|
+
* {@link SourceGcpProject} (connecting a cloud account), not to the source.
|
|
19
|
+
*/
|
|
20
|
+
type CloudAccountMembers =
|
|
21
|
+
| "awsAccountId"
|
|
22
|
+
| "awsRoleArn"
|
|
23
|
+
| "awsExternalId"
|
|
24
|
+
| "awsAutoSubLogGroups"
|
|
25
|
+
| "gcpAccountId"
|
|
26
|
+
| "gcpProjectId"
|
|
27
|
+
| "gcpProjectNumber";
|
|
28
|
+
|
|
29
|
+
/** Props of {@link Source}. */
|
|
30
|
+
export interface SourceProps
|
|
31
|
+
extends Omit<Telemetry.CreateSourceRequest, "teamId" | "name" | CloudAccountMembers>, TeamProp {
|
|
32
|
+
/** Source name. Defaults to a unique name generated from the stack, stage and logical id. */
|
|
33
|
+
name?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** Attributes of {@link Source}: the source as the API returns it, plus its ingest URL. */
|
|
37
|
+
export interface SourceAttributes extends Telemetry.Source {
|
|
38
|
+
/**
|
|
39
|
+
* `https://<ingestingHost>`: where applications send data, with
|
|
40
|
+
* `Authorization: Bearer <token>` (HTTP and OTLP/HTTP alike). `null` for the
|
|
41
|
+
* `prometheus_scrape` and `cloudflare_prometheus_exporter` platforms, whose
|
|
42
|
+
* data Better Stack scrapes.
|
|
43
|
+
*/
|
|
44
|
+
ingestUrl: string | null;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/** Props for {@link Source.lookup}: find a source this stack doesn't manage. */
|
|
48
|
+
export type SourceLookup =
|
|
49
|
+
| {
|
|
50
|
+
/** The source's id. */
|
|
51
|
+
id: string;
|
|
52
|
+
/** Team that owns it, such as `t123`. Defaults to the credentials' team. */
|
|
53
|
+
teamId?: string;
|
|
54
|
+
}
|
|
55
|
+
| {
|
|
56
|
+
/** The source's name. Names aren't unique: more than one match fails with `AmbiguousLookup`. */
|
|
57
|
+
name: string;
|
|
58
|
+
/** Team that owns it, such as `t123`. Defaults to the credentials' team. */
|
|
59
|
+
teamId?: string;
|
|
60
|
+
}
|
|
61
|
+
| {
|
|
62
|
+
/** The source's table name, such as `my_app` (what queries read from). More than one match fails with `AmbiguousLookup`. */
|
|
63
|
+
tableName: string;
|
|
64
|
+
/** Team that owns it, such as `t123`. Defaults to the credentials' team. */
|
|
65
|
+
teamId?: string;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export type Source = Resource<
|
|
69
|
+
"BetterStack.Telemetry.Source",
|
|
70
|
+
SourceProps,
|
|
71
|
+
SourceAttributes,
|
|
72
|
+
never,
|
|
73
|
+
Providers,
|
|
74
|
+
SourceLookup
|
|
75
|
+
>;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* A telemetry source: a stream of logs, metrics or traces ingested into
|
|
79
|
+
* Better Stack. Create one per application or platform, then hand its
|
|
80
|
+
* `token` (a `Redacted` secret) and `ingestingHost` / `ingestUrl` to whatever
|
|
81
|
+
* sends the data: an application's environment, a Cloudflare Worker's
|
|
82
|
+
* `vars`, a `Cloud.Service`'s `env`, or a Vector / OpenTelemetry Collector
|
|
83
|
+
* configuration. Everything is sent to `https://<ingestingHost>` with
|
|
84
|
+
* `Authorization: Bearer <token>`.
|
|
85
|
+
*
|
|
86
|
+
* `platform` decides which integration the source is set up for (its
|
|
87
|
+
* default VRL transformation, Live tail format and setup guide). Values:
|
|
88
|
+
* `apache2`, `aws`, `aws_cloudwatch`, `aws_ecs`, `aws_elb`, `aws_fargate`,
|
|
89
|
+
* `azure`, `azure_logs`, `claude_platform`, `cloudflare_logpush`,
|
|
90
|
+
* `cloudflare_prometheus_exporter`, `cloudflare_worker`, `datadog_agent`,
|
|
91
|
+
* `digitalocean`, `docker`, `dokku`, `dotnet`, `elasticsearch`, `erlang`,
|
|
92
|
+
* `fastly`, `filebeat`, `flights`, `fluentbit`, `fluentd`, `fly_io`, `gcp`,
|
|
93
|
+
* `go`, `google_cloud_pubsub`, `haproxy`, `heroku`, `http`, `java`,
|
|
94
|
+
* `javascript`, `kubernetes`, `logstash`, `minio`, `mongodb`, `mysql`,
|
|
95
|
+
* `nginx`, `open_telemetry`, `oracle_cloud`, `php`, `postgresql`,
|
|
96
|
+
* `prometheus`, `prometheus_scrape`, `python`, `rabbitmq`, `redis`,
|
|
97
|
+
* `render`, `rsyslog`, `ruby`, `syslog-ng`, `traefik`, `ubuntu`, `vector`,
|
|
98
|
+
* `vercel_integration`, `winlogbeat`. For a host or cluster agent, use a
|
|
99
|
+
* {@link Collector}, which creates its own source.
|
|
100
|
+
*
|
|
101
|
+
* Lifecycle:
|
|
102
|
+
* - `platform`, `dataRegion` and `teamId` can't change: changing one
|
|
103
|
+
* replaces the source, which deletes its data and issues a new token.
|
|
104
|
+
* - `connectedSourceIds` is compared against the previous deploy, not the
|
|
105
|
+
* live list (the API also lists sources connected from the other side).
|
|
106
|
+
* A change sends the whole list: an id you drop is disconnected, and so
|
|
107
|
+
* is a connection only the other source declared. Leave it out to leave
|
|
108
|
+
* the connections alone; `[]` disconnects every one. A connection needs
|
|
109
|
+
* an OpenTelemetry source (`platform: "open_telemetry"`) on at least one
|
|
110
|
+
* side: connecting it with an `http`, `vector` or another OpenTelemetry
|
|
111
|
+
* source works, while `vector`↔`vector` or `http`↔`http` is refused with a
|
|
112
|
+
* 422 (`connected_source_ids[0]: is not a source this source can be
|
|
113
|
+
* connected to`; observed live, the API description does not say so).
|
|
114
|
+
* Ids are strings.
|
|
115
|
+
* - Deleting sends `force=true`, so a source that has received data is
|
|
116
|
+
* deleted with its data (Terraform's `deletion_protection` is a
|
|
117
|
+
* Terraform-state-only guard; use Alchemy's `RemovalPolicy` to retain a
|
|
118
|
+
* source instead).
|
|
119
|
+
* - `scrapeRequestBasicAuthPassword` is never returned: changes are detected
|
|
120
|
+
* against the previous deploy. Removing it, `scrapeRequestBasicAuthUser` or
|
|
121
|
+
* `sourceGroupId` from the config clears it.
|
|
122
|
+
* - `customBucket` is set on create; afterwards only its key pair can be
|
|
123
|
+
* rotated (any other change, `null` included, fails with
|
|
124
|
+
* `CustomBucketImmutable`). Leaving it out of the config sends nothing:
|
|
125
|
+
* the bucket stays.
|
|
126
|
+
* - Connecting an AWS account or a GCP project is done by
|
|
127
|
+
* {@link SourceAwsAccount} / {@link SourceGcpProject}.
|
|
128
|
+
*
|
|
129
|
+
* @see https://betterstack.com/docs/logs/api/list-all-existing-sources/
|
|
130
|
+
* @see https://betterstack.com/docs/logs/ingesting-data/http/logs/
|
|
131
|
+
*
|
|
132
|
+
* ### Creating a source
|
|
133
|
+
* **Example:** An HTTP source kept for 30 days
|
|
134
|
+
* ```typescript
|
|
135
|
+
* const logs = yield* BetterStack.Telemetry.Source("api-logs", {
|
|
136
|
+
* platform: "http",
|
|
137
|
+
* logsRetention: 30,
|
|
138
|
+
* });
|
|
139
|
+
* ```
|
|
140
|
+
*
|
|
141
|
+
* ### Sending data to it
|
|
142
|
+
* The token is a `Redacted` secret: pass it as a secret environment value,
|
|
143
|
+
* never interpolate it into a string that ends up in state.
|
|
144
|
+
*
|
|
145
|
+
* **Example:** Environment for an application (a `Cloud.Service`'s `env`, a Worker's `vars`)
|
|
146
|
+
* ```typescript
|
|
147
|
+
* const otel = yield* BetterStack.Telemetry.Source("otel", { platform: "open_telemetry" });
|
|
148
|
+
* const env = {
|
|
149
|
+
* OTEL_EXPORTER_OTLP_ENDPOINT: otel.ingestUrl,
|
|
150
|
+
* BETTERSTACK_SOURCE_TOKEN: otel.token,
|
|
151
|
+
* };
|
|
152
|
+
* ```
|
|
153
|
+
*
|
|
154
|
+
* **Example:** A Vector sink that reads the token from its environment
|
|
155
|
+
* ```typescript
|
|
156
|
+
* const vector = yield* BetterStack.Telemetry.Source("vector", { platform: "vector" });
|
|
157
|
+
* const sink = Output.interpolate`[sinks.better_stack]
|
|
158
|
+
* type = "http"
|
|
159
|
+
* inputs = ["app_logs"]
|
|
160
|
+
* uri = "${vector.ingestUrl}"
|
|
161
|
+
* encoding.codec = "json"
|
|
162
|
+
* auth.strategy = "bearer"
|
|
163
|
+
* auth.token = "\${BETTERSTACK_SOURCE_TOKEN}"
|
|
164
|
+
* `;
|
|
165
|
+
* ```
|
|
166
|
+
*
|
|
167
|
+
* **Example:** An OpenTelemetry Collector exporter
|
|
168
|
+
* ```typescript
|
|
169
|
+
* const traces = yield* BetterStack.Telemetry.Source("traces", { platform: "open_telemetry" });
|
|
170
|
+
* const exporter = Output.interpolate`exporters:
|
|
171
|
+
* otlphttp/betterstack:
|
|
172
|
+
* endpoint: "${traces.ingestUrl}"
|
|
173
|
+
* headers:
|
|
174
|
+
* Authorization: "Bearer \${env:BETTERSTACK_SOURCE_TOKEN}"
|
|
175
|
+
* `;
|
|
176
|
+
* ```
|
|
177
|
+
*
|
|
178
|
+
* ### Sending right after create
|
|
179
|
+
* A new source's ingesting host refuses its token for its first seconds
|
|
180
|
+
* (`401 {"error": "Unauthorized"}`; 1-4 s measured). So that a host deployed
|
|
181
|
+
* in the same stack — a `Cloud.Service` exporting with `Telemetry.Export`, a
|
|
182
|
+
* Worker using `Telemetry.IngestLogs` — never sends into that window, a
|
|
183
|
+
* create only returns once the host accepts the token: it sends EMPTY
|
|
184
|
+
* batches (`[]`, which carry no event and write nothing) until one is
|
|
185
|
+
* accepted, for at most 60 seconds (then it logs a warning and continues).
|
|
186
|
+
* Anything that binds the source is created after it, so it starts with an
|
|
187
|
+
* accepted token. A sender outside the stack that uses a source the moment
|
|
188
|
+
* it is created should retry a 401 for a few seconds.
|
|
189
|
+
*
|
|
190
|
+
* ### Grouping sources
|
|
191
|
+
* **Example:** A source in a {@link SourceGroup}
|
|
192
|
+
* ```typescript
|
|
193
|
+
* const backend = yield* BetterStack.Telemetry.SourceGroup("backend", { name: "Backend" });
|
|
194
|
+
* yield* BetterStack.Telemetry.Source("checkout", {
|
|
195
|
+
* platform: "open_telemetry",
|
|
196
|
+
* sourceGroupId: backend.id,
|
|
197
|
+
* });
|
|
198
|
+
* ```
|
|
199
|
+
*
|
|
200
|
+
* ### Looking up an existing source
|
|
201
|
+
* **Example:** Reference a source by id
|
|
202
|
+
* ```typescript
|
|
203
|
+
* const existing = BetterStack.Telemetry.Source.lookup({ id: "123456" });
|
|
204
|
+
* ```
|
|
205
|
+
*
|
|
206
|
+
* **Example:** Reference a source by name, or by its table name (either fails with `AmbiguousLookup` when several sources match)
|
|
207
|
+
* ```typescript
|
|
208
|
+
* const production = BetterStack.Telemetry.Source.lookup({ name: "Production" });
|
|
209
|
+
* const byTable = BetterStack.Telemetry.Source.lookup({ tableName: "production" });
|
|
210
|
+
* ```
|
|
211
|
+
*
|
|
212
|
+
* @resource
|
|
213
|
+
* @product Telemetry
|
|
214
|
+
*/
|
|
215
|
+
export const Source = Resource<Source>("BetterStack.Telemetry.Source");
|
|
216
|
+
|
|
217
|
+
const TYPE = "BetterStack.Telemetry.Source";
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Wait (bounded) until a NEW source's ingesting host accepts its token.
|
|
221
|
+
*
|
|
222
|
+
* Live, a just-created source's host answers `401 {"error": "Unauthorized"}`
|
|
223
|
+
* for its first seconds (1-4 s measured on 2026-12-01), so anything that
|
|
224
|
+
* sends right after the create — a host deployed in the same stack — would
|
|
225
|
+
* lose its first batches. The probe is an EMPTY batch (`POST /` with `[]`):
|
|
226
|
+
* it carries no event and writes nothing, and it answers 401 exactly while
|
|
227
|
+
* the token is unknown. Any other answer ends the wait. A source with no
|
|
228
|
+
* ingesting host (one Better Stack scrapes) is not probed. Running out of
|
|
229
|
+
* budget only logs a warning: the source exists and is recorded.
|
|
230
|
+
*/
|
|
231
|
+
const awaitIngestReady = (source: Telemetry.Source) =>
|
|
232
|
+
Effect.gen(function* () {
|
|
233
|
+
if (!source.ingestingHost || source.token === undefined) return;
|
|
234
|
+
const budget = (yield* budgetsFor(TYPE))("ingest", {
|
|
235
|
+
timeout: "60 seconds",
|
|
236
|
+
interval: "1 second",
|
|
237
|
+
});
|
|
238
|
+
const token = Redacted.isRedacted(source.token) ? source.token : Redacted.make(source.token);
|
|
239
|
+
const accepted = Ingest.ingestLogs({ events: [] }).pipe(
|
|
240
|
+
Effect.provide(fromSource({ token, ingestingHost: source.ingestingHost })),
|
|
241
|
+
Effect.as(true),
|
|
242
|
+
Effect.catchTag("Unauthorized", () => Effect.succeed(false)),
|
|
243
|
+
// Any other answer (202, a platform that takes no logs on `/`, …): the token is known.
|
|
244
|
+
Effect.catch(() => Effect.succeed(true)),
|
|
245
|
+
);
|
|
246
|
+
yield* waitFor(
|
|
247
|
+
accepted,
|
|
248
|
+
{ until: (ok) => ok === true, ...budget },
|
|
249
|
+
{
|
|
250
|
+
resourceType: TYPE,
|
|
251
|
+
phase: "ingest",
|
|
252
|
+
},
|
|
253
|
+
).pipe(
|
|
254
|
+
Effect.catchTag("WaitTimeout", () =>
|
|
255
|
+
Effect.logWarning(
|
|
256
|
+
`${TYPE} ${source.id}: its ingesting host still refuses the new token; senders may get 401 for a while`,
|
|
257
|
+
),
|
|
258
|
+
),
|
|
259
|
+
);
|
|
260
|
+
});
|
|
261
|
+
|
|
262
|
+
export const SourceProvider = () =>
|
|
263
|
+
crud(Source, {
|
|
264
|
+
ops: {
|
|
265
|
+
// A new source's token is refused by its ingesting host for a few seconds.
|
|
266
|
+
create: wrapOp(Telemetry.createSource, (input: Telemetry.CreateSourceRequest) =>
|
|
267
|
+
Telemetry.createSource(input).pipe(Effect.tap(awaitIngestReady)),
|
|
268
|
+
),
|
|
269
|
+
read: Telemetry.getSource,
|
|
270
|
+
update: Telemetry.updateSource,
|
|
271
|
+
// A source that has received data is only deleted with `force`.
|
|
272
|
+
delete: wrapOp(Telemetry.deleteSource, (input: Telemetry.DeleteSourceRequest) =>
|
|
273
|
+
Telemetry.deleteSource({ ...input, force: true }),
|
|
274
|
+
),
|
|
275
|
+
list: Telemetry.listSource,
|
|
276
|
+
},
|
|
277
|
+
key: (source) => ({ id: source.id }),
|
|
278
|
+
toAttributes: (source) => ({
|
|
279
|
+
...source,
|
|
280
|
+
ingestUrl: source.ingestingHost ? `https://${source.ingestingHost}` : null,
|
|
281
|
+
}),
|
|
282
|
+
physicalName: { prop: "name" },
|
|
283
|
+
nullOnRemove: ["scrapeRequestBasicAuthPassword", "scrapeRequestBasicAuthUser", "sourceGroupId"],
|
|
284
|
+
inPlace: {
|
|
285
|
+
// Compared against the previous deploy: the API also lists the sources
|
|
286
|
+
// a connection reached transitively, and connections the other source declared.
|
|
287
|
+
connectedSourceIds: {
|
|
288
|
+
onCreate: true,
|
|
289
|
+
matches: matchesPrevious,
|
|
290
|
+
set: (source, connectedSourceIds) =>
|
|
291
|
+
Telemetry.updateSource({ id: source.id, teamId: source.teamId, connectedSourceIds }),
|
|
292
|
+
},
|
|
293
|
+
customBucket: customBucketInPlace("BetterStack.Telemetry.Source", (source, keys) =>
|
|
294
|
+
Telemetry.updateSource({
|
|
295
|
+
id: source.id,
|
|
296
|
+
teamId: source.teamId,
|
|
297
|
+
customBucket: keys,
|
|
298
|
+
}),
|
|
299
|
+
),
|
|
300
|
+
},
|
|
301
|
+
// Adopt a source with the same explicit name and platform.
|
|
302
|
+
adoptBy: {
|
|
303
|
+
match: (props) =>
|
|
304
|
+
props.name === undefined
|
|
305
|
+
? undefined
|
|
306
|
+
: (source) => source.name === props.name && source.platform === props.platform,
|
|
307
|
+
},
|
|
308
|
+
// By name (the list filters on it) or by table name.
|
|
309
|
+
lookup: {
|
|
310
|
+
match: (lookup, source) =>
|
|
311
|
+
"name" in lookup
|
|
312
|
+
? source.name === lookup.name
|
|
313
|
+
: "tableName" in lookup && source.tableName === lookup.tableName,
|
|
314
|
+
},
|
|
315
|
+
// Set at create and never changed by an update: what hosts and connections bind to.
|
|
316
|
+
stables: [
|
|
317
|
+
"id",
|
|
318
|
+
"teamId",
|
|
319
|
+
"createdAt",
|
|
320
|
+
"platform",
|
|
321
|
+
"dataRegion",
|
|
322
|
+
"tableName",
|
|
323
|
+
"cluster",
|
|
324
|
+
"token",
|
|
325
|
+
"ingestingHost",
|
|
326
|
+
"ingestUrl",
|
|
327
|
+
],
|
|
328
|
+
});
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { Resource } from "alchemy/Resource";
|
|
2
|
+
import { crud } from "../internal/crud.ts";
|
|
3
|
+
import type { TeamProp } from "../internal/scope.ts";
|
|
4
|
+
import type { Providers } from "../Providers.ts";
|
|
5
|
+
import * as Telemetry from "../sdk/services/telemetry.ts";
|
|
6
|
+
|
|
7
|
+
/** Props of {@link SourceAwsAccount}. */
|
|
8
|
+
export interface SourceAwsAccountProps
|
|
9
|
+
extends
|
|
10
|
+
Pick<
|
|
11
|
+
Telemetry.UpdateSourceRequest,
|
|
12
|
+
"awsAccountId" | "awsRoleArn" | "awsExternalId" | "awsAutoSubLogGroups"
|
|
13
|
+
>,
|
|
14
|
+
TeamProp {
|
|
15
|
+
/** The `aws` source to connect the account to. Changing it manages another source. */
|
|
16
|
+
sourceId: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/** Attributes of {@link SourceAwsAccount}: the connection as the source reports it. */
|
|
20
|
+
export interface SourceAwsAccountAttributes {
|
|
21
|
+
/** The `aws` source the account is connected to. */
|
|
22
|
+
sourceId: string;
|
|
23
|
+
/** Team that owns the source, such as `t123`. */
|
|
24
|
+
teamId?: string | undefined;
|
|
25
|
+
/** The source's platform (`aws`). */
|
|
26
|
+
platform?: string | undefined;
|
|
27
|
+
/** Whether new CloudWatch log groups are subscribed automatically when they're discovered. */
|
|
28
|
+
awsAutoSubLogGroups?: boolean | undefined;
|
|
29
|
+
/** Better Stack's id of the connected AWS account, when the props named one. Never returned by the API. */
|
|
30
|
+
awsAccountId?: string | undefined;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Props for {@link SourceAwsAccount.lookup}: the AWS account connection of a source this stack
|
|
35
|
+
* doesn't manage, found by the source's id. The lookup reads the source as
|
|
36
|
+
* it is; check `platform` (`aws`) when the id could name another kind of source.
|
|
37
|
+
*/
|
|
38
|
+
export interface SourceAwsAccountLookup {
|
|
39
|
+
/** The `aws` source's id. */
|
|
40
|
+
sourceId: string;
|
|
41
|
+
/** Team that owns the source, such as `t123`. Defaults to the credentials' team. */
|
|
42
|
+
teamId?: string;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export type SourceAwsAccount = Resource<
|
|
46
|
+
"BetterStack.Telemetry.SourceAwsAccount",
|
|
47
|
+
SourceAwsAccountProps,
|
|
48
|
+
SourceAwsAccountAttributes,
|
|
49
|
+
never,
|
|
50
|
+
Providers,
|
|
51
|
+
SourceAwsAccountLookup
|
|
52
|
+
>;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* The AWS account connected to an `aws` {@link Source}, through the IAM role
|
|
56
|
+
* from Better Stack's CloudFormation stack (`awsRoleArn` + `awsExternalId`),
|
|
57
|
+
* or by reusing an account another `aws` source connected (`awsAccountId`,
|
|
58
|
+
* Better Stack's own id, not the 12-digit AWS one). Exactly one of
|
|
59
|
+
* `awsRoleArn` and `awsAccountId`; `awsRoleArn` goes with `awsExternalId`.
|
|
60
|
+
*
|
|
61
|
+
* There is no create or delete: the resource takes over the source named by
|
|
62
|
+
* `sourceId` and applies these settings to it. Destroying it only forgets
|
|
63
|
+
* it; nothing changes in Better Stack. The role ARN, external id and account
|
|
64
|
+
* id are never returned, so changes are detected against the previous
|
|
65
|
+
* deploy's props, never against the live source.
|
|
66
|
+
*
|
|
67
|
+
* @see https://betterstack.com/docs/logs/aws/
|
|
68
|
+
*
|
|
69
|
+
* ### Connecting an AWS account
|
|
70
|
+
* **Example:** The role from Better Stack's CloudFormation stack
|
|
71
|
+
* ```typescript
|
|
72
|
+
* const aws = yield* BetterStack.Telemetry.Source("aws", { platform: "aws" });
|
|
73
|
+
* yield* BetterStack.Telemetry.SourceAwsAccount("aws-account", {
|
|
74
|
+
* sourceId: aws.id,
|
|
75
|
+
* awsRoleArn: Redacted.make("arn:aws:iam::123456789012:role/better-stack"),
|
|
76
|
+
* awsExternalId: Redacted.make("external-id-from-the-stack"),
|
|
77
|
+
* awsAutoSubLogGroups: true,
|
|
78
|
+
* });
|
|
79
|
+
* ```
|
|
80
|
+
*
|
|
81
|
+
* ### Looking up an existing connection
|
|
82
|
+
* **Example:** Read the AWS account connection of a source by its id
|
|
83
|
+
* ```typescript
|
|
84
|
+
* const existing = BetterStack.Telemetry.SourceAwsAccount.lookup({ sourceId: "123456" });
|
|
85
|
+
* ```
|
|
86
|
+
*
|
|
87
|
+
* @resource
|
|
88
|
+
* @product Telemetry
|
|
89
|
+
*/
|
|
90
|
+
export const SourceAwsAccount = Resource<SourceAwsAccount>(
|
|
91
|
+
"BetterStack.Telemetry.SourceAwsAccount",
|
|
92
|
+
);
|
|
93
|
+
|
|
94
|
+
export const SourceAwsAccountProvider = () =>
|
|
95
|
+
crud(SourceAwsAccount, {
|
|
96
|
+
ops: { read: Telemetry.getSource, update: Telemetry.updateSource },
|
|
97
|
+
key: (account) => ({ id: account.sourceId }),
|
|
98
|
+
takeOver: (props) => ({ sourceId: props.sourceId }),
|
|
99
|
+
toAttributes: (source) => ({
|
|
100
|
+
sourceId: source.id,
|
|
101
|
+
teamId: source.teamId,
|
|
102
|
+
platform: source.platform,
|
|
103
|
+
awsAutoSubLogGroups: source.awsAutoSubLogGroups,
|
|
104
|
+
}),
|
|
105
|
+
echo: ["awsAccountId"],
|
|
106
|
+
replaceOn: ["sourceId"],
|
|
107
|
+
list: false,
|
|
108
|
+
lookup: { key: ({ sourceId }) => ({ sourceId }) },
|
|
109
|
+
stables: ["sourceId", "teamId"],
|
|
110
|
+
});
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { Resource } from "alchemy/Resource";
|
|
2
|
+
import { crud } from "../internal/crud.ts";
|
|
3
|
+
import type { TeamProp } from "../internal/scope.ts";
|
|
4
|
+
import type { Providers } from "../Providers.ts";
|
|
5
|
+
import * as Telemetry from "../sdk/services/telemetry.ts";
|
|
6
|
+
|
|
7
|
+
/** Props of {@link SourceGcpProject}. */
|
|
8
|
+
export interface SourceGcpProjectProps
|
|
9
|
+
extends
|
|
10
|
+
Pick<
|
|
11
|
+
Telemetry.UpdateSourceRequest,
|
|
12
|
+
"gcpAccountId" | "gcpProjectId" | "gcpProjectNumber" | "gcpLogFilter"
|
|
13
|
+
>,
|
|
14
|
+
TeamProp {
|
|
15
|
+
/** The `gcp` source to connect the project to. Changing it manages another source. */
|
|
16
|
+
sourceId: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/** Attributes of {@link SourceGcpProject}: the connection as the source reports it. */
|
|
20
|
+
export interface SourceGcpProjectAttributes {
|
|
21
|
+
/** The `gcp` source the project is connected to. */
|
|
22
|
+
sourceId: string;
|
|
23
|
+
/** Team that owns the source, such as `t123`. */
|
|
24
|
+
teamId?: string | undefined;
|
|
25
|
+
/** The source's platform (`gcp`). */
|
|
26
|
+
platform?: string | undefined;
|
|
27
|
+
/** The Google Cloud Logging query that selects which logs the source receives, `null` for every log. */
|
|
28
|
+
gcpLogFilter?: string | null | undefined;
|
|
29
|
+
/** The connected project's id, as the props named it. Never returned by the API. */
|
|
30
|
+
gcpProjectId?: string | undefined;
|
|
31
|
+
/** Better Stack's id of the reused project connection, when the props named one. Never returned by the API. */
|
|
32
|
+
gcpAccountId?: string | undefined;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Props for {@link SourceGcpProject.lookup}: the GCP project connection of a source this stack
|
|
37
|
+
* doesn't manage, found by the source's id. The lookup reads the source as
|
|
38
|
+
* it is; check `platform` (`gcp`) when the id could name another kind of source.
|
|
39
|
+
*/
|
|
40
|
+
export interface SourceGcpProjectLookup {
|
|
41
|
+
/** The `gcp` source's id. */
|
|
42
|
+
sourceId: string;
|
|
43
|
+
/** Team that owns the source, such as `t123`. Defaults to the credentials' team. */
|
|
44
|
+
teamId?: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export type SourceGcpProject = Resource<
|
|
48
|
+
"BetterStack.Telemetry.SourceGcpProject",
|
|
49
|
+
SourceGcpProjectProps,
|
|
50
|
+
SourceGcpProjectAttributes,
|
|
51
|
+
never,
|
|
52
|
+
Providers,
|
|
53
|
+
SourceGcpProjectLookup
|
|
54
|
+
>;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* The GCP project connected to a `gcp` {@link Source}, through Workload
|
|
58
|
+
* Identity Federation from the Better Stack GCP module (`gcpProjectId` +
|
|
59
|
+
* `gcpProjectNumber`), or by reusing a project another `gcp` source
|
|
60
|
+
* connected (`gcpAccountId`, Better Stack's own id). Exactly one of
|
|
61
|
+
* `gcpProjectId` and `gcpAccountId`; `gcpProjectId` goes with
|
|
62
|
+
* `gcpProjectNumber`.
|
|
63
|
+
*
|
|
64
|
+
* There is no create or delete: the resource takes over the source named by
|
|
65
|
+
* `sourceId` and applies these settings to it. Destroying it only forgets
|
|
66
|
+
* it; nothing changes in Better Stack. The project id, number and account id
|
|
67
|
+
* are never returned, so changes are detected against the previous deploy's
|
|
68
|
+
* props.
|
|
69
|
+
*
|
|
70
|
+
* `gcpLogFilter` must be set in a later request than the one that connects
|
|
71
|
+
* the project, so it is sent by its own update after the connection. Send
|
|
72
|
+
* `null` to forward every log again (removing it from the config leaves the
|
|
73
|
+
* filter as it is).
|
|
74
|
+
*
|
|
75
|
+
* @see https://betterstack.com/docs/logs/google-cloud/
|
|
76
|
+
*
|
|
77
|
+
* ### Connecting a GCP project
|
|
78
|
+
* **Example:** A project with a log filter
|
|
79
|
+
* ```typescript
|
|
80
|
+
* const gcp = yield* BetterStack.Telemetry.Source("gcp", { platform: "gcp" });
|
|
81
|
+
* yield* BetterStack.Telemetry.SourceGcpProject("gcp-project", {
|
|
82
|
+
* sourceId: gcp.id,
|
|
83
|
+
* gcpProjectId: "my-project",
|
|
84
|
+
* gcpProjectNumber: "123456789012",
|
|
85
|
+
* gcpLogFilter: 'severity >= "WARNING"',
|
|
86
|
+
* });
|
|
87
|
+
* ```
|
|
88
|
+
*
|
|
89
|
+
* ### Looking up an existing connection
|
|
90
|
+
* **Example:** Read the GCP project connection of a source by its id
|
|
91
|
+
* ```typescript
|
|
92
|
+
* const existing = BetterStack.Telemetry.SourceGcpProject.lookup({ sourceId: "123456" });
|
|
93
|
+
* ```
|
|
94
|
+
*
|
|
95
|
+
* @resource
|
|
96
|
+
* @product Telemetry
|
|
97
|
+
*/
|
|
98
|
+
export const SourceGcpProject = Resource<SourceGcpProject>(
|
|
99
|
+
"BetterStack.Telemetry.SourceGcpProject",
|
|
100
|
+
);
|
|
101
|
+
|
|
102
|
+
export const SourceGcpProjectProvider = () =>
|
|
103
|
+
crud(SourceGcpProject, {
|
|
104
|
+
ops: { read: Telemetry.getSource, update: Telemetry.updateSource },
|
|
105
|
+
key: (project) => ({ id: project.sourceId }),
|
|
106
|
+
takeOver: (props) => ({ sourceId: props.sourceId }),
|
|
107
|
+
toAttributes: (source) => ({
|
|
108
|
+
sourceId: source.id,
|
|
109
|
+
teamId: source.teamId,
|
|
110
|
+
platform: source.platform,
|
|
111
|
+
gcpLogFilter: source.gcpLogFilter,
|
|
112
|
+
}),
|
|
113
|
+
echo: ["gcpProjectId", "gcpAccountId"],
|
|
114
|
+
replaceOn: ["sourceId"],
|
|
115
|
+
inPlace: {
|
|
116
|
+
// Its own request, after the one that connects the project.
|
|
117
|
+
gcpLogFilter: {
|
|
118
|
+
set: (project, gcpLogFilter) =>
|
|
119
|
+
Telemetry.updateSource({ id: project.sourceId, teamId: project.teamId, gcpLogFilter }),
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
list: false,
|
|
123
|
+
lookup: { key: ({ sourceId }) => ({ sourceId }) },
|
|
124
|
+
stables: ["sourceId", "teamId"],
|
|
125
|
+
});
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { Resource } from "alchemy/Resource";
|
|
2
|
+
import * as Effect from "effect/Effect";
|
|
3
|
+
import { crud } from "../internal/crud.ts";
|
|
4
|
+
import { wrapOp } from "../internal/ops.ts";
|
|
5
|
+
import type { TeamProp } from "../internal/scope.ts";
|
|
6
|
+
import type { Providers } from "../Providers.ts";
|
|
7
|
+
import * as Telemetry from "../sdk/services/telemetry.ts";
|
|
8
|
+
|
|
9
|
+
/** Props of {@link SourceGroup}. */
|
|
10
|
+
export interface SourceGroupProps
|
|
11
|
+
extends Omit<Telemetry.CreateSourceGroupRequest, "teamId" | "name">, TeamProp {
|
|
12
|
+
/** Group name. Defaults to a unique name generated from the stack, stage and logical id. */
|
|
13
|
+
name?: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/** Attributes of {@link SourceGroup}: the group as the API returns it. */
|
|
17
|
+
export interface SourceGroupAttributes extends Telemetry.SourceGroup {}
|
|
18
|
+
|
|
19
|
+
/** Props for {@link SourceGroup.lookup}: find a source group this stack doesn't manage. */
|
|
20
|
+
export type SourceGroupLookup =
|
|
21
|
+
| {
|
|
22
|
+
/** The group's id. */
|
|
23
|
+
id: string;
|
|
24
|
+
/** Team that owns it, such as `t123`. Defaults to the credentials' team. */
|
|
25
|
+
teamId?: string;
|
|
26
|
+
}
|
|
27
|
+
| {
|
|
28
|
+
/** The group's name. Names aren't unique: more than one match fails with `AmbiguousLookup`. */
|
|
29
|
+
name: string;
|
|
30
|
+
/** Team that owns it, such as `t123`. Defaults to the credentials' team. */
|
|
31
|
+
teamId?: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export type SourceGroup = Resource<
|
|
35
|
+
"BetterStack.Telemetry.SourceGroup",
|
|
36
|
+
SourceGroupProps,
|
|
37
|
+
SourceGroupAttributes,
|
|
38
|
+
never,
|
|
39
|
+
Providers,
|
|
40
|
+
SourceGroupLookup
|
|
41
|
+
>;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* A group that organizes related telemetry sources together. Sources and
|
|
45
|
+
* collectors join it through their `sourceGroupId`; deleting the group keeps
|
|
46
|
+
* its sources, outside any group.
|
|
47
|
+
*
|
|
48
|
+
* `name` defaults to a generated unique name. Removing `sortIndex` from the
|
|
49
|
+
* config clears it. `teamId` replaces the group when changed.
|
|
50
|
+
*
|
|
51
|
+
* @see https://betterstack.com/docs/logs/api/list-all-existing-source-groups/
|
|
52
|
+
*
|
|
53
|
+
* ### Creating a source group
|
|
54
|
+
* **Example:** A group with a source in it
|
|
55
|
+
* ```typescript
|
|
56
|
+
* const backend = yield* BetterStack.Telemetry.SourceGroup("backend", {
|
|
57
|
+
* name: "Backend",
|
|
58
|
+
* sortIndex: 1,
|
|
59
|
+
* });
|
|
60
|
+
* yield* BetterStack.Telemetry.Source("checkout", {
|
|
61
|
+
* platform: "open_telemetry",
|
|
62
|
+
* sourceGroupId: backend.id,
|
|
63
|
+
* });
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* ### Looking up an existing group
|
|
67
|
+
* **Example:** Reference a group by id
|
|
68
|
+
* ```typescript
|
|
69
|
+
* const existing = BetterStack.Telemetry.SourceGroup.lookup({ id: "123456" });
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* **Example:** Reference a group by name (fails with `AmbiguousLookup` when several share it)
|
|
73
|
+
* ```typescript
|
|
74
|
+
* const backend = BetterStack.Telemetry.SourceGroup.lookup({ name: "Backend" });
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* @resource
|
|
78
|
+
* @product Telemetry
|
|
79
|
+
*/
|
|
80
|
+
export const SourceGroup = Resource<SourceGroup>("BetterStack.Telemetry.SourceGroup");
|
|
81
|
+
|
|
82
|
+
export const SourceGroupProvider = () =>
|
|
83
|
+
crud(SourceGroup, {
|
|
84
|
+
ops: {
|
|
85
|
+
create: Telemetry.createSourceGroup,
|
|
86
|
+
read: Telemetry.getSourceGroup,
|
|
87
|
+
// update_source_group requires `name` (the live API answers 422 "missing
|
|
88
|
+
// some required attributes: name" without it), so an update that only
|
|
89
|
+
// changes `sortIndex` sends the current name along.
|
|
90
|
+
update: wrapOp(Telemetry.updateSourceGroup, (input: Telemetry.UpdateSourceGroupRequest) =>
|
|
91
|
+
input.name !== undefined
|
|
92
|
+
? Telemetry.updateSourceGroup(input)
|
|
93
|
+
: Effect.flatMap(
|
|
94
|
+
Telemetry.getSourceGroup({ id: input.id, teamId: input.teamId }),
|
|
95
|
+
(group) => Telemetry.updateSourceGroup({ ...input, name: group.name ?? "" }),
|
|
96
|
+
),
|
|
97
|
+
),
|
|
98
|
+
delete: Telemetry.deleteSourceGroup,
|
|
99
|
+
list: Telemetry.listSourceGroup,
|
|
100
|
+
},
|
|
101
|
+
key: (group) => ({ id: group.id }),
|
|
102
|
+
physicalName: { prop: "name" },
|
|
103
|
+
nullOnRemove: ["sortIndex"],
|
|
104
|
+
// Adopt a group with the same explicit name.
|
|
105
|
+
adoptBy: {
|
|
106
|
+
match: (props) =>
|
|
107
|
+
props.name === undefined ? undefined : (group) => group.name === props.name,
|
|
108
|
+
},
|
|
109
|
+
lookup: { match: (lookup, group) => "name" in lookup && group.name === lookup.name },
|
|
110
|
+
stables: ["id", "teamId", "createdAt"],
|
|
111
|
+
});
|