操作

最終公開日 : Sep 25, 2026
操作は、StyleBookのオプションセクションです。このセクションでは、NetScaler Consoleアナリティクスを設定して、すべてのトラフィックトランザクションまたは一部のトラフィックトランザクションでAppFlowレコードを収集できます。StyleBookを使用してNetScalerインスタンス上に作成された仮想サーバーは、これらのトラフィックトランザクションを処理します。このセクションでは、仮想サーバーで特定のトラフィック条件が満たされたときにアラームをトリガーするようにNetScaler Consoleを設定することもできます。
StyleBookを介してNetScaler Consoleを設定し、以下にリストされているさまざまなNetScaler Console Insightからトラフィック統計を収集できます。
  • ウェブインサイト
  • WAFセキュリティ違反
  • HDX™インサイト
  • NetScaler Gatewayインサイト。
サポートされている仮想サーバーは、負荷分散、コンテンツスイッチング、およびVPN仮想サーバーです。
負荷分散またはコンテンツスイッチング仮想サーバーでのアナリティクス向けに、Web InsightとWAF Security Violationsの両方、またはそのいずれかを有効にします。ただし、VPN仮想サーバーの場合、HDX InsightとNetScaler Gateway Insightの両方、またはそのいずれかを有効にする必要があります。
StyleBookを介してNetScalerインスタンスで有効になっているNetScaler Console Insightはすべて、IPFIXプロトコル (AppFlow) を使用して、インスタンスからNetScalerにデータを送信します。
また、Web Insightを有効にすると、負荷分散およびコンテンツスイッチング仮想サーバーでクライアント側測定が有効になります。クライアント側測定が有効になっている場合、NetScaler ConsoleはHTMLインジェクションを介して、HTMLページの読み込み時間とレンダリング時間のメトリックをキャプチャします。これらのメトリックを使用して、管理者はL7遅延の問題を特定できます。
例 1:
次の例は、VPN仮想サーバーでHDX InsightとNetScaler Gateway Insightの両方を有効にするために、StyleBookで操作セクションを記述する方法を示しています。

name: simple-vpn-ops
namespace: com.example.stylebooks
schema-version: "1.0"
version: "0.1"
description: Test StyleBook to enable hdxinsight and gatewayinsight on a VPN vserver
import-stylebooks:
  -
    namespace: netscaler.nitro.config
    version: "10.5"
    prefix: ns
components:
    -
        name: vpnvserver-comp
        type: ns::vpnvserver
        properties:
            name: str("vpn-") + str($current-target.ip)
            servicetype: SSL
            ipv46: 1.1.21.37
            port: 443
operations:
    analytics:
        -
            name: comp-ops
            properties:
                target: $components.vpnvserver-comp
                filter: "true"
                insights:
                  -
                 type: hdxinsight**
                  -
                    type: gatewayinsight
outputs:
  -
    name: myvpns
    value: $components.vpnvserver-comp
例 2:
次の例は、負荷分散仮想サーバーでWeb InsightとWAF Security Violationsの両方を有効にするために、StyleBookで操作セクションを記述する方法を示しています。

name: simple-lb-ops
namespace: com.example.stylebooks
schema-version: "1.0"
version: "0.1"
description: Test StyleBook to enable webinsight and securityinsight on LB vserver
import-stylebooks:
  -
    namespace: netscaler.nitro.config
    version: "10.5"
    prefix: ns
components:
    -
        name: lbvserver-comp
        type: ns::lbvserver
        properties:
            name: str("lb-") + str($current-target.ip)
            servicetype: HTTP
            ipv46: 1.1.21.37
            port: 80
operations:
    analytics:
        -
            name: comp-ops
            properties:
                target: $components.lbvserver-comp
                filter: "true"
                 insights:
                 -
                  type: webinsight
                   -
                  type: securityinsight
outputs:
  -
    name: mylbs
    value: $components.lbvserver-comp
Related information