R
Railway•14mo ago
nootrality

webhook service name

Does the webhook have service name? I'm getting several identical messages and I cant see service name in them.
Solution:
```json { "type": "DEPLOY", "project": { "id": "4f016be9-93a4-4dfa-9e85-cba5201fed57",...
Jump to solution
9 Replies
Percy
Percy•14mo ago
Project ID: 33c47f57-f4aa-4640-9b44-cd0a3f034b71
nootrality
nootralityOP•14mo ago
33c47f57-f4aa-4640-9b44-cd0a3f034b71
Brody
Brody•14mo ago
I don't understand the question? you asked if the webhooks have a service name, but then you seemingly answered your own question by saying you can see a service name in them?
nootrality
nootralityOP•14mo ago
Sorry, can't see service name Editing The example payload also doesn't have service name
Brody
Brody•14mo ago
the example doesnt, but the actual webhook payloads have the service name
Solution
Brody
Brody•14mo ago
{
"type": "DEPLOY",
"project": {
"id": "4f016be9-93a4-4dfa-9e85-cba5201fed57",
"name": "AstroWind",
"description": "",
"createdAt": "2023-10-12T01:33:09.147Z"
},
"deployment": {
"id": "9f70926d-702d-4703-89d8-3a6d39d24594",
"meta": {
"repo": "brody192/astrowind-template",
"branch": "test",
"logsV2": true,
"buildOnly": false,
"commitHash": "e1da4707e211de5995d189a5f4ece95a46a34a2c",
"commitAuthor": "brody192",
"volumeMounts": [],
"commitMessage": "Merge pull request #1 from brody192/fix\n\nuse node 18 only!",
"rootDirectory": null,
"serviceManifest": {
"build": {
"builder": "NIXPACKS",
"buildCommand": null,
"nixpacksPlan": null,
"watchPatterns": [],
"dockerfilePath": null
},
"deploy": {
"numReplicas": 1,
"cronSchedule": null,
"startCommand": null,
"healthcheckPath": null,
"sleepApplication": false,
"restartPolicyType": "ON_FAILURE",
"healthcheckTimeout": null,
"restartPolicyMaxRetries": 10
}
},
"nixpacksProviders": [
"node"
],
"fileServiceManifest": {},
"ignoreWatchPatterns": false,
"propertyFileMapping": {}
},
"creator": {
"id": "0cac2903-0126-4945-aad2-1099a5ae3389",
"name": "Brody",
"avatar": "https://f002.backblazeb2.com/file/tele-upl/brody_avatar.png"
}
},
"environment": {
"id": "1322c787-5d51-492d-b181-aaac2f969b96",
"name": "production"
},
"status": "BUILDING",
"timestamp": "2023-10-13T07:15:45.418Z",
"service": {
"id": "eb9bb701-0f9d-4982-aff9-6d8c1b748c21",
"name": "AstroWind"
}
}
{
"type": "DEPLOY",
"project": {
"id": "4f016be9-93a4-4dfa-9e85-cba5201fed57",
"name": "AstroWind",
"description": "",
"createdAt": "2023-10-12T01:33:09.147Z"
},
"deployment": {
"id": "9f70926d-702d-4703-89d8-3a6d39d24594",
"meta": {
"repo": "brody192/astrowind-template",
"branch": "test",
"logsV2": true,
"buildOnly": false,
"commitHash": "e1da4707e211de5995d189a5f4ece95a46a34a2c",
"commitAuthor": "brody192",
"volumeMounts": [],
"commitMessage": "Merge pull request #1 from brody192/fix\n\nuse node 18 only!",
"rootDirectory": null,
"serviceManifest": {
"build": {
"builder": "NIXPACKS",
"buildCommand": null,
"nixpacksPlan": null,
"watchPatterns": [],
"dockerfilePath": null
},
"deploy": {
"numReplicas": 1,
"cronSchedule": null,
"startCommand": null,
"healthcheckPath": null,
"sleepApplication": false,
"restartPolicyType": "ON_FAILURE",
"healthcheckTimeout": null,
"restartPolicyMaxRetries": 10
}
},
"nixpacksProviders": [
"node"
],
"fileServiceManifest": {},
"ignoreWatchPatterns": false,
"propertyFileMapping": {}
},
"creator": {
"id": "0cac2903-0126-4945-aad2-1099a5ae3389",
"name": "Brody",
"avatar": "https://f002.backblazeb2.com/file/tele-upl/brody_avatar.png"
}
},
"environment": {
"id": "1322c787-5d51-492d-b181-aaac2f969b96",
"name": "production"
},
"status": "BUILDING",
"timestamp": "2023-10-13T07:15:45.418Z",
"service": {
"id": "eb9bb701-0f9d-4982-aff9-6d8c1b748c21",
"name": "AstroWind"
}
}
Brody
Brody•14mo ago
service.name
nootrality
nootralityOP•14mo ago
Hm, ok. Maybe I'm parsing it out. Thanks Brody.
Brody
Brody•14mo ago
no problem 🙂
Want results from more Discord servers?
Add your server