Server Admin Tool.
- Triglav で学ぶ Ruby on Rails & GitHub 第1回
- Ruby
- Perl
- issueもコミットメッセージも日本語でおk
- 適当にpull requestください
- フィーチャーリクエストは、issue書いてからの方が望ましいです
- 仕様をミニマムに保ちたいので
- バグフィックスとか、あきらかにこれいるだろとかいうのはそのままpull-reqください
© Triglav Developers
MIT LICENSE
Server Admin Tool
Server Admin Tool.
© Triglav Developers
MIT LICENSE
Now there are several endpoints as below:
GET /api/services.json
GET /api/services/${id}.json
GET /api/roles.json
GET /api/roles/${id}.json
GET /api/hosts.json
GET /api/hosts/${id}.json
GET /api/services/${service}/(roles|hosts).json
GET /api/services/${service}/roles/${role}/hosts.json
I'm thinking of only URLs for retrieval so far. Create/Update/Delete APIs are also needed?
See #29.
I decided to adopt API token
-based strategy.
(service/role/host).descriptionをmarkdownで書いて、表示する。
% gem search triglav -r
*** REMOTE GEMS ***
Now datetime is shown as UTC. How can I show it along with visitor's time zone?
Avoid methodful models and extract methods to roles.
There's already https://github.com/mylesmegyesi/hyperion-ruby
Needs bootstrap-nized formbuilder.
When #26 is closed, then API client library will be needed. It should have just sufficient functions for Triglav's API. Once API's spec is fixed, it'll be uploaded onto rubygems.org.
/api
must be authenticated by the token
@KitaitiMakoto
It works fine on your environment?
サービスに属するホスト一覧のページに Munin のグラフが表示されますが、 daily だけではなく weekly/monthly のグラフを一覧で眺めたいことがあるので、切り替えボタンが欲しいです。
I think Cells is a symmetrical thing against DCI's Context
. While we inject Roles
into models along with some Contexts
when we create/update/delete resources, we avoid methodful models and extract the methods to appropriate place when we retrieve and render resources. That is Cells
.
Munin's URLs (example):
Whose rule seems to be:
If Hyperion just support to set munin's URL, it can include monitoring graphs along with the URL rules.
It's clunky Services
is translated into サービスs
...
ActionView::Template::Error (bad URI(is not URI?): http://お名前.com/):
28: <% if @munin.find_service_that_hash_munin_url_by(@host) -%>
29: <div>
30: <h2><%= t('hosts.show.graphs') %></h2>
31: <p><%= link_to @munin.url_for(host: @host).to_s, @munin.url_for(host: @host).to_s %></p>
32: <% @munin.categories.each do |category| -%> 33: <h3><%= category[:name] %></h3>
34: <div class="sub_category">
lib/munin.rb:16:in `root'
lib/munin.rb:30:in `url_for' app/views/hosts/show.html.erb:31:in `_app_views_hosts_show_html_erb___1706361400767208808_33939300' app/controllers/hosts_controller.rb:16:in `show'
When Settings.github.organization
is not set, we regard the setting as "free member mode", that is, we don't need login users to be some specific organization member. Only if the users have github account, anybody can log in to the site.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.