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,171 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typed helpers for {@link DashboardChart} and {@link Exploration} props:
|
|
3
|
+
* the chart types, the writable query types (`sql_expression`, `tail_query`,
|
|
4
|
+
* `static_text`) and the SQL every time-series chart repeats.
|
|
5
|
+
*
|
|
6
|
+
* Every chart helper returns a {@link ChartSpec} — `chartType`, `queries`
|
|
7
|
+
* and optional `name`, `description`, `explanation`, `settings` — to spread
|
|
8
|
+
* into a chart's props next to its `dashboardId` and grid position:
|
|
9
|
+
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* yield* BetterStack.Telemetry.DashboardChart("errors", {
|
|
12
|
+
* dashboardId: dashboard.id,
|
|
13
|
+
* ...Chart.line({
|
|
14
|
+
* name: "Errors",
|
|
15
|
+
* sql: Chart.timeSeries({ where: `${Chart.json("level")} = 'error'` }),
|
|
16
|
+
* settings: { unit: "short", stacking: "stack" },
|
|
17
|
+
* }),
|
|
18
|
+
* x: 0, y: 0, w: 6, h: 4,
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* Queries read the dashboard's sources through its `{{source}}` variable
|
|
23
|
+
* (or a `source:` reference), and the `{{time}}`, `{{start_time}}` and
|
|
24
|
+
* `{{end_time}}` variables bucket and bound them by the dashboard's range.
|
|
25
|
+
*
|
|
26
|
+
* @see https://betterstack.com/docs/logs/dashboards/sql-queries/
|
|
27
|
+
* @see https://betterstack.com/docs/logs/dashboards/variables/
|
|
28
|
+
*/
|
|
29
|
+
import type * as Telemetry from "../sdk/services/telemetry.ts";
|
|
30
|
+
/** A chart type: `line_chart`, `bar_chart`, `number_chart`, `table_chart`, … */
|
|
31
|
+
export type ChartType = Telemetry.CreateDashboardChartRequestChartType;
|
|
32
|
+
/**
|
|
33
|
+
* A query the API lets you write: `sql_expression`, `tail_query` or
|
|
34
|
+
* `static_text` (editor-built queries are read-only). Fits both a
|
|
35
|
+
* dashboard chart's and an exploration's `queries`.
|
|
36
|
+
*/
|
|
37
|
+
export interface Query {
|
|
38
|
+
/** The query type. */
|
|
39
|
+
queryType: "sql_expression" | "tail_query" | "static_text";
|
|
40
|
+
/** The query's name, shown as its series. */
|
|
41
|
+
name?: string;
|
|
42
|
+
/** The sources the query reads: a `source` variable's name (default `source`) or `source:` and table names. */
|
|
43
|
+
sourceVariable?: string;
|
|
44
|
+
/** The SQL of an `sql_expression` query. */
|
|
45
|
+
sqlQuery?: string;
|
|
46
|
+
/** The Live tail filter of a `tail_query` query. */
|
|
47
|
+
whereCondition?: string;
|
|
48
|
+
/** The Markdown of a `static_text` query. */
|
|
49
|
+
staticText?: string;
|
|
50
|
+
}
|
|
51
|
+
/** Display settings of a chart: unit, axes, legend, stacking, colors, … */
|
|
52
|
+
export type Settings = Telemetry.CreateDashboardChartRequestSettings;
|
|
53
|
+
/** A chart's type, queries and display options: spread it into `DashboardChart` props. */
|
|
54
|
+
export interface ChartSpec {
|
|
55
|
+
/** The chart type. */
|
|
56
|
+
chartType: ChartType;
|
|
57
|
+
/** The chart's queries. Only a `line_chart` holds more than one. */
|
|
58
|
+
queries: Query[];
|
|
59
|
+
/** Chart name. */
|
|
60
|
+
name?: string;
|
|
61
|
+
/** Chart description. */
|
|
62
|
+
description?: string | null;
|
|
63
|
+
/** What the chart shows, for AI SRE and the chart's AI summary. */
|
|
64
|
+
explanation?: string | null;
|
|
65
|
+
/** Display settings for the chart type. */
|
|
66
|
+
settings?: Settings;
|
|
67
|
+
}
|
|
68
|
+
/** Options every chart helper takes. */
|
|
69
|
+
export interface ChartOptions {
|
|
70
|
+
/** Chart name. */
|
|
71
|
+
readonly name?: string;
|
|
72
|
+
/** Chart description. */
|
|
73
|
+
readonly description?: string | null;
|
|
74
|
+
/** What the chart shows, for AI SRE and the chart's AI summary. */
|
|
75
|
+
readonly explanation?: string | null;
|
|
76
|
+
/** Display settings for the chart type. */
|
|
77
|
+
readonly settings?: Settings;
|
|
78
|
+
}
|
|
79
|
+
/** A query: a {@link Query}, or a SQL string (an `sql_expression` query over `{{source}}`). */
|
|
80
|
+
export type QueryInput = string | Query;
|
|
81
|
+
/** Options of a single-query chart: `sql` or `query`. */
|
|
82
|
+
export type SingleQueryOptions = ChartOptions & ({
|
|
83
|
+
readonly sql: string;
|
|
84
|
+
readonly query?: never;
|
|
85
|
+
} | {
|
|
86
|
+
readonly query: Query;
|
|
87
|
+
readonly sql?: never;
|
|
88
|
+
});
|
|
89
|
+
/** Options of {@link sql} and {@link tail}. */
|
|
90
|
+
export interface QueryOptions {
|
|
91
|
+
/** The query's name, shown as its series. */
|
|
92
|
+
readonly name?: string;
|
|
93
|
+
/**
|
|
94
|
+
* The sources the query reads: a `source` variable's name (default
|
|
95
|
+
* `source`), or `source:` and table names, such as `source:t123_app`.
|
|
96
|
+
*/
|
|
97
|
+
readonly source?: string;
|
|
98
|
+
}
|
|
99
|
+
/** An `sql_expression` query: ClickHouse SQL with `{{variables}}`. */
|
|
100
|
+
export declare const sql: (sqlQuery: string, options?: QueryOptions) => Query;
|
|
101
|
+
/** A `tail_query` query: the log lines matching a Live tail filter, such as `level = "error"`. */
|
|
102
|
+
export declare const tail: (whereCondition: string, options?: QueryOptions) => Query;
|
|
103
|
+
/** A `static_text` query: Markdown shown as it is. */
|
|
104
|
+
export declare const text: (markdown: string) => Query;
|
|
105
|
+
/**
|
|
106
|
+
* A field of the log's JSON (`raw`), typed:
|
|
107
|
+
* `json("level")` → `JSONExtract(raw, 'level', 'Nullable(String)')`,
|
|
108
|
+
* `json(["message_json", "duration_ms"], "Float64")`.
|
|
109
|
+
*/
|
|
110
|
+
export declare const json: (path: string | ReadonlyArray<string>, type?: string) => string;
|
|
111
|
+
/** Options of {@link timeSeries} and {@link total}. */
|
|
112
|
+
export interface SqlOptions {
|
|
113
|
+
/** The value to chart, an aggregate such as `count(*)` or `avg(duration)`. Default `count(*)`. */
|
|
114
|
+
readonly value?: string;
|
|
115
|
+
/** A condition on the rows, such as `json("level") = 'error'`. */
|
|
116
|
+
readonly where?: string;
|
|
117
|
+
/** What to read: default `{{source}}`, the dashboard's source variable. */
|
|
118
|
+
readonly from?: string;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* The SQL of a time series: `value` per `{{time}}` bucket, over the
|
|
122
|
+
* dashboard's range, optionally split by `series`.
|
|
123
|
+
*
|
|
124
|
+
* `timeSeries({ where: "level = 'error'" })` →
|
|
125
|
+
* `SELECT {{time}} AS time, count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND (level = 'error') GROUP BY time`
|
|
126
|
+
*/
|
|
127
|
+
export declare const timeSeries: (options?: SqlOptions & {
|
|
128
|
+
/** An expression that splits the value into series, such as `json("level")`. */
|
|
129
|
+
readonly series?: string;
|
|
130
|
+
}) => string;
|
|
131
|
+
/** The SQL of one number over the dashboard's range (a number or gauge chart). */
|
|
132
|
+
export declare const total: (options?: SqlOptions) => string;
|
|
133
|
+
/** A line chart: one or more time series (`sql`, or several `queries`). */
|
|
134
|
+
export declare const line: (options: ChartOptions & ({
|
|
135
|
+
readonly sql: string;
|
|
136
|
+
readonly queries?: never;
|
|
137
|
+
} | {
|
|
138
|
+
readonly queries: ReadonlyArray<QueryInput>;
|
|
139
|
+
readonly sql?: never;
|
|
140
|
+
})) => ChartSpec;
|
|
141
|
+
/** A bar chart over time, or by category (`settings.xAxisType: "category"`). */
|
|
142
|
+
export declare const bar: (options: SingleQueryOptions) => ChartSpec;
|
|
143
|
+
/** One number, colored by `settings.colorMode` and its thresholds. */
|
|
144
|
+
export declare const number: (options: SingleQueryOptions) => ChartSpec;
|
|
145
|
+
/** A table of the query's rows. */
|
|
146
|
+
export declare const table: (options: SingleQueryOptions) => ChartSpec;
|
|
147
|
+
/** A pie chart. */
|
|
148
|
+
export declare const pie: (options: SingleQueryOptions) => ChartSpec;
|
|
149
|
+
/** A gauge between `settings.min` and `settings.max`. */
|
|
150
|
+
export declare const gauge: (options: SingleQueryOptions) => ChartSpec;
|
|
151
|
+
/** A heatmap. */
|
|
152
|
+
export declare const heatmap: (options: SingleQueryOptions) => ChartSpec;
|
|
153
|
+
/** A scatter chart. */
|
|
154
|
+
export declare const scatter: (options: SingleQueryOptions) => ChartSpec;
|
|
155
|
+
/** Live tail of the log lines that match `where` (a Live tail filter). */
|
|
156
|
+
export declare const logs: (options: ChartOptions & {
|
|
157
|
+
readonly where: string;
|
|
158
|
+
readonly source?: string;
|
|
159
|
+
}) => ChartSpec;
|
|
160
|
+
/** A Markdown text block, such as a runbook link. */
|
|
161
|
+
export declare const markdown: (body: string, options?: ChartOptions) => ChartSpec;
|
|
162
|
+
/**
|
|
163
|
+
* The same chart as {@link Exploration} props: `chart` (type, description,
|
|
164
|
+
* settings) and `queries`. An exploration's chart is named after the
|
|
165
|
+
* exploration, so the spec's `name` and `explanation` are dropped.
|
|
166
|
+
*/
|
|
167
|
+
export declare const exploration: (chart: ChartSpec) => {
|
|
168
|
+
chart: Telemetry.CreateExplorationRequestChart;
|
|
169
|
+
queries: Telemetry.CreateExplorationRequestQueriesList;
|
|
170
|
+
};
|
|
171
|
+
//# sourceMappingURL=Chart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Chart.d.ts","sourceRoot":"","sources":["../../src/Telemetry/Chart.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,OAAO,KAAK,KAAK,SAAS,MAAM,8BAA8B,CAAC;AAE/D,gFAAgF;AAChF,MAAM,MAAM,SAAS,GAAG,SAAS,CAAC,oCAAoC,CAAC;AAEvE;;;;GAIG;AACH,MAAM,WAAW,KAAK;IACpB,sBAAsB;IACtB,SAAS,EAAE,gBAAgB,GAAG,YAAY,GAAG,aAAa,CAAC;IAC3D,6CAA6C;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,+GAA+G;IAC/G,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oDAAoD;IACpD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,6CAA6C;IAC7C,UAAU,CAAC,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bmC,kBAAkB,cAa/B,CAAC;AACvC,sEAAsE;AACtE,eAAO,MAAM,MAAM,YAfgC,kBAAkB,cAezB,CAAC;AAC7C,mCAAmC;AACnC,eAAO,MAAM,KAAK,YAjBiC,kBAAkB,cAiB3B,CAAC;AAC3C,mBAAmB;AACnB,eAAO,MAAM,GAAG,YAnBmC,kBAAkB,cAmB/B,CAAC;AACvC,yDAAyD;AACzD,eAAO,MAAM,KAAK,YArBiC,kBAAkB,cAqB3B,CAAC;AAC3C,iBAAiB;AACjB,eAAO,MAAM,OAAO,YAvB+B,kBAAkB,cAuBvB,CAAC;AAC/C,uBAAuB;AACvB,eAAO,MAAM,OAAO,YAzB+B,kBAAkB,cAyBvB,CAAC;AAE/C,0EAA0E;AAC1E,eAAO,MAAM,IAAI,YACN,YAAY,GAAG;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,cACK,CAAC;AAEpF,qDAAqD;AACrD,eAAO,MAAM,QAAQ,SAAU,MAAM,YAAW,YAAY,KAAQ,SAClB,CAAC;AAEnD;;;;GAIG;AACH,eAAO,MAAM,WAAW,UACf,SAAS,KACf;IACD,KAAK,EAAE,SAAS,CAAC,6BAA6B,CAAC;IAC/C,OAAO,EAAE,SAAS,CAAC,mCAAmC,CAAC;CAQvD,CAAC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
const named = (options) => ({
|
|
2
|
+
...(options?.name !== undefined ? { name: options.name } : {}),
|
|
3
|
+
...(options?.source !== undefined ? { sourceVariable: options.source } : {}),
|
|
4
|
+
});
|
|
5
|
+
/** An `sql_expression` query: ClickHouse SQL with `{{variables}}`. */
|
|
6
|
+
export const sql = (sqlQuery, options) => ({
|
|
7
|
+
queryType: "sql_expression",
|
|
8
|
+
sqlQuery,
|
|
9
|
+
...named(options),
|
|
10
|
+
});
|
|
11
|
+
/** A `tail_query` query: the log lines matching a Live tail filter, such as `level = "error"`. */
|
|
12
|
+
export const tail = (whereCondition, options) => ({
|
|
13
|
+
queryType: "tail_query",
|
|
14
|
+
whereCondition,
|
|
15
|
+
...named(options),
|
|
16
|
+
});
|
|
17
|
+
/** A `static_text` query: Markdown shown as it is. */
|
|
18
|
+
export const text = (markdown) => ({
|
|
19
|
+
queryType: "static_text",
|
|
20
|
+
staticText: markdown,
|
|
21
|
+
});
|
|
22
|
+
const toQuery = (input) => (typeof input === "string" ? sql(input) : input);
|
|
23
|
+
// ---------------------------------------------------------------------------
|
|
24
|
+
// SQL
|
|
25
|
+
// ---------------------------------------------------------------------------
|
|
26
|
+
const quote = (value) => `'${value.replace(/\\/g, "\\\\").replace(/'/g, "\\'")}'`;
|
|
27
|
+
/**
|
|
28
|
+
* A field of the log's JSON (`raw`), typed:
|
|
29
|
+
* `json("level")` → `JSONExtract(raw, 'level', 'Nullable(String)')`,
|
|
30
|
+
* `json(["message_json", "duration_ms"], "Float64")`.
|
|
31
|
+
*/
|
|
32
|
+
export const json = (path, type = "String") => `JSONExtract(raw, ${(typeof path === "string" ? [path] : path).map(quote).join(", ")}, 'Nullable(${type})')`;
|
|
33
|
+
const conditions = (options) => `dt BETWEEN {{start_time}} AND {{end_time}}${options.where ? ` AND (${options.where})` : ""}`;
|
|
34
|
+
/**
|
|
35
|
+
* The SQL of a time series: `value` per `{{time}}` bucket, over the
|
|
36
|
+
* dashboard's range, optionally split by `series`.
|
|
37
|
+
*
|
|
38
|
+
* `timeSeries({ where: "level = 'error'" })` →
|
|
39
|
+
* `SELECT {{time}} AS time, count(*) AS value FROM {{source}} WHERE dt BETWEEN {{start_time}} AND {{end_time}} AND (level = 'error') GROUP BY time`
|
|
40
|
+
*/
|
|
41
|
+
export const timeSeries = (options = {}) => {
|
|
42
|
+
const series = options.series ? `, ${options.series} AS series` : "";
|
|
43
|
+
return `SELECT {{time}} AS time, ${options.value ?? "count(*)"} AS value${series} FROM ${options.from ?? "{{source}}"} WHERE ${conditions(options)} GROUP BY time${options.series ? ", series" : ""}`;
|
|
44
|
+
};
|
|
45
|
+
/** The SQL of one number over the dashboard's range (a number or gauge chart). */
|
|
46
|
+
export const total = (options = {}) => `SELECT ${options.value ?? "count(*)"} AS value FROM ${options.from ?? "{{source}}"} WHERE ${conditions(options)}`;
|
|
47
|
+
// ---------------------------------------------------------------------------
|
|
48
|
+
// Charts
|
|
49
|
+
// ---------------------------------------------------------------------------
|
|
50
|
+
const spec = (chartType, queries, options) => ({
|
|
51
|
+
chartType,
|
|
52
|
+
queries,
|
|
53
|
+
...(options.name !== undefined ? { name: options.name } : {}),
|
|
54
|
+
...(options.description !== undefined ? { description: options.description } : {}),
|
|
55
|
+
...(options.explanation !== undefined ? { explanation: options.explanation } : {}),
|
|
56
|
+
...(options.settings !== undefined ? { settings: options.settings } : {}),
|
|
57
|
+
});
|
|
58
|
+
const single = (chartType) => (options) => spec(chartType, [options.query ?? sql(options.sql)], options);
|
|
59
|
+
/** A line chart: one or more time series (`sql`, or several `queries`). */
|
|
60
|
+
export const line = (options) => spec("line_chart", options.queries?.map(toQuery) ?? [sql(options.sql)], options);
|
|
61
|
+
/** A bar chart over time, or by category (`settings.xAxisType: "category"`). */
|
|
62
|
+
export const bar = single("bar_chart");
|
|
63
|
+
/** One number, colored by `settings.colorMode` and its thresholds. */
|
|
64
|
+
export const number = single("number_chart");
|
|
65
|
+
/** A table of the query's rows. */
|
|
66
|
+
export const table = single("table_chart");
|
|
67
|
+
/** A pie chart. */
|
|
68
|
+
export const pie = single("pie_chart");
|
|
69
|
+
/** A gauge between `settings.min` and `settings.max`. */
|
|
70
|
+
export const gauge = single("gauge_chart");
|
|
71
|
+
/** A heatmap. */
|
|
72
|
+
export const heatmap = single("heatmap_chart");
|
|
73
|
+
/** A scatter chart. */
|
|
74
|
+
export const scatter = single("scatter_chart");
|
|
75
|
+
/** Live tail of the log lines that match `where` (a Live tail filter). */
|
|
76
|
+
export const logs = (options) => spec("tail_chart", [tail(options.where, { source: options.source })], options);
|
|
77
|
+
/** A Markdown text block, such as a runbook link. */
|
|
78
|
+
export const markdown = (body, options = {}) => spec("static_text_chart", [text(body)], options);
|
|
79
|
+
/**
|
|
80
|
+
* The same chart as {@link Exploration} props: `chart` (type, description,
|
|
81
|
+
* settings) and `queries`. An exploration's chart is named after the
|
|
82
|
+
* exploration, so the spec's `name` and `explanation` are dropped.
|
|
83
|
+
*/
|
|
84
|
+
export const exploration = (chart) => ({
|
|
85
|
+
chart: {
|
|
86
|
+
chartType: chart.chartType,
|
|
87
|
+
...(chart.description !== undefined ? { description: chart.description } : {}),
|
|
88
|
+
...(chart.settings !== undefined ? { settings: chart.settings } : {}),
|
|
89
|
+
},
|
|
90
|
+
queries: chart.queries,
|
|
91
|
+
});
|
|
92
|
+
//# sourceMappingURL=Chart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Chart.js","sourceRoot":"","sources":["../../src/Telemetry/Chart.ts"],"names":[],"mappings":"AA6GA,MAAM,KAAK,GAAG,CAAC,OAAiC,EAAE,EAAE,CAAC,CAAC;IACpD,GAAG,CAAC,OAAO,EAAE,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9D,GAAG,CAAC,OAAO,EAAE,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;CAC7E,CAAC,CAAC;AAEH,sEAAsE;AACtE,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,QAAgB,EAAE,OAAsB,EAAS,EAAE,CAAC,CAAC;IACvE,SAAS,EAAE,gBAAgB;IAC3B,QAAQ;IACR,GAAG,KAAK,CAAC,OAAO,CAAC;CAClB,CAAC,CAAC;AAEH,kGAAkG;AAClG,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,cAAsB,EAAE,OAAsB,EAAS,EAA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E,OAAO,CAAC,CAAC;AAEpF,qDAAqD;AACrD,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAE,OAAO,GAAiB,EAAE,EAAa,EAAE,CAC9E,IAAI,CAAC,mBAAmB,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;AAEnD;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CACzB,KAAgB,EAIhB,EAAE,CAAC,CAAC;IACJ,KAAK,EAAE;QACL,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,GAAG,CAAC,KAAK,CAAC,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC9E,GAAG,CAAC,KAAK,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACtE;IACD,OAAO,EAAE,KAAK,CAAC,OAAO;CACvB,CAAC,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Resource } from "alchemy/Resource";
|
|
2
|
+
import type { TeamProp } from "../internal/scope.ts";
|
|
3
|
+
import type { Providers } from "../Providers.ts";
|
|
4
|
+
import * as Telemetry from "../sdk/services/telemetry.ts";
|
|
5
|
+
/** Props of {@link Collector}. */
|
|
6
|
+
export interface CollectorProps extends Omit<Telemetry.CreateCollectorRequest, "teamId" | "name">, Pick<Telemetry.UpdateCollectorRequest, "connectedSourceIds" | "serviceFields">, TeamProp {
|
|
7
|
+
/** Collector name. Defaults to a unique name generated from the stack, stage and logical id. */
|
|
8
|
+
name?: string;
|
|
9
|
+
}
|
|
10
|
+
/** Attributes of {@link Collector}: the collector as the API returns it. */
|
|
11
|
+
export interface CollectorAttributes extends Telemetry.Collector {
|
|
12
|
+
}
|
|
13
|
+
/** Props for {@link Collector.lookup}: find a collector this stack doesn't manage. */
|
|
14
|
+
export type CollectorLookup = {
|
|
15
|
+
/** The collector's id. */
|
|
16
|
+
id: string;
|
|
17
|
+
/** Team that owns it, such as `t123`. Defaults to the credentials' team. */
|
|
18
|
+
teamId?: string;
|
|
19
|
+
} | {
|
|
20
|
+
/** The collector's name. Names aren't unique: more than one match fails with `AmbiguousLookup`. */
|
|
21
|
+
name: string;
|
|
22
|
+
/** Team that owns it, such as `t123`. Defaults to the credentials' team. */
|
|
23
|
+
teamId?: string;
|
|
24
|
+
};
|
|
25
|
+
export type Collector = Resource<"BetterStack.Telemetry.Collector", CollectorProps, CollectorAttributes, never, Providers, CollectorLookup>;
|
|
26
|
+
/**
|
|
27
|
+
* A Better Stack Collector: the agent you run on a host (`docker`), a Docker
|
|
28
|
+
* Swarm (`swarm`) or a Kubernetes cluster (`kubernetes`) that collects logs,
|
|
29
|
+
* metrics and traces — with eBPF when enabled — and sends them to its own
|
|
30
|
+
* source (`sourceId`). Deploy it with its `secret` (a `Redacted` value),
|
|
31
|
+
* following `installationGuideUrl`; add scrape targets with
|
|
32
|
+
* {@link CollectorTarget}.
|
|
33
|
+
*
|
|
34
|
+
* `name` defaults to a generated unique name. `platform`, `dataRegion` and
|
|
35
|
+
* `teamId` replace the collector when changed. `connectedSourceIds` and
|
|
36
|
+
* `serviceFields` can only be set by an update, so they are applied right
|
|
37
|
+
* after create. `connectedSourceIds` is compared against the previous
|
|
38
|
+
* deploy, and a change sends the whole list (see {@link Source}). Removing
|
|
39
|
+
* `note`, a transformation, `sourceGroupId` or `userVectorConfig` from the
|
|
40
|
+
* config clears it. `configuration` changes only the components you send.
|
|
41
|
+
* `customBucket` is set on create; afterwards only its key pair can be
|
|
42
|
+
* rotated (any other change, `null` included, fails with
|
|
43
|
+
* `CustomBucketImmutable`; leaving it out sends nothing).
|
|
44
|
+
*
|
|
45
|
+
* @see https://betterstack.com/docs/logs/api/create-a-collector/
|
|
46
|
+
* @see https://betterstack.com/docs/logs/collector/
|
|
47
|
+
*
|
|
48
|
+
* ### Creating a collector
|
|
49
|
+
* **Example:** A Docker host with host metrics and container logs
|
|
50
|
+
* ```typescript
|
|
51
|
+
* const collector = yield* BetterStack.Telemetry.Collector("hosts", {
|
|
52
|
+
* platform: "docker",
|
|
53
|
+
* note: "Production hosts",
|
|
54
|
+
* configuration: {
|
|
55
|
+
* components: { logsDocker: true, metricsHostOs: true, ebpfMetrics: false },
|
|
56
|
+
* logsSampleRate: 50,
|
|
57
|
+
* },
|
|
58
|
+
* });
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* ### Installing it
|
|
62
|
+
* The `secret` is what the installer authenticates with; hand it to the
|
|
63
|
+
* install step as a secret, never as plain text.
|
|
64
|
+
*
|
|
65
|
+
* **Example:** The values an install step needs
|
|
66
|
+
* ```typescript
|
|
67
|
+
* const install = {
|
|
68
|
+
* COLLECTOR_SECRET: collector.secret,
|
|
69
|
+
* guide: collector.installationGuideUrl,
|
|
70
|
+
* };
|
|
71
|
+
* ```
|
|
72
|
+
*
|
|
73
|
+
* @resource
|
|
74
|
+
* @product Telemetry
|
|
75
|
+
*/
|
|
76
|
+
export declare const Collector: import("alchemy/Resource").ResourceClass<Collector>;
|
|
77
|
+
export declare const CollectorProvider: () => import("effect/Layer").Layer<import("alchemy/Provider").Provider<Collector>, never, import("../internal/crud.ts").CrudRequirements>;
|
|
78
|
+
//# sourceMappingURL=Collector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Collector.d.ts","sourceRoot":"","sources":["../../src/Telemetry/Collector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAG5C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,SAAS,MAAM,8BAA8B,CAAC;AAG1D,kCAAkC;AAClC,MAAM,WAAW,cACf,SACE,IAAI,CAAC,SAAS,CAAC,sBAAsB,EAAE,QAAQ,GAAG,MAAM,CAAC,EACzD,IAAI,CAAC,SAAS,CAAC,sBAAsB,EAAE,oBAAoB,GAAG,eAAe,CAAC,EAC9E,QAAQ;IACV,gGAAgG;IAChG,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,4EAA4E;AAC5E,MAAM,WAAW,mBAAoB,SAAQ,SAAS,CAAC,SAAS;CAAG;AAEnE,sFAAsF;AACtF,MAAM,MAAM,eAAe,GACvB;IACE,0BAA0B;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,4EAA4E;IAC5E,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GACD;IACE,mGAAmG;IACnG,IAAI,EAAE,MAAM,CAAC;IACb,4EAA4E;IAC5E,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEN,MAAM,MAAM,SAAS,GAAG,QAAQ,CAC9B,iCAAiC,EACjC,cAAc,EACd,mBAAmB,EACnB,KAAK,EACL,SAAS,EACT,eAAe,CAChB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,eAAO,MAAM,SAAS,qDAAyD,CAAC;AAEhF,eAAO,MAAM,iBAAiB,2IA2D1B,CAAC"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { Resource } from "alchemy/Resource";
|
|
2
|
+
import { crud } from "../internal/crud.js";
|
|
3
|
+
import { matchesPrevious } from "../internal/fields.js";
|
|
4
|
+
import * as Telemetry from "../sdk/services/telemetry.js";
|
|
5
|
+
import { customBucketInPlace } from "./customBucket.js";
|
|
6
|
+
/**
|
|
7
|
+
* A Better Stack Collector: the agent you run on a host (`docker`), a Docker
|
|
8
|
+
* Swarm (`swarm`) or a Kubernetes cluster (`kubernetes`) that collects logs,
|
|
9
|
+
* metrics and traces — with eBPF when enabled — and sends them to its own
|
|
10
|
+
* source (`sourceId`). Deploy it with its `secret` (a `Redacted` value),
|
|
11
|
+
* following `installationGuideUrl`; add scrape targets with
|
|
12
|
+
* {@link CollectorTarget}.
|
|
13
|
+
*
|
|
14
|
+
* `name` defaults to a generated unique name. `platform`, `dataRegion` and
|
|
15
|
+
* `teamId` replace the collector when changed. `connectedSourceIds` and
|
|
16
|
+
* `serviceFields` can only be set by an update, so they are applied right
|
|
17
|
+
* after create. `connectedSourceIds` is compared against the previous
|
|
18
|
+
* deploy, and a change sends the whole list (see {@link Source}). Removing
|
|
19
|
+
* `note`, a transformation, `sourceGroupId` or `userVectorConfig` from the
|
|
20
|
+
* config clears it. `configuration` changes only the components you send.
|
|
21
|
+
* `customBucket` is set on create; afterwards only its key pair can be
|
|
22
|
+
* rotated (any other change, `null` included, fails with
|
|
23
|
+
* `CustomBucketImmutable`; leaving it out sends nothing).
|
|
24
|
+
*
|
|
25
|
+
* @see https://betterstack.com/docs/logs/api/create-a-collector/
|
|
26
|
+
* @see https://betterstack.com/docs/logs/collector/
|
|
27
|
+
*
|
|
28
|
+
* ### Creating a collector
|
|
29
|
+
* **Example:** A Docker host with host metrics and container logs
|
|
30
|
+
* ```typescript
|
|
31
|
+
* const collector = yield* BetterStack.Telemetry.Collector("hosts", {
|
|
32
|
+
* platform: "docker",
|
|
33
|
+
* note: "Production hosts",
|
|
34
|
+
* configuration: {
|
|
35
|
+
* components: { logsDocker: true, metricsHostOs: true, ebpfMetrics: false },
|
|
36
|
+
* logsSampleRate: 50,
|
|
37
|
+
* },
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* ### Installing it
|
|
42
|
+
* The `secret` is what the installer authenticates with; hand it to the
|
|
43
|
+
* install step as a secret, never as plain text.
|
|
44
|
+
*
|
|
45
|
+
* **Example:** The values an install step needs
|
|
46
|
+
* ```typescript
|
|
47
|
+
* const install = {
|
|
48
|
+
* COLLECTOR_SECRET: collector.secret,
|
|
49
|
+
* guide: collector.installationGuideUrl,
|
|
50
|
+
* };
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
53
|
+
* @resource
|
|
54
|
+
* @product Telemetry
|
|
55
|
+
*/
|
|
56
|
+
export const Collector = Resource("BetterStack.Telemetry.Collector");
|
|
57
|
+
export const CollectorProvider = () => crud(Collector, {
|
|
58
|
+
ops: {
|
|
59
|
+
create: Telemetry.createCollector,
|
|
60
|
+
read: Telemetry.getCollector,
|
|
61
|
+
update: Telemetry.updateCollector,
|
|
62
|
+
delete: Telemetry.deleteCollector,
|
|
63
|
+
list: Telemetry.listCollector,
|
|
64
|
+
},
|
|
65
|
+
key: (collector) => ({ id: collector.id }),
|
|
66
|
+
physicalName: { prop: "name" },
|
|
67
|
+
nullOnRemove: [
|
|
68
|
+
"collectorLogsTransformation",
|
|
69
|
+
"collectorMetricsTransformation",
|
|
70
|
+
"collectorTracesTransformation",
|
|
71
|
+
"ingestionLogsTransformation",
|
|
72
|
+
"ingestionTracesTransformation",
|
|
73
|
+
"note",
|
|
74
|
+
"sourceGroupId",
|
|
75
|
+
"userVectorConfig",
|
|
76
|
+
],
|
|
77
|
+
// Compared against the previous deploy, not the live collector: the API
|
|
78
|
+
// answers every component with its default (an update changes only the
|
|
79
|
+
// ones sent), and connections it made transitively.
|
|
80
|
+
inPlace: {
|
|
81
|
+
configuration: {
|
|
82
|
+
onCreate: true,
|
|
83
|
+
set: (collector, configuration) => Telemetry.updateCollector({ id: collector.id, teamId: collector.teamId, configuration }),
|
|
84
|
+
},
|
|
85
|
+
// Compared against the previous deploy: the API also lists connections other
|
|
86
|
+
// sources declared (see Source).
|
|
87
|
+
connectedSourceIds: {
|
|
88
|
+
onCreate: true,
|
|
89
|
+
matches: matchesPrevious,
|
|
90
|
+
set: (collector, connectedSourceIds) => Telemetry.updateCollector({
|
|
91
|
+
id: collector.id,
|
|
92
|
+
teamId: collector.teamId,
|
|
93
|
+
connectedSourceIds,
|
|
94
|
+
}),
|
|
95
|
+
},
|
|
96
|
+
customBucket: customBucketInPlace("BetterStack.Telemetry.Collector", (collector, keys) => Telemetry.updateCollector({
|
|
97
|
+
id: collector.id,
|
|
98
|
+
teamId: collector.teamId,
|
|
99
|
+
customBucket: keys,
|
|
100
|
+
})),
|
|
101
|
+
},
|
|
102
|
+
// Adopt a collector with the same explicit name and platform.
|
|
103
|
+
adoptBy: {
|
|
104
|
+
match: (props) => props.name === undefined
|
|
105
|
+
? undefined
|
|
106
|
+
: (collector) => collector.name === props.name && collector.platform === props.platform,
|
|
107
|
+
},
|
|
108
|
+
lookup: { match: (lookup, collector) => "name" in lookup && collector.name === lookup.name },
|
|
109
|
+
stables: ["id", "teamId", "createdAt", "platform", "dataRegion", "sourceId"],
|
|
110
|
+
});
|
|
111
|
+
//# sourceMappingURL=Collector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Collector.js","sourceRoot":"","sources":["../../src/Telemetry/Collector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAGxD,OAAO,KAAK,SAAS,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAuCxD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,QAAQ,CAAY,iCAAiC,CAAC,CAAC;AAEhF,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,EAAE,CACpC,IAAI,CAAC,SAAS,EAAE;IACd,GAAG,EAAE;QACH,MAAM,EAAE,SAAS,CAAC,eAAe;QACjC,IAAI,EAAE,SAAS,CAAC,YAAY;QAC5B,MAAM,EAAE,SAAS,CAAC,eAAe;QACjC,MAAM,EAAE,SAAS,CAAC,eAAe;QAC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I,KAAK,SAAS;YACtB,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,IAAI,SAAS,CAAC,QAAQ,KAAK,KAAK,CAAC,QAAQ;KAC5F;IACD,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,CAAC,MAAM,IAAI,MAAM,IAAI,SAAS,CAAC,IAAI,KAAK,MAAM,CAAC,IAAI,EAAE;IAC5F,OAAO,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,CAAC;CAC7E,CAAC,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Resource } from "alchemy/Resource";
|
|
2
|
+
import type { TeamProp } from "../internal/scope.ts";
|
|
3
|
+
import type { Providers } from "../Providers.ts";
|
|
4
|
+
import * as Telemetry from "../sdk/services/telemetry.ts";
|
|
5
|
+
/** Props of {@link CollectorTarget}. */
|
|
6
|
+
export interface CollectorTargetProps extends Omit<Telemetry.CreateCollectorTargetRequest, "teamId">, TeamProp {
|
|
7
|
+
}
|
|
8
|
+
/** Attributes of {@link CollectorTarget}: the target as the API returns it, with its collector. */
|
|
9
|
+
export interface CollectorTargetAttributes extends Telemetry.CollectorTarget {
|
|
10
|
+
/** The collector that scrapes the target. */
|
|
11
|
+
collectorId: string;
|
|
12
|
+
}
|
|
13
|
+
/** Props for {@link CollectorTarget.lookup}: find a target this stack doesn't manage. */
|
|
14
|
+
export interface CollectorTargetLookup {
|
|
15
|
+
/** The collector it belongs to. */
|
|
16
|
+
collectorId: string;
|
|
17
|
+
/** The target's id. */
|
|
18
|
+
id: string;
|
|
19
|
+
/** Team that owns the collector, such as `t123`. Defaults to the credentials' team. */
|
|
20
|
+
teamId?: string;
|
|
21
|
+
}
|
|
22
|
+
export type CollectorTarget = Resource<"BetterStack.Telemetry.CollectorTarget", CollectorTargetProps, CollectorTargetAttributes, never, Providers, CollectorTargetLookup>;
|
|
23
|
+
/**
|
|
24
|
+
* A database or process a {@link Collector} scrapes for metrics: Postgres,
|
|
25
|
+
* PgBouncer, MySQL, Redis, MongoDB, Memcached, Elasticsearch, nginx,
|
|
26
|
+
* Apache, Kafka, Traefik or a Prometheus endpoint (`kind`).
|
|
27
|
+
*
|
|
28
|
+
* `password` and `apiKey` are `Redacted` and never returned: changes are
|
|
29
|
+
* detected against the previous deploy's props. Removing `password`,
|
|
30
|
+
* `apiKey`, `username`, `port` or `listenIp` from the config clears it.
|
|
31
|
+
* `collectorId` and `kind` replace the target when changed. An update to a
|
|
32
|
+
* connection setting sets `status` back to `pending` until the collector
|
|
33
|
+
* checks the target again.
|
|
34
|
+
*
|
|
35
|
+
* @see https://betterstack.com/docs/logs/api/list-collector-metrics-targets/
|
|
36
|
+
*
|
|
37
|
+
* ### Scraping a database
|
|
38
|
+
* **Example:** A Postgres target with credentials
|
|
39
|
+
* ```typescript
|
|
40
|
+
* const collector = yield* BetterStack.Telemetry.Collector("db-hosts", { platform: "docker" });
|
|
41
|
+
* yield* BetterStack.Telemetry.CollectorTarget("orders-db", {
|
|
42
|
+
* collectorId: collector.id,
|
|
43
|
+
* kind: "postgres",
|
|
44
|
+
* host: "orders-db.internal",
|
|
45
|
+
* port: 5432,
|
|
46
|
+
* username: "metrics",
|
|
47
|
+
* password: Redacted.make(process.env.ORDERS_DB_METRICS_PASSWORD ?? ""),
|
|
48
|
+
* sslMode: "require",
|
|
49
|
+
* });
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* ### Scraping a Prometheus endpoint
|
|
53
|
+
* **Example:** A service's `/metrics`
|
|
54
|
+
* ```typescript
|
|
55
|
+
* yield* BetterStack.Telemetry.CollectorTarget("api-metrics", {
|
|
56
|
+
* collectorId: collector.id,
|
|
57
|
+
* kind: "prometheus",
|
|
58
|
+
* host: "api.internal",
|
|
59
|
+
* service: "api",
|
|
60
|
+
* endpoint: "http://api.internal:9090/metrics",
|
|
61
|
+
* });
|
|
62
|
+
* ```
|
|
63
|
+
*
|
|
64
|
+
* @resource
|
|
65
|
+
* @product Telemetry
|
|
66
|
+
*/
|
|
67
|
+
export declare const CollectorTarget: import("alchemy/Resource").ResourceClass<CollectorTarget>;
|
|
68
|
+
export declare const CollectorTargetProvider: () => import("effect/Layer").Layer<import("alchemy/Provider").Provider<CollectorTarget>, never, import("../internal/crud.ts").CrudRequirements>;
|
|
69
|
+
//# sourceMappingURL=CollectorTarget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollectorTarget.d.ts","sourceRoot":"","sources":["../../src/Telemetry/CollectorTarget.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAK5C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,SAAS,MAAM,8BAA8B,CAAC;AAE1D,wCAAwC;AACxC,MAAM,WAAW,oBACf,SAAQ,IAAI,CAAC,SAAS,CAAC,4BAA4B,EAAE,QAAQ,CAAC,EAAE,QAAQ;CAAG;AAE7E,mGAAmG;AACnG,MAAM,WAAW,yBAA0B,SAAQ,SAAS,CAAC,eAAe;IAC1E,6CAA6C;IAC7C,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,yFAAyF;AACzF,MAAM,WAAW,qBAAqB;IACpC,mCAAmC;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,uBAAuB;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,uFAAuF;IACvF,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,eAAe,GAAG,QAAQ,CACpC,uCAAuC,EACvC,oBAAoB,EACpB,yBAAyB,EACzB,KAAK,EACL,SAAS,EACT,qBAAqB,CACtB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,eAAO,MAAM,eAAe,2DAAqE,CAAC;AAIlG,eAAO,MAAM,uBAAuB,iJAqBhC,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Resource } from "alchemy/Resource";
|
|
2
|
+
import * as Effect from "effect/Effect";
|
|
3
|
+
import * as Stream from "effect/Stream";
|
|
4
|
+
import { crud } from "../internal/crud.js";
|
|
5
|
+
import { listWithParent, withParent } from "../internal/ops.js";
|
|
6
|
+
import * as Telemetry from "../sdk/services/telemetry.js";
|
|
7
|
+
/**
|
|
8
|
+
* A database or process a {@link Collector} scrapes for metrics: Postgres,
|
|
9
|
+
* PgBouncer, MySQL, Redis, MongoDB, Memcached, Elasticsearch, nginx,
|
|
10
|
+
* Apache, Kafka, Traefik or a Prometheus endpoint (`kind`).
|
|
11
|
+
*
|
|
12
|
+
* `password` and `apiKey` are `Redacted` and never returned: changes are
|
|
13
|
+
* detected against the previous deploy's props. Removing `password`,
|
|
14
|
+
* `apiKey`, `username`, `port` or `listenIp` from the config clears it.
|
|
15
|
+
* `collectorId` and `kind` replace the target when changed. An update to a
|
|
16
|
+
* connection setting sets `status` back to `pending` until the collector
|
|
17
|
+
* checks the target again.
|
|
18
|
+
*
|
|
19
|
+
* @see https://betterstack.com/docs/logs/api/list-collector-metrics-targets/
|
|
20
|
+
*
|
|
21
|
+
* ### Scraping a database
|
|
22
|
+
* **Example:** A Postgres target with credentials
|
|
23
|
+
* ```typescript
|
|
24
|
+
* const collector = yield* BetterStack.Telemetry.Collector("db-hosts", { platform: "docker" });
|
|
25
|
+
* yield* BetterStack.Telemetry.CollectorTarget("orders-db", {
|
|
26
|
+
* collectorId: collector.id,
|
|
27
|
+
* kind: "postgres",
|
|
28
|
+
* host: "orders-db.internal",
|
|
29
|
+
* port: 5432,
|
|
30
|
+
* username: "metrics",
|
|
31
|
+
* password: Redacted.make(process.env.ORDERS_DB_METRICS_PASSWORD ?? ""),
|
|
32
|
+
* sslMode: "require",
|
|
33
|
+
* });
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* ### Scraping a Prometheus endpoint
|
|
37
|
+
* **Example:** A service's `/metrics`
|
|
38
|
+
* ```typescript
|
|
39
|
+
* yield* BetterStack.Telemetry.CollectorTarget("api-metrics", {
|
|
40
|
+
* collectorId: collector.id,
|
|
41
|
+
* kind: "prometheus",
|
|
42
|
+
* host: "api.internal",
|
|
43
|
+
* service: "api",
|
|
44
|
+
* endpoint: "http://api.internal:9090/metrics",
|
|
45
|
+
* });
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @resource
|
|
49
|
+
* @product Telemetry
|
|
50
|
+
*/
|
|
51
|
+
export const CollectorTarget = Resource("BetterStack.Telemetry.CollectorTarget");
|
|
52
|
+
const parent = ["collectorId"];
|
|
53
|
+
export const CollectorTargetProvider = () => crud(CollectorTarget, {
|
|
54
|
+
ops: {
|
|
55
|
+
create: withParent(Telemetry.createCollectorTarget, parent),
|
|
56
|
+
read: withParent(Telemetry.getCollectorTarget, parent),
|
|
57
|
+
update: Telemetry.updateCollectorTarget,
|
|
58
|
+
delete: Telemetry.deleteCollectorTarget,
|
|
59
|
+
list: listWithParent(Telemetry.listCollectorTarget, parent),
|
|
60
|
+
},
|
|
61
|
+
key: (target) => ({ collectorId: target.collectorId, id: target.id }),
|
|
62
|
+
nullOnRemove: ["apiKey", "listenIp", "password", "port", "username"],
|
|
63
|
+
lookup: { key: ({ collectorId, id }) => ({ collectorId, id }) },
|
|
64
|
+
list: {
|
|
65
|
+
parents: Telemetry.listCollector.items({}).pipe(Stream.runCollect, Effect.map((collectors) => Array.from(collectors, (collector) => ({ collectorId: collector.id })))),
|
|
66
|
+
},
|
|
67
|
+
stables: ["id", "collectorId", "teamId", "kind", "createdAt"],
|
|
68
|
+
});
|
|
69
|
+
//# sourceMappingURL=CollectorTarget.js.map
|
|
@@ -0,0 +1 @@
|
|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