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"
   ]
}

Fields
field status: typing_extensions.Literal[booting, available] [Required]
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",
         "type": "integer"
      },
      "signed_nodes": {
         "title": "Signed Nodes",
         "type": "integer"
      },
      "unsigned_edges": {
         "title": "Unsigned Edges",
         "type": "integer"
      },
      "signed_edges": {
         "title": "Signed Edges",
         "type": "integer"
      },
      "graph_date": {
         "title": "Graph Date",
         "type": "string",
         "format": "date"
      },
      "status": {
         "title": "Status",
         "enum": [
            "booting",
            "available"
         ],
         "type": "string"
      }
   },
   "required": [
      "status"
   ]
}

Fields
field graph_date: Optional[datetime.date] = None
field signed_edges: Optional[int] = None
field signed_nodes: Optional[int] = None
field status: typing_extensions.Literal[booting, available] [Required]
field unsigned_edges: Optional[int] = None
field unsigned_nodes: Optional[int] = None