Commit 4f098878 authored by Samuel Santos's avatar Samuel Santos
Browse files

Monitor System v1.0.0

parent a6f0972b
Loading
Loading
Loading
Loading
+448 −0
Original line number Diff line number Diff line
{
  "info": {
    "_postman_id": "43660461-a738-488b-a6f5-2c244a9cae25",
    "name": "NSC",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "_exporter_id": "45361142",
    "_collection_link": "https://go.postman.co/collection/45361142-43660461-a738-488b-a6f5-2c244a9cae25?source=collection_link"
  },
  "item": [
    {
      "name": "Operations",
      "item": [
        {
          "name": "Clients",
          "item": [
            {
              "name": "Create Client",
              "request": {
                "auth": {
                  "type": "basic",
                  "basic": [
                    {
                      "key": "password",
                      "value": "admin",
                      "type": "string"
                    },
                    {
                      "key": "username",
                      "value": "admin",
                      "type": "string"
                    }
                  ]
                },
                "method": "POST",
                "header": [],
                "url": {
                  "raw": "{{HOST}}/restconf/telemetry/operations/clients/{{CLIENT_ID}}",
                  "host": [
                    "{{HOST}}"
                  ],
                  "path": [
                    "restconf",
                    "telemetry",
                    "operations",
                    "clients",
                    "{{CLIENT_ID}}"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Get All Clients",
              "request": {
                "auth": {
                  "type": "basic",
                  "basic": [
                    {
                      "key": "password",
                      "value": "admin",
                      "type": "string"
                    },
                    {
                      "key": "username",
                      "value": "admin",
                      "type": "string"
                    }
                  ]
                },
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{HOST}}/restconf/telemetry/operations/clients",
                  "host": [
                    "{{HOST}}"
                  ],
                  "path": [
                    "restconf",
                    "telemetry",
                    "operations",
                    "clients"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Delete Client",
              "request": {
                "auth": {
                  "type": "basic",
                  "basic": [
                    {
                      "key": "password",
                      "value": "admin",
                      "type": "string"
                    },
                    {
                      "key": "username",
                      "value": "admin",
                      "type": "string"
                    }
                  ]
                },
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{HOST}}/restconf/telemetry/operations/clients/{{CLIENT_ID}}",
                  "host": [
                    "{{HOST}}"
                  ],
                  "path": [
                    "restconf",
                    "telemetry",
                    "operations",
                    "clients",
                    "{{CLIENT_ID}}"
                  ]
                }
              },
              "response": []
            }
          ]
        },
        {
          "name": "Subscriptions",
          "item": [
            {
              "name": "Slices",
              "item": [
                {
                  "name": "Slice Telemetry by client",
                  "request": {
                    "auth": {
                      "type": "basic",
                      "basic": [
                        {
                          "key": "password",
                          "value": "admin",
                          "type": "string"
                        },
                        {
                          "key": "username",
                          "value": "admin",
                          "type": "string"
                        }
                      ]
                    },
                    "method": "GET",
                    "header": [],
                    "url": {
                      "raw": "{{HOST}}/restconf/telemetry/operations/subscriptions/{{CLIENT_ID}}/slices/{{SLICE_ID}}",
                      "host": [
                        "{{HOST}}"
                      ],
                      "path": [
                        "restconf",
                        "telemetry",
                        "operations",
                        "subscriptions",
                        "{{CLIENT_ID}}",
                        "slices",
                        "{{SLICE_ID}}"
                      ]
                    }
                  },
                  "response": []
                },
                {
                  "name": "Slice Telemetry by client",
                  "request": {
                    "auth": {
                      "type": "basic",
                      "basic": [
                        {
                          "key": "password",
                          "value": "admin",
                          "type": "string"
                        },
                        {
                          "key": "username",
                          "value": "admin",
                          "type": "string"
                        }
                      ]
                    },
                    "method": "DELETE",
                    "header": [],
                    "url": {
                      "raw": "{{HOST}}/restconf/telemetry/operations/subscriptions/{{CLIENT_ID}}/slices/{{SLICE_ID}}",
                      "host": [
                        "{{HOST}}"
                      ],
                      "path": [
                        "restconf",
                        "telemetry",
                        "operations",
                        "subscriptions",
                        "{{CLIENT_ID}}",
                        "slices",
                        "{{SLICE_ID}}"
                      ]
                    }
                  },
                  "response": []
                },
                {
                  "name": "Slice Telemetry by client",
                  "request": {
                    "auth": {
                      "type": "basic",
                      "basic": [
                        {
                          "key": "password",
                          "value": "admin",
                          "type": "string"
                        },
                        {
                          "key": "username",
                          "value": "admin",
                          "type": "string"
                        }
                      ]
                    },
                    "method": "POST",
                    "header": [],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n    \"frequency\": 2\n}",
                      "options": {
                        "raw": {
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{HOST}}/restconf/telemetry/operations/subscriptions/{{CLIENT_ID}}/slices/{{SLICE_ID}}",
                      "host": [
                        "{{HOST}}"
                      ],
                      "path": [
                        "restconf",
                        "telemetry",
                        "operations",
                        "subscriptions",
                        "{{CLIENT_ID}}",
                        "slices",
                        "{{SLICE_ID}}"
                      ]
                    }
                  },
                  "response": []
                }
              ]
            },
            {
              "name": "All subscriptions of a client",
              "request": {
                "auth": {
                  "type": "basic",
                  "basic": [
                    {
                      "key": "password",
                      "value": "admin",
                      "type": "string"
                    },
                    {
                      "key": "username",
                      "value": "admin",
                      "type": "string"
                    }
                  ]
                },
                "method": "DELETE",
                "header": [],
                "url": {
                  "raw": "{{HOST}}/restconf/telemetry/operations/subscriptions/{{CLIENT_ID}}",
                  "host": [
                    "{{HOST}}"
                  ],
                  "path": [
                    "restconf",
                    "telemetry",
                    "operations",
                    "subscriptions",
                    "{{CLIENT_ID}}"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "All subscriptions of a client",
              "request": {
                "auth": {
                  "type": "basic",
                  "basic": [
                    {
                      "key": "password",
                      "value": "admin",
                      "type": "string"
                    },
                    {
                      "key": "username",
                      "value": "admin",
                      "type": "string"
                    }
                  ]
                },
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{HOST}}/restconf/telemetry/operations/subscriptions/{{CLIENT_ID}}",
                  "host": [
                    "{{HOST}}"
                  ],
                  "path": [
                    "restconf",
                    "telemetry",
                    "operations",
                    "subscriptions",
                    "{{CLIENT_ID}}"
                  ]
                }
              },
              "response": []
            }
          ]
        },
        {
          "name": "Stream",
          "item": [
            {
              "name": "Stream All Telemetry Subscriptions by client",
              "request": {
                "auth": {
                  "type": "basic",
                  "basic": [
                    {
                      "key": "password",
                      "value": "admin",
                      "type": "string"
                    },
                    {
                      "key": "username",
                      "value": "admin",
                      "type": "string"
                    }
                  ]
                },
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{HOST}}/restconf/telemetry/operations/stream/{{CLIENT_ID}}",
                  "host": [
                    "{{HOST}}"
                  ],
                  "path": [
                    "restconf",
                    "telemetry",
                    "operations",
                    "stream",
                    "{{CLIENT_ID}}"
                  ]
                }
              },
              "response": []
            },
            {
              "name": "Stream Telemetry Subscription by client Copy",
              "request": {
                "auth": {
                  "type": "basic",
                  "basic": [
                    {
                      "key": "password",
                      "value": "admin",
                      "type": "string"
                    },
                    {
                      "key": "username",
                      "value": "admin",
                      "type": "string"
                    }
                  ]
                },
                "method": "GET",
                "header": [],
                "url": {
                  "raw": "{{HOST}}/restconf/telemetry/operations/stream/{{CLIENT_ID}}/slices/{{SLICE_ID}}",
                  "host": [
                    "{{HOST}}"
                  ],
                  "path": [
                    "restconf",
                    "telemetry",
                    "operations",
                    "stream",
                    "{{CLIENT_ID}}",
                    "slices",
                    "{{SLICE_ID}}"
                  ]
                }
              },
              "response": []
            }
          ]
        }
      ]
    },
    {
      "name": "Telemetry of a Slice",
      "request": {
        "auth": {
          "type": "basic",
          "basic": [
            {
              "key": "password",
              "value": "admin",
              "type": "string"
            },
            {
              "key": "username",
              "value": "admin",
              "type": "string"
            }
          ]
        },
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{HOST}}/restconf/telemetry/operations/slices/{{SLICE_ID}}",
          "host": [
            "{{HOST}}"
          ],
          "path": [
            "restconf",
            "telemetry",
            "operations",
            "slices",
            "{{SLICE_ID}}"
          ]
        }
      },
      "response": []
    }
  ]
}
 No newline at end of file
+28 −0
Original line number Diff line number Diff line
{
	"id": "fb33daed-2c4b-4c85-a9b2-4d338123ed0b",
	"name": "NSC",
	"values": [
		{
			"key": "HOST",
			"value": "http://172.17.0.2:8086/nsc",
			"type": "default",
			"enabled": true
		},
		{
			"key": "CLIENT_ID",
			"value": "",
			"type": "default",
			"enabled": true
		},
		{
			"key": "SLICE_ID",
			"value": "",
			"type": "default",
			"enabled": true
		}
	],
	"color": null,
	"_postman_variable_scope": "environment",
	"_postman_exported_at": "2026-03-27T10:00:42.609Z",
	"_postman_exported_using": "Postman/12.3.5"
}
 No newline at end of file
+2 −1
Original line number Diff line number Diff line
@@ -58,6 +58,7 @@ def create_app():
    init_db()
    app = Flask(__name__)
    app = create_config(app)
    app.logger.setLevel(logging.INFO)
    CORS(app)

    # Configure logging to provide clear and informative log messages
@@ -102,4 +103,4 @@ def create_app():

if __name__ == "__main__":
    app = create_app()
    app.run(host="0.0.0.0", port=NSC_PORT, debug=True)
 No newline at end of file
    app.run(host="0.0.0.0", port=NSC_PORT, debug=True, threaded=True)
 No newline at end of file
+2 −2
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@

# This file is an original contribution from Telefonica Innovación Digital S.L.

Flask
flask[async]
flask-cors
flask-restx
netmiko
@@ -25,4 +25,4 @@ coverage
pytest
libyang==3.3.0
sysrepo==1.7.6
aiohttp
 No newline at end of file
+516 −1

File changed.

Preview size limit exceeded, changes collapsed.

Loading