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)
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)
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)
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)
class BINodeGeneratorSchema(Schema): search = create_nested_schema(BISearchSchema, default_schema=BIEmptySearchSchema) action = create_nested_schema(BIActionSchema, default_schema=BIStateOfHostActionSchema)