Пример #1
0
class BIAggregationFunctionBestSchema(Schema):
    type = ReqConstant(BIAggregationFunctionBest.type())
    count = ReqInteger(default=1)
    restrict_state = ReqInteger(default=2, validate=validate.OneOf([
        0,
        1,
        2,
    ]))
Пример #2
0
class BIAggregationFunctionWorstSchema(Schema):
    type = ReqConstant(BIAggregationFunctionWorst.type())
    count = ReqInteger(dump_default=1, example=2)
    restrict_state = ReqInteger(
        dump_default=2,
        validate=validate.OneOf([
            0,
            1,
            2,
        ]),
    )
Пример #3
0
class BINodeVisHierarchyStyleConfigSchema(Schema):
    layer_height = ReqInteger(default=80, example=85)
    node_size = ReqInteger(default=25, example=40)
    rotation = ReqInteger(default=270, example=180)
Пример #4
0
class BINodeVisRadialStyleConfigSchema(Schema):
    degree = ReqInteger(default=80)
    radius = ReqInteger(default=25)
    rotation = ReqInteger(default=270)
Пример #5
0
class BIAggregationFunctionCountSettings(Schema):
    type = ReqString(default="count",
                     validate=validate.OneOf(["count", "percentage"]))
    value = ReqInteger(default=1)
Пример #6
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)
Пример #7
0
class BINodeVisRadialStyleSchema(Schema):
    type = ReqConstant("radial")
    degree = ReqInteger()
    radius = ReqInteger()
    rotation = ReqInteger()