コード例 #1
0
ファイル: bi_node_vis.py プロジェクト: troelsarvin/checkmk
class BINodeVisHierarchyStyleSchema(Schema):
    type = ReqConstant("hierarchy")
    style_config = ReqNested(BINodeVisHierarchyStyleConfigSchema)
コード例 #2
0
ファイル: bi_node_vis.py プロジェクト: troelsarvin/checkmk
class BINodeVisBlockStyleSchema(Schema):
    type = ReqConstant("block")
    style_config = ReqConstant({})
コード例 #3
0
ファイル: bi_node_vis.py プロジェクト: troelsarvin/checkmk
class BINodeVisForceStyleSchema(Schema):
    type = ReqConstant("force")
    style_config = ReqConstant({})
コード例 #4
0
ファイル: bi_node_vis.py プロジェクト: troelsarvin/checkmk
class BINodeVisRadialStyleSchema(Schema):
    type = ReqConstant("radial")
    style_config = ReqNested(BINodeVisRadialStyleConfigSchema)
コード例 #5
0
ファイル: bi_node_vis.py プロジェクト: fmattheus/checkmk
class BINodeVisRadialStyleSchema(Schema):
    type = ReqConstant("radial")
    degree = ReqInteger()
    radius = ReqInteger()
    rotation = ReqInteger()
コード例 #6
0
ファイル: bi_node_vis.py プロジェクト: troelsarvin/checkmk
class BINodeVisNoneStyleSchema(Schema):
    type = ReqConstant("none")
    style_config = ReqConstant({})
コード例 #7
0
ファイル: bi_search.py プロジェクト: superbjorn09/checkmk
class BIHostAliasRegexChoiceSchema(Schema):
    type = ReqConstant("host_alias_regex")
    pattern = ReqString(default="", example="testali.*")
コード例 #8
0
class BICallARuleActionSchema(Schema):
    type = ReqConstant(BICallARuleAction.type())
    rule_id = ReqString(default="", example="test_rule_1")
    params = ReqNested(BIParamsSchema,
                       default=BIParamsSchema().dump({}),
                       example=BIParamsSchema().dump({}))
コード例 #9
0
ファイル: bi_search.py プロジェクト: superbjorn09/checkmk
class BIHostNameRegexChoiceSchema(Schema):
    type = ReqConstant("host_name_regex")
    pattern = ReqString(default="", example="testhostn.*")
コード例 #10
0
ファイル: bi_search.py プロジェクト: superbjorn09/checkmk
class BIFixedArgumentsSearchSchema(Schema):
    type = ReqConstant(BIFixedArgumentsSearch.type())
    arguments = ReqList(fields.Nested(BIFixedArgumentsSearchTokenSchema))
コード例 #11
0
ファイル: bi_search.py プロジェクト: superbjorn09/checkmk
class BIAllHostsChoiceSchema(Schema):
    type = ReqConstant("all_hosts")
コード例 #12
0
ファイル: bi_search.py プロジェクト: superbjorn09/checkmk
class BIServiceSearchSchema(Schema):
    type = ReqConstant(BIServiceSearch.type())
    conditions = ReqNested(ServiceConditionsSchema,
                           default=ServiceConditionsSchema().dump({}))
コード例 #13
0
ファイル: bi_node_vis.py プロジェクト: fmattheus/checkmk
class BINodeVisHierarchyStyleSchema(Schema):
    type = ReqConstant("hierarchy")
    layer_height = ReqInteger(default=80, example=85)
    node_size = ReqInteger(default=25, example=40)
    rotation = ReqInteger(default=270, example=180)
コード例 #14
0
class BICompiledLeafSchema(Schema):
    type = ReqConstant(BICompiledLeaf.type())
    required_hosts = ReqList(fields.Nested(BISiteHostPairSchema))
    site_id = ReqString()
    host_name = ReqString()
    service_description = fields.String()
コード例 #15
0
ファイル: bi_search.py プロジェクト: superbjorn09/checkmk
class BIEmptySearchSchema(Schema):
    type = ReqConstant(BIEmptySearch.type())
コード例 #16
0
class BIStateOfRemainingServicesActionSchema(Schema):
    type = ReqConstant(BIStateOfRemainingServicesAction.type())
    host_regex = ReqString(default="", example="testhost")
コード例 #17
0
class BIAggregationFunctionCountOKSchema(Schema):
    type = ReqConstant(BIAggregationFunctionCountOK.type())
    levels_ok = ReqNested(BIAggregationFunctionCountSettings)
    levels_warn = ReqNested(BIAggregationFunctionCountSettings)
コード例 #18
0
class BIHostSearchSchema(Schema):
    type = ReqConstant(BIHostSearch.type())
    conditions = ReqNested(HostConditionsSchema,
                           default=HostConditionsSchema().dump({}))
    refer_to = ReqString(validate=validate.OneOf(["host", "child", "parent"]),
                         default="host")
コード例 #19
0
class BIStateOfServiceActionSchema(Schema):
    type = ReqConstant(BIStateOfServiceAction.type())
    host_regex = ReqString(dump_default="", example="testhost")
    service_regex = ReqString(dump_default="", example="testservice")