## Attributes (1)

- max-history - The maximum number of operation stored in history for this handler.

  Type | INT
  Default Value | 10
  Is the attribute nillable? | true
  Does the attribute allow expression? | true
  Where is the attribute stored? | configuration
  Access Type | read-write
  Is restarted required? | no-services
  Min | 0
  Max | 2147483647
  Stability Level | default
  Raw DMR model |
      {
          "type" : {
              "TYPE_MODEL_VALUE" : "INT"
          },
          "description" : "The maximum number of operation stored in history for this handler.",
          "expressions-allowed" : true,
          "required" : false,
          "nillable" : true,
          "default" : 10,
          "min" : 0,
          "max" : 2147483647,
          "stability" : "default",
          "access-type" : "read-write",
          "storage" : "configuration",
          "restart-required" : "no-services",
          "capability-reference" : null
      }

## Operations (4)

- add - Add a in-memory handler.

  Request Parameter | Type | Required | Expressions Allowed | Default value | Description
  --- | --- | --- | --- | --- | ---
  max-history | INT | false | true | 10 | The maximum number of operation stored in history for this handler.

  Raw DMR model |
      {
          "operation-name" : "add",
          "description" : "Add a in-memory handler.",
          "request-properties" : {"max-history" : {
              "type" : {
                  "TYPE_MODEL_VALUE" : "INT"
              },
              "description" : "The maximum number of operation stored in history for this handler.",
              "expressions-allowed" : true,
              "required" : false,
              "nillable" : true,
              "default" : 10,
              "min" : 0,
              "max" : 2147483647,
              "stability" : "default"
          }},
          "reply-properties" : {},
          "stability" : "default",
          "read-only" : false,
          "runtime-only" : false
      }

- recycle - Resets the history.

  Raw DMR model |
      {
          "operation-name" : "recycle",
          "description" : "Resets the history.",
          "request-properties" : {},
          "reply-properties" : {},
          "stability" : "default",
          "read-only" : false,
          "runtime-only" : true
      }

- remove - Removes the in-memory handler.

  Raw DMR model |
      {
          "operation-name" : "remove",
          "description" : "Removes the in-memory handler.",
          "request-properties" : {},
          "reply-properties" : {},
          "stability" : "default",
          "read-only" : false,
          "restart-required" : "resource-services",
          "runtime-only" : false
      }

- show-logs - List last N operations.

  ### Reply properties

  Type
    LIST
  Value Type

        STRING

  Raw DMR model |
      {
          "operation-name" : "show-logs",
          "description" : "List last N operations.",
          "request-properties" : {},
          "reply-properties" : {
              "type" : {
                  "TYPE_MODEL_VALUE" : "LIST"
              },
              "value-type" : {
                  "TYPE_MODEL_VALUE" : "STRING"
              }
          },
          "stability" : "default",
          "read-only" : true,
          "runtime-only" : true
      }

## Galleon Features

Galleon features are to be used when creating Galleon feature-packs.

- core-service.management.access.audit.in-memory-handler

      <feature spec="core-service.management.access.audit.in-memory-handler">
        <param name="in-memory-handler" value="{resource name}"/>
        <param name="max-history" value="{value}"/>
      <feature/>