Black Friday in 1 Tag: Können Ihre Kunden dann bezahlen? 25 % Rabatt im ersten Jahr und kostenlose Einrichtung, bis 30. NovemberZum Angebot →
Integration
for_each-Rezepte, CI-Smoke, Webhook-Verify, DSGVO und UI-oder-Terraform.
Meinen API-Schlüssel holenOpenAPI-Vertrag
Vollständiges Dokument, ohne Authentifizierung, bereit für Ihren Client-Generator.
Messung aus der EU. Daten in der Union. PII in Namen und Payloads minimieren. Organisations-Export bleibt bewusst außerhalb der Schlüssel-API.
Rotation: kurze TTL für CI-Schlüssel, sofort widerrufen bei Leak. Authorization nie loggen.
Drift entsteht, wenn Konsole und Terraform-State divergieren. Eine Quelle der Wahrheit pro Umgebung. Nativer Import, dann Konsolen-Edits untersagen.
# Adopter un scénario existant : l'identifiant est son UUID
terraform import pathly_scenario.home 00000000-0000-4000-8000-000000000000Fertige Rezepte. Namen und URLs anpassen (in Docs nur example.*).
Agentur-Flotte — for_each
locals {
clients = {
acme = "https://www.example.com/"
globex = "https://shop.example.com/"
}
}
resource "pathly_scenario" "home" {
for_each = local.clients
name = "home-${each.key}"
url = each.value
interval_sec = 300
severity = "critical"
}GitHub Actions — run-scenario post-deploy
- name: Pathly smoke
uses: pathlyhq/pathly-action@v1
with:
api_token: ${{ secrets.PATHLY_API_TOKEN }}
operation: run-scenario
scenario_id: ${{ vars.PATHLY_CHECKOUT_SCENARIO_ID }}
timeout_sec: "120"GitLab CI — include remote
include:
- remote: https://raw.githubusercontent.com/Pathlyhq/pathly-gitlab-ci/v0.1.0/templates/pathly-ping.yml
inputs:
stage: testNode SDK — Ping, Chain, lister
import { PathlyClient } from "@pathly/sdk";
const client = new PathlyClient({ token: process.env.PATHLY_API_TOKEN });
const s = await client.createScenario({
name: "Checkout",
url: "https://www.example.com/cart",
intervalSec: 300,
expectText: "Your cart",
});
const chain = await client.createChain({
name: "Login then /me",
intervalSec: 300,
hops: [
{ method: "POST", url: "https://api.example.com/login", assertStatus: 200 },
{ method: "GET", url: "https://api.example.com/me", assertStatus: 200 },
],
});
for await (const row of client.paginate((cursor) => client.listScenarios({ cursor }))) {
console.log(row.id, row.name);
}Python SDK
from pathly import Client, ScenarioInput
client = Client()
s = client.create_scenario(ScenarioInput(
name="Checkout",
url="https://www.example.com/cart",
intervalSec=300,
expectText="Your cart",
))
chain = client.create_scenario(ScenarioInput(
name="Login then /me",
intervalSec=300,
httpChain=[
{"method": "POST", "url": "https://api.example.com/login", "assertStatus": 200},
{"method": "GET", "url": "https://api.example.com/me", "assertStatus": 200},
],
))
print(s.id, chain.id)jq — kritische Szenarien filtern
curl -sS https://api.pathlyhq.com/v1/scenarios \
-H "Authorization: Bearer $PATHLY_API_TOKEN" \
| jq '.items[] | select(.severity=="critical") | {id,name,url}'