ScriptResult 模块
add_entity_json
添加以实体标识符为标题的 JSON 结果。
siemplify.result.add_entity_json(entity_identifier, json_data)
add_result_json
将 JSON 结果添加到支持请求。
siemplify.result.add_result_json(json_data)
add_entity_content
添加以实体标识符为标题的 JSON 结果。
siemplify.result.add_entity_content(entity_identifier, content)
add_entity_table
添加以实体标识符作为表格标题的数据表格。
siemplify.result.add_entity_table(entity_identifier, data_table)
add_entity_attachment
添加以实体标识符为标题的 JSON 结果。
siemplify.result.add_entity_attachment(entity_identifier, filename, file_contents, additional_data=None)
add_entity_html_report
添加以实体标识符为标题的 HTML 数据。
siemplify.result.add_entity_html_report(entity_identifier, report_name, report_contents)
add_entity_link
添加以实体标识符为标题的 JSON 结果。
siemplify.result.add_entity_link(entity_identifier, link)
add_link
为所选实体添加网页链接。
siemplify.add_link(title, link)
add_attachment
添加附件。
siemplify.result.add_attachment(title, filename, file_contents, additional_data)
add_content
siemplify.result.add_content(entity_identifier, content)
add_html
siemplify.result.add_html(title, report_name, report_contents)
add_json
添加以实体标识符为标题的 JSON 结果。
siemplify.result.add_json(entity_identifier, json_data)
add_data_table
siemplify.result.add_data_table(title, data_table)
loadConfigFromFile
加载记录器配置文件。
loadConfigFromFile(run_folder=run_folder, log_location=log_location)
例外情况
此函数会在日志中记录一条 ERROR 级别的消息。此外,系统还会将上一个异常的轨迹写入日志。
exception(message)
错误
此函数会在日志中记录一条错误级别的消息。
error(message)
警告
此函数会在日志中记录一条警告级消息。
warn(message)
信息
此函数会在日志中记录一条 INFO 级别的消息。
info(message)