File: _notification.py

package info (click to toggle)
python-sarif-python-om 1.0.4-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 424 kB
  • sloc: python: 634; makefile: 3
file content (18 lines) | stat: -rw-r--r-- 1,008 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# This file was generated by jschema_to_python version 1.2.3.

import attr


@attr.s
class Notification(object):
    """Describes a condition relevant to the tool itself, as opposed to being relevant to a target being analyzed by the tool."""

    message = attr.ib(metadata={"schema_property_name": "message"})
    associated_rule = attr.ib(default=None, metadata={"schema_property_name": "associatedRule"})
    descriptor = attr.ib(default=None, metadata={"schema_property_name": "descriptor"})
    exception = attr.ib(default=None, metadata={"schema_property_name": "exception"})
    level = attr.ib(default="warning", metadata={"schema_property_name": "level"})
    locations = attr.ib(default=None, metadata={"schema_property_name": "locations"})
    properties = attr.ib(default=None, metadata={"schema_property_name": "properties"})
    thread_id = attr.ib(default=None, metadata={"schema_property_name": "threadId"})
    time_utc = attr.ib(default=None, metadata={"schema_property_name": "timeUtc"})