Skip to content

Commit

Permalink
Changed the timesketch scaffolder to reflect recent changes in the in…
Browse files Browse the repository at this point in the history
…terface

* Upgrading the TS scaffolder to reflect new changes in the interface
  • Loading branch information
kiddinn authored Jan 3, 2019
1 parent 34b6963 commit c6486b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions l2tscaffolder/templates/ts_sketch_analyzer.jinja2
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Sketch analyzer plugin for {{ plugin_name|lower|replace('_',' ')}}."""
from __future__ import unicode_literals

from timesketch.lib import emojis
from timesketch.lib.analyzers import interface
from timesketch.lib.analyzers import manager

Expand Down Expand Up @@ -38,6 +39,9 @@ class {{ class_name }}SketchPlugin(interface.BaseSketchAnalyzer):
return_fields=return_fields
)

# TODO: If an emoji is needed fetch it here.
# my_emoji = emojis.get_emoji('emoji_name')

# TODO: Add analyzer logic here.
# Methods available to use for sketch analyzers:
# sketch.get_all_indices()
Expand All @@ -47,6 +51,8 @@ class {{ class_name }}SketchPlugin(interface.BaseSketchAnalyzer):
# event_add_label('label')
# event.add_star()
# event.add_comment('comment')
# event.add_emojis([my_emoji])
# event.add_human_readable('human readable text', self.NAME)
for event in events:
pass

Expand Down
2 changes: 1 addition & 1 deletion test_data/turbinia_job_output.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright 2018 Google Inc.
# Copyright 2019 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down

0 comments on commit c6486b3

Please sign in to comment.