Ejemplo n.º 1
0
class BIAggregationSchema(Schema):
    class Meta:
        ordered = True

    id = ReqString(
        default="",
        example="aggr1",
        description="TODO: Hier muß Andreas noch etwas reinschreiben!",
    )
    customer = String(
        description="CME Edition only: The customer id for this aggregation.",
        allow_none=True,
        example="customer1",
    )
    groups = create_nested_schema_for_class(
        BIAggregationGroups,
        example_config={
            "names": ["groupA", "groupB"],
            "paths": [["path", "group", "a"], ["path", "group", "b"]]
        },
    )
    node = create_nested_schema_for_class(BINodeGenerator)
    aggregation_visualization = create_nested_schema(
        BIAggregationVisualizationSchema)
    computation_options = create_nested_schema_for_class(
        BIAggregationComputationOptions)
Ejemplo n.º 2
0
class BIRuleSchema(Schema):
    class Meta:
        ordered = True

    id = ReqString(
        default="",
        example="rule1",
        description="TODO: Hier muß Andreas noch etwas reinschreiben!",
    )
    nodes = ReqList(
        fields.Nested(BINodeGeneratorSchema),
        default=[],
        example=[],
        description="TODO: Hier muß Andreas noch etwas reinschreiben!",
    )
    params = create_nested_schema_for_class(
        BIParams,
        example_config={
            "arguments": ["foo", "bar"],
        },
    )
    node_visualization = create_nested_schema(
        BINodeVisLayoutStyleSchema, default_schema=BINodeVisBlockStyleSchema)
    properties = create_nested_schema_for_class(BIRuleProperties)
    aggregation_function = create_nested_schema(
        BIAggregationFunctionSchema,
        default_schema=BIAggregationFunctionBest.schema())
    computation_options = create_nested_schema_for_class(
        BIRuleComputationOptions)
Ejemplo n.º 3
0
class BIRuleSchema(Schema):
    id = ReqString(default="", example="rule1")
    nodes = ReqList(fields.Nested(BINodeGeneratorSchema), default=[], example=[])
    params = create_nested_schema_for_class(BIParams,
                                            example_config=[{
                                                "arguments": ["foo", "bar"],
                                            }])
    node_visualization = create_nested_schema(BINodeVisLayoutStyleSchema,
                                              default_schema=BINodeVisBlockStyleSchema)
    properties = create_nested_schema_for_class(BIRuleProperties)
    aggregation_function = create_nested_schema(BIAggregationFunctionSchema,
                                                default_schema=BIAggregationFunctionBest.schema())
    computation_options = create_nested_schema_for_class(BIRuleComputationOptions)
Ejemplo n.º 4
0
class BIAggregationSchema(Schema):
    id = ReqString(default="", example="aggr1")
    customer = ReqString(default="", example="customer1")
    groups = create_nested_schema_for_class(
        BIAggregationGroups,
        example_config={
            "names": ["groupA", "groupB"],
            "paths": [["path", "group", "a"], ["path", "group", "b"]]
        },
    )
    node = create_nested_schema_for_class(BINodeGenerator)
    aggregation_visualization = create_nested_schema(
        BIAggregationVisualizationSchema)
    computation_options = create_nested_schema_for_class(
        BIAggregationComputationOptions)
Ejemplo n.º 5
0
class BICompiledAggregationSchema(Schema):
    id = ReqString()
    branches = ReqList(Nested(BICompiledRuleSchema))
    aggregation_visualization = ReqNested(BIAggregationVisualizationSchema)
    computation_options = create_nested_schema_for_class(
        BIAggregationComputationOptions,
        example_config={"disabled": True},
    )

    groups = create_nested_schema_for_class(
        BIAggregationGroups,
        example_config={
            "names": ["groupA", "groupB"],
            "paths": [["path", "group", "a"]]
        },
    )