操作

最終公開日 : Oct 02, 2026
操作はStyleBookのオプションセクションです。このセクションでは、NetScaler Consoleアナリティクスを設定して、すべてのトラフィックトランザクションまたは一部のトラフィックトランザクションでAppFlowレコードを収集できます。StyleBookを使用してNetScalerインスタンス上に作成された仮想サーバーが、これらのトラフィックトランザクションを処理します。このセクションでは、仮想サーバーで特定のトラフィック条件が満たされたときにアラームをトリガーするようにNetScaler Consoleを設定することもできます。
StyleBookを介してNetScaler Consoleを設定し、以下に示すさまざまなNetScaler Console Insightsからトラフィック統計を収集できます。
  • ウェブインサイト
  • WAFセキュリティ違反
  • HDX™ インサイト
  • NetScaler Gateway インサイト。
サポートされている仮想サーバーは、負荷分散、コンテンツスイッチング、およびVPN仮想サーバーです。
負荷分散またはコンテンツスイッチング仮想サーバーでのアナリティクス用に、Web InsightとWAFセキュリティ違反の両方、またはそのいずれかを有効にします。ただし、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でoperationsセクションを記述する方法を示しています。

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セキュリティ違反の両方を有効にするために、StyleBookでoperationsセクションを記述する方法を示しています。

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