API - associate alert ids with tenant ids

Hello all,
I am a bit on the lose, I try to automate alerting into our monitoring system.
I get alerts and tenants just fine via api, but I cant figure out how to associate them. Alerts have
id, activityId, planId or resourceId. But neither of them is associable with the id from the tenants.
Curentlly for testing I have two tenants and one alert.
tenant with id 5f8662b2-b056-4698-a007-a9ea4505564d has the alert triggered.
Any way to get them matched?
Or is there way to add the tenant name in the alert?
tenants
{
"items": [
{
"language": "en-US",
"created_at": "2021-08-11T11:50:34",
"brand_id": 53431,
"id": "5f8662b2-b056-4698-a007-a9ea4505564d",
"pricing_mode": "production",
"version": 7,
"kind": "customer",
"updated_at": "2021-10-19T12:03:51",
"customer_type": "default",
"customer_id": null,
"contacts": [],
"parent_id": "96149462-ba69-4803-b7fa-008841eafd5f",
"mfa_status": "disabled",
"brand_uuid": "4bc0679a-af0c-44b2-9af2-298837a24238",
"ancestral_access": true,
"default_idp_id": "11111111-1111-1111-1111-111111111111",
"internal_tag": null,
"owner_id": null,
"name": "01684",
"update_lock": {
"owner_id": null,
"enabled": false
},
"enabled": true,
"has_children": false,
"deleted_at": null,
"contact": {
"industry": null,
"email_confirmed": null,
"title": null,
"country": null,
"phone": null,
"zipcode": null,
"organization_size": null,
"firstname": "",
"city": null,
"lastname": "",
"address1": null,
"address2": null,
"state": null,
"created_at": "2021-08-11T11:50:34+00:00",
"aan": "16839830",
"updated_at": "2021-08-11T12:29:42+00:00",
"email": "",
"id": "41bbe809-bc55-4d81-9f14-91582778d082",
"website": null
}
},
{
"language": "en_US",
"created_at": "2019-12-06T07:26:42",
"brand_id": 53431,
"id": "dc9a5bab-1ce1-4c49-9692-719d453fa577",
"pricing_mode": "production",
"version": 9,
"kind": "customer",
"updated_at": "2021-10-19T12:03:40",
"customer_type": "default",
"customer_id": null,
"contacts": [],
"parent_id": "96149462-ba69-4803-b7fa-008841eafd5f",
"mfa_status": "disabled",
"brand_uuid": "4bc0679a-af0c-44b2-9af2-298837a24238",
"ancestral_access": true,
"default_idp_id": "11111111-1111-1111-1111-111111111111",
"internal_tag": null,
"owner_id": null,
"name": "04254",
"update_lock": {
"owner_id": null,
"enabled": false
},
"enabled": true,
"has_children": false,
"deleted_at": null,
"contact": {
"industry": null,
"email_confirmed": null,
"title": null,
"country": null,
"phone": null,
"zipcode": null,
"organization_size": null,
"firstname": "",
"city": null,
"lastname": "",
"address1": null,
"address2": null,
"state": null,
"created_at": "2019-12-06T07:26:42+00:00",
"aan": "06921537",
"updated_at": "2021-06-12T02:22:34+00:00",
"email": "",
"id": "5ef5c7ae-c224-11ea-9c5b-001c422b92e4",
"website": null
}
}
],
"timestamp": "2021-10-07T10:52:50"
}
alerts
{
"items": [
{
"id": "3B73F331-3F78-49D5-99F4-929A44F33FCC",
"type": "BackupFinishedWithWarnings",
"details": {
"activity": {
"id": "329D1770-BC2D-4D5D-BC35-2F023A5D03AA"
},
"activityId": "329D1770-BC2D-4D5D-BC35-2F023A5D03AA",
"backupLocations": [
{
"name": "",
"type": "cloud"
}
],
"backupSourcesType": "files",
"finishTime": 1634602630,
"planId": "814145B7-5D05-4A93-AAA5-4A46597C262C",
"planName": "PC Data",
"resourceId": "F4F99230-0483-4045-BA52-0D8A5996C868",
"resourceName": "User-PC",
"startTime": 1634602520,
"warning": {
"code": 20119654,
"fields": {
"$module": "agent_protection_addon_vsa64_27493",
"unresolvedItems": ....."
},
"src": {
"file": "d:\\2149\\enterprise\\managers\\gtob\\protection\\agent_engine\\backup_job.cpp",
"func": "Gtob::Protection::`anonymous-namespace'::CreateErrorBasedOnKeyType",
"line": 222,
"tag": "0xc37471ceffa1825d"
},
"suberror": {},
"text": "Selected files or folders were not found: .....",
"types": {
"$module": "A",
"unresolvedItems": "W"
}
},
"warningMessage": {
"code": "ProtectionUnresolvedFilesLocal",
"context": {
"cause_str": "Selected files or folders were not found: .....",
"effect_str": "Selected files or folders were not found: .....",
"unresolvedItems": "....."
},
"domain": "Common",
"kbLink": {
"build": 20457,
"lineTag": "0xC37471CEFFA1825D",
"os": "Windows",
"product": "",
"serCode": "BackupFinishedWithWarnings+0x01330066",
"version": "15.0"
},
"reason": "ProtectionUnresolvedFilesLocal",
"serCode": "0x01330066"
},
"warningsMoreover": 0
},
"createdAt": "2021-10-19T00:17:10Z",
"_source": "4ECB24B6-66FE-4303-8903-D5564419D188",
"_sourceTimeStamp": 79536,
"severity": "warning",
"receivedAt": "2021-08-26T07:23:22.400262814Z",
"updatedAt": "2021-10-19T00:17:33.638995317Z",
"tenant": {
"id": "3307633",
"locator": "/1/42998/61749/61752/121832/1012203/3307630/3307633/"
}
}
],
"paging": {
"cursors": {}
}
}
Best regards
Elmar
Best regards,
Ivaylo Tsvetkov | API Platform Support Engineer
Information provided AS-IS with no warranty of any kind.
To contact support, please follow http://www.acronis.com/en-us/support