「利用者:龍太郎/sandbox/テンプレート:メンテナンス/data.json/doc」の版間の差分

提供:AcPubWiki
編集の要約なし
編集の要約なし
 
(同じ利用者による、間の1版が非表示)
2行目: 2行目:
<syntaxhighlight lang="json" line>
<syntaxhighlight lang="json" line>
{
{
"maintenance": {
"maintenance": [
"start" : "2023-04-22T08:00:00.000",
{
"time" : "few",
"start" : "near",
"type" : "read-only",
"time" : "few",
"description" : {
"type" : "temporary",
"ja" : "サーバーの移設及びドメインの変更",
"availability" : "read-only",
"en" : "domain change"
"description" : {
"ja" : "メンテナンス 1",
"en" : "Maintenance 1"
}
},
{
"start" : "near",
"time" : "few",
"type" : "temporary",
"availability" : "read-only",
"description" : {
"ja" : "メンテナンス 2",
"en" : "Maintenance 2"
}
}
}
}
]
}
}
</syntaxhighlight>
</syntaxhighlight>
==引数==
==引数==
29行目: 43行目:
===type===
===type===
メンテナンスのタイプを設定します
メンテナンスのタイプを設定します
* periodic (定期メンテナンス)
{| class="wikitable"
* emergency (緊急メンテナンス)
|+ 可用性
* temporary (臨時メンテナンス)
|-
! json data !! 目的 !! 表示
|-
periodic || 定期 || 定期メンテナンス
|-
| emergency || 緊急 || 緊急メンテナンス
|-
| temporary || 臨時 || 臨時メンテナンス
|}
 
===availability===
(メンテナンス中の)可用性について入力します
{| class="wikitable"
|+ 可用性
|-
! json data !! 目的 !! 表示
|-
| read-only || 読み取り専用 || メンテナンス中はWiki全体が読み取り専用となります
|-
| available || 可用 || メンテナンス中もご利用いただけます
|-
| performance-impact || パフォーマンスの低下 || メンテナンス中は一時的にパフォーマンスが低下する恐れがあります
|-
| Intermittent || 断続的な切断 || メンテナンス中は一時的に接続が切断される可能性があります
|}
 
 


===description===
===description===

2023年4月22日 (土) 08:57時点における最新版

json の例とフォーマット

{
	"maintenance":	[
		{
			"start" : "near",
			"time" : "few",
			"type" : "temporary",
			"availability" : "read-only",
			"description" : {
				"ja" : "メンテナンス 1",
				"en" : "Maintenance 1"
			}
		},
		{
			"start" : "near",
			"time" : "few",
			"type" : "temporary",
			"availability" : "read-only",
			"description" : {
				"ja" : "メンテナンス 2",
				"en" : "Maintenance 2"
			}
		}
	]
}

引数

start

メンテナンスが開始される時刻を入力します

  • 開始時刻(ISO8061)
  • near(近日中)

end

メンテナンスが終了する時刻を入力します

  • 終了時刻 (ISO8061)
  • 終了時刻 (10分後)
  • few (短時間)
  • intermittent (断続的)
  • observation (経過観察)

type

メンテナンスのタイプを設定します

可用性
json data 目的 表示
periodic 定期 定期メンテナンス
emergency 緊急 緊急メンテナンス
temporary 臨時 臨時メンテナンス

availability

(メンテナンス中の)可用性について入力します

可用性
json data 目的 表示
read-only 読み取り専用 メンテナンス中はWiki全体が読み取り専用となります
available 可用 メンテナンス中もご利用いただけます
performance-impact パフォーマンスの低下 メンテナンス中は一時的にパフォーマンスが低下する恐れがあります
Intermittent 断続的な切断 メンテナンス中は一時的に接続が切断される可能性があります


description

詳細な説明を入力します(wiki文法が使えます)

"lang" : "text" のフォーマットで記述します。 必要な言語文追加できます

"ja" : "サーバーの移設及びドメインの変更",
"en" : "domain change"