Skip to content

Commit 51fca2b

Browse files
authored
Merge pull request #31 from runZeroInc/update/centra
Update/centra
2 parents 7cc6113 + 98d3c0a commit 51fca2b

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

akamai-guardicore-centra/custom-integration-centra-v3-api.star

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def build_assets(assets):
8282
agent_labels = agent_info.get('labels', [])
8383
for label in agent_labels:
8484
custom_attributes['agent.labels.' + str(agent_labels.index(label))] = label
85-
labels = asset.get('lables', [])
85+
labels = asset.get('labels', [])
8686
for label in labels:
8787
for k, v in label.items():
8888
custom_attributes['labels.' + str(labels.index(label)) + '.' + k ] = v

akamai-guardicore-centra/custom-integration-centra-v4-api.star

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ def build_assets(assets, token):
7373
label_mapping[k] = v
7474
name = label_mapping.get(guid, '')
7575
label_names.append(name)
76+
77+
tags = []
78+
for label in label_names:
79+
split_label = label.split(':')
80+
tag = split_label[0] + '=' + split_label[1]
81+
tags.append(tag)
7682

7783

7884
custom_attributes = {
@@ -113,7 +119,8 @@ def build_assets(assets, token):
113119
os=os,
114120
first_seen_ts=first_seen,
115121
networkInterfaces=interfaces,
116-
customAttributes=custom_attributes
122+
customAttributes=custom_attributes,
123+
tags=tags
117124
)
118125
)
119126
return assets_import

docs/integrations.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"lastUpdated": "2025-12-15T22:06:49.938502Z",
2+
"lastUpdated": "2026-01-15T14:44:35.262088Z",
33
"totalIntegrations": 30,
44
"integrationDetails": [
55
{

0 commit comments

Comments
 (0)