MCPcopy Create free account
hub / github.com/diffgram/diffgram / serialize

Method serialize

shared/database/event/event.py:113–139  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

111 time_created = Column(DateTime, default = datetime.datetime.utcnow)
112
113 def serialize(self):
114 return {
115 'id': self.id,
116 'kind': self.kind,
117 'description': self.description,
118 'error_log': self.error_log,
119 'object_type': self.object_type,
120 'page_name': self.page_name,
121 'input_id': self.input_id,
122 'project_id': self.project_id,
123 'directory_id': self.directory_id,
124 'action_id': self.action_id,
125 'workflow_id': self.workflow_id,
126 'file_id': self.file_id,
127 'task_id': self.task_id,
128 'job_id': self.job_id,
129 'member_id': self.member_id,
130 'report_template_data': self.report_template_data,
131 'report_data': self.report_data,
132 'time_created': self.time_created.strftime('%Y-%m-%d'),
133 'install_fingerprint': self.install_fingerprint,
134 'diffgram_version': settings.DIFFGRAM_VERSION_TAG,
135 'host_os': settings.DIFFGRAM_HOST_OS,
136 'storage_backend': settings.DIFFGRAM_STATIC_STORAGE_PROVIDER,
137 'service_name': settings.DIFFGRAM_SERVICE_NAME,
138 'extra_metadata': self.extra_metadata
139 }
140
141 def serialize_for_visit_history(self, session):
142

Callers 2

broadcastMethod · 0.95
send_to_eventhubMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected