log
LogPolicy

The LogPolicy class enables and controls the number of logs collected for various log types.



public abstract class LogPolicy

Properties
administrativeState

type=int
default=1
enums=
    1: up - Up
    2: down - Down

retentionTime

type=int
default=24
minimum=1
maximum=8760

thresholdReportingState

type=int
default=1
enums=
    1: up - Up
    2: down - Down

  
Properties inherited from ManagedObject
actionMask, children-Set, deploymentState, isFaultSquelched, name, objectFullName, selfAlarmed
 
Methods

purge

This method purges the specified log records from the NFM-P database.
Input Parameters:
deployer : Deployer - the deployment state
synchronousDeploy : boolean - (Optional) Specify whether to block until the changes have been fully deployed to the network. A value of "true" means to block. A value of "false" means to return immediately. Default: false (asynchronous)
clearOnDeployFailure : boolean - (Optional) Specify whether to clear any failed deployers. A value of "true" means to clear. A value of "false" means to leave the failed deployer. Default: false
deployRetries : int - (Optional) The number of times to attempt re-deployment during synchronous deployment. This parameter is meaningless in the asynchronous case. Default: 0
deployRetryInterval : long - (Optional) The number of milliseconds to wait between deployment retries. This parameter is meaningless in the asynchronous case. Default: 0
taskDescription : string - (Optional) A user friendly description of what the operation does. This information will be used by the task manager.
logEntityType : log.LogEntityType - Type of record to be purged.
className : string - Class name of the records to be purged.
purgeType : log.LogPurgeType - Not used.
recordFilter : FilterHolder - Filter applied to records of the specified type and class. Records which satisfy the filter are deleted. If the filter is null or empty, then all records of the specified type and class are deleted.
continueOnFailure : continueOnFailure - (Optional) Continue processing requests in this stream if an exception occurs, unless the request is invalid. Default: false