Rest Models (indra_network_search.data_models.rest_models
)
Contains return models from the rest api
- pydantic model indra_network_search.data_models.rest_models.Health[source]
Health status
Show JSON schema
{ "title": "Health", "description": "Health status", "type": "object", "properties": { "status": { "title": "Status", "enum": [ "booting", "available" ], "type": "string" } }, "required": [ "status" ] }
-
field status:
Literal
['booting'
,'available'
] [Required]
-
field status:
- pydantic model indra_network_search.data_models.rest_models.ServerStatus[source]
Status with more detail than health
Show JSON schema
{ "title": "ServerStatus", "description": "Status with more detail than health", "type": "object", "properties": { "unsigned_nodes": { "title": "Unsigned Nodes", "description": "Number of unsigned nodes in the graph", "type": "integer" }, "signed_nodes": { "title": "Signed Nodes", "description": "Number of signed nodes in the graph", "type": "integer" }, "unsigned_edges": { "title": "Unsigned Edges", "description": "Number of unsigned edges in the graph", "type": "integer" }, "signed_edges": { "title": "Signed Edges", "description": "Number of signed edges in the graph", "type": "integer" }, "graph_date": { "title": "Graph Date", "description": "Date of the graph creation from the database", "type": "string", "format": "date" }, "status": { "title": "Status", "description": "Status of the server", "enum": [ "booting", "available" ], "type": "string" } }, "required": [ "status" ] }
- Fields:
-
field graph_date:
Optional
[date
] = None Date of the graph creation from the database
-
field signed_edges:
Optional
[int
] = None Number of signed edges in the graph
-
field signed_nodes:
Optional
[int
] = None Number of signed nodes in the graph
-
field status:
Literal
['booting'
,'available'
] [Required] Status of the server
-
field unsigned_edges:
Optional
[int
] = None Number of unsigned edges in the graph
-
field unsigned_nodes:
Optional
[int
] = None Number of unsigned nodes in the graph