差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
ja:documentation:pandorafms:technical_reference:02_annex_externalapi [2024/09/09 03:06] – [set event_custom_id] junichi | ja:documentation:pandorafms:technical_reference:02_annex_externalapi [2024/11/09 23:22] (現在) – [get special_days] junichi | ||
---|---|---|---|
行 755: | 行 755: | ||
== get agent_module_name_last_value_alias == | == get agent_module_name_last_value_alias == | ||
- | >= 7.0NG | + | <WRAP center round box 90%> |
- | モジュールの最新の値を返します。このモジュールは、パラメータ id で渡されるエージェントの別名と、パラメータ id2 で渡されるモジュール名でフィルタされます。other | + | This feature also works in Command Center (Metaconsole). |
- | 書式: | + | </ |
- | * op=get (必須) | + | <WRAP center round box 90%> |
- | * op2=agent_module_name_last_value_alias (必須) | + | |
- | * id=<英数字>(必須) エージェント名。 | + | |
- | * id2=< | + | |
- | * other=< | + | |
- | * エラーコードは次の通りです: | + | |
- | * ' | + | |
- | * ' | + | |
- | **例** | + | この機能はコマンドセンター (メタコンソール) でも動作します。 |
- | < | + | </WRAP> |
- | http://127.0.0.1/ | + | |
+ | Returns the last value of a module, which is selected by alias of the agent passed by the '' | ||
+ | |||
+ | モジュールの最新の値を返します。このモジュールは、パラメータ '' | ||
+ | |||
+ | [[#ks2|Call syntax]]: | ||
+ | |||
+ | [[# | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | - error_message : Returns error in a text message. | ||
+ | - error_value< | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | - error_message: | ||
+ | - error_value< | ||
+ | |||
+ | **Example (see [[# | ||
+ | |||
+ | **例 ([[# | ||
+ | |||
+ | <code bash> | ||
+ | …/ | ||
</ | </ | ||
行 1708: | 行 1735: | ||
== get special_days == | == get special_days == | ||
- | >= 5.1 | + | Returns a list with special days. It allows to specify a field separator, being these: |
- | 特別日一覧を返します。 | + | 特別日のリストを返します。次のデータを表示するためのフィールド区切り文字を指定できます: |
- | 書式: | + | - Numerical ID of the special day. |
+ | - Numerical ID of the calendar to which this special day belongs. | ||
+ | - Numerical ID of the group to which the special day belongs. | ||
+ | - Date of the special day in the format '' | ||
+ | - Numeric ID of the same day of the week configured for that special day. | ||
+ | - Description of the special day. | ||
- | | + | |
- | | + | |
- | | + | |
+ | - 特別日の日付 (形式は '' | ||
+ | - その特別日に設定されている同じ曜日の数値 ID。 | ||
+ | - 特別日の説明。 | ||
- | **例** | + | [[#ks2|Call syntax]]: |
- | < | + | [[# |
- | http://127.0.0.1/ | + | |
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | **Example (see [[#ks2|call syntax]]): | ||
+ | |||
+ | **例 ([[# | ||
+ | |||
+ | <code bash> | ||
+ | …/ | ||
</ | </ | ||
行 5986: | 行 6035: | ||
</ | </ | ||
- | [[: | + | [[#ks2|Call syntax]]: |
- | [[: | + | [[#ks2|書式]]: |
* '' | * '' | ||
行 6031: | 行 6080: | ||
* < custom_data> | * < custom_data> | ||
* < server_id > (//only for Command Center (Metaconsole)// | * < server_id > (//only for Command Center (Metaconsole)// | ||
- | * < | + | * < |
* '' | * '' | ||
行 6074: | 行 6123: | ||
* < カスタムデータ > **base64 でエンコードした JSON 形式でなければいけません** | * < カスタムデータ > **base64 でエンコードした JSON 形式でなければいけません** | ||
* < サーバ ID > (// | * < サーバ ID > (// | ||
- | * <extra ID> (英数字) | + | * <extra ID> (英数字、[[ja: |
- | **Example (** **[[: | + | **Example (** **[[#ks2|see call syntax]]****): ** |
- | **例** ([[: | + | **例** ([[#ks2|書式]]を参照): |
The event to be created has the following custom JSON data: | The event to be created has the following custom JSON data: | ||
行 6658: | 行 6707: | ||
http:// | http:// | ||
+ | |||
+ | </ | ||
+ | |||
+ | == set planned_downtimes_edit == | ||
+ | |||
+ | >= 754 | ||
+ | |||
+ | Edit a planned stop. | ||
+ | |||
+ | 計画停止を編集します。 | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * < | ||
+ | * < | ||
+ | * <date from> | ||
+ | * <date to> | ||
+ | * <time from> | ||
+ | * <time to> | ||
+ | * <id group> | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * <stop type> | ||
+ | * < | ||
+ | * < | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * <月> | ||
+ | * <火> | ||
+ | * <水> | ||
+ | * <木> | ||
+ | * <金> | ||
+ | * <土> | ||
+ | * <日> | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | * < | ||
+ | |||
+ | <WRAP center round important 90%> | ||
+ | |||
+ | The date format must be YYYYY/MM/DD (year/ | ||
+ | |||
+ | </ | ||
+ | |||
+ | <WRAP center round important 90%> | ||
+ | |||
+ | この呼び出しが正しく機能するには、日付形式が YYYY/MM/DD (年/ | ||
+ | |||
+ | </ | ||
+ | |||
+ | **Example: | ||
+ | |||
+ | **例:** | ||
+ | |||
+ | < | ||
+ | http:// | ||
+ | |||
+ | </ | ||
+ | |||
+ | == set planned_downtimes_add_agents == | ||
+ | |||
+ | >= 754 | ||
+ | |||
+ | Add Agents to the planned stop. | ||
+ | |||
+ | 計画停止にエージェントを追加します。 | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * < | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * < | ||
+ | |||
+ | **Example: | ||
+ | |||
+ | **例:** | ||
+ | |||
+ | < | ||
+ | http:// | ||
+ | |||
+ | </ | ||
+ | |||
+ | == set planned_downtimes_delete_agents == | ||
+ | |||
+ | >= 754 | ||
+ | |||
+ | Removes Agents (and the Modules of those agents) from the planned shutdown. | ||
+ | |||
+ | 計画停止からエージェント (およびそれらのエージェントのモジュール) を削除します。 | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * < | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * < | ||
+ | |||
+ | **Example: | ||
+ | |||
+ | **例:** | ||
+ | |||
+ | < | ||
+ | |||
+ | http:// | ||
</ | </ |