Comments (1)
construct the url in the _req method instead of receiving it as an argument example below
def _get_system_status(self) -> dict:
self._login()
base_url = "system/status"
url = f"https://{self.host}/{self._monitor_base_url}/{base_url}"
result = self._req(url=url, method="get")
from telegraf-exec-fortiswitch.
Related Issues (19)
- make logs valid json strings
- rewrite return of class methods to simplify parsing with telegraf
- write new cli using argparse
- remove unused cli scripts
- cli args as env variables HOT 1
- implement_logging_for_cli HOT 1
- add model as property
- logging for cli
- change hostname from computed attribute
- rename serial to serial_num in fortiswitch_cli enrich method
- Add mgmt ip as property
- set all properties from _property_extractors
- add login in init logout method will be required to clean sessions on the fortiswitch
- add _logout() method to cli
- add modules
- show available values for --cls_method in help for cli
- inconsistent return for psu_status HOT 1
- convert lanes from module_status to dict
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from telegraf-exec-fortiswitch.