File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
from pydantic import Field
4
4
5
+ from infrahub .core .constants import InfrahubKind
6
+
5
7
from .constants import EVENT_NAMESPACE
6
8
from .models import InfrahubEvent
7
9
@@ -14,7 +16,8 @@ class ProposedChangeEvent(InfrahubEvent):
14
16
def get_resource (self ) -> dict [str , str ]:
15
17
return {
16
18
"prefect.resource.id" : f"infrahub.proposed_change.{ self .proposed_change_id } " ,
17
- "infrahub.proposed_change.id" : self .proposed_change_id ,
19
+ "infrahub.node.kind" : InfrahubKind .PROPOSEDCHANGE ,
20
+ "infrahub.node.id" : self .proposed_change_id ,
18
21
"infrahub.proposed_change.name" : self .proposed_change_name ,
19
22
"infrahub.proposed_change.state" : self .proposed_change_state ,
20
23
"infrahub.branch.name" : self .meta .context .branch .name ,
You can’t perform that action at this time.
0 commit comments