failure distribution definition updated

parent 00071825
...@@ -166,22 +166,16 @@ ...@@ -166,22 +166,16 @@
} }
} }
}, },
"_fixedFailure" : { "_failure" : {
"type" : "object", "type" : "object",
"title" : "Fixed", "title" : "Yes",
"description" : "Fixed", "description" : "Fixed",
"properties" : { "properties" : {
"MTTF" : { "Time to Failure" : {
"description" : "Mean Time To Failure", "$ref" : "#/definitions/_dist"
"type" : "number",
"default" : 40,
"required" : true
}, },
"MTTR" : { "Time to Repair" : {
"description" : "Mean Time To Repair", "$ref" : "#/definitions/_dist"
"type" : "number",
"default" : 10,
"required" : true
}, },
"repairman" : { "repairman" : {
"description" : "Repairman", "description" : "Repairman",
...@@ -194,35 +188,6 @@ ...@@ -194,35 +188,6 @@
"type" : "string", "type" : "string",
"title" : "No", "title" : "No",
"description" : "None" "description" : "None"
},
"_availability" : {
"type" : "object",
"title" : "Availability",
"description" : "Availability",
"properties" : {
"MTTF" : {
"description" : "Mean Time To Failure",
"type" : "number",
"default" : 40,
"required" : true
},
"MTTR" : {
"description" : "Mean Time To Failure",
"default" : 10,
"type" : "number",
"required" : true
},
"availability" : {
"type" : "number",
"default" : 0,
"required" : true
},
"repairman" : {
"description" : "Repairman",
"type" : "string",
"required" : true
}
}
} }
}, },
"_failureDist" : { "_failureDist" : {
...@@ -234,18 +199,15 @@ ...@@ -234,18 +199,15 @@
"default" : "No", "default" : "No",
"enum" : [ "enum" : [
"No", "No",
"Fixed", "Yes"
"Availability"
] ]
} }
} }
}, { }, {
"oneOf" : [{ "oneOf" : [{
"$ref" : "#/definitions/distributionTypes/_fixedFailure" "$ref" : "#/definitions/distributionTypes/_failure"
}, { }, {
"$ref" : "#/definitions/distributionTypes/_no" "$ref" : "#/definitions/distributionTypes/_no"
}, {
"$ref" : "#/definitions/distributionTypes/_availability"
} }
] ]
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment