Пример #1
0
class BINodeVisHierarchyStyleSchema(Schema):
    type = ReqConstant("hierarchy")
    style_config = ReqNested(BINodeVisHierarchyStyleConfigSchema)
Пример #2
0
class BINodeVisBlockStyleSchema(Schema):
    type = ReqConstant("block")
    style_config = ReqConstant({})
Пример #3
0
class BINodeVisForceStyleSchema(Schema):
    type = ReqConstant("force")
    style_config = ReqConstant({})
Пример #4
0
class BINodeVisRadialStyleSchema(Schema):
    type = ReqConstant("radial")
    style_config = ReqNested(BINodeVisRadialStyleConfigSchema)
Пример #5
0
class BINodeVisRadialStyleSchema(Schema):
    type = ReqConstant("radial")
    degree = ReqInteger()
    radius = ReqInteger()
    rotation = ReqInteger()
Пример #6
0
class BINodeVisNoneStyleSchema(Schema):
    type = ReqConstant("none")
    style_config = ReqConstant({})
Пример #7
0
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
class BIHostNameRegexChoiceSchema(Schema):
    type = ReqConstant("host_name_regex")
    pattern = ReqString(default="", example="testhostn.*")
Пример #10
0
class BIFixedArgumentsSearchSchema(Schema):
    type = ReqConstant(BIFixedArgumentsSearch.type())
    arguments = ReqList(fields.Nested(BIFixedArgumentsSearchTokenSchema))
Пример #11
0
class BIAllHostsChoiceSchema(Schema):
    type = ReqConstant("all_hosts")
Пример #12
0
class BIServiceSearchSchema(Schema):
    type = ReqConstant(BIServiceSearch.type())
    conditions = ReqNested(ServiceConditionsSchema,
                           default=ServiceConditionsSchema().dump({}))
Пример #13
0
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
class BIEmptySearchSchema(Schema):
    type = ReqConstant(BIEmptySearch.type())
Пример #16
0
class BIStateOfRemainingServicesActionSchema(Schema):
    type = ReqConstant(BIStateOfRemainingServicesAction.type())
    host_regex = ReqString(default="", example="testhost")
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")