Skip to content

Commit 96d84e6

Browse files
authored
feat: Add ScanningAlertsClientV1 with support for Scanning Alerts (#200)
* feat(scanning): Add support for runtime alert creation * feat(scanning): Add support for repository alert creation * ci(scanning): Add test that retrieves an alert * feat(scanning): Add support for runtime alert update * feat(scanning): Add support for repository alert update * refactor(scanning): Extract ScanningAlertsClientV1 client * docs: Add usage examples * docs: Add SdScanningClient documentation autogeneration * fix(lint): Expand imports * lint: Fix linting errors and add EditorConfig
1 parent 89c8dea commit 96d84e6

File tree

9 files changed

+913
-191
lines changed

9 files changed

+913
-191
lines changed

.editorconfig

+129
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 4
7+
indent_style = space
8+
insert_final_newline = true
9+
max_line_length = 120
10+
tab_width = 4
11+
ij_continuation_indent_size = 8
12+
ij_formatter_off_tag = @formatter:off
13+
ij_formatter_on_tag = @formatter:on
14+
ij_formatter_tags_enabled = false
15+
ij_smart_tabs = false
16+
ij_visual_guides = none
17+
ij_wrap_on_typing = false
18+
19+
[{*.har,*.jsb2,*.jsb3,*.json,.babelrc,.eslintrc,.stylelintrc,bowerrc,jest.config}]
20+
indent_size = 2
21+
ij_json_keep_blank_lines_in_code = 0
22+
ij_json_keep_indents_on_empty_lines = false
23+
ij_json_keep_line_breaks = true
24+
ij_json_space_after_colon = true
25+
ij_json_space_after_comma = true
26+
ij_json_space_before_colon = true
27+
ij_json_space_before_comma = false
28+
ij_json_spaces_within_braces = false
29+
ij_json_spaces_within_brackets = false
30+
ij_json_wrap_long_lines = false
31+
32+
[{*.markdown,*.md}]
33+
ij_markdown_force_one_space_after_blockquote_symbol = true
34+
ij_markdown_force_one_space_after_header_symbol = true
35+
ij_markdown_force_one_space_after_list_bullet = true
36+
ij_markdown_force_one_space_between_words = true
37+
ij_markdown_keep_indents_on_empty_lines = false
38+
ij_markdown_max_lines_around_block_elements = 1
39+
ij_markdown_max_lines_around_header = 1
40+
ij_markdown_max_lines_between_paragraphs = 1
41+
ij_markdown_min_lines_around_block_elements = 1
42+
ij_markdown_min_lines_around_header = 1
43+
ij_markdown_min_lines_between_paragraphs = 1
44+
45+
[{*.py,*.pyw}]
46+
max_line_length = 999
47+
ij_python_align_collections_and_comprehensions = true
48+
ij_python_align_multiline_imports = true
49+
ij_python_align_multiline_parameters = true
50+
ij_python_align_multiline_parameters_in_calls = true
51+
ij_python_blank_line_at_file_end = true
52+
ij_python_blank_lines_after_imports = 1
53+
ij_python_blank_lines_after_local_imports = 0
54+
ij_python_blank_lines_around_class = 1
55+
ij_python_blank_lines_around_method = 1
56+
ij_python_blank_lines_around_top_level_classes_functions = 2
57+
ij_python_blank_lines_before_first_method = 0
58+
ij_python_call_parameters_new_line_after_left_paren = false
59+
ij_python_call_parameters_right_paren_on_new_line = false
60+
ij_python_call_parameters_wrap = normal
61+
ij_python_dict_alignment = 1
62+
ij_python_dict_new_line_after_left_brace = false
63+
ij_python_dict_new_line_before_right_brace = false
64+
ij_python_dict_wrapping = 1
65+
ij_python_from_import_new_line_after_left_parenthesis = false
66+
ij_python_from_import_new_line_before_right_parenthesis = false
67+
ij_python_from_import_parentheses_force_if_multiline = true
68+
ij_python_from_import_trailing_comma_if_multiline = false
69+
ij_python_from_import_wrapping = 1
70+
ij_python_hang_closing_brackets = false
71+
ij_python_keep_blank_lines_in_code = 1
72+
ij_python_keep_blank_lines_in_declarations = 1
73+
ij_python_keep_indents_on_empty_lines = false
74+
ij_python_keep_line_breaks = true
75+
ij_python_method_parameters_new_line_after_left_paren = false
76+
ij_python_method_parameters_right_paren_on_new_line = false
77+
ij_python_method_parameters_wrap = normal
78+
ij_python_new_line_after_colon = true
79+
ij_python_new_line_after_colon_multi_clause = true
80+
ij_python_optimize_imports_always_split_from_imports = false
81+
ij_python_optimize_imports_case_insensitive_order = true
82+
ij_python_optimize_imports_join_from_imports_with_same_source = true
83+
ij_python_optimize_imports_sort_by_type_first = true
84+
ij_python_optimize_imports_sort_imports = true
85+
ij_python_optimize_imports_sort_names_in_from_imports = true
86+
ij_python_space_after_comma = true
87+
ij_python_space_after_number_sign = true
88+
ij_python_space_after_py_colon = true
89+
ij_python_space_before_backslash = true
90+
ij_python_space_before_comma = false
91+
ij_python_space_before_for_semicolon = false
92+
ij_python_space_before_lbracket = false
93+
ij_python_space_before_method_call_parentheses = false
94+
ij_python_space_before_method_parentheses = false
95+
ij_python_space_before_number_sign = true
96+
ij_python_space_before_py_colon = false
97+
ij_python_space_within_empty_method_call_parentheses = false
98+
ij_python_space_within_empty_method_parentheses = false
99+
ij_python_spaces_around_additive_operators = true
100+
ij_python_spaces_around_assignment_operators = true
101+
ij_python_spaces_around_bitwise_operators = true
102+
ij_python_spaces_around_eq_in_keyword_argument = false
103+
ij_python_spaces_around_eq_in_named_parameter = false
104+
ij_python_spaces_around_equality_operators = true
105+
ij_python_spaces_around_multiplicative_operators = true
106+
ij_python_spaces_around_power_operator = true
107+
ij_python_spaces_around_relational_operators = true
108+
ij_python_spaces_around_shift_operators = true
109+
ij_python_spaces_within_braces = false
110+
ij_python_spaces_within_brackets = false
111+
ij_python_spaces_within_method_call_parentheses = false
112+
ij_python_spaces_within_method_parentheses = false
113+
ij_python_use_continuation_indent_for_arguments = true
114+
ij_python_use_continuation_indent_for_collection_and_comprehensions = true
115+
ij_python_use_continuation_indent_for_parameters = true
116+
ij_python_wrap_long_lines = false
117+
118+
[{*.yaml,*.yml}]
119+
indent_size = 4
120+
ij_yaml_align_values_properties = do_not_align
121+
ij_yaml_autoinsert_sequence_marker = true
122+
ij_yaml_block_mapping_on_new_line = false
123+
ij_yaml_indent_sequence_value = true
124+
ij_yaml_keep_indents_on_empty_lines = false
125+
ij_yaml_keep_line_breaks = true
126+
ij_yaml_sequence_on_new_line = false
127+
ij_yaml_space_before_colon = false
128+
ij_yaml_spaces_within_braces = true
129+
ij_yaml_spaces_within_brackets = true

.flake8

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[flake8]
2-
ignore = E501, F821, W504, W605, E303
2+
ignore = E501, F821, W504, W605, E303, E126, E131, E241
33
show-source = True
44
count = True
55
statistics = True

docs/reference/secure.rst

+6
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@ Sysdig Secure
66
:members:
77
:inherited-members:
88
:undoc-members:
9+
10+
.. automodule:: sdcclient
11+
.. autoclass:: SdScanningClient
12+
:members:
13+
:inherited-members:
14+
:undoc-members:

sdcclient/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sdcclient.monitor as monitor
22
import sdcclient.secure as secure
3-
from sdcclient._monitor import SdMonitorClient, SdcClient
3+
from sdcclient._monitor import SdcClient, SdMonitorClient
44
from sdcclient._monitor_v1 import SdMonitorClientV1
55
from sdcclient._scanning import SdScanningClient
66
from sdcclient._secure import SdSecureClient

0 commit comments

Comments
 (0)