Git Product home page Git Product logo

python-sdk's Introduction

#ucloud 内存 磁盘空间监控脚本试用方法
#监控脚本使用 ucloud 提供短信包服务请先购买短信包否则无法接收短信

1. sendsms.py 短信发送脚本
1. mem.py  监控内存使用情况示范
2. disk.py  监控磁盘使用情况示范


#使用方法

打开 cp config.simple.py config.py 修改以下配置


#配置公私钥 公私钥请到用户中心获取
#   public_key  = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
#   private_key = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
#
#配置api地址'''
#   无外网IP主机使用
#   base_url    = "http://api.int.ucloud.cn"
#
#   有外网IP主机使用
#   base_url    = "http://api.ucloud.cn"
#

sendsms.py 使用示范

python sendsms.py 13777777777 测试短信

#监控脚本示范建议加入crontab 1分钟一次
#
# api_demo.py 中有常用的 主机相关操作和 修改 ulb backend API 

python-sdk's People

Contributors

houcoder avatar sennajox avatar ucloud-web avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.