7311 lines
678 KiB
YAML
7311 lines
678 KiB
YAML
apiVersion: v1
|
|
data:
|
|
controlcenter.sql: "-- Generated with Control>Center version 4.4.1.2\n\nSET ROLE
|
|
\"cc_jdbc\";\n\nSET search_path=\"public\";\n\n-- create database schema\nCREATE
|
|
OR REPLACE FUNCTION create_language_plpgsql()\nRETURNS BOOLEAN AS $$\n CREATE
|
|
LANGUAGE plpgsql;\n SELECT TRUE;\n$$ LANGUAGE SQL;\n\nSELECT CASE WHEN NOT\n
|
|
\ (\n SELECT TRUE AS exists\n FROM pg_language\n WHERE
|
|
\ lanname = 'plpgsql'\n UNION\n SELECT FALSE AS exists\n ORDER
|
|
BY exists DESC\n LIMIT 1\n )\nTHEN\n create_language_plpgsql()\nELSE\n
|
|
\ FALSE\nEND AS plpgsql_created;\n\nDROP FUNCTION create_language_plpgsql();\nCREATE
|
|
TABLE OpAnalysisAggregator (\n AnalysisAggregatorId bigint not null,\n
|
|
\ AnalysisObjectId bigint not null,\n Name varchar(256) not null,\n
|
|
\ MetricName varchar(256) not null,\n Units varchar(256) not null,\n
|
|
\ AggregationType varchar(256) not null,\n primary key (AnalysisAggregatorId),\n
|
|
\ unique (AnalysisObjectId, MetricName, Units, AggregationType),\n unique
|
|
(AnalysisObjectId, Name)\n );\nCREATE TABLE OpAnalysisAggregatorSQL (\n AnalysisAggregatorSQLId
|
|
bigint not null,\n AnalysisAggregatorId bigint not null,\n JoinTableName
|
|
varchar(256),\n JoinPKName varchar(256),\n BaseTableName varchar(256),\n
|
|
\ BaseFKName varchar(256),\n JoinType varchar(256),\n AggregatorSQL
|
|
varchar(2048) not null,\n SelectSQL varchar(2048),\n primary key
|
|
(AnalysisAggregatorSQLId)\n );\nCREATE TABLE OpAnalysisObject (\n AnalysisObjectId
|
|
bigint not null,\n Name varchar(256) not null,\n TableName varchar(256)
|
|
not null,\n BucketSQL varchar(2048) not null,\n primary key (AnalysisObjectId),\n
|
|
\ unique (Name)\n );\nCREATE TABLE OpAnalysisRow (\n AnalysisRowId
|
|
bigint not null,\n AnalysisObjectId bigint not null,\n Name varchar(256)
|
|
not null,\n primary key (AnalysisRowId),\n unique (AnalysisObjectId,
|
|
Name)\n );\nCREATE TABLE OpAnalysisRowSQL (\n AnalysisRowSQLId bigint
|
|
not null,\n AnalysisRowId bigint not null,\n JoinTableName varchar(256)
|
|
not null,\n JoinPKName varchar(256) not null,\n BaseTableName varchar(256)
|
|
not null,\n BaseFKName varchar(256) not null,\n JoinType varchar(256)
|
|
not null,\n SelectSQL varchar(2048),\n primary key (AnalysisRowSQLId)\n
|
|
\ );\nCREATE TABLE OpApplication (\n ApplicationId bigint not null,\n
|
|
\ SystemId bigint not null,\n Name varchar(128) not null,\n Description
|
|
varchar(1024),\n EndJobCutHorizon timestamp,\n IsApplicationNeverAutoGen
|
|
char(1) not null check (IsApplicationNeverAutoGen in ('N','Y')),\n WarningNotificationGroupId
|
|
bigint,\n ErrorNotificationGroupId bigint,\n SuccessNotificationGroupId
|
|
bigint,\n primary key (ApplicationId),\n unique (SystemId, Name)\n
|
|
\ );\nCREATE TABLE OpAudit (\n AuditId bigint not null,\n UpdateStamp
|
|
timestamp not null,\n PrincipalId bigint not null,\n PrincipalName
|
|
varchar(128) not null,\n Verb varchar(32) not null,\n VerbContext
|
|
varchar(1024),\n ObjectTable varchar(32) not null,\n ObjectId bigint
|
|
not null,\n ObjectLogicalIdentifier varchar(1024) not null,\n SystemId
|
|
bigint,\n SystemName varchar(128),\n primary key (AuditId)\n );\nCREATE
|
|
TABLE OpAutoGenStats (\n AutoGenStatsId bigint not null,\n SystemId
|
|
bigint not null,\n LastRun timestamp,\n LastNumJobs integer,\n LastStartInclusive
|
|
timestamp,\n LastEndExclusive timestamp,\n NextRun timestamp,\n
|
|
\ NextStartInclusive timestamp,\n NextEndExclusive timestamp,\n primary
|
|
key (AutoGenStatsId),\n unique (SystemId)\n );\nCREATE TABLE OpBridge
|
|
(\n BridgeId bigint not null,\n HostId bigint not null,\n Port
|
|
integer not null,\n Path varchar(256),\n IsHttps char(1) not null
|
|
check (IsHttps in ('N','Y')),\n RPCUsername varchar(128),\n RPCPassword
|
|
varchar(2048),\n SecurityConfig varchar(256),\n SecurityTypeEnum
|
|
varchar(64) not null,\n SecurityHashTypeEnum varchar(64) not null,\n kdfIterations
|
|
integer,\n kdfSalt varchar(2048),\n EligibleForKeyCheck char(1)
|
|
check (EligibleForKeyCheck in ('N','Y')),\n primary key (BridgeId),\n unique
|
|
(HostId, Port)\n );\nCREATE TABLE OpCalendar (\n CalendarId bigint not
|
|
null,\n SystemId bigint not null,\n Name varchar(128) not null,\n
|
|
\ BookDate varchar(64),\n primary key (CalendarId),\n unique
|
|
(SystemId, Name)\n );\nCREATE TABLE OpCalendarYear (\n CalendarId bigint
|
|
not null,\n Year integer not null,\n Days varchar(366),\n primary
|
|
key (CalendarId, Year)\n );\nCREATE TABLE OpConfigValue (\n ConfigValueId
|
|
bigint not null,\n Name varchar(128) not null,\n Description varchar(1024),\n
|
|
\ ValueTypeEnum varchar(64),\n IsHidden char(1) not null check (IsHidden
|
|
in ('N','Y')),\n Value varchar(2048),\n primary key (ConfigValueId),\n
|
|
\ unique (Name)\n );\nCREATE TABLE OpDailyCpuUsage (\n DailyCpuUsageId
|
|
bigint not null,\n KeyId bigint,\n Hostname varchar(128) not null,\n
|
|
\ ApplicationId bigint not null,\n CollectionDay timestamp not null,\n
|
|
\ ExecutableEnum varchar(64) not null,\n Username varchar(128) not
|
|
null,\n HostnamePlace varchar(128) not null,\n AbAgreementEnvironment
|
|
varchar(128) not null,\n AbAgreementProject varchar(128) not null,\n Value
|
|
float8,\n primary key (DailyCpuUsageId),\n unique (KeyId, Hostname,
|
|
ApplicationId, CollectionDay, ExecutableEnum, Username, HostnamePlace, AbAgreementEnvironment,
|
|
AbAgreementProject)\n );\nCREATE TABLE OpDailyCpuUsageRollupState (\n DailyCpuUsageRollupStateId
|
|
bigint not null,\n UpdateStamp timestamp not null,\n CollectionDay
|
|
timestamp not null,\n RollupStateEnum varchar(64) not null,\n primary
|
|
key (DailyCpuUsageRollupStateId),\n unique (CollectionDay)\n );\nCREATE
|
|
TABLE OpDay (\n JobDefinitionId bigint not null,\n DayIndex integer
|
|
not null,\n DayModeEnum varchar(64) not null,\n MonthDayOffset integer,\n
|
|
\ NonOperationalOffset integer,\n DayOfWeekEnum varchar(64),\n WeekOfMonthEnum
|
|
varchar(64),\n primary key (JobDefinitionId, DayIndex)\n );\nCREATE
|
|
TABLE OpEmeExecutable (\n EmeExecutableId bigint not null,\n UpdateStamp
|
|
timestamp not null,\n AbAirRoot varchar(256) not null,\n AbAirBranch
|
|
varchar(256) not null,\n EmeUrl varchar(256) not null,\n PublishedEmeName
|
|
varchar(256),\n primary key (EmeExecutableId),\n unique (AbAirRoot,
|
|
AbAirBranch, EmeUrl)\n );\nCREATE TABLE OpExecutable (\n ExecutableId
|
|
bigint not null,\n UpdateStamp timestamp not null,\n SystemId bigint
|
|
not null,\n Hostname varchar(128) not null,\n ExpandedPath varchar(512)
|
|
not null,\n ExecutableEnum varchar(64) not null,\n PrototypeExecutableId
|
|
bigint,\n FrequencyEnum varchar(64) not null,\n Frequency integer
|
|
not null,\n MicrographEnum varchar(64) not null,\n EmeExecutableId
|
|
bigint,\n primary key (ExecutableId),\n unique (SystemId, Hostname,
|
|
ExpandedPath)\n );\nCREATE TABLE OpFileAndEventConstraint (\n FileAndEventConstraintId
|
|
bigint not null,\n ConstraintDiscriminator varchar(32) not null,\n JobDefinitionId
|
|
bigint,\n FileURL varchar(4000),\n FileRetryIntervalSec varchar(64),\n
|
|
\ IsRepeatableForFileCreateTime char(1) check (IsRepeatableForFileCreateTime
|
|
in ('N','Y')),\n PropertyTypeId bigint,\n IsRegExSyntax char(1)
|
|
check (IsRegExSyntax in ('N','Y')),\n IsFirstMatchOnly char(1) check (IsFirstMatchOnly
|
|
in ('N','Y')),\n EventName varchar(256),\n ListSeparator varchar(64),\n
|
|
\ ConstraintIndex integer,\n primary key (FileAndEventConstraintId)\n
|
|
\ );\nCREATE TABLE OpFileSystem (\n FileSystemId bigint not null,\n HostId
|
|
bigint not null,\n Path varchar(512) not null,\n primary key (FileSystemId),\n
|
|
\ unique (HostId, Path)\n );\nCREATE TABLE OpFileSystemMetric (\n FileSystemMetricId
|
|
bigint not null,\n FileSystemId bigint not null,\n Name varchar(32)
|
|
not null,\n Units varchar(255) not null,\n ThresholdComparisonEnum
|
|
varchar(32),\n WarningThreshold float8,\n ErrorThreshold float8,\n
|
|
\ primary key (FileSystemMetricId),\n unique (FileSystemId, Name)\n
|
|
\ );\nCREATE TABLE OpFileSystemMetricValue (\n FileSystemMetricValueId
|
|
bigint not null,\n FileSystemMetricId bigint not null,\n CollectionTime
|
|
timestamp not null,\n Value float8 not null,\n primary key (FileSystemMetricValueId),\n
|
|
\ unique (FileSystemMetricId, CollectionTime)\n );\nCREATE TABLE OpGroupXref
|
|
(\n ChildPrincipalId bigint not null,\n ParentGroupId bigint not
|
|
null,\n primary key (ChildPrincipalId, ParentGroupId)\n );\nCREATE TABLE
|
|
OpHomeView (\n HomeViewId bigint not null,\n UpdateStamp timestamp
|
|
not null,\n Name varchar(128) not null,\n Ordinal integer not null,\n
|
|
\ IsMonitored char(1) not null check (IsMonitored in ('N','Y')),\n primary
|
|
key (HomeViewId),\n unique (Name)\n );\nCREATE TABLE OpHomeViewBox (\n
|
|
\ HomeViewBoxId bigint not null,\n UpdateStamp timestamp not null,\n
|
|
\ HomeViewId bigint not null,\n Type varchar(32) not null,\n Name
|
|
varchar(256) not null,\n Ordinal integer not null,\n primary key
|
|
(HomeViewBoxId),\n unique (HomeViewId, Type, Name)\n );\nCREATE TABLE
|
|
OpHost (\n HostId bigint not null,\n HostDiscriminator varchar(32)
|
|
not null,\n Hostname varchar(255) not null,\n IsMonitored char(1)
|
|
check (IsMonitored in ('N','Y')),\n Tag varchar(32),\n OperatingSystem
|
|
varchar(256),\n OperatingSystemDetail varchar(256),\n CpuClass varchar(256),\n
|
|
\ NumberOfCpus float8,\n NumberOfLogicalCpus float8,\n MaxEffectiveCpu
|
|
float8,\n CpuSpeedMhz float8,\n MaxWorkload float8,\n IsEphemeralHost
|
|
char(1) check (IsEphemeralHost in ('N','Y')),\n WarningNotificationGroupId
|
|
bigint,\n ErrorNotificationGroupId bigint,\n FatalNotificationGroupId
|
|
bigint,\n HostClusterId bigint,\n NetworkHostName varchar(256),\n
|
|
\ IsMultiScheduling char(1) check (IsMultiScheduling in ('N','Y')),\n PhysicalHostId
|
|
bigint,\n primary key (HostId),\n unique (Hostname)\n );\nCREATE
|
|
TABLE OpHostMetric (\n HostMetricId bigint not null,\n HostId bigint
|
|
not null,\n Name varchar(32) not null,\n Units varchar(255) not
|
|
null,\n ThresholdComparisonEnum varchar(32),\n WarningThreshold
|
|
float8,\n ErrorThreshold float8,\n primary key (HostMetricId),\n
|
|
\ unique (HostId, Name)\n );\nCREATE TABLE OpHostMetricValue (\n HostMetricValueId
|
|
bigint not null,\n HostMetricId bigint not null,\n CollectionTime
|
|
timestamp not null,\n Value float8 not null,\n primary key (HostMetricValueId),\n
|
|
\ unique (HostMetricId, CollectionTime)\n );\nCREATE TABLE OpJamonHourlyReport
|
|
(\n ReportId bigint not null,\n Label varchar(1000) not null,\n
|
|
\ NodeIdentifier varchar(100) not null,\n IntervalStart timestamp
|
|
not null,\n IntervalEnd timestamp not null,\n Count bigint,\n MeanValue
|
|
float8,\n StandardDeviation float8,\n MaxValue float8,\n MinValue
|
|
float8,\n MaxActive float8,\n primary key (ReportId),\n unique
|
|
(Label, NodeIdentifier, IntervalStart, IntervalEnd)\n );\nCREATE TABLE OpJamonPFSReport
|
|
(\n ReportId bigint not null,\n Label varchar(1000) not null,\n
|
|
\ NodeIdentifier varchar(100) not null,\n IntervalStart timestamp
|
|
not null,\n IntervalEnd timestamp not null,\n Count bigint,\n MeanValue
|
|
float8,\n StandardDeviation float8,\n MaxValue float8,\n MinValue
|
|
float8,\n MaxActive float8,\n primary key (ReportId),\n unique
|
|
(Label, NodeIdentifier, IntervalStart, IntervalEnd)\n );\nCREATE TABLE OpJob
|
|
(\n JobId bigint not null,\n UpdateStamp timestamp not null,\n JobGuid
|
|
varchar(64) not null,\n ApplicationId bigint not null,\n ParentJobId
|
|
bigint,\n JobDefinitionId bigint,\n ScheduledStartTime timestamp,\n
|
|
\ EffectiveScheduledStartTime timestamp,\n ScheduledStartTimeHHMM
|
|
varchar(5),\n ExecutableId bigint,\n RerunSuccessorJobId bigint,\n
|
|
\ RerunPredecessorJobId bigint,\n RerunGuid varchar(64),\n RunCount
|
|
integer,\n Vmid varchar(64),\n IsPriorRerunJobSucceeded char(1)
|
|
not null check (IsPriorRerunJobSucceeded in ('N','Y')),\n IsManuallyStopped
|
|
char(1) check (IsManuallyStopped in ('N','Y')),\n IsForcedJobState char(1)
|
|
check (IsForcedJobState in ('N','Y')),\n TestSetGuid varchar(64),\n IsRestartable
|
|
char(1) not null check (IsRestartable in ('N','Y')),\n IsIgnoredAsPredecessor
|
|
char(1) not null check (IsIgnoredAsPredecessor in ('N','Y')),\n IsIssuesIgnored
|
|
char(1) not null check (IsIssuesIgnored in ('N','Y')),\n CommandLine varchar(4000)
|
|
not null,\n JobEnum varchar(64) not null,\n ActionEnum varchar(64),\n
|
|
\ WorkingDirectory varchar(1024),\n Username varchar(128),\n AbWorkDir
|
|
varchar(512),\n AbDataDir varchar(1024),\n MonitorDirectory varchar(512),\n
|
|
\ AbHome varchar(1024) not null,\n RecFile varchar(1024),\n StdoutPath
|
|
varchar(1024),\n StderrPath varchar(1024),\n TrackingPath varchar(1024),\n
|
|
\ TrackingChannel varchar(256),\n ResolvedGraphPath varchar(1024),\n
|
|
\ Version varchar(16),\n AbAgreementEnvironment varchar(128),\n AbAgreementProject
|
|
varchar(128),\n HostClusterName varchar(256),\n ResolvedHostname
|
|
varchar(256) not null,\n StateEnum varchar(64) not null,\n EndTime
|
|
timestamp,\n StartTime timestamp,\n SeverestEventGuid varchar(64),\n
|
|
\ HighestSeverity integer not null,\n HighestEventGuid varchar(64),\n
|
|
\ IsMeasured char(1) not null check (IsMeasured in ('N','Y')),\n CPU
|
|
float8 not null,\n HostCPU float8 not null,\n DriverCPU float8 not
|
|
null,\n StartupCPU float8 not null,\n RollupCPU float8 not null,\n
|
|
\ NumViewChildren integer not null,\n NumRunningChildren integer
|
|
not null,\n ViewParentJobId bigint not null,\n ViewStart timestamp
|
|
not null,\n ViewEnd timestamp not null,\n MaxViewEndOfCompletedChildren
|
|
timestamp,\n IsSupportsDependencies char(1) not null check (IsSupportsDependencies
|
|
in ('N','Y')),\n EmeVersion bigint,\n EmeTag varchar(256),\n EmeStatus
|
|
varchar(64),\n DerivedName varchar(256) not null,\n JobDefinitionName
|
|
varchar(128) not null,\n JobDefinitionGroupName varchar(128) not null,\n
|
|
\ AnalysisDisabled bool,\n TraceId varchar(64),\n TraceDirectoryPath
|
|
varchar(1024),\n TraceExtraArgs varchar(512),\n IsTracing bool,\n
|
|
\ EventArrivalIndex integer not null,\n primary key (JobId),\n unique
|
|
(JobGuid)\n );\nCREATE TABLE OpJobCompletion (\n JobCompletionId bigint
|
|
not null,\n UpdateStamp timestamp not null,\n WatcherKey varchar(128)
|
|
not null,\n EndTime timestamp not null,\n primary key (JobCompletionId),\n
|
|
\ unique (WatcherKey)\n );\nCREATE TABLE OpJobDefinition (\n JobDefinitionId
|
|
bigint not null,\n UpdateStamp timestamp not null,\n JobDefinitionDiscriminator
|
|
varchar(32) not null,\n JobDefinitionGuid varchar(64) not null,\n Name
|
|
varchar(128) not null,\n Description varchar(1024),\n ApplicationId
|
|
bigint not null,\n ApproveEnum varchar(64),\n AutoIgnoreFailure
|
|
char(1) check (AutoIgnoreFailure in ('N','Y')),\n AutoIgnoreOnlyLastFailure
|
|
char(1) check (AutoIgnoreOnlyLastFailure in ('N','Y')),\n EmailOnSuccess
|
|
char(1) check (EmailOnSuccess in ('N','Y')),\n IsEnabled char(1) check
|
|
(IsEnabled in ('N','Y')),\n RuntimeId bigint,\n Sandbox varchar(1024),\n
|
|
\ JobPrefix varchar(256),\n KillExpiredJobs char(1) check (KillExpiredJobs
|
|
in ('N','Y')),\n IsNoMatchAnError char(1) check (IsNoMatchAnError in ('N','Y')),\n
|
|
\ DurationDefaultSec integer,\n StdoutFile varchar(1024),\n IsStdoutAppend
|
|
char(1) check (IsStdoutAppend in ('N','Y')),\n IsStdoutToLog char(1) check
|
|
(IsStdoutToLog in ('N','Y')),\n StderrFile varchar(1024),\n IsStderrAppend
|
|
char(1) check (IsStderrAppend in ('N','Y')),\n IsStderrToLog char(1) check
|
|
(IsStderrToLog in ('N','Y')),\n AutoRerunAttemptWindow integer,\n AutoRerunAttempts
|
|
integer,\n AutoRerunDelay integer,\n TraceId varchar(64),\n TraceDirectoryPath
|
|
varchar(1024),\n TraceExtraArgs varchar(512),\n ForceStart varchar(64),\n
|
|
\ JobDefinitionGroupId bigint,\n SuccessNotificationGroupId bigint,\n
|
|
\ WarningNotificationGroupId bigint,\n ErrorNotificationGroupId bigint,\n
|
|
\ IsManuallyGeneratedOnly char(1) check (IsManuallyGeneratedOnly in ('N','Y')),\n
|
|
\ IsOperatorVisible char(1) check (IsOperatorVisible in ('N','Y')),\n TraceStartDateTime
|
|
timestamp,\n TraceEndDateTime timestamp,\n ClusterNodeLabel varchar(255),\n
|
|
\ IsOriginalSLA char(1) check (IsOriginalSLA in ('N','Y')),\n ScheduledStartTime
|
|
timestamp,\n EffectiveScheduledStartTime timestamp,\n ProductionDayToUse
|
|
timestamp,\n primary key (JobDefinitionId),\n unique (JobDefinitionGuid,
|
|
ApproveEnum, ScheduledStartTime, EffectiveScheduledStartTime)\n );\nCREATE
|
|
TABLE OpJobDefinitionAction (\n JobDefinitionActionId bigint not null,\n
|
|
\ ActionDiscriminator varchar(32) not null,\n JobDefinitionId bigint,\n
|
|
\ ExecutablePath varchar(256),\n ExecutableEnum varchar(64),\n WorkingDirectory
|
|
varchar(256),\n IsEnabled char(1) check (IsEnabled in ('N','Y')),\n IsNotification
|
|
char(1) check (IsNotification in ('N','Y')),\n DurationSec integer,\n AutoIgnoreIssue
|
|
char(1) check (AutoIgnoreIssue in ('N','Y')),\n ActionEnum varchar(64),\n
|
|
\ primary key (JobDefinitionActionId)\n );\nCREATE TABLE OpJobDefinitionActionArgument
|
|
(\n JobDefinitionActionId bigint not null,\n ArgumentIndex integer
|
|
not null,\n Value varchar(4000),\n IsExpandable char(1) not null
|
|
check (IsExpandable in ('N','Y')),\n primary key (JobDefinitionActionId,
|
|
ArgumentIndex)\n );\nCREATE TABLE OpJobDefinitionDependency (\n JobDefinitionId
|
|
bigint not null,\n PredecessorJobDefinitionGuid varchar(64) not null,\n
|
|
\ primary key (JobDefinitionId, PredecessorJobDefinitionGuid)\n );\nCREATE
|
|
TABLE OpJobDefinitionPropertyValue (\n JobDefinitionId bigint not null,\n
|
|
\ PropertyTypeId bigint not null,\n PropertyValue varchar(1024),\n
|
|
\ IsWildcard char(1) not null check (IsWildcard in ('N','Y')),\n primary
|
|
key (JobDefinitionId, PropertyTypeId)\n );\nCREATE TABLE OpJobDefinitionStats
|
|
(\n JobDefinitionStatsId bigint not null,\n JobDefinitionGuid varchar(255)
|
|
not null,\n ScheduledStartTimeHHMM varchar(5) not null,\n NumSuccessfulJobs
|
|
integer not null,\n AvgStartDelaySec float8 not null,\n AvgDurationSec
|
|
float8 not null,\n primary key (JobDefinitionStatsId),\n unique
|
|
(JobDefinitionGuid, ScheduledStartTimeHHMM)\n );\nCREATE TABLE OpJobEvent (\n
|
|
\ JobEventId bigint not null,\n JobEventGuid varchar(64) not null,\n
|
|
\ JobId bigint not null,\n EventTypeEnum varchar(64) not null,\n
|
|
\ EventSeverity integer not null,\n EventTime timestamp not null,\n
|
|
\ ArrivalOrder integer not null,\n Source varchar(64),\n EventValue
|
|
varchar(512),\n Summary varchar(512),\n Detail varchar(1024),\n
|
|
\ Username varchar(1024),\n JobActionComment varchar(1024),\n primary
|
|
key (JobEventId),\n unique (JobEventGuid)\n );\nCREATE TABLE OpJobPredictedState
|
|
(\n JobId bigint not null,\n IsWedged char(1) not null check (IsWedged
|
|
in ('N','Y')),\n PredictedStartTime timestamp,\n PredictedEndTime
|
|
timestamp,\n HighestSeverity integer not null,\n LateStartTime timestamp,\n
|
|
\ ExpiredStartTime timestamp,\n LateEndTime timestamp,\n ExpiredEndTime
|
|
timestamp,\n primary key (JobId)\n );\nCREATE TABLE OpJobPropertyValue
|
|
(\n JobId bigint not null,\n PropertyTypeId bigint not null,\n PropertyValue
|
|
varchar(1024),\n primary key (JobId, PropertyTypeId)\n );\nCREATE TABLE
|
|
OpJobSet (\n JobSetId bigint not null,\n UpdateStamp timestamp not
|
|
null,\n JobSetGuid varchar(128) not null,\n Name varchar(128) not
|
|
null,\n IsMonitored char(1) not null check (IsMonitored in ('N','Y')),\n
|
|
\ SystemId bigint,\n HostName varchar(255),\n GroupByName
|
|
varchar(32) not null,\n GroupByLabel varchar(256),\n FilterText
|
|
varchar(1024),\n BadStatusTypeEnum varchar(64) not null,\n IssuesSeverityOrderEnum
|
|
varchar(64) not null,\n OrderByName varchar(32) not null,\n IsOrderAscending
|
|
char(1) not null check (IsOrderAscending in ('N','Y')),\n IsShowOrderByLabel
|
|
char(1) not null check (IsShowOrderByLabel in ('N','Y')),\n JobMax integer
|
|
not null,\n Tag varchar(32),\n primary key (JobSetId),\n unique
|
|
(Name),\n unique (JobSetGuid)\n );\nCREATE TABLE OpKey (\n KeyId
|
|
bigint not null,\n KeyGuid varchar(512) not null,\n Hostname varchar(128),\n
|
|
\ HostRole varchar(512),\n CoreRating float8,\n CustomerProject
|
|
varchar(512),\n CustomerRole varchar(512),\n NumberOfCpus float8,\n
|
|
\ NumberOfLogicalCpus float8,\n primary key (KeyId),\n unique
|
|
(KeyGuid)\n );\nCREATE TABLE OpKeyFile (\n KeyFileId bigint not null,\n
|
|
\ KeyId bigint not null,\n ImportTime timestamp not null,\n KeyDocument
|
|
text not null,\n primary key (KeyFileId),\n unique (KeyId)\n );\nCREATE
|
|
TABLE OpKeyServerReport (\n KeyServerReportId bigint not null,\n UpdateStamp
|
|
timestamp not null,\n ProductId bigint not null,\n JobId varchar(64)
|
|
not null,\n ReportStatus varchar(64) not null,\n ReportMode varchar(64)
|
|
not null,\n ErrorMessage varchar(64) not null,\n Report text not
|
|
null,\n primary key (KeyServerReportId)\n );\nCREATE TABLE OpLogAlertRule
|
|
(\n LogAlertRuleId bigint not null,\n LogAlertPattern varchar(1024)
|
|
not null,\n DataBaseType varchar(64),\n CustomErrorMessage varchar(1024),\n
|
|
\ IsTableSpaceError char(1) not null check (IsTableSpaceError in ('N','Y')),\n
|
|
\ IsEnabled char(1) not null check (IsEnabled in ('N','Y')),\n primary
|
|
key (LogAlertRuleId),\n unique (LogAlertPattern)\n );\nCREATE TABLE
|
|
OpMetric (\n MetricId bigint not null,\n ExecutableId bigint,\n
|
|
\ EmeExecutableId bigint,\n Name varchar(128) not null,\n Expression
|
|
varchar(1024) not null,\n IsRuntime char(1) not null check (IsRuntime in
|
|
('N','Y')),\n IsSummary char(1) not null check (IsSummary in ('N','Y')),\n
|
|
\ Units varchar(255),\n WarningExpression varchar(255),\n ErrorExpression
|
|
varchar(255),\n MinimumVersion varchar(32),\n FrequencyEnum varchar(64),\n
|
|
\ Frequency integer,\n primary key (MetricId),\n unique (ExecutableId,
|
|
EmeExecutableId, Name)\n );\nCREATE TABLE OpMetricValue (\n MetricValueId
|
|
bigint not null,\n JobId bigint not null,\n MetricId bigint not
|
|
null,\n CollectionTime timestamp not null,\n IsSummary char(1) not
|
|
null check (IsSummary in ('N','Y')),\n Hostname varchar(128),\n KeyId
|
|
bigint,\n Value float8,\n StringValue varchar(255),\n Error
|
|
varchar(1024),\n ApplicationId bigint not null,\n SystemId bigint
|
|
not null,\n ExecutableId bigint,\n JobDefinitionGuid varchar(64),\n
|
|
\ JobGuid varchar(64) not null,\n Bucket bigint not null,\n ActionEnum
|
|
varchar(64),\n StateEnum varchar(64) not null,\n ScheduledStartTime
|
|
timestamp,\n ScheduledStartTimeHHMM varchar(5),\n AnalysisDisabled
|
|
bool,\n primary key (MetricValueId),\n unique (JobId, MetricId,
|
|
CollectionTime, IsSummary, Hostname, KeyId)\n );\nCREATE TABLE OpMonitoredEvent
|
|
(\n MonitoredEventId bigint not null,\n UpdateStamp timestamp not
|
|
null,\n EventTypeDiscriminator varchar(32) not null,\n MonitoredEventGuid
|
|
varchar(128) not null,\n ErrorCode varchar(64),\n EventCategory
|
|
varchar(64),\n EventSeverity integer not null,\n EventTime timestamp
|
|
not null,\n EventValue varchar(512),\n Summary varchar(512),\n Detail
|
|
varchar(1024),\n SourceObjectGuid varchar(128),\n SourceObjectType
|
|
varchar(32),\n LifecycleState varchar(32) not null,\n DismissComment
|
|
varchar(1024),\n MonitoredObjectGuid varchar(256) not null,\n RepeatCount
|
|
integer,\n RepeatStartTime timestamp,\n SystemId bigint,\n ReporterId
|
|
bigint,\n ProductId bigint,\n HostId bigint,\n primary key
|
|
(MonitoredEventId),\n unique (MonitoredEventGuid)\n );\nCREATE TABLE
|
|
OpMonitoredStatus (\n MonitoredStatusId bigint not null,\n StatusTypeDiscriminator
|
|
varchar(32) not null,\n LastEventId bigint,\n SeverestEventId bigint,\n
|
|
\ HostId bigint,\n ProductId bigint,\n ReporterId bigint,\n
|
|
\ SystemId bigint,\n primary key (MonitoredStatusId)\n );\nCREATE
|
|
TABLE OpNotificationGroup (\n NotificationGroupId bigint not null,\n Name
|
|
varchar(128) not null,\n Description varchar(1024),\n primary key
|
|
(NotificationGroupId),\n unique (Name)\n );\nCREATE TABLE OpNotificationGroupRecipient
|
|
(\n NotificationGroupId bigint not null,\n RecipientId bigint not
|
|
null,\n primary key (NotificationGroupId, RecipientId)\n );\nCREATE
|
|
TABLE OpOSAuthentication (\n OSAuthenticationId bigint not null,\n OSAuthenticationGuid
|
|
varchar(64) not null,\n OSAuthenticationTypeEnum varchar(64) not null,\n
|
|
\ HostId bigint,\n VirtualHostname varchar(256),\n Username
|
|
varchar(128),\n Password varchar(2048),\n FunctionalUser varchar(256),\n
|
|
\ primary key (OSAuthenticationId),\n unique (HostId, VirtualHostname,
|
|
Username, FunctionalUser),\n unique (OSAuthenticationGuid)\n );\nCREATE
|
|
TABLE OpPrincipal (\n PrincipalId bigint not null,\n PrincipalDiscriminator
|
|
varchar(32) not null,\n Name varchar(128) not null,\n LCName varchar(128)
|
|
not null,\n DisplayName varchar(128),\n Description varchar(1024),\n
|
|
\ IsBuiltin char(1) not null check (IsBuiltin in ('N','Y')),\n IsEnabled
|
|
char(1) check (IsEnabled in ('N','Y')),\n Password varchar(2048),\n primary
|
|
key (PrincipalId),\n unique (LCName),\n unique (Name)\n );\nCREATE
|
|
TABLE OpPrivilege (\n PrivilegeId bigint not null,\n PrincipalId
|
|
bigint not null,\n RoleEnum varchar(32) not null,\n SystemId bigint,\n
|
|
\ primary key (PrivilegeId),\n unique (PrincipalId, RoleEnum, SystemId)\n
|
|
\ );\nCREATE TABLE OpProduct (\n ProductId bigint not null,\n UpdateStamp
|
|
timestamp not null,\n ProductGuid varchar(128) not null,\n ProductTypeId
|
|
bigint not null,\n ProductName varchar(256) not null,\n Version
|
|
varchar(128),\n Description varchar(256),\n IsDetected char(1) not
|
|
null check (IsDetected in ('N','Y')),\n IsItThisCC char(1) not null check
|
|
(IsItThisCC in ('N','Y')),\n IsMonitored char(1) not null check (IsMonitored
|
|
in ('N','Y')),\n Tag varchar(32),\n HostId bigint not null,\n MonitorDirectory
|
|
varchar(512),\n ConfigurationUser varchar(64),\n ContextRoot varchar(128),\n
|
|
\ Url varchar(512),\n LogFilePath varchar(1024),\n AbApplicationHub
|
|
varchar(1024),\n AbHome varchar(1024),\n AbWorkDir varchar(512),\n
|
|
\ AbDataDir varchar(1024),\n RootDirectory varchar(1024),\n WorkDir
|
|
varchar(1024),\n ConfigFile varchar(1024),\n JdbcUrl varchar(256),\n
|
|
\ KeyNumCpus varchar(64),\n KeyExpiryDate timestamp,\n KeyFilePath
|
|
varchar(1024),\n Port integer,\n KeyServerGroup varchar(256),\n
|
|
\ KeyBundleId varchar(256),\n KeyBundleKeyType varchar(32),\n PathEnvValue
|
|
varchar(1024),\n StartCommandString varchar(256),\n StopCommandString
|
|
varchar(256),\n RestartCommandString varchar(256),\n StatusCommandString
|
|
varchar(256),\n GoodStatusRegex varchar(512),\n GoodStatusText varchar(128),\n
|
|
\ BadStatusRegex varchar(512),\n BadStatusText varchar(128),\n ProductStatusEnum
|
|
varchar(64) not null,\n WarningNotificationGroupId bigint,\n ErrorNotificationGroupId
|
|
bigint,\n FatalNotificationGroupId bigint,\n primary key (ProductId),\n
|
|
\ unique (ProductName),\n unique (ProductGuid)\n );\nCREATE TABLE
|
|
OpProductType (\n ProductTypeId bigint not null,\n TypeName varchar(64)
|
|
not null,\n ProductName varchar(256) not null,\n ProductNameString
|
|
varchar(256),\n ProductVendor varchar(128) not null,\n ProductVariety
|
|
varchar(16) not null,\n KeyFileProductId varchar(64),\n IsAddByAdmin
|
|
char(1) not null check (IsAddByAdmin in ('N','Y')),\n ConfigurationUserTreatment
|
|
varchar(16) not null,\n ContextRootTreatment varchar(16) not null,\n UrlTreatment
|
|
varchar(16) not null,\n LogFilePathTreatment varchar(16) not null,\n AbHomeTreatment
|
|
varchar(16) not null,\n AbApplicationHubTreatment varchar(16) not null,\n
|
|
\ AbWorkDirTreatment varchar(16) not null,\n AbDataDirTreatment varchar(16)
|
|
not null,\n RootDirectoryTreatment varchar(16) not null,\n WorkDirTreatment
|
|
varchar(16) not null,\n ConfigFileTreatment varchar(16) not null,\n PortTreatment
|
|
varchar(16) not null,\n VersionTreatment varchar(16) not null,\n RootDirectoryEnvVar
|
|
varchar(64),\n StartCommandString varchar(256),\n StopCommandString
|
|
varchar(256),\n RestartCommandString varchar(256),\n StatusCommandString
|
|
varchar(256),\n GoodStatusRegex varchar(512),\n GoodStatusText varchar(128),\n
|
|
\ BadStatusRegex varchar(512),\n BadStatusText varchar(128),\n AbAppIdentifier
|
|
varchar(256),\n primary key (ProductTypeId),\n unique (TypeName)\n
|
|
\ );\nCREATE TABLE OpProductXref (\n LeftProductId bigint not null,\n
|
|
\ ProductRelationship varchar(16) not null,\n RightProductId bigint
|
|
not null,\n primary key (LeftProductId, ProductRelationship, RightProductId)\n
|
|
\ );\nCREATE TABLE OpPropertyType (\n PropertyTypeId bigint not null,\n
|
|
\ PropertyTypeDiscriminator varchar(32) not null,\n SystemId bigint
|
|
not null,\n Name varchar(128) not null,\n Description varchar(1024),\n
|
|
\ MarkForDelete char(1) check (MarkForDelete in ('N','Y')),\n ColumnSequence
|
|
integer not null,\n DefaultValue varchar(1024),\n CustomTypeEnum
|
|
varchar(64),\n BuiltinPropertyExpression varchar(256),\n primary
|
|
key (PropertyTypeId),\n unique (SystemId, ColumnSequence),\n unique
|
|
(SystemId, Name)\n );\nCREATE TABLE OpQueue (\n QueueId bigint not null,\n
|
|
\ UpdateStamp timestamp not null,\n HostId bigint not null,\n Directory
|
|
varchar(256) not null,\n MonitorDirectory varchar(512),\n SystemId
|
|
bigint not null,\n Name varchar(128) not null,\n QueueType varchar(256)
|
|
not null,\n QueueVersion integer not null,\n Owner varchar(128)
|
|
not null,\n NumPartitions integer not null,\n QueueAttributes varchar(256),\n
|
|
\ WarningNotificationGroupId bigint,\n ErrorNotificationGroupId bigint,\n
|
|
\ IsIssuesIgnored char(1) not null check (IsIssuesIgnored in ('N','Y')),\n
|
|
\ IsQueueDeleted char(1) not null check (IsQueueDeleted in ('N','Y')),\n
|
|
\ primary key (QueueId),\n unique (SystemId, Name),\n unique
|
|
(HostId, Directory)\n );\nCREATE TABLE OpQueueClient (\n QueueClientId
|
|
bigint not null,\n QueueId bigint not null,\n QueueSubscriberId
|
|
bigint,\n JobId bigint not null,\n GraphComponent varchar(256) not
|
|
null,\n GraphComponentEnum varchar(32) not null,\n EventTime timestamp
|
|
not null,\n primary key (QueueClientId)\n );\nCREATE TABLE OpQueueMetric
|
|
(\n QueueMetricId bigint not null,\n QueueMetricDiscriminator varchar(32)
|
|
not null,\n ThresholdComparisonEnum varchar(32) not null,\n WarningThreshold
|
|
integer,\n ErrorThreshold integer,\n MetricEnum varchar(32) not
|
|
null,\n QueueId bigint,\n QueueSubscriberId bigint,\n primary
|
|
key (QueueMetricId)\n );\nCREATE TABLE OpQueueMetricValue (\n QueueMetricValueId
|
|
bigint not null,\n QueueMetricId bigint not null,\n CollectionTime
|
|
timestamp not null,\n Value float8 not null,\n MetricStatusEnum
|
|
varchar(32) not null,\n primary key (QueueMetricValueId),\n unique
|
|
(QueueMetricId, CollectionTime)\n );\nCREATE TABLE OpQueueStats (\n QueueStatsId
|
|
bigint not null,\n QueueId bigint not null,\n LastCollectionTime
|
|
timestamp not null,\n QueueStatusEnum varchar(32) not null,\n LastAlertTime
|
|
timestamp,\n primary key (QueueStatsId),\n unique (QueueId)\n );\nCREATE
|
|
TABLE OpQueueSubscriber (\n QueueSubscriberId bigint not null,\n QueueId
|
|
bigint not null,\n IdSubdirectory varchar(256) not null,\n IsIssuesIgnored
|
|
char(1) not null check (IsIssuesIgnored in ('N','Y')),\n IsSubscriberDeleted
|
|
char(1) not null check (IsSubscriberDeleted in ('N','Y')),\n primary key
|
|
(QueueSubscriberId)\n );\nCREATE TABLE OpQuickLink (\n QuickLinkId bigint
|
|
not null,\n Name varchar(128),\n Description varchar(1024),\n Url
|
|
varchar(2048),\n IconName varchar(128),\n IsHidden char(1) not null
|
|
check (IsHidden in ('N','Y')),\n Sequence integer not null,\n primary
|
|
key (QuickLinkId)\n );\nCREATE TABLE OpRecipient (\n RecipientId bigint
|
|
not null,\n RecipientTypeDiscriminator varchar(32) not null,\n Name
|
|
varchar(128) not null,\n Description varchar(1024),\n EmailAddresses
|
|
varchar(2048),\n HttpAddress varchar(2048),\n primary key (RecipientId),\n
|
|
\ unique (Name)\n );\nCREATE TABLE OpRecipientHeader (\n RecipientHeaderId
|
|
bigint not null,\n RecipientId bigint not null,\n Type varchar(64)
|
|
not null,\n Name varchar(128) not null,\n Value varchar(1024),\n
|
|
\ Sequence integer not null,\n Properties varchar(1024),\n primary
|
|
key (RecipientHeaderId),\n unique (RecipientId, Type, Name)\n );\nCREATE
|
|
TABLE OpReporter (\n ReporterId bigint not null,\n PhysicalHostId
|
|
bigint not null,\n WorkingDirectory varchar(512) not null,\n ReporterGuid
|
|
varchar(128) not null,\n ProductId bigint,\n LogicalHostId bigint
|
|
not null,\n Username varchar(128),\n AbHome varchar(256),\n ReporterUserModeEnum
|
|
varchar(32),\n IsScheduling char(1) check (IsScheduling in ('N','Y')),\n
|
|
\ WebServiceVersion varchar(16) not null,\n ReporterConfigPath varchar(256),\n
|
|
\ ReporterLogPath varchar(256),\n LastWebServiceTime timestamp not
|
|
null,\n IsStopped char(1) check (IsStopped in ('N','Y')),\n IncludeInCCStatus
|
|
char(1) not null check (IncludeInCCStatus in ('N','Y')),\n NeedsRestart
|
|
char(1) not null check (NeedsRestart in ('N','Y')),\n ReporterConfigSetId
|
|
bigint,\n primary key (ReporterId),\n unique (PhysicalHostId, WorkingDirectory)\n
|
|
\ );\nCREATE TABLE OpReporterConfigItem (\n ReporterConfigItemId bigint
|
|
not null,\n PropertyTypeDiscriminator varchar(32) not null,\n ReporterDefaultConfigItemId
|
|
bigint,\n LongValue bigint,\n DoubleValue float8,\n StringValue
|
|
varchar(1024),\n BooleanValue char(1) check (BooleanValue in ('N','Y')),\n
|
|
\ PasswordValue varchar(2048),\n ReporterConfigSetId bigint not null,\n
|
|
\ primary key (ReporterConfigItemId)\n );\nCREATE TABLE OpReporterConfigSet
|
|
(\n ReporterConfigSetId bigint not null,\n Name varchar(256) not
|
|
null,\n Source varchar(1024) not null,\n Version varchar(64) not
|
|
null,\n Description varchar(1024),\n ReporterConfigSetType varchar(32)
|
|
not null,\n ReporterConfigSetPatternType varchar(32),\n ReporterConfigSetPattern
|
|
varchar(1024),\n primary key (ReporterConfigSetId),\n unique (Name)\n
|
|
\ );\nCREATE TABLE OpReporterDefaultConfigItem (\n ReporterDefaultConfigItemId
|
|
bigint not null,\n Name varchar(256) not null,\n StartVersion varchar(16)
|
|
not null,\n EndVersion varchar(16),\n Description varchar(255),\n
|
|
\ ItemType varchar(64) not null,\n Value varchar(255),\n ReporterParameterGroupType
|
|
varchar(32) not null,\n ReporterConfigValueType varchar(32) not null,\n
|
|
\ primary key (ReporterDefaultConfigItemId),\n unique (Name)\n );\nCREATE
|
|
TABLE OpReporterDirectory (\n ReporterId bigint not null,\n Directory
|
|
varchar(256)\n );\nCREATE TABLE OpResourcePart (\n ResourcePartId bigint
|
|
not null,\n UpdateStamp timestamp not null,\n ResourceRequestId
|
|
bigint not null,\n ResourceSettingId bigint not null,\n InstanceName
|
|
varchar(256),\n RequiredQuantity integer not null,\n primary key
|
|
(ResourcePartId),\n unique (ResourceRequestId, ResourceSettingId)\n );\nCREATE
|
|
TABLE OpResourcePool (\n ResourcePoolId bigint not null,\n UpdateStamp
|
|
timestamp not null,\n ResourceServerId bigint not null,\n Url varchar(512)
|
|
not null,\n primary key (ResourcePoolId),\n unique (ResourceServerId,
|
|
Url)\n );\nCREATE TABLE OpResourceRequest (\n ResourceRequestId bigint
|
|
not null,\n UpdateStamp timestamp not null,\n ResourceRequestDiscriminator
|
|
varchar(32) not null,\n ResourceServerId bigint not null,\n Handle
|
|
integer not null,\n WhenRequested timestamp,\n WhenGranted timestamp,\n
|
|
\ ClientSandboxUrl varchar(1024),\n ClientProject varchar(1024),\n
|
|
\ ClientPlanName varchar(1024),\n ClientPrincipal varchar(256),\n
|
|
\ ClientJobGuid varchar(256),\n ResourceTaskName varchar(1024),\n
|
|
\ ResourcePriority integer,\n ResourceIsTentative char(1) check (ResourceIsTentative
|
|
in ('N','Y')),\n ResourceEventName varchar(1024),\n primary key
|
|
(ResourceRequestId),\n unique (ResourceServerId, Handle)\n );\nCREATE
|
|
TABLE OpResourceServer (\n ResourceServerId bigint not null,\n UpdateStamp
|
|
timestamp not null,\n Hostname varchar(256) not null,\n AbWorkDir
|
|
varchar(512) not null,\n MonitorDirectory varchar(512),\n ArrivalOrder
|
|
integer not null,\n StartStamp timestamp,\n StopStamp timestamp,\n
|
|
\ ProductId bigint,\n primary key (ResourceServerId),\n unique
|
|
(Hostname, AbWorkDir)\n );\nCREATE TABLE OpResourceSetting (\n ResourceSettingId
|
|
bigint not null,\n UpdateStamp timestamp not null,\n ResourcePoolId
|
|
bigint not null,\n SettingName varchar(256) not null,\n IsGroup
|
|
char(1) not null check (IsGroup in ('N','Y')),\n SettingGroup varchar(256),\n
|
|
\ MaxQuantity integer not null,\n UsedQuantity integer not null,\n
|
|
\ IsVariable char(1) not null check (IsVariable in ('N','Y')),\n primary
|
|
key (ResourceSettingId),\n unique (ResourcePoolId, SettingName, IsGroup)\n
|
|
\ );\nCREATE TABLE OpRuntime (\n RuntimeId bigint not null,\n RuntimeTypeDiscriminator
|
|
varchar(32) not null,\n Name varchar(128) not null,\n OSAuthenticationId
|
|
bigint not null,\n BridgeId bigint not null,\n AbHome varchar(256)
|
|
not null,\n SystemId bigint,\n FilesystemRoot varchar(1024),\n SchedulingHostId
|
|
bigint,\n ConfigEnvGuid varchar(64),\n Tag varchar(32),\n primary
|
|
key (RuntimeId),\n unique (Name, SystemId)\n );\nCREATE TABLE OpSystem
|
|
(\n SystemId bigint not null,\n UpdateStamp timestamp not null,\n
|
|
\ SystemGuid varchar(128) not null,\n Name varchar(128) not null,\n
|
|
\ Description varchar(1024),\n ProductionDayHHMM varchar(64) not
|
|
null,\n TimeZoneId varchar(64) not null,\n ExcludeJobColumns varchar(1024),\n
|
|
\ ExcludeJobDefinitionColumns varchar(1024),\n IsAutoGenEnabled char(1)
|
|
not null check (IsAutoGenEnabled in ('N','Y')),\n AutoGenRangeMins integer
|
|
not null,\n AutoGenOffsetMins integer not null,\n AutoGenDailyFrequency
|
|
integer not null,\n MarkForDelete char(1) not null check (MarkForDelete
|
|
in ('N','Y')),\n primary key (SystemId),\n unique (Name),\n unique
|
|
(SystemGuid)\n );\nCREATE TABLE OpTimeConstraint (\n JobDefinitionId
|
|
bigint not null,\n ModeEnum varchar(64) not null,\n StartDate timestamp,\n
|
|
\ EndDate timestamp,\n TimeZoneId varchar(128),\n StartTimes
|
|
varchar(512),\n MonthsOfYear varchar(64),\n CalendarId bigint,\n
|
|
\ primary key (JobDefinitionId)\n );\nCREATE TABLE OpZMVDenormalizedDay
|
|
(\n DenormalizedDayId bigint not null,\n JobId bigint not null,\n
|
|
\ ApplicationId bigint not null,\n ExecutableId bigint,\n Hostname
|
|
varchar(128),\n KeyId bigint,\n MetricId bigint not null,\n CollectionDay
|
|
timestamp not null,\n CollectionTime timestamp not null,\n Value
|
|
float8,\n primary key (DenormalizedDayId),\n unique (JobId, ApplicationId,
|
|
ExecutableId, Hostname, KeyId, MetricId, CollectionDay, CollectionTime)\n );\nCREATE
|
|
TABLE OpZMVDifference (\n DifferenceId bigint not null,\n JobId
|
|
bigint not null,\n ApplicationId bigint not null,\n ExecutableId
|
|
bigint,\n Hostname varchar(128),\n KeyId bigint,\n MetricId
|
|
bigint not null,\n CollectionDay timestamp not null,\n CollectionTime
|
|
timestamp not null,\n Value float8,\n primary key (DifferenceId),\n
|
|
\ unique (JobId, ApplicationId, ExecutableId, Hostname, KeyId, MetricId,
|
|
CollectionDay, CollectionTime)\n );\n-- create constraints\ncreate sequence
|
|
hibernate_sequence start with 1 increment by 1;\n \ncreate index IDX_JDPROPVALUE_PROPTYPEID
|
|
\n on OpJobDefinitionPropertyValue (PropertyTypeId);\n \ncreate index IDX_JOBPROPVALUE_PROPTYPEID
|
|
\n on OpJobPropertyValue (PropertyTypeId);\n \nalter table if exists OpAnalysisAggregator
|
|
\n add constraint FKrfit5fi48b9jragbnu88jte7b \n foreign key (AnalysisObjectId)
|
|
\n references OpAnalysisObject;\n \nalter table if exists OpAnalysisAggregatorSQL
|
|
\n add constraint FK1hnbwq56yhs2yuy1d4cooh4l8 \n foreign key (AnalysisAggregatorId)
|
|
\n references OpAnalysisAggregator;\n \nalter table if exists OpAnalysisRow
|
|
\n add constraint FKkck9t25618jy83xsleeoeiovw \n foreign key (AnalysisObjectId)
|
|
\n references OpAnalysisObject;\n \nalter table if exists OpAnalysisRowSQL
|
|
\n add constraint FKjrb0ul88q3jv0u0frxwrq0e2 \n foreign key (AnalysisRowId)
|
|
\n references OpAnalysisRow;\n \nalter table if exists OpApplication \n
|
|
\ add constraint FKkdgdh04oj75sec9dwiyhg16ye \n foreign key (SystemId)
|
|
\n references OpSystem;\n \nalter table if exists OpApplication \n add
|
|
constraint FKmc3ylwrh5i9d0aakg5vk8rlx5 \n foreign key (WarningNotificationGroupId)
|
|
\n references OpNotificationGroup;\n \nalter table if exists OpApplication
|
|
\n add constraint FKc9bq3d4daq4ee597etpnm4g97 \n foreign key (ErrorNotificationGroupId)
|
|
\n references OpNotificationGroup;\n \nalter table if exists OpApplication
|
|
\n add constraint FKjpcf8tq0npea5s9mf6tbrrioi \n foreign key (SuccessNotificationGroupId)
|
|
\n references OpNotificationGroup;\n \nalter table if exists OpAutoGenStats
|
|
\n add constraint FKs0xei25r31jtsghpelm9p3sg0 \n foreign key (SystemId)
|
|
\n references OpSystem;\n \nalter table if exists OpBridge \n add
|
|
constraint FKm1n717usrfscv5xywbh93kotc \n foreign key (HostId) \n references
|
|
OpHost;\n \nalter table if exists OpCalendar \n add constraint FK37katf1nkit4d6okja33erenk
|
|
\n foreign key (SystemId) \n references OpSystem;\n \nalter table
|
|
if exists OpCalendarYear \n add constraint FKci2yumr9qfmm7es3n6b2xbc4 \n
|
|
\ foreign key (CalendarId) \n references OpCalendar;\n \nalter table
|
|
if exists OpDailyCpuUsage \n add constraint FKshn2d7ldgnpjt8wids5ffhog3
|
|
\n foreign key (KeyId) \n references OpKey;\n \nalter table if exists
|
|
OpDailyCpuUsage \n add constraint FKi9hybiyfiu4k57mog9cp3d5ve \n foreign
|
|
key (ApplicationId) \n references OpApplication;\n \nalter table if exists
|
|
OpDay \n add constraint FKbtr4fr587l83sp43h7b0nkgrf \n foreign key
|
|
(JobDefinitionId) \n references OpTimeConstraint;\n \nalter table if exists
|
|
OpExecutable \n add constraint FK1o5714a6kc0h91ohhjf6womjm \n foreign
|
|
key (SystemId) \n references OpSystem;\n \nalter table if exists OpExecutable
|
|
\n add constraint FKk2hb991clofp9lrgyuxe617hd \n foreign key (PrototypeExecutableId)
|
|
\n references OpExecutable;\n \nalter table if exists OpExecutable \n add
|
|
constraint FKn6n881daxoes4m1jmjmybor4y \n foreign key (EmeExecutableId)
|
|
\n references OpEmeExecutable;\n \nalter table if exists OpFileAndEventConstraint
|
|
\n add constraint FKeyxv51r0ufj61m24wku8777m \n foreign key (JobDefinitionId)
|
|
\n references OpJobDefinition;\n \nalter table if exists OpFileAndEventConstraint
|
|
\n add constraint FK6426q08fm01ultq8g5ul2x2io \n foreign key (PropertyTypeId)
|
|
\n references OpPropertyType;\n \nalter table if exists OpFileSystem \n
|
|
\ add constraint FKk1o6ur8hu9b7rkxoxvn2ccp3n \n foreign key (HostId)
|
|
\n references OpHost;\n \nalter table if exists OpFileSystemMetric \n add
|
|
constraint FKe211qe0w7lql8o9ip4dnu9ept \n foreign key (FileSystemId) \n
|
|
\ references OpFileSystem;\n \nalter table if exists OpFileSystemMetricValue
|
|
\n add constraint FKefhmrbke9v6hjj6xc8n7d7k5y \n foreign key (FileSystemMetricId)
|
|
\n references OpFileSystemMetric;\n \nalter table if exists OpGroupXref
|
|
\n add constraint FKnsceus2ues6hh1q9h6660xdbx \n foreign key (ParentGroupId)
|
|
\n references OpPrincipal;\n \nalter table if exists OpGroupXref \n add
|
|
constraint FK4dk4e99w6vm2f4ljj3roopiqe \n foreign key (ChildPrincipalId)
|
|
\n references OpPrincipal;\n \nalter table if exists OpHomeViewBox \n add
|
|
constraint FK1au4or6bwn2bmv275ia14q2uc \n foreign key (HomeViewId) \n references
|
|
OpHomeView;\n \nalter table if exists OpHost \n add constraint FK6pxxhbxnx4eyg84vsq7qpju36
|
|
\n foreign key (WarningNotificationGroupId) \n references OpNotificationGroup;\n
|
|
\nalter table if exists OpHost \n add constraint FKfrocf12l5kpt8p9ykpi3l757g
|
|
\n foreign key (ErrorNotificationGroupId) \n references OpNotificationGroup;\n
|
|
\nalter table if exists OpHost \n add constraint FK6q3t3oxkw9ug5ktdhjh6jdcqd
|
|
\n foreign key (FatalNotificationGroupId) \n references OpNotificationGroup;\n
|
|
\nalter table if exists OpHost \n add constraint FK81x4ia1lxpc5xii088bw204nf
|
|
\n foreign key (HostClusterId) \n references OpHost;\n \nalter table
|
|
if exists OpHost \n add constraint FKn3gq0uk9idjjtgrwnavc1fbeu \n foreign
|
|
key (PhysicalHostId) \n references OpHost;\n \nalter table if exists OpHostMetric
|
|
\n add constraint FK5ovk29s5qkp3b0uuss5kjqw9i \n foreign key (HostId)
|
|
\n references OpHost;\n \nalter table if exists OpHostMetricValue \n add
|
|
constraint FKnyba4hteseqrvjs2wk8pdtdoy \n foreign key (HostMetricId) \n
|
|
\ references OpHostMetric;\n \nalter table if exists OpJob \n add constraint
|
|
FKryte4ef9b98pyway03ue994t9 \n foreign key (ApplicationId) \n references
|
|
OpApplication;\n \nalter table if exists OpJob \n add constraint FKme88sr2rpdmjlbguyt74doma9
|
|
\n foreign key (ParentJobId) \n references OpJob;\n \nalter table
|
|
if exists OpJob \n add constraint FKgb0kywo3kkkm7ool7ac46h3gd \n foreign
|
|
key (JobDefinitionId) \n references OpJobDefinition;\n \nalter table if
|
|
exists OpJob \n add constraint FK4x5f4lc1bbxd1byakigqicdg \n foreign
|
|
key (ExecutableId) \n references OpExecutable;\n \nalter table if exists
|
|
OpJob \n add constraint FK45aou1q6yltpf6pbbn1eh1bb1 \n foreign key
|
|
(RerunSuccessorJobId) \n references OpJob;\n \nalter table if exists OpJob
|
|
\n add constraint FKc38c9mppospavtgvq6rogiok0 \n foreign key (RerunPredecessorJobId)
|
|
\n references OpJob;\n \nalter table if exists OpJobDefinition \n add
|
|
constraint FKjamygtsh883or4w03pspxumo1 \n foreign key (ApplicationId) \n
|
|
\ references OpApplication;\n \nalter table if exists OpJobDefinition \n
|
|
\ add constraint FKmjg16wiu5c330j6mntdyovvf7 \n foreign key (RuntimeId)
|
|
\n references OpRuntime;\n \nalter table if exists OpJobDefinition \n add
|
|
constraint FK6q9s91u88wokobh9tusv5655d \n foreign key (JobDefinitionGroupId)
|
|
\n references OpJobDefinition;\n \nalter table if exists OpJobDefinition
|
|
\n add constraint FKnfxldt2fyaoj877hpjobvovfl \n foreign key (SuccessNotificationGroupId)
|
|
\n references OpNotificationGroup;\n \nalter table if exists OpJobDefinition
|
|
\n add constraint FK4vybvi3jvkm6usnxu789txwao \n foreign key (WarningNotificationGroupId)
|
|
\n references OpNotificationGroup;\n \nalter table if exists OpJobDefinition
|
|
\n add constraint FKj6bencvu7xqur6501xshhrs55 \n foreign key (ErrorNotificationGroupId)
|
|
\n references OpNotificationGroup;\n \nalter table if exists OpJobDefinitionAction
|
|
\n add constraint FKaicpaly3wmew35gu3qxxtdpn5 \n foreign key (JobDefinitionId)
|
|
\n references OpJobDefinition;\n \nalter table if exists OpJobDefinitionActionArgument
|
|
\n add constraint FK1j1mmr7nlakd24hg4i3dpq1u7 \n foreign key (JobDefinitionActionId)
|
|
\n references OpJobDefinitionAction;\n \nalter table if exists OpJobDefinitionDependency
|
|
\n add constraint FKd9fimu675rh94yo0fxmmavrgc \n foreign key (JobDefinitionId)
|
|
\n references OpJobDefinition;\n \nalter table if exists OpJobDefinitionPropertyValue
|
|
\n add constraint FKpo8nop1ypy9fhuvshrs9asbm4 \n foreign key (JobDefinitionId)
|
|
\n references OpJobDefinition;\n \nalter table if exists OpJobDefinitionPropertyValue
|
|
\n add constraint FK6k3bf9fx2s1fcgb2wrlgs1y0t \n foreign key (PropertyTypeId)
|
|
\n references OpPropertyType;\n \nalter table if exists OpJobEvent \n add
|
|
constraint FK46o9dp9a3lnttt11pa37ho2ay \n foreign key (JobId) \n references
|
|
OpJob;\n \nalter table if exists OpJobPropertyValue \n add constraint FK1ebxtnscc18dmvkmtfel4cf8y
|
|
\n foreign key (JobId) \n references OpJob;\n \nalter table if exists
|
|
OpJobPropertyValue \n add constraint FKdntbqa4i4wncug5qwye4c345l \n foreign
|
|
key (PropertyTypeId) \n references OpPropertyType;\n \nalter table if exists
|
|
OpKeyFile \n add constraint FK4w9i06ubaolelk4cgoejlnsi9 \n foreign
|
|
key (KeyId) \n references OpKey;\n \nalter table if exists OpKeyServerReport
|
|
\n add constraint FK2xrnkcbm7714ysx1qwx304myy \n foreign key (ProductId)
|
|
\n references OpProduct;\n \nalter table if exists OpMetric \n add
|
|
constraint FKb28q210jlj42tbswaxt6stk4c \n foreign key (ExecutableId) \n
|
|
\ references OpExecutable;\n \nalter table if exists OpMetric \n add
|
|
constraint FKnbgnqfw3e7qapn21bhjx4cy3t \n foreign key (EmeExecutableId)
|
|
\n references OpEmeExecutable;\n \nalter table if exists OpMetricValue \n
|
|
\ add constraint FKmmiurng5qel6n6v8wiueehnaf \n foreign key (JobId)
|
|
\n references OpJob;\n \nalter table if exists OpMetricValue \n add
|
|
constraint FKli9jusdh24vepx5l0nglmgn6a \n foreign key (MetricId) \n references
|
|
OpMetric;\n \nalter table if exists OpMetricValue \n add constraint FKslcmi9t763y8l5es34qe7k4eo
|
|
\n foreign key (KeyId) \n references OpKey;\n \nalter table if exists
|
|
OpMetricValue \n add constraint FK1ty7451rfhcsag9v0nesb22nf \n foreign
|
|
key (ApplicationId) \n references OpApplication;\n \nalter table if exists
|
|
OpMetricValue \n add constraint FK8y27w9d7x359k7cnwtlfy0yj7 \n foreign
|
|
key (SystemId) \n references OpSystem;\n \nalter table if exists OpMetricValue
|
|
\n add constraint FKivvhfj1nvmxdoxd3apsdvj2x0 \n foreign key (ExecutableId)
|
|
\n references OpExecutable;\n \nalter table if exists OpMonitoredEvent \n
|
|
\ add constraint FK70yshhxuf8jnjc2gi9vlcr5uk \n foreign key (SystemId)
|
|
\n references OpSystem;\n \nalter table if exists OpMonitoredEvent \n add
|
|
constraint FK4d28knr51jhkh2l5jfn1i6kg8 \n foreign key (ReporterId) \n references
|
|
OpReporter;\n \nalter table if exists OpMonitoredEvent \n add constraint
|
|
FKkf3i7vdebueiqk41idsrsn4e0 \n foreign key (ProductId) \n references
|
|
OpProduct;\n \nalter table if exists OpMonitoredEvent \n add constraint
|
|
FKh21l4ot9lyfor6uq3yv45v772 \n foreign key (HostId) \n references
|
|
OpHost;\n \nalter table if exists OpMonitoredStatus \n add constraint FK8c31p3qvnq7ti7fds43ca6gii
|
|
\n foreign key (LastEventId) \n references OpMonitoredEvent;\n \nalter
|
|
table if exists OpMonitoredStatus \n add constraint FKq1rgfe82j85asdsw5b50h7n4w
|
|
\n foreign key (SeverestEventId) \n references OpMonitoredEvent;\n
|
|
\nalter table if exists OpMonitoredStatus \n add constraint FKnehhcev0cbdn84wi8pp676axw
|
|
\n foreign key (HostId) \n references OpHost;\n \nalter table if exists
|
|
OpMonitoredStatus \n add constraint FKrrybo9f78euqjmh7yl2ss0w6l \n foreign
|
|
key (ProductId) \n references OpProduct;\n \nalter table if exists OpMonitoredStatus
|
|
\n add constraint FKteg48m6ky3wkdc1cp2ivvs2bc \n foreign key (ReporterId)
|
|
\n references OpReporter;\n \nalter table if exists OpMonitoredStatus \n
|
|
\ add constraint FKf4go69un31nj25swrwsgr4qrg \n foreign key (SystemId)
|
|
\n references OpSystem;\n \nalter table if exists OpNotificationGroupRecipient
|
|
\n add constraint FK4185w3mulcvyewr3layxajfq1 \n foreign key (RecipientId)
|
|
\n references OpRecipient;\n \nalter table if exists OpNotificationGroupRecipient
|
|
\n add constraint FK7l4kih5xn6c0g33nrr5k808sa \n foreign key (NotificationGroupId)
|
|
\n references OpNotificationGroup;\n \nalter table if exists OpOSAuthentication
|
|
\n add constraint FKkhrotlmhsuawhb64jvglgkwxa \n foreign key (HostId)
|
|
\n references OpHost;\n \nalter table if exists OpPrivilege \n add
|
|
constraint FKiimwxq78w88nmjfr9bung2o2d \n foreign key (PrincipalId) \n references
|
|
OpPrincipal;\n \nalter table if exists OpPrivilege \n add constraint FK7yjy1dq3pxdbgqxak8b9tm4j2
|
|
\n foreign key (SystemId) \n references OpSystem;\n \nalter table
|
|
if exists OpProduct \n add constraint FKsmpiwa7pwrlmoaf6yn4p8innp \n foreign
|
|
key (ProductTypeId) \n references OpProductType;\n \nalter table if exists
|
|
OpProduct \n add constraint FKo152j20ftrguq9kd6t58eoycd \n foreign
|
|
key (HostId) \n references OpHost;\n \nalter table if exists OpProduct \n
|
|
\ add constraint FK14ja326m0vi6bsdwxhe7lfhok \n foreign key (WarningNotificationGroupId)
|
|
\n references OpNotificationGroup;\n \nalter table if exists OpProduct \n
|
|
\ add constraint FKhrphhg40gqdukkwn3bmnbvbkx \n foreign key (ErrorNotificationGroupId)
|
|
\n references OpNotificationGroup;\n \nalter table if exists OpProduct \n
|
|
\ add constraint FKq48qupxdp2rk0gslh7h9s6g5s \n foreign key (FatalNotificationGroupId)
|
|
\n references OpNotificationGroup;\n \nalter table if exists OpProductXref
|
|
\n add constraint FK4ij6847j66o3uekjkrlyxqw3y \n foreign key (LeftProductId)
|
|
\n references OpProduct;\n \nalter table if exists OpProductXref \n add
|
|
constraint FK2huotylket4dff0ja7g8irayc \n foreign key (RightProductId) \n
|
|
\ references OpProduct;\n \nalter table if exists OpPropertyType \n add
|
|
constraint FKpb7ap21sodo2uxnmoawh16sqo \n foreign key (SystemId) \n references
|
|
OpSystem;\n \nalter table if exists OpQueue \n add constraint FK6q02htq4sfo3sn2rsejamvebt
|
|
\n foreign key (HostId) \n references OpHost;\n \nalter table if exists
|
|
OpQueue \n add constraint FKqv232547og7vbih7alhdjtkvw \n foreign key
|
|
(SystemId) \n references OpSystem;\n \nalter table if exists OpQueue \n
|
|
\ add constraint FKes8fkpy2peo54oht7eag4wdu7 \n foreign key (WarningNotificationGroupId)
|
|
\n references OpNotificationGroup;\n \nalter table if exists OpQueue \n
|
|
\ add constraint FKdomo5ght0xr5d2honmvvxipog \n foreign key (ErrorNotificationGroupId)
|
|
\n references OpNotificationGroup;\n \nalter table if exists OpQueueClient
|
|
\n add constraint FK3gybwnrpp0sm8489hr5ew7j8f \n foreign key (QueueId)
|
|
\n references OpQueue;\n \nalter table if exists OpQueueClient \n add
|
|
constraint FKgl0qsapws57gk4yvy8o6e3w8u \n foreign key (QueueSubscriberId)
|
|
\n references OpQueueSubscriber;\n \nalter table if exists OpQueueClient
|
|
\n add constraint FKp4fdvgf5wrmqy465ptpp3bwr7 \n foreign key (JobId)
|
|
\n references OpJob;\n \nalter table if exists OpQueueMetric \n add
|
|
constraint FKohtmlnaw1hltr3bknh8y15wdx \n foreign key (QueueId) \n references
|
|
OpQueue;\n \nalter table if exists OpQueueMetric \n add constraint FK4ghmtqvwvdm4kt2hbe5c0eqso
|
|
\n foreign key (QueueSubscriberId) \n references OpQueueSubscriber;\n
|
|
\nalter table if exists OpQueueMetricValue \n add constraint FK99m0tb4fhl9fi8ohrj19bj45m
|
|
\n foreign key (QueueMetricId) \n references OpQueueMetric;\n \nalter
|
|
table if exists OpQueueStats \n add constraint FKdh147844yh1k6gqat0yd30i2k
|
|
\n foreign key (QueueId) \n references OpQueue;\n \nalter table if
|
|
exists OpQueueSubscriber \n add constraint FKk9wjbkpcr28yfdyrenpgxak4d \n
|
|
\ foreign key (QueueId) \n references OpQueue;\n \nalter table if exists
|
|
OpRecipientHeader \n add constraint FKekn0l0d44xmo3lbbenmn5skbq \n foreign
|
|
key (RecipientId) \n references OpRecipient;\n \nalter table if exists OpReporter
|
|
\n add constraint FKptip1tkucm4efk0veuu4ygm6j \n foreign key (PhysicalHostId)
|
|
\n references OpHost;\n \nalter table if exists OpReporter \n add
|
|
constraint FKinynsh2b4q88emwciwb4i0akq \n foreign key (ProductId) \n references
|
|
OpProduct;\n \nalter table if exists OpReporter \n add constraint FK6bfovefxv4cllw6hy6mq1v263
|
|
\n foreign key (LogicalHostId) \n references OpHost;\n \nalter table
|
|
if exists OpReporter \n add constraint FKs1k4765v2piti3iu3h2oks7e9 \n foreign
|
|
key (ReporterConfigSetId) \n references OpReporterConfigSet;\n \nalter table
|
|
if exists OpReporterConfigItem \n add constraint FKdyi1q8bnvo8yjmbk4eqah7gvo
|
|
\n foreign key (ReporterDefaultConfigItemId) \n references OpReporterDefaultConfigItem;\n
|
|
\nalter table if exists OpReporterConfigItem \n add constraint FKfn2lk24trdsp8yycppk9hlki5
|
|
\n foreign key (ReporterConfigSetId) \n references OpReporterConfigSet;\n
|
|
\nalter table if exists OpReporterDirectory \n add constraint FKbolhvku7wt6s93tt7y8wgkgho
|
|
\n foreign key (ReporterId) \n references OpReporter;\n \nalter table
|
|
if exists OpResourcePart \n add constraint FK4ih4eaxqodwau0bt2pk6d43s1 \n
|
|
\ foreign key (ResourceRequestId) \n references OpResourceRequest;\n
|
|
\nalter table if exists OpResourcePart \n add constraint FKc1uvg9eqvbw9x89jnqyfwmtb1
|
|
\n foreign key (ResourceSettingId) \n references OpResourceSetting;\n
|
|
\nalter table if exists OpResourcePool \n add constraint FKa1reo39pgvs37qvaalkdmdtnd
|
|
\n foreign key (ResourceServerId) \n references OpResourceServer;\n
|
|
\nalter table if exists OpResourceRequest \n add constraint FKndw95jdnv9aaipau7pnf8wu64
|
|
\n foreign key (ResourceServerId) \n references OpResourceServer;\n
|
|
\nalter table if exists OpResourceServer \n add constraint FKr6j8gtqxndq6ba24v5nq1v3cr
|
|
\n foreign key (ProductId) \n references OpProduct;\n \nalter table
|
|
if exists OpResourceSetting \n add constraint FK2v4dt3hkpe4gyweqeuyojd0cu
|
|
\n foreign key (ResourcePoolId) \n references OpResourcePool;\n \nalter
|
|
table if exists OpRuntime \n add constraint FKh9j023pv4vhjkdq6f7ohhm5c4
|
|
\n foreign key (OSAuthenticationId) \n references OpOSAuthentication;\n
|
|
\nalter table if exists OpRuntime \n add constraint FK91f6p6or4iiv0ay5ldbot20ju
|
|
\n foreign key (BridgeId) \n references OpBridge;\n \nalter table
|
|
if exists OpRuntime \n add constraint FK79o2xoov16babuwujmp6ks11j \n foreign
|
|
key (SystemId) \n references OpSystem;\n \nalter table if exists OpRuntime
|
|
\n add constraint FK41qhxbe96r0y8ua8vgiltbjug \n foreign key (SchedulingHostId)
|
|
\n references OpHost;\n \nalter table if exists OpTimeConstraint \n add
|
|
constraint FK9n4in5nmm36xytda9ukxilj88 \n foreign key (JobDefinitionId)
|
|
\n references OpJobDefinition;\n \nalter table if exists OpTimeConstraint
|
|
\n add constraint FKfkvdlbhber0as1joi8hgwh58y \n foreign key (CalendarId)
|
|
\n references OpCalendar;\n \nalter table if exists OpZMVDenormalizedDay
|
|
\n add constraint FKs0tp2h8l8i44pvw97p6ttco6c \n foreign key (JobId)
|
|
\n references OpJob;\n \nalter table if exists OpZMVDenormalizedDay \n add
|
|
constraint FKdt1m9cg6s92phsk2swa72itn6 \n foreign key (ApplicationId) \n
|
|
\ references OpApplication;\n \nalter table if exists OpZMVDenormalizedDay
|
|
\n add constraint FKav0n3tidhacdc7l0l1ee0nmex \n foreign key (ExecutableId)
|
|
\n references OpExecutable;\n \nalter table if exists OpZMVDenormalizedDay
|
|
\n add constraint FK2d3xu46hrjn5v8oy4rrip9onu \n foreign key (KeyId)
|
|
\n references OpKey;\n \nalter table if exists OpZMVDenormalizedDay \n add
|
|
constraint FKsgsnnswtmgmc3k1gsfrcu7o5k \n foreign key (MetricId) \n references
|
|
OpMetric;\n \nalter table if exists OpZMVDifference \n add constraint FK44536lkj3y99mqt7vqk8u9sw9
|
|
\n foreign key (JobId) \n references OpJob;\n \nalter table if exists
|
|
OpZMVDifference \n add constraint FK2l9lnao4dop8ftqq8483dw8vf \n foreign
|
|
key (ApplicationId) \n references OpApplication;\n \nalter table if exists
|
|
OpZMVDifference \n add constraint FK3hetm17drihbsk82b3n4rrbmk \n foreign
|
|
key (ExecutableId) \n references OpExecutable;\n \nalter table if exists
|
|
OpZMVDifference \n add constraint FKm24ly70d5dnv1547ba45lx0kh \n foreign
|
|
key (KeyId) \n references OpKey;\n \nalter table if exists OpZMVDifference
|
|
\n add constraint FKpboia9fdjshagewo4xbydpwk0 \n foreign key (MetricId)
|
|
\n references OpMetric;\n-- create indexes\n--start-script\n-- ---------------------------------------------------\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_app_warnnotifygrpid'\n
|
|
\ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index
|
|
idx, pg_class tbl\n where tbl.relname = 'opapplication'\n and idx.indrelid
|
|
= tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_APP_WARNNOTIFYGRPID
|
|
ON OpApplication (WarningNotificationGroupId)';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from pg_class where relname = 'idx_app_errornotifygrpid'\n and
|
|
relkind = 'i'\n and oid in (\n select indexrelid from pg_index idx, pg_class
|
|
tbl\n where tbl.relname = 'opapplication'\n and idx.indrelid = tbl.oid\n
|
|
\ and idx.indisunique != 't'\n and idx.indisprimary != 't');\n
|
|
\ if (cnt = 0) then\n execute E'CREATE INDEX IDX_APP_ERRORNOTIFYGRPID ON OpApplication
|
|
(ErrorNotificationGroupId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class
|
|
where relname = 'idx_audit_updatestamp'\n and relkind = 'i'\n and oid in
|
|
(\n select indexrelid from pg_index idx, pg_class tbl\n where tbl.relname
|
|
= 'opaudit'\n and idx.indrelid = tbl.oid\n and idx.indisunique
|
|
!= 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute
|
|
E'CREATE INDEX IDX_AUDIT_UPDATESTAMP ON OpAudit (UpdateStamp)';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_bridge_hostid'\n
|
|
\ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index
|
|
idx, pg_class tbl\n where tbl.relname = 'opbridge'\n and idx.indrelid
|
|
= tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_BRIDGE_HOSTID ON
|
|
OpBridge (HostId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class
|
|
where relname = 'idx_osauthentication_hostid'\n and relkind = 'i'\n and
|
|
oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where
|
|
tbl.relname = 'oposauthentication'\n and idx.indrelid = tbl.oid\n and
|
|
idx.indisunique != 't'\n and idx.indisprimary != 't');\n if (cnt = 0)
|
|
then\n execute E'CREATE INDEX IDX_OSAUTHENTICATION_HOSTID ON OpOSAuthentication
|
|
(HostId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from pg_class where relname
|
|
= 'idx_runtime_osauthenticationid'\n and relkind = 'i'\n and oid in (\n
|
|
\ select indexrelid from pg_index idx, pg_class tbl\n where tbl.relname
|
|
= 'opruntime'\n and idx.indrelid = tbl.oid\n and idx.indisunique
|
|
!= 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute
|
|
E'CREATE INDEX IDX_RUNTIME_OSAUTHENTICATIONID ON OpRuntime (OSAuthenticationId)';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_runtime_bridgeid'\n
|
|
\ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index
|
|
idx, pg_class tbl\n where tbl.relname = 'opruntime'\n and idx.indrelid
|
|
= tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_RUNTIME_BRIDGEID
|
|
ON OpRuntime (BridgeId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class
|
|
where relname = 'idx_host_physicalhostid'\n and relkind = 'i'\n and oid
|
|
in (\n select indexrelid from pg_index idx, pg_class tbl\n where tbl.relname
|
|
= 'ophost'\n and idx.indrelid = tbl.oid\n and idx.indisunique
|
|
!= 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute
|
|
E'CREATE INDEX IDX_HOST_PHYSICALHOSTID ON OpHost (PhysicalHostId)';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_fsmv_colltime'\n
|
|
\ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index
|
|
idx, pg_class tbl\n where tbl.relname = 'opfilesystemmetricvalue'\n and
|
|
idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_FSMV_COLLTIME ON
|
|
OpFileSystemMetricValue (CollectionTime)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from pg_class where relname = 'idx_host_mv_colltime'\n and relkind = 'i'\n
|
|
\ and oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where
|
|
tbl.relname = 'ophostmetricvalue'\n and idx.indrelid = tbl.oid\n and
|
|
idx.indisunique != 't'\n and idx.indisprimary != 't');\n if (cnt = 0)
|
|
then\n execute E'CREATE INDEX IDX_HOST_MV_COLLTIME ON OpHostMetricValue (CollectionTime)';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_jhr_label'\n and
|
|
relkind = 'i'\n and oid in (\n select indexrelid from pg_index idx, pg_class
|
|
tbl\n where tbl.relname = 'opjamonhourlyreport'\n and idx.indrelid
|
|
= tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_JHR_LABEL ON OpJamonHourlyReport
|
|
(Label)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from pg_class where relname
|
|
= 'idx_jhr_nodeidentifier'\n and relkind = 'i'\n and oid in (\n select
|
|
indexrelid from pg_index idx, pg_class tbl\n where tbl.relname = 'opjamonhourlyreport'\n
|
|
\ and idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and
|
|
idx.indisprimary != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_JHR_NODEIDENTIFIER
|
|
ON OpJamonHourlyReport (NodeIdentifier)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from pg_class where relname = 'idx_jhr_lni'\n and relkind = 'i'\n and oid
|
|
in (\n select indexrelid from pg_index idx, pg_class tbl\n where tbl.relname
|
|
= 'opjamonhourlyreport'\n and idx.indrelid = tbl.oid\n and idx.indisunique
|
|
!= 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute
|
|
E'CREATE INDEX IDX_JHR_LNI ON OpJamonHourlyReport (Label, NodeIdentifier)';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_jpr_label'\n and
|
|
relkind = 'i'\n and oid in (\n select indexrelid from pg_index idx, pg_class
|
|
tbl\n where tbl.relname = 'opjamonpfsreport'\n and idx.indrelid
|
|
= tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_JPR_LABEL ON OpJamonPFSReport
|
|
(Label)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from pg_class where relname
|
|
= 'idx_jpr_nodeidentifier'\n and relkind = 'i'\n and oid in (\n select
|
|
indexrelid from pg_index idx, pg_class tbl\n where tbl.relname = 'opjamonpfsreport'\n
|
|
\ and idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and
|
|
idx.indisprimary != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_JPR_NODEIDENTIFIER
|
|
ON OpJamonPFSReport (NodeIdentifier)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from pg_class where relname = 'idx_executable_hostname'\n and relkind = 'i'\n
|
|
\ and oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where
|
|
tbl.relname = 'opexecutable'\n and idx.indrelid = tbl.oid\n and
|
|
idx.indisunique != 't'\n and idx.indisprimary != 't');\n if (cnt = 0)
|
|
then\n execute E'CREATE INDEX IDX_EXECUTABLE_HOSTNAME ON OpExecutable (Hostname)';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_executable_prototype'\n
|
|
\ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index
|
|
idx, pg_class tbl\n where tbl.relname = 'opexecutable'\n and idx.indrelid
|
|
= tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_EXECUTABLE_PROTOTYPE
|
|
ON OpExecutable (PrototypeExecutableId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from pg_class where relname = 'idx_metricval_jobidctime'\n and relkind = 'i'\n
|
|
\ and oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where
|
|
tbl.relname = 'opmetricvalue'\n and idx.indrelid = tbl.oid\n and
|
|
idx.indisunique != 't'\n and idx.indisprimary != 't');\n if (cnt = 0)
|
|
then\n execute E'CREATE INDEX IDX_METRICVAL_JOBIDCTIME ON OpMetricValue (JobId,
|
|
CollectionTime)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class
|
|
where relname = 'idx_metricval_midsummctime'\n and relkind = 'i'\n and oid
|
|
in (\n select indexrelid from pg_index idx, pg_class tbl\n where tbl.relname
|
|
= 'opmetricvalue'\n and idx.indrelid = tbl.oid\n and idx.indisunique
|
|
!= 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute
|
|
E'CREATE INDEX IDX_METRICVAL_MIDSUMMCTIME ON OpMetricValue (MetricId, IsSummary,
|
|
CollectionTime)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class
|
|
where relname = 'idx_metricval_midsummval'\n and relkind = 'i'\n and oid
|
|
in (\n select indexrelid from pg_index idx, pg_class tbl\n where tbl.relname
|
|
= 'opmetricvalue'\n and idx.indrelid = tbl.oid\n and idx.indisunique
|
|
!= 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute
|
|
E'CREATE INDEX IDX_METRICVAL_MIDSUMMVAL ON OpMetricValue (MetricId, IsSummary,
|
|
Value)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from pg_class where relname
|
|
= 'idx_metricvalue_metricid'\n and relkind = 'i'\n and oid in (\n select
|
|
indexrelid from pg_index idx, pg_class tbl\n where tbl.relname = 'opmetricvalue'\n
|
|
\ and idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and
|
|
idx.indisprimary != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_METRICVALUE_METRICID
|
|
ON OpMetricValue (MetricId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class
|
|
where relname = 'idx_mv_jgaeseisctsshhmm'\n and relkind = 'i'\n and oid
|
|
in (\n select indexrelid from pg_index idx, pg_class tbl\n where tbl.relname
|
|
= 'opmetricvalue'\n and idx.indrelid = tbl.oid\n and idx.indisunique
|
|
!= 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute
|
|
E'CREATE INDEX IDX_MV_JGAESEISCTSSHHMM ON OpMetricValue (JobDefinitionGuid, ActionEnum,
|
|
StateEnum, MetricId, IsSummary, CollectionTime, ScheduledStartTimeHHMM)';\n end
|
|
if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_mv_midsumexecoljidjgv'\n
|
|
\ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index
|
|
idx, pg_class tbl\n where tbl.relname = 'opmetricvalue'\n and idx.indrelid
|
|
= tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_MV_MIDSUMEXECOLJIDJGV
|
|
ON OpMetricValue (MetricId, IsSummary, ExecutableId, CollectionTime, JobId, JobGuid,
|
|
Value)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from pg_class where relname
|
|
= 'idx_mv_jgaesemidisctjgvsstjid'\n and relkind = 'i'\n and oid in (\n select
|
|
indexrelid from pg_index idx, pg_class tbl\n where tbl.relname = 'opmetricvalue'\n
|
|
\ and idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and
|
|
idx.indisprimary != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_MV_JGAESEMIDISCTJGVSSTJID
|
|
ON OpMetricValue (JobDefinitionGuid, ActionEnum, StateEnum, MetricId, IsSummary,
|
|
CollectionTime, JobGuid, Value, ScheduledStartTime, JobId)';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_mv_jdgeisemiisctssthhmm'\n
|
|
\ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index
|
|
idx, pg_class tbl\n where tbl.relname = 'opmetricvalue'\n and idx.indrelid
|
|
= tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_MV_JDGEISEMIISCTSSTHHMM
|
|
ON OpMetricValue (JobDefinitionGuid, ExecutableId, StateEnum, MetricId, IsSummary,
|
|
CollectionTime, ScheduledStartTimeHHMM, ScheduledStartTime, JobId, JobGuid, Value)';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_mv_bucket'\n and
|
|
relkind = 'i'\n and oid in (\n select indexrelid from pg_index idx, pg_class
|
|
tbl\n where tbl.relname = 'opmetricvalue'\n and idx.indrelid = tbl.oid\n
|
|
\ and idx.indisunique != 't'\n and idx.indisprimary != 't');\n
|
|
\ if (cnt = 0) then\n execute E'CREATE INDEX IDX_MV_BUCKET ON OpMetricValue
|
|
(Bucket)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from pg_class where relname
|
|
= 'idx_mv_keyid'\n and relkind = 'i'\n and oid in (\n select indexrelid
|
|
from pg_index idx, pg_class tbl\n where tbl.relname = 'opmetricvalue'\n
|
|
\ and idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and
|
|
idx.indisprimary != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_MV_KEYID
|
|
ON OpMetricValue (KeyId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class
|
|
where relname = 'idx_job_toplevel_effshdstart'\n and relkind = 'i'\n and
|
|
oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where
|
|
tbl.relname = 'opjob'\n and idx.indrelid = tbl.oid\n and idx.indisunique
|
|
!= 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute
|
|
E'CREATE INDEX IDX_JOB_TOPLEVEL_EFFSHDSTART ON OpJob (ParentJobId, RerunSuccessorJobId,
|
|
IsSupportsDependencies, EffectiveScheduledStartTime)';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from pg_class where relname = 'idx_job_toplevel_stateendtime'\n
|
|
\ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index
|
|
idx, pg_class tbl\n where tbl.relname = 'opjob'\n and idx.indrelid
|
|
= tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_JOB_TOPLEVEL_STATEENDTIME
|
|
ON OpJob (ParentJobId, RerunSuccessorJobId, IsSupportsDependencies, StateEnum,
|
|
EndTime)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from pg_class where relname
|
|
= 'idx_derived_name'\n and relkind = 'i'\n and oid in (\n select indexrelid
|
|
from pg_index idx, pg_class tbl\n where tbl.relname = 'opjob'\n and
|
|
idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_DERIVED_NAME ON
|
|
OpJob (DerivedName)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class
|
|
where relname = 'idx_eff_scheduled_start_time'\n and relkind = 'i'\n and
|
|
oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where
|
|
tbl.relname = 'opjob'\n and idx.indrelid = tbl.oid\n and idx.indisunique
|
|
!= 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute
|
|
E'CREATE INDEX IDX_EFF_SCHEDULED_START_TIME ON OpJob (EffectiveScheduledStartTime)';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_job_end_start_abworkdir'\n
|
|
\ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index
|
|
idx, pg_class tbl\n where tbl.relname = 'opjob'\n and idx.indrelid
|
|
= tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_JOB_END_START_ABWORKDIR
|
|
ON OpJob (EndTime, StartTime, AbWorkDir)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from pg_class where relname = 'idx_job_executableid'\n and relkind = 'i'\n
|
|
\ and oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where
|
|
tbl.relname = 'opjob'\n and idx.indrelid = tbl.oid\n and idx.indisunique
|
|
!= 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute
|
|
E'CREATE INDEX IDX_JOB_EXECUTABLEID ON OpJob (ExecutableId)';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_job_exeidendtime'\n
|
|
\ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index
|
|
idx, pg_class tbl\n where tbl.relname = 'opjob'\n and idx.indrelid
|
|
= tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_JOB_EXEIDENDTIME
|
|
ON OpJob (ExecutableId, EndTime)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from pg_class where relname = 'idx_job_exestatestartend'\n and relkind = 'i'\n
|
|
\ and oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where
|
|
tbl.relname = 'opjob'\n and idx.indrelid = tbl.oid\n and idx.indisunique
|
|
!= 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute
|
|
E'CREATE INDEX IDX_JOB_EXESTATESTARTEND ON OpJob (ExecutableId, StateEnum, StartTime,
|
|
EndTime)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from pg_class where relname
|
|
= 'idx_job_exeschedstartend'\n and relkind = 'i'\n and oid in (\n select
|
|
indexrelid from pg_index idx, pg_class tbl\n where tbl.relname = 'opjob'\n
|
|
\ and idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and
|
|
idx.indisprimary != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_JOB_EXESCHEDSTARTEND
|
|
ON OpJob (ExecutableId, ScheduledStartTime, StartTime, EndTime)';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_job_jobdefinitionid'\n
|
|
\ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index
|
|
idx, pg_class tbl\n where tbl.relname = 'opjob'\n and idx.indrelid
|
|
= tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_JOB_JOBDEFINITIONID
|
|
ON OpJob (JobDefinitionId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class
|
|
where relname = 'idx_job_jobenum_estart_etime'\n and relkind = 'i'\n and
|
|
oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where
|
|
tbl.relname = 'opjob'\n and idx.indrelid = tbl.oid\n and idx.indisunique
|
|
!= 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute
|
|
E'CREATE INDEX IDX_JOB_JOBENUM_ESTART_ETIME ON OpJob (JobEnum, EffectiveScheduledStartTime,
|
|
EndTime)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from pg_class where relname
|
|
= 'idx_parent_job_id'\n and relkind = 'i'\n and oid in (\n select
|
|
indexrelid from pg_index idx, pg_class tbl\n where tbl.relname = 'opjob'\n
|
|
\ and idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and
|
|
idx.indisprimary != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_PARENT_JOB_ID
|
|
ON OpJob (ParentJobId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class
|
|
where relname = 'idx_job_appvwprjb_vwendstart'\n and relkind = 'i'\n and
|
|
oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where
|
|
tbl.relname = 'opjob'\n and idx.indrelid = tbl.oid\n and idx.indisunique
|
|
!= 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute
|
|
E'CREATE INDEX IDX_JOB_APPVWPRJB_VWENDSTART ON OpJob (ApplicationId, ViewParentJobId,
|
|
ViewEnd, ViewStart)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class
|
|
where relname = 'idx_job_hstvwprjb_vwendstart'\n and relkind = 'i'\n and
|
|
oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where
|
|
tbl.relname = 'opjob'\n and idx.indrelid = tbl.oid\n and idx.indisunique
|
|
!= 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute
|
|
E'CREATE INDEX IDX_JOB_HSTVWPRJB_VWENDSTART ON OpJob (ResolvedHostname, ViewParentJobId,
|
|
ViewEnd, ViewStart)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class
|
|
where relname = 'idx_job_parrrsuccetypestart'\n and relkind = 'i'\n and
|
|
oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where
|
|
tbl.relname = 'opjob'\n and idx.indrelid = tbl.oid\n and idx.indisunique
|
|
!= 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute
|
|
E'CREATE INDEX IDX_JOB_PARRRSUCCETYPESTART ON OpJob (ParentJobId, RerunSuccessorJobId,
|
|
JobEnum, EffectiveScheduledStartTime)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from pg_class where relname = 'idx_job_rerunpredecessorjobid'\n and relkind
|
|
= 'i'\n and oid in (\n select indexrelid from pg_index idx, pg_class
|
|
tbl\n where tbl.relname = 'opjob'\n and idx.indrelid = tbl.oid\n
|
|
\ and idx.indisunique != 't'\n and idx.indisprimary != 't');\n
|
|
\ if (cnt = 0) then\n execute E'CREATE INDEX IDX_JOB_RERUNPREDECESSORJOBID
|
|
ON OpJob (RerunPredecessorJobId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from pg_class where relname = 'idx_job_rerunsuccessorjobid'\n and relkind =
|
|
'i'\n and oid in (\n select indexrelid from pg_index idx, pg_class tbl\n
|
|
\ where tbl.relname = 'opjob'\n and idx.indrelid = tbl.oid\n and
|
|
idx.indisunique != 't'\n and idx.indisprimary != 't');\n if (cnt = 0)
|
|
then\n execute E'CREATE INDEX IDX_JOB_RERUNSUCCESSORJOBID ON OpJob (RerunSuccessorJobId)';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_scheduled_start_time'\n
|
|
\ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index
|
|
idx, pg_class tbl\n where tbl.relname = 'opjob'\n and idx.indrelid
|
|
= tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_SCHEDULED_START_TIME
|
|
ON OpJob (ScheduledStartTime)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from pg_class where relname = 'idx_severest_event_guid'\n and relkind = 'i'\n
|
|
\ and oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where
|
|
tbl.relname = 'opjob'\n and idx.indrelid = tbl.oid\n and idx.indisunique
|
|
!= 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute
|
|
E'CREATE INDEX IDX_SEVEREST_EVENT_GUID ON OpJob (SeverestEventGuid)';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_job_vwparjob_viewendstart'\n
|
|
\ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index
|
|
idx, pg_class tbl\n where tbl.relname = 'opjob'\n and idx.indrelid
|
|
= tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_JOB_VWPARJOB_VIEWENDSTART
|
|
ON OpJob (ViewParentJobId, ViewEnd, ViewStart)';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from pg_class where relname = 'idx_job_vwparjob_viewstart'\n
|
|
\ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index
|
|
idx, pg_class tbl\n where tbl.relname = 'opjob'\n and idx.indrelid
|
|
= tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_JOB_VWPARJOB_VIEWSTART
|
|
ON OpJob (ViewParentJobId, ViewStart)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from pg_class where relname = 'idx_job_starttime'\n and relkind = 'i'\n and
|
|
oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where
|
|
tbl.relname = 'opjob'\n and idx.indrelid = tbl.oid\n and idx.indisunique
|
|
!= 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute
|
|
E'CREATE INDEX IDX_JOB_STARTTIME ON OpJob (StartTime)';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from pg_class where relname = 'idx_job_stateenum'\n and relkind
|
|
= 'i'\n and oid in (\n select indexrelid from pg_index idx, pg_class
|
|
tbl\n where tbl.relname = 'opjob'\n and idx.indrelid = tbl.oid\n
|
|
\ and idx.indisunique != 't'\n and idx.indisprimary != 't');\n
|
|
\ if (cnt = 0) then\n execute E'CREATE INDEX IDX_JOB_STATEENUM ON OpJob (StateEnum)';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_job_vmid'\n and
|
|
relkind = 'i'\n and oid in (\n select indexrelid from pg_index idx, pg_class
|
|
tbl\n where tbl.relname = 'opjob'\n and idx.indrelid = tbl.oid\n
|
|
\ and idx.indisunique != 't'\n and idx.indisprimary != 't');\n
|
|
\ if (cnt = 0) then\n execute E'CREATE INDEX IDX_JOB_VMID ON OpJob (Vmid)';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_job_rerun'\n and
|
|
relkind = 'i'\n and oid in (\n select indexrelid from pg_index idx, pg_class
|
|
tbl\n where tbl.relname = 'opjob'\n and idx.indrelid = tbl.oid\n
|
|
\ and idx.indisunique != 't'\n and idx.indisprimary != 't');\n
|
|
\ if (cnt = 0) then\n execute E'CREATE INDEX IDX_JOB_RERUN ON OpJob (RerunGuid,
|
|
EndTime, StateEnum)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class
|
|
where relname = 'idx_job_reparent'\n and relkind = 'i'\n and oid in (\n
|
|
\ select indexrelid from pg_index idx, pg_class tbl\n where tbl.relname
|
|
= 'opjob'\n and idx.indrelid = tbl.oid\n and idx.indisunique !=
|
|
't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute
|
|
E'CREATE INDEX IDX_JOB_REPARENT ON OpJob (JobDefinitionId, ViewParentJobId, StateEnum,
|
|
IsIssuesIgnored, ViewEnd)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class
|
|
where relname = 'idx_job_testsetguid'\n and relkind = 'i'\n and oid in (\n
|
|
\ select indexrelid from pg_index idx, pg_class tbl\n where tbl.relname
|
|
= 'opjob'\n and idx.indrelid = tbl.oid\n and idx.indisunique !=
|
|
't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute
|
|
E'CREATE INDEX IDX_JOB_TESTSETGUID ON OpJob (TestSetGuid)';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_jobevent_jobid'\n
|
|
\ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index
|
|
idx, pg_class tbl\n where tbl.relname = 'opjobevent'\n and idx.indrelid
|
|
= tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_JOBEVENT_JOBID ON
|
|
OpJobEvent (JobId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class
|
|
where relname = 'idx_jobcompletion_endtime'\n and relkind = 'i'\n and oid
|
|
in (\n select indexrelid from pg_index idx, pg_class tbl\n where tbl.relname
|
|
= 'opjobcompletion'\n and idx.indrelid = tbl.oid\n and idx.indisunique
|
|
!= 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute
|
|
E'CREATE INDEX IDX_JOBCOMPLETION_ENDTIME ON OpJobCompletion (EndTime)';\n end
|
|
if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_jobcompletion_updatestamp'\n
|
|
\ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index
|
|
idx, pg_class tbl\n where tbl.relname = 'opjobcompletion'\n and
|
|
idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_JOBCOMPLETION_UPDATESTAMP
|
|
ON OpJobCompletion (UpdateStamp)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from pg_class where relname = 'idx_monev_mguidevt'\n and relkind = 'i'\n and
|
|
oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where
|
|
tbl.relname = 'opmonitoredevent'\n and idx.indrelid = tbl.oid\n and
|
|
idx.indisunique != 't'\n and idx.indisprimary != 't');\n if (cnt = 0)
|
|
then\n execute E'CREATE INDEX IDX_MONEV_MGUIDEVT ON OpMonitoredEvent (MonitoredObjectGuid,
|
|
EventTime)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class
|
|
where relname = 'idx_monev_mguilifevt'\n and relkind = 'i'\n and oid in
|
|
(\n select indexrelid from pg_index idx, pg_class tbl\n where tbl.relname
|
|
= 'opmonitoredevent'\n and idx.indrelid = tbl.oid\n and idx.indisunique
|
|
!= 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute
|
|
E'CREATE INDEX IDX_MONEV_MGUILIFEVT ON OpMonitoredEvent (MonitoredObjectGuid,
|
|
LifecycleState, EventTime)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class
|
|
where relname = 'idx_monev_evt'\n and relkind = 'i'\n and oid in (\n select
|
|
indexrelid from pg_index idx, pg_class tbl\n where tbl.relname = 'opmonitoredevent'\n
|
|
\ and idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and
|
|
idx.indisprimary != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_MONEV_EVT
|
|
ON OpMonitoredEvent (EventTime)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from pg_class where relname = 'idx_monev_hostid'\n and relkind = 'i'\n and
|
|
oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where
|
|
tbl.relname = 'opmonitoredevent'\n and idx.indrelid = tbl.oid\n and
|
|
idx.indisunique != 't'\n and idx.indisprimary != 't');\n if (cnt = 0)
|
|
then\n execute E'CREATE INDEX IDX_MONEV_HOSTID ON OpMonitoredEvent (HostId)';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_monev_reporterid'\n
|
|
\ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index
|
|
idx, pg_class tbl\n where tbl.relname = 'opmonitoredevent'\n and
|
|
idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_MONEV_REPORTERID
|
|
ON OpMonitoredEvent (ReporterId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from pg_class where relname = 'idx_monev_productid'\n and relkind = 'i'\n and
|
|
oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where
|
|
tbl.relname = 'opmonitoredevent'\n and idx.indrelid = tbl.oid\n and
|
|
idx.indisunique != 't'\n and idx.indisprimary != 't');\n if (cnt = 0)
|
|
then\n execute E'CREATE INDEX IDX_MONEV_PRODUCTID ON OpMonitoredEvent (ProductId)';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_monev_systemid'\n
|
|
\ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index
|
|
idx, pg_class tbl\n where tbl.relname = 'opmonitoredevent'\n and
|
|
idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_MONEV_SYSTEMID ON
|
|
OpMonitoredEvent (SystemId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class
|
|
where relname = 'idx_monev_errorcode'\n and relkind = 'i'\n and oid in (\n
|
|
\ select indexrelid from pg_index idx, pg_class tbl\n where tbl.relname
|
|
= 'opmonitoredevent'\n and idx.indrelid = tbl.oid\n and idx.indisunique
|
|
!= 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute
|
|
E'CREATE INDEX IDX_MONEV_ERRORCODE ON OpMonitoredEvent (ErrorCode)';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_monst_hostid'\n
|
|
\ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index
|
|
idx, pg_class tbl\n where tbl.relname = 'opmonitoredstatus'\n and
|
|
idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_MONST_HOSTID ON
|
|
OpMonitoredStatus (HostId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class
|
|
where relname = 'idx_monst_reporterid'\n and relkind = 'i'\n and oid in
|
|
(\n select indexrelid from pg_index idx, pg_class tbl\n where tbl.relname
|
|
= 'opmonitoredstatus'\n and idx.indrelid = tbl.oid\n and idx.indisunique
|
|
!= 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute
|
|
E'CREATE INDEX IDX_MONST_REPORTERID ON OpMonitoredStatus (ReporterId)';\n end
|
|
if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_monst_productid'\n
|
|
\ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index
|
|
idx, pg_class tbl\n where tbl.relname = 'opmonitoredstatus'\n and
|
|
idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_MONST_PRODUCTID
|
|
ON OpMonitoredStatus (ProductId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from pg_class where relname = 'idx_monst_systemid'\n and relkind = 'i'\n and
|
|
oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where
|
|
tbl.relname = 'opmonitoredstatus'\n and idx.indrelid = tbl.oid\n and
|
|
idx.indisunique != 't'\n and idx.indisprimary != 't');\n if (cnt = 0)
|
|
then\n execute E'CREATE INDEX IDX_MONST_SYSTEMID ON OpMonitoredStatus (SystemId)';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_monst_sevevtid'\n
|
|
\ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index
|
|
idx, pg_class tbl\n where tbl.relname = 'opmonitoredstatus'\n and
|
|
idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_MONST_SEVEVTID ON
|
|
OpMonitoredStatus (SeverestEventId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from pg_class where relname = 'idx_monst_lastevtid'\n and relkind = 'i'\n and
|
|
oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where
|
|
tbl.relname = 'opmonitoredstatus'\n and idx.indrelid = tbl.oid\n and
|
|
idx.indisunique != 't'\n and idx.indisprimary != 't');\n if (cnt = 0)
|
|
then\n execute E'CREATE INDEX IDX_MONST_LASTEVTID ON OpMonitoredStatus (LastEventId)';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_product_hostid'\n
|
|
\ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index
|
|
idx, pg_class tbl\n where tbl.relname = 'opproduct'\n and idx.indrelid
|
|
= tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_PRODUCT_HOSTID ON
|
|
OpProduct (HostId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class
|
|
where relname = 'idx_queue_systemid'\n and relkind = 'i'\n and oid in (\n
|
|
\ select indexrelid from pg_index idx, pg_class tbl\n where tbl.relname
|
|
= 'opqueue'\n and idx.indrelid = tbl.oid\n and idx.indisunique
|
|
!= 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute
|
|
E'CREATE INDEX IDX_QUEUE_SYSTEMID ON OpQueue (SystemId)';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_queue_warnnotifygrpid'\n
|
|
\ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index
|
|
idx, pg_class tbl\n where tbl.relname = 'opqueue'\n and idx.indrelid
|
|
= tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_QUEUE_WARNNOTIFYGRPID
|
|
ON OpQueue (WarningNotificationGroupId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from pg_class where relname = 'idx_queue_errornotifygrpid'\n and relkind =
|
|
'i'\n and oid in (\n select indexrelid from pg_index idx, pg_class tbl\n
|
|
\ where tbl.relname = 'opqueue'\n and idx.indrelid = tbl.oid\n and
|
|
idx.indisunique != 't'\n and idx.indisprimary != 't');\n if (cnt = 0)
|
|
then\n execute E'CREATE INDEX IDX_QUEUE_ERRORNOTIFYGRPID ON OpQueue (ErrorNotificationGroupId)';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_queueclient_queueid'\n
|
|
\ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index
|
|
idx, pg_class tbl\n where tbl.relname = 'opqueueclient'\n and idx.indrelid
|
|
= tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_QUEUECLIENT_QUEUEID
|
|
ON OpQueueClient (QueueId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class
|
|
where relname = 'idx_queueclient_subsid'\n and relkind = 'i'\n and oid in
|
|
(\n select indexrelid from pg_index idx, pg_class tbl\n where tbl.relname
|
|
= 'opqueueclient'\n and idx.indrelid = tbl.oid\n and idx.indisunique
|
|
!= 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute
|
|
E'CREATE INDEX IDX_QUEUECLIENT_SUBSID ON OpQueueClient (QueueSubscriberId)';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_queueclient_jobid'\n
|
|
\ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index
|
|
idx, pg_class tbl\n where tbl.relname = 'opqueueclient'\n and idx.indrelid
|
|
= tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_QUEUECLIENT_JOBID
|
|
ON OpQueueClient (JobId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class
|
|
where relname = 'idx_queuesubs_queueid'\n and relkind = 'i'\n and oid in
|
|
(\n select indexrelid from pg_index idx, pg_class tbl\n where tbl.relname
|
|
= 'opqueuesubscriber'\n and idx.indrelid = tbl.oid\n and idx.indisunique
|
|
!= 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute
|
|
E'CREATE INDEX IDX_QUEUESUBS_QUEUEID ON OpQueueSubscriber (QueueId)';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_queuemetric_queueid'\n
|
|
\ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index
|
|
idx, pg_class tbl\n where tbl.relname = 'opqueuemetric'\n and idx.indrelid
|
|
= tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_QUEUEMETRIC_QUEUEID
|
|
ON OpQueueMetric (QueueId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class
|
|
where relname = 'idx_queuemetric_subsid'\n and relkind = 'i'\n and oid in
|
|
(\n select indexrelid from pg_index idx, pg_class tbl\n where tbl.relname
|
|
= 'opqueuemetric'\n and idx.indrelid = tbl.oid\n and idx.indisunique
|
|
!= 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute
|
|
E'CREATE INDEX IDX_QUEUEMETRIC_SUBSID ON OpQueueMetric (QueueSubscriberId)';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_rspool_rsserver'\n
|
|
\ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index
|
|
idx, pg_class tbl\n where tbl.relname = 'opresourcepool'\n and idx.indrelid
|
|
= tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_RSPOOL_RSSERVER
|
|
ON OpResourcePool (ResourceServerId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from pg_class where relname = 'idx_rs_product'\n and relkind = 'i'\n and
|
|
oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where
|
|
tbl.relname = 'opresourceserver'\n and idx.indrelid = tbl.oid\n and
|
|
idx.indisunique != 't'\n and idx.indisprimary != 't');\n if (cnt = 0)
|
|
then\n execute E'CREATE INDEX IDX_RS_PRODUCT ON OpResourceServer (ProductId)';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_rssetting_rspool'\n
|
|
\ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index
|
|
idx, pg_class tbl\n where tbl.relname = 'opresourcesetting'\n and
|
|
idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_RSSETTING_RSPOOL
|
|
ON OpResourceSetting (ResourcePoolId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from pg_class where relname = 'idx_rsrequest_rsserver'\n and relkind = 'i'\n
|
|
\ and oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where
|
|
tbl.relname = 'opresourcerequest'\n and idx.indrelid = tbl.oid\n and
|
|
idx.indisunique != 't'\n and idx.indisprimary != 't');\n if (cnt = 0)
|
|
then\n execute E'CREATE INDEX IDX_RSREQUEST_RSSERVER ON OpResourceRequest (ResourceServerId)';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_rspart_rsrequest'\n
|
|
\ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index
|
|
idx, pg_class tbl\n where tbl.relname = 'opresourcepart'\n and idx.indrelid
|
|
= tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_RSPART_RSREQUEST
|
|
ON OpResourcePart (ResourceRequestId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from pg_class where relname = 'idx_rspart_rssetting'\n and relkind = 'i'\n
|
|
\ and oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where
|
|
tbl.relname = 'opresourcepart'\n and idx.indrelid = tbl.oid\n and
|
|
idx.indisunique != 't'\n and idx.indisprimary != 't');\n if (cnt = 0)
|
|
then\n execute E'CREATE INDEX IDX_RSPART_RSSETTING ON OpResourcePart (ResourceSettingId)';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_jobdef_name'\n and
|
|
relkind = 'i'\n and oid in (\n select indexrelid from pg_index idx, pg_class
|
|
tbl\n where tbl.relname = 'opjobdefinition'\n and idx.indrelid =
|
|
tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary !=
|
|
't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_JOBDEF_NAME ON OpJobDefinition
|
|
(Name)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from pg_class where relname
|
|
= 'idx_jobdef_application'\n and relkind = 'i'\n and oid in (\n select
|
|
indexrelid from pg_index idx, pg_class tbl\n where tbl.relname = 'opjobdefinition'\n
|
|
\ and idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and
|
|
idx.indisprimary != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_JOBDEF_APPLICATION
|
|
ON OpJobDefinition (ApplicationId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from pg_class where relname = 'idx_jobdef_runtime'\n and relkind = 'i'\n and
|
|
oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where
|
|
tbl.relname = 'opjobdefinition'\n and idx.indrelid = tbl.oid\n and
|
|
idx.indisunique != 't'\n and idx.indisprimary != 't');\n if (cnt = 0)
|
|
then\n execute E'CREATE INDEX IDX_JOBDEF_RUNTIME ON OpJobDefinition (RuntimeId)';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_jobdef_jobdefgrp'\n
|
|
\ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index
|
|
idx, pg_class tbl\n where tbl.relname = 'opjobdefinition'\n and
|
|
idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_JOBDEF_JOBDEFGRP
|
|
ON OpJobDefinition (JobDefinitionGroupId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from pg_class where relname = 'idx_jobdef_discrimeffsstime'\n and relkind =
|
|
'i'\n and oid in (\n select indexrelid from pg_index idx, pg_class tbl\n
|
|
\ where tbl.relname = 'opjobdefinition'\n and idx.indrelid = tbl.oid\n
|
|
\ and idx.indisunique != 't'\n and idx.indisprimary != 't');\n
|
|
\ if (cnt = 0) then\n execute E'CREATE INDEX IDX_JOBDEF_DISCRIMEFFSSTIME ON
|
|
OpJobDefinition (JobDefinitionDiscriminator, EffectiveScheduledStartTime)';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_feconstraint_jdid'\n
|
|
\ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index
|
|
idx, pg_class tbl\n where tbl.relname = 'opfileandeventconstraint'\n and
|
|
idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_FECONSTRAINT_JDID
|
|
ON OpFileAndEventConstraint (JobDefinitionId)';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from pg_class where relname = 'idx_filebatch_property_type'\n
|
|
\ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index
|
|
idx, pg_class tbl\n where tbl.relname = 'opfileandeventconstraint'\n and
|
|
idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_FILEBATCH_PROPERTY_TYPE
|
|
ON OpFileAndEventConstraint (PropertyTypeId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from pg_class where relname = 'idx_timeconstraint_calendarid'\n and relkind
|
|
= 'i'\n and oid in (\n select indexrelid from pg_index idx, pg_class
|
|
tbl\n where tbl.relname = 'optimeconstraint'\n and idx.indrelid
|
|
= tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_TIMECONSTRAINT_CALENDARID
|
|
ON OpTimeConstraint (CalendarId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from pg_class where relname = 'idx_jdaction_jdid'\n and relkind = 'i'\n and
|
|
oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where
|
|
tbl.relname = 'opjobdefinitionaction'\n and idx.indrelid = tbl.oid\n and
|
|
idx.indisunique != 't'\n and idx.indisprimary != 't');\n if (cnt = 0)
|
|
then\n execute E'CREATE INDEX IDX_JDACTION_JDID ON OpJobDefinitionAction (JobDefinitionId)';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from pg_class where relname = 'idx_groupxref_parentgroupid'\n
|
|
\ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index
|
|
idx, pg_class tbl\n where tbl.relname = 'opgroupxref'\n and idx.indrelid
|
|
= tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary
|
|
!= 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_GROUPXREF_PARENTGROUPID
|
|
ON OpGroupXref (ParentGroupId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from pg_class where relname = 'idx_privilege_systemid'\n and relkind = 'i'\n
|
|
\ and oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where
|
|
tbl.relname = 'opprivilege'\n and idx.indrelid = tbl.oid\n and
|
|
idx.indisunique != 't'\n and idx.indisprimary != 't');\n if (cnt = 0)
|
|
then\n execute E'CREATE INDEX IDX_PRIVILEGE_SYSTEMID ON OpPrivilege (SystemId)';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\n--end-script\n--
|
|
populate database with default data\n--start-script\n-- ---------------------------------------------------\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'insert
|
|
into OpSystem (SystemId, SystemGuid, Name, Description, UpdateStamp, ProductionDayHHMM,
|
|
TimeZoneId, ExcludeJobColumns, ExcludeJobDefinitionColumns , IsAutoGenEnabled,
|
|
AutoGenRangeMins, AutoGenOffsetMins, AutoGenDailyFrequency, MarkForDelete) values
|
|
(nextval(''hibernate_sequence''), ''sys:DEFAULT:20250502114954'', ''DEFAULT'',
|
|
''Default system'', to_timestamp(''1970-01-01 00:00:00.000'', ''YYYY-MM-DD HH24:MI:SS.MS''),
|
|
''00:00'', ''UTC'', ''End,Host Cluster,Job Definition,Job Definition Group,Job
|
|
GUID'','''' , ''Y'', 1440, 30, 1, ''N'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpApplication (ApplicationId,
|
|
SystemId, Name, Description, IsApplicationNeverAutoGen) select nextval(''hibernate_sequence''),
|
|
\ SystemId, ''DEFAULT'', ''Default Application'', ''N'' from OpSystem where Name
|
|
= ''DEFAULT''';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\nbegin\n
|
|
\ execute E'insert into OpAutoGenStats (AutoGenStatsId, SystemId) select nextval(''hibernate_sequence''),
|
|
\ SystemId from OpSystem';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'insert into OpMonitoredStatus (MonitoredStatusId, StatusTypeDiscriminator,
|
|
SystemId) select nextval(''hibernate_sequence''), ''SYSTEM'', s.SystemId from
|
|
OpSystem s left outer join OpMonitoredStatus oms on s.SystemId = oms.SystemId
|
|
\ where oms.SystemId is null';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\n-- ---------------------------------------------------\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'insert
|
|
into OpPropertyType (PropertyTypeId, PropertyTypeDiscriminator, SystemId, Name,
|
|
Description, ColumnSequence, CustomTypeEnum) select nextval(''hibernate_sequence''),
|
|
\ ''CUSTOM'', SystemId, ''PROCESS_REGION'', ''Region'', 10, ''STRING'' from OpSystem
|
|
where Name = ''DEFAULT''';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'insert into OpPropertyType (PropertyTypeId, PropertyTypeDiscriminator,
|
|
SystemId, Name, Description, ColumnSequence, DefaultValue, BuiltinPropertyExpression)
|
|
select nextval(''hibernate_sequence''), ''BUILTIN'', SystemId, ''BOOK_DATE'',
|
|
''Book Date'', 60, ''Unknown Book Date'', ''timeConstraint.calendar.bookDate''
|
|
from OpSystem where Name = ''DEFAULT''';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\n-- ---------------------------------------------------\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'insert
|
|
into OpJobSet (JobSetId, UpdateStamp, JobSetGuid, Name, IsMonitored, SystemId,
|
|
GroupByName, BadStatusTypeEnum, IssuesSeverityOrderEnum, OrderByName, IsOrderAscending,
|
|
IsShowOrderByLabel, JobMax) select nextval(''hibernate_sequence''), current_timestamp
|
|
at time zone ''UTC'', ''JobSet.'' || SystemGuid, ''All jobs in '' || Name,
|
|
\ ''Y'', SystemId, ''Application'', ''FAILED_JOBS'', ''ALL_ACTUAL_HIGHER'', ''Start'',
|
|
''N'', ''Y'', 0 from OpSystem ';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\n-- ---------------------------------------------------\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'insert
|
|
into OpQuickLink (QuickLinkId, Name, Description, Url, IconName, IsHidden, Sequence)
|
|
values (nextval(''hibernate_sequence''), '''', ''Last Viewed Queues'', ''area=jobs&silo=system&subarea=queues'',
|
|
''ViewQueues'', ''N'', 0)';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'insert into OpQuickLink (QuickLinkId, Name, Description,
|
|
Url, IconName, IsHidden, Sequence) values (nextval(''hibernate_sequence''), '''',
|
|
''Last Viewed Resources'', ''area=jobs&silo=system&subarea=resources'', ''ViewResources'',
|
|
''N'', 1)';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'insert
|
|
into OpQuickLink (QuickLinkId, Name, Description, Url, IconName, IsHidden, Sequence)
|
|
values (nextval(''hibernate_sequence''), '''', ''Last Viewed Schedule'', ''area=jobs&silo=system&subarea=schedule'',
|
|
''ViewSchedule'', ''N'', 2)';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\n-- ---------------------------------------------------\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'DELETE
|
|
FROM OpAnalysisRowSQL';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'DELETE FROM OpAnalysisAggregatorSQL';\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\nbegin\n execute E'DELETE FROM OpAnalysisRow';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'DELETE
|
|
FROM OpAnalysisAggregator';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'DELETE FROM OpAnalysisObject';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisObject (AnalysisObjectId,
|
|
Name, TableName, BucketSQL) VALUES (nextval(''hibernate_sequence''), ''Jobs'',
|
|
''OpMetricValue'', ''OpMetricValue.Bucket'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisRow (AnalysisRowId,
|
|
AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisObjectId
|
|
FROM OpAnalysisObject WHERE Name = ''Jobs''), ''System'')';\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisRow
|
|
(AnalysisRowId, AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''Host'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpAnalysisRow (AnalysisRowId, AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''Application'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpAnalysisRow (AnalysisRowId, AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''User'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpAnalysisRow (AnalysisRowId, AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''Executable'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpAnalysisRow (AnalysisRowId, AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''Type'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpAnalysisRow (AnalysisRowId, AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''WorkingDirectory'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpAnalysisRow (AnalysisRowId, AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''AB_WORK_DIR'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpAnalysisRow (AnalysisRowId, AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''AB_HOME'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpAnalysisRow (AnalysisRowId, AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''JobDefinition'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName, JoinPKName,
|
|
BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Jobs'' AND
|
|
OpAnalysisRow.Name = ''System''), ''OpSystem'', ''SystemId'', ''OpMetricValue'',
|
|
''SystemId'', ''LEFT OUTER JOIN'', ''COALESCE(OpSystem.Name, ''''null'''')'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName, JoinPKName,
|
|
BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Jobs'' AND
|
|
OpAnalysisRow.Name = ''Host''), ''OpExecutable'', ''ExecutableId'', ''OpMetricValue'',
|
|
''ExecutableId'', ''LEFT OUTER JOIN'', ''COALESCE(OpMetricValue.Hostname, OpExecutable.Hostname,
|
|
''''null'''')'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\nbegin\n
|
|
\ execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName,
|
|
JoinPKName, BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Jobs'' AND
|
|
OpAnalysisRow.Name = ''Application''), ''OpApplication'', ''ApplicationId'', ''OpMetricValue'',
|
|
''ApplicationId'', ''LEFT OUTER JOIN'', ''COALESCE(OpApplication.Name, ''''null'''')'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName, JoinPKName,
|
|
BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Jobs'' AND
|
|
OpAnalysisRow.Name = ''User''), ''OpJob'', ''JobId'', ''OpMetricValue'', ''JobId'',
|
|
''LEFT OUTER JOIN'', ''COALESCE(OpJob.Username, ''''null'''')'')';\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId,
|
|
AnalysisRowId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType,
|
|
SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisRowId FROM
|
|
OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId
|
|
WHERE OpAnalysisObject.Name = ''Jobs'' AND OpAnalysisRow.Name = ''Executable''),
|
|
''OpExecutable'', ''ExecutableId'', ''OpMetricValue'', ''ExecutableId'', ''LEFT
|
|
OUTER JOIN'', ''COALESCE(OpExecutable.ExpandedPath, ''''null'''')'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName, JoinPKName,
|
|
BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Jobs'' AND
|
|
OpAnalysisRow.Name = ''Type''), ''OpExecutable'', ''ExecutableId'', ''OpMetricValue'',
|
|
''ExecutableId'', ''LEFT OUTER JOIN'', ''COALESCE(OpExecutable.ExecutableEnum,
|
|
''''null'''')'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\nbegin\n
|
|
\ execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName,
|
|
JoinPKName, BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Jobs'' AND
|
|
OpAnalysisRow.Name = ''WorkingDirectory''), ''OpJob'', ''JobId'', ''OpMetricValue'',
|
|
''JobId'', ''LEFT OUTER JOIN'', ''COALESCE(OpJob.WorkingDirectory, ''''null'''')'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName, JoinPKName,
|
|
BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Jobs'' AND
|
|
OpAnalysisRow.Name = ''AB_WORK_DIR''), ''OpJob'', ''JobId'', ''OpMetricValue'',
|
|
''JobId'', ''LEFT OUTER JOIN'', ''COALESCE(OpJob.AbWorkDir, ''''null'''')'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName, JoinPKName,
|
|
BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Jobs'' AND
|
|
OpAnalysisRow.Name = ''AB_HOME''), ''OpJob'', ''JobId'', ''OpMetricValue'', ''JobId'',
|
|
''LEFT OUTER JOIN'', ''COALESCE(OpJob.AbHome, ''''null'''')'')';\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId,
|
|
AnalysisRowId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType,
|
|
SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisRowId FROM
|
|
OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId
|
|
WHERE OpAnalysisObject.Name = ''Jobs'' AND OpAnalysisRow.Name = ''JobDefinition''),
|
|
''OpJob'', ''JobId'', ''OpMetricValue'', ''JobId'', ''LEFT OUTER JOIN'', null)';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName, JoinPKName,
|
|
BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Jobs'' AND
|
|
OpAnalysisRow.Name = ''JobDefinition''), ''OpJobDefinition'', ''JobDefinitionId'',
|
|
''OpJob'', ''JobDefinitionId'', ''LEFT OUTER JOIN'', ''COALESCE(OpJobDefinition.Name,
|
|
''''null'''')'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\nbegin\n
|
|
\ execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId, AnalysisObjectId,
|
|
MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''Startup
|
|
CPU'', ''Startup CPU'', ''seconds'', ''SUM'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId,
|
|
AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''System
|
|
CPU'', ''System CPU'', ''seconds'', ''SUM'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId,
|
|
AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''Total
|
|
CPU'', ''Total CPU'', ''seconds'', ''SUM'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId,
|
|
AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''Total
|
|
read'', ''Total read'', ''kilobytes'', ''SUM'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId,
|
|
AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''Total
|
|
read, records'', ''Total read, records'', ''records'', ''SUM'')';\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId,
|
|
AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''Total
|
|
rejected'', ''Total rejected'', ''records'', ''SUM'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId,
|
|
AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''Total
|
|
written'', ''Total written'', ''kilobytes'', ''SUM'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId,
|
|
AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''Total
|
|
written, records'', ''Total written, records'', ''records'', ''SUM'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpAnalysisAggregator(AnalysisAggregatorId, AnalysisObjectId, MetricName,
|
|
Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''), (SELECT
|
|
AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''User CPU'', ''User
|
|
CPU'', ''seconds'', ''SUM'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId,
|
|
AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''Job
|
|
Count'', ''Job Count'', ''count'', ''SUM'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId,
|
|
AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType,
|
|
AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId
|
|
FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Jobs'' AND
|
|
OpAnalysisAggregator.Name = ''Startup CPU''), ''OpMetric'', ''MetricId'', ''OpMetricValue'',
|
|
''MetricId'', ''JOIN'', ''SUM(OpMetricValue.Value)'', ''OpMetric.Name'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId, AnalysisAggregatorId, JoinTableName,
|
|
JoinPKName, BaseTableName, BaseFKName, JoinType, AggregatorSQL, SelectSQL) VALUES
|
|
(nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId FROM OpAnalysisAggregator
|
|
JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId
|
|
WHERE OpAnalysisObject.Name = ''Jobs'' AND OpAnalysisAggregator.Name = ''System
|
|
CPU''), ''OpMetric'', ''MetricId'', ''OpMetricValue'', ''MetricId'', ''JOIN'',
|
|
''SUM(OpMetricValue.Value)'', ''OpMetric.Name'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId,
|
|
AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType,
|
|
AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId
|
|
FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Jobs'' AND
|
|
OpAnalysisAggregator.Name = ''Total CPU''), ''OpMetric'', ''MetricId'', ''OpMetricValue'',
|
|
''MetricId'', ''JOIN'', ''SUM(OpMetricValue.Value)'', ''OpMetric.Name'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId, AnalysisAggregatorId, JoinTableName,
|
|
JoinPKName, BaseTableName, BaseFKName, JoinType, AggregatorSQL, SelectSQL) VALUES
|
|
(nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId FROM OpAnalysisAggregator
|
|
JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId
|
|
WHERE OpAnalysisObject.Name = ''Jobs'' AND OpAnalysisAggregator.Name = ''Total
|
|
read''), ''OpMetric'', ''MetricId'', ''OpMetricValue'', ''MetricId'', ''JOIN'',
|
|
''SUM(OpMetricValue.Value)'', ''OpMetric.Name'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId,
|
|
AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType,
|
|
AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId
|
|
FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Jobs'' AND
|
|
OpAnalysisAggregator.Name = ''Total read, records''), ''OpMetric'', ''MetricId'',
|
|
''OpMetricValue'', ''MetricId'', ''JOIN'', ''SUM(OpMetricValue.Value)'', ''OpMetric.Name'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId, AnalysisAggregatorId, JoinTableName,
|
|
JoinPKName, BaseTableName, BaseFKName, JoinType, AggregatorSQL, SelectSQL) VALUES
|
|
(nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId FROM OpAnalysisAggregator
|
|
JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId
|
|
WHERE OpAnalysisObject.Name = ''Jobs'' AND OpAnalysisAggregator.Name = ''Total
|
|
rejected''), ''OpMetric'', ''MetricId'', ''OpMetricValue'', ''MetricId'', ''JOIN'',
|
|
''SUM(OpMetricValue.Value)'', ''OpMetric.Name'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId,
|
|
AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType,
|
|
AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId
|
|
FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Jobs'' AND
|
|
OpAnalysisAggregator.Name = ''Total written''), ''OpMetric'', ''MetricId'', ''OpMetricValue'',
|
|
''MetricId'', ''JOIN'', ''SUM(OpMetricValue.Value)'', ''OpMetric.Name'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId, AnalysisAggregatorId, JoinTableName,
|
|
JoinPKName, BaseTableName, BaseFKName, JoinType, AggregatorSQL, SelectSQL) VALUES
|
|
(nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId FROM OpAnalysisAggregator
|
|
JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId
|
|
WHERE OpAnalysisObject.Name = ''Jobs'' AND OpAnalysisAggregator.Name = ''Total
|
|
written, records''), ''OpMetric'', ''MetricId'', ''OpMetricValue'', ''MetricId'',
|
|
''JOIN'', ''SUM(OpMetricValue.Value)'', ''OpMetric.Name'')';\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId,
|
|
AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType,
|
|
AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId
|
|
FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Jobs'' AND
|
|
OpAnalysisAggregator.Name = ''User CPU''), ''OpMetric'', ''MetricId'', ''OpMetricValue'',
|
|
''MetricId'', ''JOIN'', ''SUM(OpMetricValue.Value)'', ''OpMetric.Name'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId, AnalysisAggregatorId, JoinTableName,
|
|
JoinPKName, BaseTableName, BaseFKName, JoinType, AggregatorSQL, SelectSQL) VALUES
|
|
(nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId FROM OpAnalysisAggregator
|
|
JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId
|
|
WHERE OpAnalysisObject.Name = ''Jobs'' AND OpAnalysisAggregator.Name = ''Job Count''),
|
|
''OpJob'', ''JobId'', ''OpMetricValue'', ''JobId'', ''JOIN'', ''COUNT(DISTINCT
|
|
OpMetricValue.JobId)'', null)';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'INSERT INTO OpAnalysisObject (AnalysisObjectId, Name,
|
|
TableName, BucketSQL) VALUES (nextval(''hibernate_sequence''), ''Hosts'', ''OpHostMetricValue'',
|
|
''BUCKET OpHostMetricValue.CollectionTime'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisRow (AnalysisRowId,
|
|
AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisObjectId
|
|
FROM OpAnalysisObject WHERE Name = ''Hosts''), ''Hostname'')';\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisRow
|
|
(AnalysisRowId, AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Hosts''), ''Category'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpAnalysisRow (AnalysisRowId, AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Hosts''), ''OperatingSystem'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName, JoinPKName,
|
|
BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Hosts'' AND
|
|
OpAnalysisRow.Name = ''Hostname''), ''OpHostMetric'', ''HostMetricId'', ''OpHostMetricValue'',
|
|
''HostMetricId'', ''JOIN'', null)';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId,
|
|
JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES
|
|
(nextval(''hibernate_sequence''), (SELECT AnalysisRowId FROM OpAnalysisRow JOIN
|
|
OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId
|
|
WHERE OpAnalysisObject.Name = ''Hosts'' AND OpAnalysisRow.Name = ''Hostname''),
|
|
''OpHost'', ''HostId'', ''OpHostMetric'', ''HostId'', ''JOIN'', ''COALESCE(OpHost.Hostname,
|
|
''''null'''')'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\nbegin\n
|
|
\ execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName,
|
|
JoinPKName, BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Hosts'' AND
|
|
OpAnalysisRow.Name = ''Category''), ''OpHostMetric'', ''HostMetricId'', ''OpHostMetricValue'',
|
|
''HostMetricId'', ''JOIN'', null)';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId,
|
|
JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES
|
|
(nextval(''hibernate_sequence''), (SELECT AnalysisRowId FROM OpAnalysisRow JOIN
|
|
OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId
|
|
WHERE OpAnalysisObject.Name = ''Hosts'' AND OpAnalysisRow.Name = ''Category''),
|
|
''OpHost'', ''HostId'', ''OpHostMetric'', ''HostId'', ''JOIN'', ''COALESCE(OpHost.Tag,
|
|
''''null'''')'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\nbegin\n
|
|
\ execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName,
|
|
JoinPKName, BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Hosts'' AND
|
|
OpAnalysisRow.Name = ''OperatingSystem''), ''OpHostMetric'', ''HostMetricId'',
|
|
''OpHostMetricValue'', ''HostMetricId'', ''JOIN'', null)';\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId,
|
|
AnalysisRowId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType,
|
|
SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisRowId FROM
|
|
OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId
|
|
WHERE OpAnalysisObject.Name = ''Hosts'' AND OpAnalysisRow.Name = ''OperatingSystem''),
|
|
''OpHost'', ''HostId'', ''OpHostMetric'', ''HostId'', ''JOIN'', ''COALESCE(OpHost.OperatingSystem,
|
|
''''null'''')'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\nbegin\n
|
|
\ execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId, AnalysisObjectId,
|
|
MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Hosts''), ''cpuTotalUsage'',
|
|
''Average Total CPU'', ''percent'', ''AVG'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId,
|
|
AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Hosts''), ''cpuUsageIdle'',
|
|
''Average Idle CPU'', ''percent'', ''AVG'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId,
|
|
AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Hosts''), ''cpuUsageSystem'',
|
|
''Average System CPU'', ''percent'', ''AVG'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId,
|
|
AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Hosts''), ''cpuUsageUser'',
|
|
''Average User CPU'', ''percent'', ''AVG'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId,
|
|
AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Hosts''), ''cpuTotalUsage'',
|
|
''Max Total CPU'', ''percent'', ''MAX'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId,
|
|
AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Hosts''), ''cpuUsageIdle'',
|
|
''Max Idle CPU'', ''percent'', ''MAX'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId,
|
|
AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Hosts''), ''cpuUsageSystem'',
|
|
''Max System CPU'', ''percent'', ''MAX'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId,
|
|
AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Hosts''), ''cpuUsageUser'',
|
|
''Max User CPU'', ''percent'', ''MAX'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId,
|
|
AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Hosts''), ''cpuTotalUsage'',
|
|
''Min Total CPU'', ''percent'', ''MIN'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId,
|
|
AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Hosts''), ''cpuUsageIdle'',
|
|
''Min Idle CPU'', ''percent'', ''MIN'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId,
|
|
AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Hosts''), ''cpuUsageSystem'',
|
|
''Min System CPU'', ''percent'', ''MIN'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId,
|
|
AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Hosts''), ''cpuUsageUser'',
|
|
''Min User CPU'', ''percent'', ''MIN'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId,
|
|
AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType,
|
|
AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId
|
|
FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Hosts'' AND
|
|
OpAnalysisAggregator.Name = ''Average Total CPU''), ''OpHostMetric'', ''HostMetricId'',
|
|
''OpHostMetricValue'', ''HostMetricId'', ''JOIN'', ''AVG(OpHostMetricValue.Value)'',
|
|
''OpHostMetric.Name'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId,
|
|
AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType,
|
|
AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId
|
|
FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Hosts'' AND
|
|
OpAnalysisAggregator.Name = ''Average Idle CPU''), ''OpHostMetric'', ''HostMetricId'',
|
|
''OpHostMetricValue'', ''HostMetricId'', ''JOIN'', ''AVG(OpHostMetricValue.Value)'',
|
|
''OpHostMetric.Name'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId,
|
|
AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType,
|
|
AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId
|
|
FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Hosts'' AND
|
|
OpAnalysisAggregator.Name = ''Average System CPU''), ''OpHostMetric'', ''HostMetricId'',
|
|
''OpHostMetricValue'', ''HostMetricId'', ''JOIN'', ''AVG(OpHostMetricValue.Value)'',
|
|
''OpHostMetric.Name'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId,
|
|
AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType,
|
|
AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId
|
|
FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Hosts'' AND
|
|
OpAnalysisAggregator.Name = ''Average User CPU''), ''OpHostMetric'', ''HostMetricId'',
|
|
''OpHostMetricValue'', ''HostMetricId'', ''JOIN'', ''AVG(OpHostMetricValue.Value)'',
|
|
''OpHostMetric.Name'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId,
|
|
AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType,
|
|
AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId
|
|
FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Hosts'' AND
|
|
OpAnalysisAggregator.Name = ''Max Total CPU''), ''OpHostMetric'', ''HostMetricId'',
|
|
''OpHostMetricValue'', ''HostMetricId'', ''JOIN'', ''MAX(OpHostMetricValue.Value)'',
|
|
''OpHostMetric.Name'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId,
|
|
AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType,
|
|
AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId
|
|
FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Hosts'' AND
|
|
OpAnalysisAggregator.Name = ''Max Idle CPU''), ''OpHostMetric'', ''HostMetricId'',
|
|
''OpHostMetricValue'', ''HostMetricId'', ''JOIN'', ''MAX(OpHostMetricValue.Value)'',
|
|
''OpHostMetric.Name'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId,
|
|
AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType,
|
|
AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId
|
|
FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Hosts'' AND
|
|
OpAnalysisAggregator.Name = ''Max System CPU''), ''OpHostMetric'', ''HostMetricId'',
|
|
''OpHostMetricValue'', ''HostMetricId'', ''JOIN'', ''MAX(OpHostMetricValue.Value)'',
|
|
''OpHostMetric.Name'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId,
|
|
AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType,
|
|
AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId
|
|
FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Hosts'' AND
|
|
OpAnalysisAggregator.Name = ''Max User CPU''), ''OpHostMetric'', ''HostMetricId'',
|
|
''OpHostMetricValue'', ''HostMetricId'', ''JOIN'', ''MAX(OpHostMetricValue.Value)'',
|
|
''OpHostMetric.Name'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId,
|
|
AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType,
|
|
AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId
|
|
FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Hosts'' AND
|
|
OpAnalysisAggregator.Name = ''Min Total CPU''), ''OpHostMetric'', ''HostMetricId'',
|
|
''OpHostMetricValue'', ''HostMetricId'', ''JOIN'', ''MIN(OpHostMetricValue.Value)'',
|
|
''OpHostMetric.Name'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId,
|
|
AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType,
|
|
AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId
|
|
FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Hosts'' AND
|
|
OpAnalysisAggregator.Name = ''Min Idle CPU''), ''OpHostMetric'', ''HostMetricId'',
|
|
''OpHostMetricValue'', ''HostMetricId'', ''JOIN'', ''MIN(OpHostMetricValue.Value)'',
|
|
''OpHostMetric.Name'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId,
|
|
AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType,
|
|
AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId
|
|
FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Hosts'' AND
|
|
OpAnalysisAggregator.Name = ''Min System CPU''), ''OpHostMetric'', ''HostMetricId'',
|
|
''OpHostMetricValue'', ''HostMetricId'', ''JOIN'', ''MIN(OpHostMetricValue.Value)'',
|
|
''OpHostMetric.Name'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId,
|
|
AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType,
|
|
AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId
|
|
FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Hosts'' AND
|
|
OpAnalysisAggregator.Name = ''Min User CPU''), ''OpHostMetric'', ''HostMetricId'',
|
|
''OpHostMetricValue'', ''HostMetricId'', ''JOIN'', ''MIN(OpHostMetricValue.Value)'',
|
|
''OpHostMetric.Name'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'INSERT INTO OpAnalysisObject (AnalysisObjectId, Name,
|
|
TableName, BucketSQL) VALUES (nextval(''hibernate_sequence''), ''Queues'', ''OpQueueMetricValue'',
|
|
''BUCKET OpQueueMetricValue.CollectionTime'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisRow (AnalysisRowId,
|
|
AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisObjectId
|
|
FROM OpAnalysisObject WHERE Name = ''Queues''), ''QueueName'')';\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisRow
|
|
(AnalysisRowId, AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Queues''), ''Host'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpAnalysisRow (AnalysisRowId, AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Queues''), ''System'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpAnalysisRow (AnalysisRowId, AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Queues''), ''Directory'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpAnalysisRow (AnalysisRowId, AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Queues''), ''Type'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpAnalysisRow (AnalysisRowId, AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Queues''), ''Owner'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpAnalysisRow (AnalysisRowId, AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Queues''), ''Version'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName, JoinPKName,
|
|
BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Queues'' AND
|
|
OpAnalysisRow.Name = ''QueueName''), ''OpQueueMetric'', ''QueueMetricId'', ''OpQueueMetricValue'',
|
|
''QueueMetricId'', ''LEFT OUTER JOIN'', null)';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId,
|
|
AnalysisRowId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType,
|
|
SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisRowId FROM
|
|
OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId
|
|
WHERE OpAnalysisObject.Name = ''Queues'' AND OpAnalysisRow.Name = ''QueueName''),
|
|
''OpQueue'', ''QueueId'', ''OpQueueMetric'', ''QueueId'', ''JOIN'', ''COALESCE(OpQueue.Name,
|
|
''''null'''')'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\nbegin\n
|
|
\ execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName,
|
|
JoinPKName, BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Queues'' AND
|
|
OpAnalysisRow.Name = ''Host''), ''OpQueueMetric'', ''QueueMetricId'', ''OpQueueMetricValue'',
|
|
''QueueMetricId'', ''LEFT OUTER JOIN'', null)';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId,
|
|
AnalysisRowId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType,
|
|
SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisRowId FROM
|
|
OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId
|
|
WHERE OpAnalysisObject.Name = ''Queues'' AND OpAnalysisRow.Name = ''Host''), ''OpQueue'',
|
|
''QueueId'', ''OpQueueMetric'', ''QueueId'', ''JOIN'', null)';\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId,
|
|
AnalysisRowId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType,
|
|
SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisRowId FROM
|
|
OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId
|
|
WHERE OpAnalysisObject.Name = ''Queues'' AND OpAnalysisRow.Name = ''Host''), ''OpHost'',
|
|
''HostId'', ''OpQueue'', ''HostId'', ''JOIN'', ''COALESCE(OpHost.Hostname, ''''null'''')'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName, JoinPKName,
|
|
BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Queues'' AND
|
|
OpAnalysisRow.Name = ''System''), ''OpQueueMetric'', ''QueueMetricId'', ''OpQueueMetricValue'',
|
|
''QueueMetricId'', ''LEFT OUTER JOIN'', null)';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId,
|
|
AnalysisRowId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType,
|
|
SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisRowId FROM
|
|
OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId
|
|
WHERE OpAnalysisObject.Name = ''Queues'' AND OpAnalysisRow.Name = ''System''),
|
|
''OpQueue'', ''QueueId'', ''OpQueueMetric'', ''QueueId'', ''JOIN'', null)';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName, JoinPKName,
|
|
BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Queues'' AND
|
|
OpAnalysisRow.Name = ''System''), ''OpSystem'', ''SystemId'', ''OpQueue'', ''SystemId'',
|
|
''JOIN'', ''COALESCE(OpSystem.Name, ''''null'''')'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId,
|
|
AnalysisRowId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType,
|
|
SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisRowId FROM
|
|
OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId
|
|
WHERE OpAnalysisObject.Name = ''Queues'' AND OpAnalysisRow.Name = ''Directory''),
|
|
''OpQueueMetric'', ''QueueMetricId'', ''OpQueueMetricValue'', ''QueueMetricId'',
|
|
''LEFT OUTER JOIN'', null)';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId,
|
|
JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES
|
|
(nextval(''hibernate_sequence''), (SELECT AnalysisRowId FROM OpAnalysisRow JOIN
|
|
OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId
|
|
WHERE OpAnalysisObject.Name = ''Queues'' AND OpAnalysisRow.Name = ''Directory''),
|
|
''OpQueue'', ''QueueId'', ''OpQueueMetric'', ''QueueId'', ''JOIN'', ''COALESCE(OpQueue.Directory,
|
|
''''null'''')'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\nbegin\n
|
|
\ execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName,
|
|
JoinPKName, BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Queues'' AND
|
|
OpAnalysisRow.Name = ''Type''), ''OpQueueMetric'', ''QueueMetricId'', ''OpQueueMetricValue'',
|
|
''QueueMetricId'', ''LEFT OUTER JOIN'', null)';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId,
|
|
AnalysisRowId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType,
|
|
SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisRowId FROM
|
|
OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId
|
|
WHERE OpAnalysisObject.Name = ''Queues'' AND OpAnalysisRow.Name = ''Type''), ''OpQueue'',
|
|
''QueueId'', ''OpQueueMetric'', ''QueueId'', ''JOIN'', ''COALESCE(OpQueue.QueueType,
|
|
''''null'''')'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\nbegin\n
|
|
\ execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName,
|
|
JoinPKName, BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Queues'' AND
|
|
OpAnalysisRow.Name = ''Owner''), ''OpQueueMetric'', ''QueueMetricId'', ''OpQueueMetricValue'',
|
|
''QueueMetricId'', ''LEFT OUTER JOIN'', null)';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId,
|
|
AnalysisRowId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType,
|
|
SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisRowId FROM
|
|
OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId
|
|
WHERE OpAnalysisObject.Name = ''Queues'' AND OpAnalysisRow.Name = ''Owner''),
|
|
''OpQueue'', ''QueueId'', ''OpQueueMetric'', ''QueueId'', ''JOIN'', ''COALESCE(OpQueue.Owner,
|
|
''''null'''')'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\nbegin\n
|
|
\ execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName,
|
|
JoinPKName, BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Queues'' AND
|
|
OpAnalysisRow.Name = ''Version''), ''OpQueueMetric'', ''QueueMetricId'', ''OpQueueMetricValue'',
|
|
''QueueMetricId'', ''LEFT OUTER JOIN'', null)';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId,
|
|
AnalysisRowId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType,
|
|
SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisRowId FROM
|
|
OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId
|
|
WHERE OpAnalysisObject.Name = ''Queues'' AND OpAnalysisRow.Name = ''Version''),
|
|
''OpQueue'', ''QueueId'', ''OpQueueMetric'', ''QueueId'', ''JOIN'', ''COALESCE(OpQueue.QueueVersion,
|
|
-1)'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpAnalysisAggregator(AnalysisAggregatorId, AnalysisObjectId, MetricName,
|
|
Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''), (SELECT
|
|
AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Queues''), ''MAX_DISK_SPACE'',
|
|
''Max Disk Space'', ''bytes'', ''MAX'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId,
|
|
AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Queues''), ''MAX_FILES'',
|
|
''Max Files'', ''count'', ''MAX'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId,
|
|
AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Queues''), ''MAX_READ_COLLECTION_DELTA'',
|
|
''Max Read Collection Delta'', ''seconds'', ''MAX'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId,
|
|
AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Queues''), ''MAX_RECORDS'',
|
|
''Max Records'', ''count'', ''MAX'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId,
|
|
AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Queues''), ''MAX_RECORDS_SPACE'',
|
|
''Max Records Space'', ''percent'', ''MAX'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId,
|
|
AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''),
|
|
\ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Queues''), ''WRITE_COLLECTION_DELTA'',
|
|
''Write Collection Delta'', ''seconds'', ''MAX'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId,
|
|
AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType,
|
|
AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId
|
|
FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Queues'' AND
|
|
OpAnalysisAggregator.Name = ''Max Disk Space''), ''OpQueueMetric'', ''QueueMetricId'',
|
|
''OpQueueMetricValue'', ''QueueMetricId'', ''JOIN'', ''MAX(OpQueueMetricValue.Value)'',
|
|
''OpQueueMetric.MetricEnum'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId,
|
|
AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType,
|
|
AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId
|
|
FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Queues'' AND
|
|
OpAnalysisAggregator.Name = ''Max Files''), ''OpQueueMetric'', ''QueueMetricId'',
|
|
''OpQueueMetricValue'', ''QueueMetricId'', ''JOIN'', ''MAX(OpQueueMetricValue.Value)'',
|
|
''OpQueueMetric.MetricEnum'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId,
|
|
AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType,
|
|
AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId
|
|
FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Queues'' AND
|
|
OpAnalysisAggregator.Name = ''Max Read Collection Delta''), ''OpQueueMetric'',
|
|
''QueueMetricId'', ''OpQueueMetricValue'', ''QueueMetricId'', ''JOIN'', ''MAX(OpQueueMetricValue.Value)'',
|
|
''OpQueueMetric.MetricEnum'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId,
|
|
AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType,
|
|
AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId
|
|
FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Queues'' AND
|
|
OpAnalysisAggregator.Name = ''Max Records''), ''OpQueueMetric'', ''QueueMetricId'',
|
|
''OpQueueMetricValue'', ''QueueMetricId'', ''JOIN'', ''MAX(OpQueueMetricValue.Value)'',
|
|
''OpQueueMetric.MetricEnum'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId,
|
|
AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType,
|
|
AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId
|
|
FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Queues'' AND
|
|
OpAnalysisAggregator.Name = ''Max Records Space''), ''OpQueueMetric'', ''QueueMetricId'',
|
|
''OpQueueMetricValue'', ''QueueMetricId'', ''JOIN'', ''MAX(OpQueueMetricValue.Value)'',
|
|
''OpQueueMetric.MetricEnum'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId,
|
|
AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType,
|
|
AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId
|
|
FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId
|
|
= OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Queues'' AND
|
|
OpAnalysisAggregator.Name = ''Write Collection Delta''), ''OpQueueMetric'', ''QueueMetricId'',
|
|
''OpQueueMetricValue'', ''QueueMetricId'', ''JOIN'', ''MAX(OpQueueMetricValue.Value)'',
|
|
''OpQueueMetric.MetricEnum'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\n-- ---------------------------------------------------\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'insert
|
|
into OpPrincipal (PrincipalId, PrincipalDiscriminator, Name, LCName, IsEnabled,
|
|
IsBuiltin, DisplayName) values (nextval(''hibernate_sequence''), ''GROUP'', ''Admins'',
|
|
''admins'', ''Y'', ''N'', ''Admins'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator,
|
|
Name, LCName, IsEnabled, IsBuiltin, DisplayName) values (nextval(''hibernate_sequence''),
|
|
''GROUP'', ''Account Admins'', ''account admins'', ''Y'', ''N'', ''Account Administration'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'insert
|
|
into OpPrincipal (PrincipalId, PrincipalDiscriminator, Name, LCName, IsEnabled,
|
|
IsBuiltin, DisplayName) values (nextval(''hibernate_sequence''), ''GROUP'', ''Environment
|
|
Admins'', ''environment admins'', ''Y'', ''N'', ''Environment Configuration Administration'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'insert
|
|
into OpPrincipal (PrincipalId, PrincipalDiscriminator, Name, LCName, IsEnabled,
|
|
IsBuiltin, DisplayName) values (nextval(''hibernate_sequence''), ''GROUP'', ''Jobs
|
|
Monitors (DEFAULT)'', ''jobs monitors (default)'', ''Y'', ''N'', ''Jobs Monitors
|
|
(DEFAULT)'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\nbegin\n
|
|
\ execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator, Name,
|
|
LCName, IsEnabled, IsBuiltin, DisplayName) values (nextval(''hibernate_sequence''),
|
|
''GROUP'', ''Jobs Operators (DEFAULT)'', ''jobs operators (default)'', ''Y'',
|
|
''N'', ''Jobs Operators (DEFAULT)'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator,
|
|
Name, LCName, IsEnabled, IsBuiltin, DisplayName) values (nextval(''hibernate_sequence''),
|
|
''GROUP'', ''Jobs Schedulers (DEFAULT)'', ''jobs schedulers (default)'', ''Y'',
|
|
''N'', ''Jobs Schedulers (DEFAULT)'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator,
|
|
Name, LCName, IsEnabled, IsBuiltin, DisplayName) values (nextval(''hibernate_sequence''),
|
|
''GROUP'', ''Jobs Approvers (DEFAULT)'', ''jobs approvers (default)'', ''Y'',
|
|
''N'', ''Jobs Approvers (DEFAULT)'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator,
|
|
Name, LCName, IsEnabled, IsBuiltin, DisplayName) values (nextval(''hibernate_sequence''),
|
|
''GROUP'', ''Jobs System Admins (DEFAULT)'', ''jobs system admins (default)'',
|
|
''Y'', ''N'', ''Jobs System Admins (DEFAULT)'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator,
|
|
Name, LCName, IsEnabled, IsBuiltin, DisplayName) values (nextval(''hibernate_sequence''),
|
|
''GROUP'', ''Host Monitors'', ''host monitors'', ''Y'', ''N'', ''Host Monitors'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'insert
|
|
into OpPrincipal (PrincipalId, PrincipalDiscriminator, Name, LCName, IsEnabled,
|
|
IsBuiltin, DisplayName) values (nextval(''hibernate_sequence''), ''GROUP'', ''Host
|
|
Admins'', ''host admins'', ''Y'', ''N'', ''Host Admins'')';\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\nbegin\n execute E'insert into OpPrincipal
|
|
(PrincipalId, PrincipalDiscriminator, Name, LCName, IsEnabled, IsBuiltin, DisplayName)
|
|
values (nextval(''hibernate_sequence''), ''GROUP'', ''Product Monitors'', ''product
|
|
monitors'', ''Y'', ''N'', ''Product Monitors'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator,
|
|
Name, LCName, IsEnabled, IsBuiltin, DisplayName) values (nextval(''hibernate_sequence''),
|
|
''GROUP'', ''Product Operators'', ''product operators'', ''Y'', ''N'', ''Product
|
|
Operators'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\nbegin\n
|
|
\ execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator, Name,
|
|
LCName, IsEnabled, IsBuiltin, DisplayName) values (nextval(''hibernate_sequence''),
|
|
''GROUP'', ''Product Admins'', ''product admins'', ''Y'', ''N'', ''Product Admins'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'insert
|
|
into OpPrivilege (PrivilegeId, PrincipalId, RoleEnum) select nextval(''hibernate_sequence''),
|
|
P.PrincipalId, ''ROLE_OP_ADMIN'' from OpPrincipal P where P.Name = ''Admins''';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'insert
|
|
into OpPrivilege (PrivilegeId, PrincipalId, RoleEnum) select nextval(''hibernate_sequence''),
|
|
P.PrincipalId, ''ROLE_OP_ACCOUNT_ADMIN'' from OpPrincipal P where P.Name = ''Account
|
|
Admins''';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'insert
|
|
into OpPrivilege (PrivilegeId, PrincipalId, RoleEnum) select nextval(''hibernate_sequence''),
|
|
P.PrincipalId, ''ROLE_OP_ENV_ADMIN'' from OpPrincipal P where P.Name = ''Environment
|
|
Admins''';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'insert
|
|
into OpPrivilege (PrivilegeId, PrincipalId, RoleEnum) select nextval(''hibernate_sequence''),
|
|
P.PrincipalId, ''ROLE_OP_HOST_MONITOR'' from OpPrincipal P where P.Name = ''Host
|
|
Monitors''';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'insert
|
|
into OpPrivilege (PrivilegeId, PrincipalId, RoleEnum) select nextval(''hibernate_sequence''),
|
|
P.PrincipalId, ''ROLE_OP_COMPUTER_KEY_ADMIN'' from OpPrincipal P where P.Name
|
|
= ''Host Admins''';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\nbegin\n
|
|
\ execute E'insert into OpPrivilege (PrivilegeId, PrincipalId, RoleEnum) select
|
|
nextval(''hibernate_sequence''), P.PrincipalId, ''ROLE_OP_HOST_ADMIN'' from OpPrincipal
|
|
P where P.Name = ''Host Admins''';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'insert into OpPrivilege (PrivilegeId, PrincipalId, RoleEnum)
|
|
select nextval(''hibernate_sequence''), P.PrincipalId, ''ROLE_OP_PRODUCT_MONITOR''
|
|
from OpPrincipal P where P.Name = ''Product Monitors''';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpPrivilege (PrivilegeId, PrincipalId,
|
|
RoleEnum) select nextval(''hibernate_sequence''), P.PrincipalId, ''ROLE_OP_PRODUCT_OPERATOR''
|
|
from OpPrincipal P where P.Name = ''Product Operators''';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpPrivilege (PrivilegeId, PrincipalId,
|
|
RoleEnum) select nextval(''hibernate_sequence''), P.PrincipalId, ''ROLE_OP_USER_KEY_ADMIN''
|
|
from OpPrincipal P where P.Name = ''Product Admins''';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpPrivilege (PrivilegeId, PrincipalId,
|
|
RoleEnum) select nextval(''hibernate_sequence''), P.PrincipalId, ''ROLE_OP_PRODUCT_ADMIN''
|
|
from OpPrincipal P where P.Name = ''Product Admins''';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n default_system integer;\nbegin\n select SystemId
|
|
into default_system from OpSystem where name = 'DEFAULT';\n execute E'insert
|
|
into OpPrivilege (PrivilegeId, PrincipalId, RoleEnum, SystemId) select nextval(''hibernate_sequence''),
|
|
P.PrincipalId, ''ROLE_OP_OPERATOR'', ' || default_system || ' from OpPrincipal
|
|
P where P.Name = ''Jobs Operators (DEFAULT)''';\n execute E'insert into OpPrivilege
|
|
(PrivilegeId, PrincipalId, RoleEnum, SystemId) select nextval(''hibernate_sequence''),
|
|
P.PrincipalId, ''ROLE_OP_MONITOR'', ' || default_system || ' from OpPrincipal
|
|
P where P.Name = ''Jobs Monitors (DEFAULT)''';\n execute E'insert into OpPrivilege
|
|
(PrivilegeId, PrincipalId, RoleEnum, SystemId) select nextval(''hibernate_sequence''),
|
|
P.PrincipalId, ''ROLE_OP_DATA_VIEWER'', ' || default_system || ' from OpPrincipal
|
|
P where P.Name = ''Jobs Monitors (DEFAULT)''';\n execute E'insert into OpPrivilege
|
|
(PrivilegeId, PrincipalId, RoleEnum, SystemId) select nextval(''hibernate_sequence''),
|
|
P.PrincipalId, ''ROLE_OP_SCHEDULER'', ' || default_system || ' from OpPrincipal
|
|
P where P.Name = ''Jobs Schedulers (DEFAULT)''';\n execute E'insert into OpPrivilege
|
|
(PrivilegeId, PrincipalId, RoleEnum, SystemId) select nextval(''hibernate_sequence''),
|
|
P.PrincipalId, ''ROLE_OP_DATA_EDITOR'', ' || default_system || ' from OpPrincipal
|
|
P where P.Name = ''Jobs Schedulers (DEFAULT)''';\n execute E'insert into OpPrivilege
|
|
(PrivilegeId, PrincipalId, RoleEnum, SystemId) select nextval(''hibernate_sequence''),
|
|
P.PrincipalId, ''ROLE_OP_APPROVER'', ' || default_system || ' from OpPrincipal
|
|
P where P.Name = ''Jobs Approvers (DEFAULT)''';\n execute E'insert into OpPrivilege
|
|
(PrivilegeId, PrincipalId, RoleEnum, SystemId) select nextval(''hibernate_sequence''),
|
|
P.PrincipalId, ''ROLE_OP_SYSTEM_ADMIN'', ' || default_system || ' from OpPrincipal
|
|
P where P.Name = ''Jobs System Admins (DEFAULT)''';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator,
|
|
Name, LCName, IsEnabled, IsBuiltin) values (nextval(''hibernate_sequence''), ''USER'',
|
|
''ocagent'', ''ocagent'', ''Y'', ''Y'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator,
|
|
Name, LCName, IsEnabled, IsBuiltin) values (nextval(''hibernate_sequence''), ''USER'',
|
|
''admin'', ''admin'', ''N'', ''N'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator,
|
|
Name, LCName, IsEnabled, IsBuiltin) values (nextval(''hibernate_sequence''), ''USER'',
|
|
''accountAdmin'', ''accountadmin'', ''N'', ''N'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator,
|
|
Name, LCName, IsEnabled, IsBuiltin) values (nextval(''hibernate_sequence''), ''USER'',
|
|
''envAdmin'', ''envadmin'', ''N'', ''N'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator,
|
|
Name, LCName, IsEnabled, IsBuiltin) values (nextval(''hibernate_sequence''), ''USER'',
|
|
''monitor'', ''monitor'', ''N'', ''N'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator,
|
|
Name, LCName, IsEnabled, IsBuiltin) values (nextval(''hibernate_sequence''), ''USER'',
|
|
''operator'', ''operator'', ''N'', ''N'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator,
|
|
Name, LCName, IsEnabled, IsBuiltin) values (nextval(''hibernate_sequence''), ''USER'',
|
|
''scheduler'', ''scheduler'', ''N'', ''N'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator,
|
|
Name, LCName, IsEnabled, IsBuiltin) values (nextval(''hibernate_sequence''), ''USER'',
|
|
''approver'', ''approver'', ''N'', ''N'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator,
|
|
Name, LCName, IsEnabled, IsBuiltin) values (nextval(''hibernate_sequence''), ''USER'',
|
|
''sysAdmin'', ''sysadmin'', ''N'', ''N'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator,
|
|
Name, LCName, IsEnabled, IsBuiltin) values (nextval(''hibernate_sequence''), ''USER'',
|
|
''hostMonitor'', ''hostmonitor'', ''N'', ''N'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator,
|
|
Name, LCName, IsEnabled, IsBuiltin) values (nextval(''hibernate_sequence''), ''USER'',
|
|
''hostAdmin'', ''hostadmin'', ''N'', ''N'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator,
|
|
Name, LCName, IsEnabled, IsBuiltin) values (nextval(''hibernate_sequence''), ''USER'',
|
|
''productMonitor'', ''productmonitor'', ''N'', ''N'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator,
|
|
Name, LCName, IsEnabled, IsBuiltin) values (nextval(''hibernate_sequence''), ''USER'',
|
|
''productOperator'', ''productoperator'', ''N'', ''N'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator,
|
|
Name, LCName, IsEnabled, IsBuiltin) values (nextval(''hibernate_sequence''), ''USER'',
|
|
''productAdmin'', ''productadmin'', ''N'', ''N'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator,
|
|
Name, LCName, IsEnabled, IsBuiltin) values (nextval(''hibernate_sequence''), ''USER'',
|
|
''analyst'', ''analyst'', ''N'', ''N'')';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpPrivilege (PrivilegeId, PrincipalId,
|
|
RoleEnum) select nextval(''hibernate_sequence''), P.PrincipalId, ''ROLE_OP_OCAGENT''
|
|
from OpPrincipal P where P.Name = ''ocagent''';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpPrivilege (PrivilegeId, PrincipalId,
|
|
RoleEnum) select nextval(''hibernate_sequence''), P.PrincipalId, ''ROLE_OP_ANALYST''
|
|
from OpPrincipal P where P.Name = ''analyst''';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpGroupXref (ChildPrincipalId,
|
|
ParentGroupId) select C.PrincipalId, P.PrincipalId from OpPrincipal C, OpPrincipal
|
|
P where C.Name = ''admin'' and P.Name = ''Admins''';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpGroupXref (ChildPrincipalId,
|
|
ParentGroupId) select C.PrincipalId, P.PrincipalId from OpPrincipal C, OpPrincipal
|
|
P where C.Name = ''accountAdmin'' and P.Name = ''Account Admins''';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'insert
|
|
into OpGroupXref (ChildPrincipalId, ParentGroupId) select C.PrincipalId, P.PrincipalId
|
|
from OpPrincipal C, OpPrincipal P where C.Name = ''envAdmin'' and P.Name = ''Environment
|
|
Admins''';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'insert
|
|
into OpGroupXref (ChildPrincipalId, ParentGroupId) select C.PrincipalId, P.PrincipalId
|
|
from OpPrincipal C, OpPrincipal P where C.Name = ''monitor'' and P.Name = ''Jobs
|
|
Monitors (DEFAULT)''';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'insert into OpGroupXref (ChildPrincipalId, ParentGroupId)
|
|
select C.PrincipalId, P.PrincipalId from OpPrincipal C, OpPrincipal P where C.Name
|
|
= ''operator'' and P.Name = ''Jobs Operators (DEFAULT)''';\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\nbegin\n execute E'insert into OpGroupXref
|
|
(ChildPrincipalId, ParentGroupId) select C.PrincipalId, P.PrincipalId from OpPrincipal
|
|
C, OpPrincipal P where C.Name = ''scheduler'' and P.Name = ''Jobs Schedulers (DEFAULT)''';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'insert
|
|
into OpGroupXref (ChildPrincipalId, ParentGroupId) select C.PrincipalId, P.PrincipalId
|
|
from OpPrincipal C, OpPrincipal P where C.Name = ''approver'' and P.Name = ''Jobs
|
|
Approvers (DEFAULT)''';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'insert into OpGroupXref (ChildPrincipalId, ParentGroupId)
|
|
select C.PrincipalId, P.PrincipalId from OpPrincipal C, OpPrincipal P where C.Name
|
|
= ''sysAdmin'' and P.Name = ''Jobs System Admins (DEFAULT)''';\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\nbegin\n execute E'insert into OpGroupXref
|
|
(ChildPrincipalId, ParentGroupId) select C.PrincipalId, P.PrincipalId from OpPrincipal
|
|
C, OpPrincipal P where C.Name = ''hostMonitor'' and P.Name = ''Host Monitors''';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'insert
|
|
into OpGroupXref (ChildPrincipalId, ParentGroupId) select C.PrincipalId, P.PrincipalId
|
|
from OpPrincipal C, OpPrincipal P where C.Name = ''hostAdmin'' and P.Name = ''Host
|
|
Admins''';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'insert
|
|
into OpGroupXref (ChildPrincipalId, ParentGroupId) select C.PrincipalId, P.PrincipalId
|
|
from OpPrincipal C, OpPrincipal P where C.Name = ''productMonitor'' and P.Name
|
|
= ''Product Monitors''';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\nbegin\n execute E'insert into OpGroupXref (ChildPrincipalId, ParentGroupId)
|
|
select C.PrincipalId, P.PrincipalId from OpPrincipal C, OpPrincipal P where C.Name
|
|
= ''productOperator'' and P.Name = ''Product Operators''';\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\nbegin\n execute E'insert into OpGroupXref
|
|
(ChildPrincipalId, ParentGroupId) select C.PrincipalId, P.PrincipalId from OpPrincipal
|
|
C, OpPrincipal P where C.Name = ''productAdmin'' and P.Name = ''Product Admins''';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\n-- ---------------------------------------------------\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'insert
|
|
into OpCalendar (CalendarId, SystemId, Name) select nextval(''hibernate_sequence''),
|
|
\ SystemId, ''Everyday Calendar'' from OpSystem where Name = ''DEFAULT''';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'insert
|
|
into OpCalendar (CalendarId, SystemId, Name) select nextval(''hibernate_sequence''),
|
|
\ SystemId, ''Weekdays Calendar'' from OpSystem where Name = ''DEFAULT''';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'insert
|
|
into OpCalendar (CalendarId, SystemId, Name) select nextval(''hibernate_sequence''),
|
|
\ SystemId, ''Workdays Calendar'' from OpSystem where Name = ''DEFAULT''';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'insert
|
|
into OpCalendarYear (CalendarId, Days, Year) select CalendarId, ''111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'',
|
|
2023 from OpCalendar where Name = ''Everyday Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpCalendarYear (CalendarId,
|
|
Days, Year) select CalendarId, ''011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001'',
|
|
2023 from OpCalendar where Name = ''Weekdays Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpCalendarYear (CalendarId,
|
|
Days, Year) select CalendarId, ''001111001111100111110011111001111100111110011111000111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110001111001111100111110011111001111100101110011111001111100111110011111001111100111110011111001111100011110011111001111100111110011111001111100111110011111001111100111110011111001110000111110011111001111100111110001111000'',
|
|
2023 from OpCalendar where Name = ''Workdays Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpCalendarYear (CalendarId,
|
|
Days, Year) select CalendarId, ''111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'',
|
|
2024 from OpCalendar where Name = ''Everyday Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpCalendarYear (CalendarId,
|
|
Days, Year) select CalendarId, ''111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011'',
|
|
2024 from OpCalendar where Name = ''Weekdays Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpCalendarYear (CalendarId,
|
|
Days, Year) select CalendarId, ''011110011111001111100111110011111001111100111110001111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100011110011111001111100111110011111001110100111110011111001111100111110011111001111100111110011111000111100111110011111001111100111110011111001111100111110011111001111100111110011111001110000111110011111001111100110110011'',
|
|
2024 from OpCalendar where Name = ''Workdays Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpCalendarYear (CalendarId,
|
|
Days, Year) select CalendarId, ''111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'',
|
|
2025 from OpCalendar where Name = ''Everyday Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpCalendarYear (CalendarId,
|
|
Days, Year) select CalendarId, ''111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111'',
|
|
2025 from OpCalendar where Name = ''Weekdays Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpCalendarYear (CalendarId,
|
|
Days, Year) select CalendarId, ''011001111100111110011111001111100111110011111000111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110001111001111100111110011111001111100111100011111001111100111110011111001111100111110011111001111100011110011111001111100111110011111001111100111110011111001111100111110011111001111100111000011111001111100111110011101001110'',
|
|
2025 from OpCalendar where Name = ''Workdays Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpCalendarYear (CalendarId,
|
|
Days, Year) select CalendarId, ''111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'',
|
|
2026 from OpCalendar where Name = ''Everyday Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpCalendarYear (CalendarId,
|
|
Days, Year) select CalendarId, ''110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111'',
|
|
2026 from OpCalendar where Name = ''Weekdays Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpCalendarYear (CalendarId,
|
|
Days, Year) select CalendarId, ''010011111001111100111110011111001111100111110001111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100011110011111001111100111110011111001111000111110011111001111100111110011111001111100111110011111001111100011110011111001111100111110011111001111100111110011111001111100111110011111001110000111110011111001111100111100011110'',
|
|
2026 from OpCalendar where Name = ''Workdays Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpCalendarYear (CalendarId,
|
|
Days, Year) select CalendarId, ''111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'',
|
|
2027 from OpCalendar where Name = ''Everyday Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpCalendarYear (CalendarId,
|
|
Days, Year) select CalendarId, ''100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110'',
|
|
2027 from OpCalendar where Name = ''Weekdays Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpCalendarYear (CalendarId,
|
|
Days, Year) select CalendarId, ''000111110011111001111100111110011111001111100011110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100011110011111001111100111110011111000111100111110011111001111100111110011111001111100111110011111000111100111110011111001111100111110011111001111100111110011111001111100111110011100001111100111110011111001111000111100'',
|
|
2027 from OpCalendar where Name = ''Workdays Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpCalendarYear (CalendarId,
|
|
Days, Year) select CalendarId, ''111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'',
|
|
2028 from OpCalendar where Name = ''Everyday Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpCalendarYear (CalendarId,
|
|
Days, Year) select CalendarId, ''001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100'',
|
|
2028 from OpCalendar where Name = ''Weekdays Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\nbegin\n execute E'insert into OpCalendarYear (CalendarId,
|
|
Days, Year) select CalendarId, ''001111100111110011111001111100111110011111001111100011110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111000111100111110011111001111100111110010111001111100111110011111001111100111110011111001111100111110001111001111100111110011111001111100111110011111001111100111110011111001111100111000011111001111100111110011111000111100'',
|
|
2028 from OpCalendar where Name = ''Workdays Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\n-- ---------------------------------------------------\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'client.analysisArea.maxDays';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''The maximum number of days over which the Control>Center
|
|
can perform an analysis. Default: 31'' WHERE Name = ''client.analysisArea.maxDays''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.analysisArea.maxDays'',
|
|
''The maximum number of days over which the Control>Center can perform an analysis.
|
|
Default: 31'', ''INTEGER'', ''31'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'client.analysisArea.chart.maxColumns';\n if
|
|
(cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''The maximum number of columns that the Control>Center
|
|
can display in the Analysis area Timeline chart. Default: 48'' WHERE Name = ''client.analysisArea.chart.maxColumns''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.analysisArea.chart.maxColumns'',
|
|
''The maximum number of columns that the Control>Center can display in the Analysis
|
|
area Timeline chart. Default: 48'', ''INTEGER'', ''48'', ''N'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'client.analysisArea.chart.minColumnWidthSecs';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''The minimum width in seconds of a column in
|
|
the Analysis area Timeline chart. Default: 86400 (1 day)'' WHERE Name = ''client.analysisArea.chart.minColumnWidthSecs''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.analysisArea.chart.minColumnWidthSecs'',
|
|
''The minimum width in seconds of a column in the Analysis area Timeline chart.
|
|
\ Default: 86400 (1 day)'', ''INTEGER'', ''86400'', ''N'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'client.analysisArea.chart.displayGapMinutes';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''The maximum number of minutes between metric
|
|
line graph data points that should be regarded as continuous. Larger intervals
|
|
result in the display of gaps. Default: 10'' WHERE Name = ''client.analysisArea.chart.displayGapMinutes''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.analysisArea.chart.displayGapMinutes'',
|
|
''The maximum number of minutes between metric line graph data points that should
|
|
be regarded as continuous. Larger intervals result in the display of gaps. Default:
|
|
10'', ''INTEGER'', ''10'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'client.apiDoc.enabled';\n if (cnt > 0) then\n
|
|
\ execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden =
|
|
''N'', Description = ''Enables API documentation page. Default: 1'' WHERE Name
|
|
= ''client.apiDoc.enabled''';\n else\n execute E'INSERT INTO OpConfigValue
|
|
(ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''client.apiDoc.enabled'', ''Enables API documentation page. Default: 1'', ''INTEGER'',
|
|
''1'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'client.products.visible';\n if (cnt > 0) then\n execute E'UPDATE
|
|
OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description =
|
|
''When 0, this hides the products page button from the navigation bar and excludes
|
|
some products from appearing on the home area. Default: 0'' WHERE Name = ''client.products.visible''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.products.visible'',
|
|
''When 0, this hides the products page button from the navigation bar and excludes
|
|
some products from appearing on the home area. Default: 0'', ''INTEGER'', ''0'',
|
|
''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue where Name
|
|
= 'client.analysis.visible';\n if (cnt > 0) then\n execute E'UPDATE OpConfigValue
|
|
SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description = ''When 0, this
|
|
hides the analysis page button from the navigation bar. Default: 0'' WHERE Name
|
|
= ''client.analysis.visible''';\n else\n execute E'INSERT INTO OpConfigValue
|
|
(ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''client.analysis.visible'', ''When 0, this hides the analysis page button from
|
|
the navigation bar. Default: 0'', ''INTEGER'', ''0'', ''N'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'client.automatedJobGeneration.allowPerApplication';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Allows you to disable automated job generation
|
|
on a particular application in systems where automated job generation is enabled.
|
|
Default: 0'' WHERE Name = ''client.automatedJobGeneration.allowPerApplication''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.automatedJobGeneration.allowPerApplication'',
|
|
''Allows you to disable automated job generation on a particular application in
|
|
systems where automated job generation is enabled. Default: 0'', ''INTEGER'',
|
|
''0'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'client.configParamUnlock';\n if (cnt > 0) then\n execute E'UPDATE
|
|
OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description =
|
|
''Control to limit configuration parameter access: 0 - no access, 1 - edit values,
|
|
2 - full control, including creating and deleting parameters. Default: 1'' WHERE
|
|
Name = ''client.configParamUnlock''';\n else\n execute E'INSERT INTO OpConfigValue
|
|
(ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''client.configParamUnlock'', ''Control to limit configuration parameter access:
|
|
0 - no access, 1 - edit values, 2 - full control, including creating and deleting
|
|
parameters. Default: 1'', ''INTEGER'', ''1'', ''N'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpConfigValue where Name = 'client.dailyJobs.findJob.enabled';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Allows users to find a job across systems. Default
|
|
1'' WHERE Name = ''client.dailyJobs.findJob.enabled''';\n else\n execute E'INSERT
|
|
INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden)
|
|
VALUES (nextval(''hibernate_sequence''), ''client.dailyJobs.findJob.enabled'',
|
|
''Allows users to find a job across systems. Default 1'', ''INTEGER'', ''1'',
|
|
''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue where Name
|
|
= 'client.disableParameterEval';\n if (cnt > 0) then\n execute E'UPDATE OpConfigValue
|
|
SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description = ''When set to
|
|
1, disables viewing of a graph or plan where viewing would cause a re-evaluation
|
|
of the graph or plan''''s parameters. Default: 0'' WHERE Name = ''client.disableParameterEval''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.disableParameterEval'',
|
|
''When set to 1, disables viewing of a graph or plan where viewing would cause
|
|
a re-evaluation of the graph or plan''''s parameters. Default: 0'', ''INTEGER'',
|
|
''0'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'client.excludeJobColumns';\n if (cnt > 0) then\n execute E'UPDATE
|
|
OpConfigValue SET ValueTypeEnum = ''STRING'', IsHidden = ''N'', Description =
|
|
''Comma-delimited list of columns to exclude from the Daily Jobs Area.'' WHERE
|
|
Name = ''client.excludeJobColumns''';\n else\n execute E'INSERT INTO OpConfigValue
|
|
(ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''client.excludeJobColumns'', ''Comma-delimited list of columns to exclude from
|
|
the Daily Jobs Area.'', ''STRING'', ''End,Host Cluster,Job Definition,Job Definition
|
|
Group,Job GUID'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'client.excludeJobsWithIssuesListColumns';\n if (cnt > 0) then\n
|
|
\ execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'', IsHidden =
|
|
''N'', Description = ''Comma-delimited list of columns to exclude from the Jobs
|
|
list in the Jobs Overview for All Systems sub-area. Default: <blank>'' WHERE Name
|
|
= ''client.excludeJobsWithIssuesListColumns''';\n else\n execute E'INSERT
|
|
INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden)
|
|
VALUES (nextval(''hibernate_sequence''), ''client.excludeJobsWithIssuesListColumns'',
|
|
''Comma-delimited list of columns to exclude from the Jobs list in the Jobs Overview
|
|
for All Systems sub-area. Default: <blank>'', ''STRING'', '''', ''N'')';\n end
|
|
if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'client.groupByAlso.job';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'',
|
|
IsHidden = ''Y'', Description = ''FOR INTERNAL USE ONLY. Choices for the Daily
|
|
Jobs sub-areas Group by menus. Comma-delimited list of <label>:<OpJobPropertyView
|
|
expression>. Default: Application:application.name,Status:status.label,Progress:status.coarseLabel,Issues:highestEventSeverityEnum.label,Predicted
|
|
issues:highestPredictedIssueSeverityEnum.predictedLabel,Host cluster:hostClusterName,Host:hostname,User:username,Type:executableEnum.label,Working
|
|
directory:workingDirectory,AB_WORK_DIR:abWorkDir,AB_HOME:abHome,Job definition
|
|
group:jobDefinitionGroupName,Manually generated:testSetDescription'' WHERE Name
|
|
= ''client.groupByAlso.job''';\n else\n execute E'INSERT INTO OpConfigValue
|
|
(ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''client.groupByAlso.job'', ''FOR INTERNAL USE ONLY. Choices for the Daily Jobs
|
|
sub-areas Group by menus. Comma-delimited list of <label>:<OpJobPropertyView expression>.
|
|
Default: Application:application.name,Status:status.label,Progress:status.coarseLabel,Issues:highestEventSeverityEnum.label,Predicted
|
|
issues:highestPredictedIssueSeverityEnum.predictedLabel,Host cluster:hostClusterName,Host:hostname,User:username,Type:executableEnum.label,Working
|
|
directory:workingDirectory,AB_WORK_DIR:abWorkDir,AB_HOME:abHome,Job definition
|
|
group:jobDefinitionGroupName,Manually generated:testSetDescription'', ''STRING'',
|
|
''Application:application.name,Status:status.label,Progress:status.coarseLabel,Issues:highestEventSeverityEnum.label,Predicted
|
|
issues:highestPredictedIssueSeverityEnum.predictedLabel,Host cluster:hostClusterName,Host:hostname,User:username,Type:executableEnum.label,Working
|
|
directory:workingDirectory,AB_WORK_DIR:abWorkDir,AB_HOME:abHome,Job definition
|
|
group:jobDefinitionGroupName,Manually generated:testSetDescription'', ''Y'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'client.groupByAlso.jobDefinition';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'',
|
|
IsHidden = ''Y'', Description = ''FOR INTERNAL USE ONLY. Choices for the Schedule
|
|
for System sub-area Group by menu. Comma-delimited list of <label>:<OpJobDefinition
|
|
property expression>. Default: Application:application.name,Runtime environment:runtime.name,Status:status.label,Job
|
|
definition group:jobDefinitionGroup.name,Type:mainAction.executableEnum.label''
|
|
WHERE Name = ''client.groupByAlso.jobDefinition''';\n else\n execute E'INSERT
|
|
INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden)
|
|
VALUES (nextval(''hibernate_sequence''), ''client.groupByAlso.jobDefinition'',
|
|
''FOR INTERNAL USE ONLY. Choices for the Schedule for System sub-area Group by
|
|
menu. Comma-delimited list of <label>:<OpJobDefinition property expression>. Default:
|
|
Application:application.name,Runtime environment:runtime.name,Status:status.label,Job
|
|
definition group:jobDefinitionGroup.name,Type:mainAction.executableEnum.label'',
|
|
''STRING'', ''Application:application.name,Runtime environment:runtime.name,Status:status.label,Job
|
|
definition group:jobDefinitionGroup.name,Type:mainAction.executableEnum.label'',
|
|
''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue where Name
|
|
= 'client.groupBy.product';\n if (cnt > 0) then\n execute E'UPDATE OpConfigValue
|
|
SET ValueTypeEnum = ''STRING'', IsHidden = ''Y'', Description = ''FOR INTERNAL
|
|
USE ONLY. Choices for the Products area Group by menu. Comma-delimited list of
|
|
<label>:<OpProduct property expression>. Default: Type:productType.unqualifiedName,Class:productType.productVarietyEnum.label,Host:hostname,Status:statusEnum.coarsened.label,Issues:issuesEnum.label,Tag:tag''
|
|
WHERE Name = ''client.groupBy.product''';\n else\n execute E'INSERT INTO OpConfigValue
|
|
(ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''client.groupBy.product'', ''FOR INTERNAL USE ONLY. Choices for the Products
|
|
area Group by menu. Comma-delimited list of <label>:<OpProduct property expression>.
|
|
Default: Type:productType.unqualifiedName,Class:productType.productVarietyEnum.label,Host:hostname,Status:statusEnum.coarsened.label,Issues:issuesEnum.label,Tag:tag'',
|
|
''STRING'', ''Type:productType.unqualifiedName,Class:productType.productVarietyEnum.label,Host:hostname,Status:statusEnum.coarsened.label,Issues:issuesEnum.label,Tag:tag'',
|
|
''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue where Name
|
|
= 'client.home.hostSnapshotsVisible';\n if (cnt > 0) then\n execute E'UPDATE
|
|
OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description =
|
|
''Show host items on the Home area for all roles, not just host-based roles. Default:
|
|
1'' WHERE Name = ''client.home.hostSnapshotsVisible''';\n else\n execute E'INSERT
|
|
INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden)
|
|
VALUES (nextval(''hibernate_sequence''), ''client.home.hostSnapshotsVisible'',
|
|
''Show host items on the Home area for all roles, not just host-based roles. Default:
|
|
1'', ''INTEGER'', ''1'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'client.home.productSnapshotsVisible';\n if (cnt
|
|
> 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Show product items on the Home area for all
|
|
roles, not just product-based roles. Default: 1'' WHERE Name = ''client.home.productSnapshotsVisible''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.home.productSnapshotsVisible'',
|
|
''Show product items on the Home area for all roles, not just product-based roles.
|
|
Default: 1'', ''INTEGER'', ''1'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'client.home.systemSnapshotsVisibleOnlyWhenProblems';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Show system items on the Home area only for
|
|
systems with problems. Default: 1'' WHERE Name = ''client.home.systemSnapshotsVisibleOnlyWhenProblems''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.home.systemSnapshotsVisibleOnlyWhenProblems'',
|
|
''Show system items on the Home area only for systems with problems. Default:
|
|
1'', ''INTEGER'', ''1'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'client.hostsArea.enableAddButton';\n if (cnt
|
|
> 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''Y'', Description = ''Show the Add button in the Hosts area to allow
|
|
creation of host profiles, runtime environments, and schedules for unmonitored
|
|
hosts. Default: 1'' WHERE Name = ''client.hostsArea.enableAddButton''';\n else\n
|
|
\ execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.hostsArea.enableAddButton'',
|
|
''Show the Add button in the Hosts area to allow creation of host profiles, runtime
|
|
environments, and schedules for unmonitored hosts. Default: 1'', ''INTEGER'',
|
|
''1'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'client.hostsArea.pollingSec';\n if (cnt > 0) then\n execute
|
|
E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description
|
|
= ''Number of seconds the browser waits between successive requests to the app
|
|
server for host metric values. This value is rounded up the nearest multiple of
|
|
client.pollingSec. Default: 60'' WHERE Name = ''client.hostsArea.pollingSec''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.hostsArea.pollingSec'',
|
|
''Number of seconds the browser waits between successive requests to the app server
|
|
for host metric values. This value is rounded up the nearest multiple of client.pollingSec.
|
|
Default: 60'', ''INTEGER'', ''60'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'client.idleTimeoutMinutes';\n if (cnt > 0) then\n
|
|
\ execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden =
|
|
''N'', Description = ''The number of minutes that a user is idle before the Control>Center
|
|
client stops polling for updates. The user session will expire after another few
|
|
minutes. When set to -1, polling is disabled, and the Control>Center client must
|
|
be refreshed manually. Default=25'' WHERE Name = ''client.idleTimeoutMinutes''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.idleTimeoutMinutes'',
|
|
''The number of minutes that a user is idle before the Control>Center client stops
|
|
polling for updates. The user session will expire after another few minutes. When
|
|
set to -1, polling is disabled, and the Control>Center client must be refreshed
|
|
manually. Default=25'', ''INTEGER'', ''25'', ''N'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpConfigValue where Name = 'client.idleNoRefreshWarningMinutes';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''When client.idleTimeoutMinutes is set to -1,
|
|
this controls the number of minutes before a warning is presented to the user
|
|
prompting them to refresh. Default=15'' WHERE Name = ''client.idleNoRefreshWarningMinutes''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.idleNoRefreshWarningMinutes'',
|
|
''When client.idleTimeoutMinutes is set to -1, this controls the number of minutes
|
|
before a warning is presented to the user prompting them to refresh. Default=15'',
|
|
''INTEGER'', ''15'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'client.idleNoRefreshWarningSnoozeMinutes';\n if (cnt > 0) then\n
|
|
\ execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden =
|
|
''N'', Description = ''When client.idleTimeoutMinutes configuration parameter
|
|
is set to -1, controls the number of minutes that the warning controlled by the
|
|
client.idleNoRefreshWarningMinutes configuration parameter can be hidden.'' WHERE
|
|
Name = ''client.idleNoRefreshWarningSnoozeMinutes''';\n else\n execute E'INSERT
|
|
INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden)
|
|
VALUES (nextval(''hibernate_sequence''), ''client.idleNoRefreshWarningSnoozeMinutes'',
|
|
''When client.idleTimeoutMinutes configuration parameter is set to -1, controls
|
|
the number of minutes that the warning controlled by the client.idleNoRefreshWarningMinutes
|
|
configuration parameter can be hidden.'', ''INTEGER'', ''30'', ''N'')';\n end
|
|
if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'client.jobsOverview.byHosts.enabled';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Enable Jobs Overview by Hosts view. Default:
|
|
1'' WHERE Name = ''client.jobsOverview.byHosts.enabled''';\n else\n execute
|
|
E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.jobsOverview.byHosts.enabled'',
|
|
''Enable Jobs Overview by Hosts view. Default: 1'', ''INTEGER'', ''1'', ''N'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'client.jobsOverview.showAllKnownHosts';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Show all hosts, even if they have aliases. Applies
|
|
to the Jobs Overview for All Systems sub-area (group by Host). Default: 0 (hide
|
|
aliased hosts)'' WHERE Name = ''client.jobsOverview.showAllKnownHosts''';\n else\n
|
|
\ execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.jobsOverview.showAllKnownHosts'',
|
|
''Show all hosts, even if they have aliases. Applies to the Jobs Overview for
|
|
All Systems sub-area (group by Host). Default: 0 (hide aliased hosts)'', ''INTEGER'',
|
|
''0'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'client.jobsOverviewForAllHosts.maxSecs';\n if (cnt > 0) then\n
|
|
\ execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden =
|
|
''N'', Description = ''The maximum time in seconds that the Control>Center can
|
|
include in its calculation of the job metric totals displayed in the Jobs Overview
|
|
for All Hosts view. Default: 86400'' WHERE Name = ''client.jobsOverviewForAllHosts.maxSecs''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.jobsOverviewForAllHosts.maxSecs'',
|
|
''The maximum time in seconds that the Control>Center can include in its calculation
|
|
of the job metric totals displayed in the Jobs Overview for All Hosts view. Default:
|
|
86400'', ''INTEGER'', ''86400'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'client.jobsHistoryForHost.maxDays';\n if (cnt
|
|
> 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''The maximum number of days that the Control>Center
|
|
can include in a host History chart. Default: 30'' WHERE Name = ''client.jobsHistoryForHost.maxDays''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.jobsHistoryForHost.maxDays'',
|
|
''The maximum number of days that the Control>Center can include in a host History
|
|
chart. Default: 30'', ''INTEGER'', ''30'', ''N'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpConfigValue where Name = 'client.jobsHistoryForHost.maxBars';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''The maximum number of bars that the Control>Center
|
|
can include in a host History chart. Default: 48'' WHERE Name = ''client.jobsHistoryForHost.maxBars''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.jobsHistoryForHost.maxBars'',
|
|
''The maximum number of bars that the Control>Center can include in a host History
|
|
chart. Default: 48'', ''INTEGER'', ''48'', ''N'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpConfigValue where Name = 'client.jobsHistoryForHost.useFixedScale';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''For the jobs axis in the host History chart,
|
|
fix the scale at the maximum available effective cpu. Default: 0'' WHERE Name
|
|
= ''client.jobsHistoryForHost.useFixedScale''';\n else\n execute E'INSERT
|
|
INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden)
|
|
VALUES (nextval(''hibernate_sequence''), ''client.jobsHistoryForHost.useFixedScale'',
|
|
''For the jobs axis in the host History chart, fix the scale at the maximum available
|
|
effective cpu. Default: 0'', ''INTEGER'', ''0'', ''N'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'client.jobsHistoryForHost.displayGapMinutes';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''The maximum number of minutes between metric
|
|
line graph data points that should be regarded as continuous. Larger intervals
|
|
result in the display of gaps. Default: 10'' WHERE Name = ''client.jobsHistoryForHost.displayGapMinutes''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.jobsHistoryForHost.displayGapMinutes'',
|
|
''The maximum number of minutes between metric line graph data points that should
|
|
be regarded as continuous. Larger intervals result in the display of gaps. Default:
|
|
10'', ''INTEGER'', ''10'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'client.instanceLabel';\n if (cnt > 0) then\n
|
|
\ execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'', IsHidden =
|
|
''N'', Description = ''User-specified label for UI customization. If non-blank,
|
|
the value appears in the UI tab label and header bar, as well as in the browser''''s
|
|
title bar. This is the ''''branding'''' for this instance of the Control>Center,
|
|
and can be used to identify the DEV/TEST/PROD instance, for example. If you specify
|
|
a blank value, the default string \"Control>Center\" will nevertheless appear.
|
|
Default: Control>Center'' WHERE Name = ''client.instanceLabel''';\n else\n execute
|
|
E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.instanceLabel'',
|
|
''User-specified label for UI customization. If non-blank, the value appears in
|
|
the UI tab label and header bar, as well as in the browser''''s title bar. This
|
|
is the ''''branding'''' for this instance of the Control>Center, and can be used
|
|
to identify the DEV/TEST/PROD instance, for example. If you specify a blank value,
|
|
the default string \"Control>Center\" will nevertheless appear. Default: Control>Center'',
|
|
''STRING'', ''Control>Center'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'client.deploymentName';\n if (cnt > 0) then\n
|
|
\ execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'', IsHidden =
|
|
''Y'', Description = ''The deployment name of this Control>Center.'' WHERE Name
|
|
= ''client.deploymentName''';\n else\n execute E'INSERT INTO OpConfigValue
|
|
(ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''client.deploymentName'', ''The deployment name of this Control>Center.'',
|
|
''STRING'', '''', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'client.limitGroupByValues';\n if (cnt > 0) then\n execute E'UPDATE
|
|
OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description =
|
|
''Maximum number of second-level groups shown in the left pane for the sub-areas:
|
|
Jobs Overview for All Systems, Daily Jobs for System, Daily Jobs for Host. Excess
|
|
groups (e.g., applications, hosts, users) appear under ''''Others.'''' Default:
|
|
100'' WHERE Name = ''client.limitGroupByValues''';\n else\n execute E'INSERT
|
|
INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden)
|
|
VALUES (nextval(''hibernate_sequence''), ''client.limitGroupByValues'', ''Maximum
|
|
number of second-level groups shown in the left pane for the sub-areas: Jobs Overview
|
|
for All Systems, Daily Jobs for System, Daily Jobs for Host. Excess groups (e.g.,
|
|
applications, hosts, users) appear under ''''Others.'''' Default: 100'', ''INTEGER'',
|
|
''100'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'client.limitMonitorDiagramJobNodes';\n if (cnt > 0) then\n execute
|
|
E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description
|
|
= ''Maximum number of top-level objects shown in any Jobs area dependency view.
|
|
No dependency view is shown if this number is exceeded. Default: 1000'' WHERE
|
|
Name = ''client.limitMonitorDiagramJobNodes''';\n else\n execute E'INSERT
|
|
INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden)
|
|
VALUES (nextval(''hibernate_sequence''), ''client.limitMonitorDiagramJobNodes'',
|
|
''Maximum number of top-level objects shown in any Jobs area dependency view.
|
|
No dependency view is shown if this number is exceeded. Default: 1000'', ''INTEGER'',
|
|
''1000'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'client.limitMonitorDiagramJobDefinitionNodes';\n if (cnt > 0) then\n
|
|
\ execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden =
|
|
''N'', Description = ''Maximum number of top-level objects shown in any Schedule
|
|
area dependency view. No dependency view is shown if this number is exceeded.
|
|
Default: 1000'' WHERE Name = ''client.limitMonitorDiagramJobDefinitionNodes''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.limitMonitorDiagramJobDefinitionNodes'',
|
|
''Maximum number of top-level objects shown in any Schedule area dependency view.
|
|
No dependency view is shown if this number is exceeded. Default: 1000'', ''INTEGER'',
|
|
''1000'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'client.limitOutputFileSize';\n if (cnt > 0) then\n execute E'UPDATE
|
|
OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description =
|
|
''Maximum allowable size (MB) for a text file viewed from the Control>Center.
|
|
Default: 16'' WHERE Name = ''client.limitOutputFileSize''';\n else\n execute
|
|
E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.limitOutputFileSize'',
|
|
''Maximum allowable size (MB) for a text file viewed from the Control>Center.
|
|
Default: 16'', ''INTEGER'', ''16'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'client.markjobs.enabled';\n if (cnt > 0) then\n
|
|
\ execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden =
|
|
''N'', Description = ''Control whether the Mark As Failed, Mark As Succeeded job
|
|
actions are enabled. Default: 1'' WHERE Name = ''client.markjobs.enabled''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.markjobs.enabled'',
|
|
''Control whether the Mark As Failed, Mark As Succeeded job actions are enabled.
|
|
Default: 1'', ''INTEGER'', ''1'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'client.mpxGraphViewerActions.enabled';\n if
|
|
(cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''Y'', Description = ''Enable Info Bubble actions to view mpx graphs.
|
|
Default: 1'' WHERE Name = ''client.mpxGraphViewerActions.enabled''';\n else\n
|
|
\ execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.mpxGraphViewerActions.enabled'',
|
|
''Enable Info Bubble actions to view mpx graphs. Default: 1'', ''INTEGER'', ''1'',
|
|
''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue where Name
|
|
= 'client.muxURISchemes';\n if (cnt > 0) then\n execute E'UPDATE OpConfigValue
|
|
SET ValueTypeEnum = ''STRING'', IsHidden = ''N'', Description = ''Corresponds
|
|
to the Co>Operating System configuration variable AB_MUX_URI_SCHEMES, which is
|
|
a colon separated list of allowable Uniform Resource Identifier path prefixes.
|
|
Default: maprfs:s3a:gs:wasb:wasbs:abfs:abfss'' WHERE Name = ''client.muxURISchemes''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.muxURISchemes'',
|
|
''Corresponds to the Co>Operating System configuration variable AB_MUX_URI_SCHEMES,
|
|
which is a colon separated list of allowable Uniform Resource Identifier path
|
|
prefixes. Default: maprfs:s3a:gs:wasb:wasbs:abfs:abfss'', ''STRING'', ''maprfs:s3a:gs:wasb:wasbs:abfs:abfss'',
|
|
''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue where Name
|
|
= 'client.permitBrowseAllIcons';\n if (cnt > 0) then\n execute E'UPDATE OpConfigValue
|
|
SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description = ''Controls the
|
|
palette of icons that you can assign to quick links. Set to 0 to restrict the
|
|
palette to a manageable number of the most useful icons. Set to 1 to expand the
|
|
palette fully. Default: 0'' WHERE Name = ''client.permitBrowseAllIcons''';\n else\n
|
|
\ execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.permitBrowseAllIcons'',
|
|
''Controls the palette of icons that you can assign to quick links. Set to 0 to
|
|
restrict the palette to a manageable number of the most useful icons. Set to 1
|
|
to expand the palette fully. Default: 0'', ''INTEGER'', ''0'', ''N'')';\n end
|
|
if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'client.permitF8';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Enables the F8 key to run commands on a host.
|
|
Default: 1'' WHERE Name = ''client.permitF8''';\n else\n execute E'INSERT
|
|
INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden)
|
|
VALUES (nextval(''hibernate_sequence''), ''client.permitF8'', ''Enables the F8
|
|
key to run commands on a host. Default: 1'', ''INTEGER'', ''1'', ''N'')';\n end
|
|
if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'client.permitIBStopAndDrop';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Enables the Stop Monitoring action on the Product,
|
|
Host and Jobset info bubbles and enables Drop From Control>Center action on the
|
|
Product and Jobset info bubbles. Default: 0'' WHERE Name = ''client.permitIBStopAndDrop''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.permitIBStopAndDrop'',
|
|
''Enables the Stop Monitoring action on the Product, Host and Jobset info bubbles
|
|
and enables Drop From Control>Center action on the Product and Jobset info bubbles.
|
|
Default: 0'', ''INTEGER'', ''0'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'client.permitJobDefinitionTest';\n if (cnt >
|
|
0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden
|
|
= ''N'', Description = ''Enables the Manually Generate Job action on the Job Definition
|
|
info bubble and the Test Schedule action on the System info bubble. Default: 1''
|
|
WHERE Name = ''client.permitJobDefinitionTest''';\n else\n execute E'INSERT
|
|
INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden)
|
|
VALUES (nextval(''hibernate_sequence''), ''client.permitJobDefinitionTest'',
|
|
''Enables the Manually Generate Job action on the Job Definition info bubble and
|
|
the Test Schedule action on the System info bubble. Default: 1'', ''INTEGER'',
|
|
''1'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'client.permitJobDelete';\n if (cnt > 0) then\n execute E'UPDATE
|
|
OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description =
|
|
''Enables job deletion from the UI by an Administrator user. Default: 1'' WHERE
|
|
Name = ''client.permitJobDelete''';\n else\n execute E'INSERT INTO OpConfigValue
|
|
(ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''client.permitJobDelete'', ''Enables job deletion from the UI by an Administrator
|
|
user. Default: 1'', ''INTEGER'', ''1'', ''N'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpConfigValue where Name = 'client.permitCommandsAllProducts';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Enable the commands tab on all products, not
|
|
just Other Product and Other Service. Default: 0'' WHERE Name = ''client.permitCommandsAllProducts''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.permitCommandsAllProducts'',
|
|
''Enable the commands tab on all products, not just Other Product and Other Service.
|
|
\ Default: 0'', ''INTEGER'', ''0'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'client.permitHostnameKeys';\n if (cnt > 0) then\n
|
|
\ execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden =
|
|
''Y'', Description = ''Enable support for hostname keys. Default: 1'' WHERE Name
|
|
= ''client.permitHostnameKeys''';\n else\n execute E'INSERT INTO OpConfigValue
|
|
(ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''client.permitHostnameKeys'', ''Enable support for hostname keys. Default:
|
|
1'', ''INTEGER'', ''1'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'client.permitOperatorEditableJobDefProperties';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Determines whether the operator can edit Properties
|
|
when creating a job from a job definition. Default: 0'' WHERE Name = ''client.permitOperatorEditableJobDefProperties''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.permitOperatorEditableJobDefProperties'',
|
|
''Determines whether the operator can edit Properties when creating a job from
|
|
a job definition. Default: 0'', ''INTEGER'', ''0'', ''N'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'client.permitOperatorVisibleSchedule';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Determines whether the operator can see the
|
|
Schedule tab and the Manually Generate Job action. Default: 0'' WHERE Name = ''client.permitOperatorVisibleSchedule''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.permitOperatorVisibleSchedule'',
|
|
''Determines whether the operator can see the Schedule tab and the Manually Generate
|
|
Job action. Default: 0'', ''INTEGER'', ''0'', ''N'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpConfigValue where Name = 'client.pollingSec';\n if (cnt
|
|
> 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Number of seconds the browser waits between
|
|
successive requests to the app server for new data. The installer creates this
|
|
value. Default: 5'' WHERE Name = ''client.pollingSec''';\n else\n execute
|
|
E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.pollingSec'',
|
|
''Number of seconds the browser waits between successive requests to the app server
|
|
for new data. The installer creates this value. Default: 5'', ''INTEGER'', ''5'',
|
|
''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue where Name
|
|
= 'client.recentEventsLimit.count';\n if (cnt > 0) then\n execute E'UPDATE
|
|
OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''Y'', Description =
|
|
''Maximum number of events or issue displayed in events/issues grid. Default:
|
|
500'' WHERE Name = ''client.recentEventsLimit.count''';\n else\n execute E'INSERT
|
|
INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden)
|
|
VALUES (nextval(''hibernate_sequence''), ''client.recentEventsLimit.count'',
|
|
''Maximum number of events or issue displayed in events/issues grid. Default:
|
|
500'', ''INTEGER'', ''500'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'client.recentEventsLimit.days';\n if (cnt >
|
|
0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden
|
|
= ''Y'', Description = ''Maximum age of events or issue displayed in events/issues
|
|
grid. Default: 30'' WHERE Name = ''client.recentEventsLimit.days''';\n else\n
|
|
\ execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.recentEventsLimit.days'',
|
|
''Maximum age of events or issue displayed in events/issues grid. Default: 30'',
|
|
''INTEGER'', ''30'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'client.reporterCpuMonitoring.enabled';\n if (cnt > 0) then\n execute
|
|
E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description
|
|
= ''Enables display and edit of reporter cpuMonitoring configuration. Default:
|
|
0'' WHERE Name = ''client.reporterCpuMonitoring.enabled''';\n else\n execute
|
|
E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.reporterCpuMonitoring.enabled'',
|
|
''Enables display and edit of reporter cpuMonitoring configuration. Default: 0'',
|
|
''INTEGER'', ''0'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'client.rerun.SLAPrompt.default';\n if (cnt > 0) then\n execute
|
|
E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description
|
|
= ''Determines default choice for rerun prompt where user chooses between original
|
|
SLA (1) or adjusted SLA (0) for rerun set. Default: 0'' WHERE Name = ''client.rerun.SLAPrompt.default''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.rerun.SLAPrompt.default'',
|
|
''Determines default choice for rerun prompt where user chooses between original
|
|
SLA (1) or adjusted SLA (0) for rerun set. Default: 0'', ''INTEGER'', ''0'', ''N'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'client.restrictAccountAdmin';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Allows only Administrators to create Administrator
|
|
accounts. Default: 1'' WHERE Name = ''client.restrictAccountAdmin''';\n else\n
|
|
\ execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.restrictAccountAdmin'',
|
|
''Allows only Administrators to create Administrator accounts. Default: 1'', ''INTEGER'',
|
|
''1'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'client.runtimes.permitHostsWithAliases';\n if (cnt > 0) then\n
|
|
\ execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden =
|
|
''N'', Description = ''Allows Runtime Environments to use Hosts that have Host
|
|
Aliases. Default: 0'' WHERE Name = ''client.runtimes.permitHostsWithAliases''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.runtimes.permitHostsWithAliases'',
|
|
''Allows Runtime Environments to use Hosts that have Host Aliases. Default: 0'',
|
|
''INTEGER'', ''0'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'client.supportedTimeZones';\n if (cnt > 0) then\n execute E'UPDATE
|
|
OpConfigValue SET ValueTypeEnum = ''STRING'', IsHidden = ''N'', Description =
|
|
''Comma-separated list of time zones to choose when creating or editing a job
|
|
definition. Default: EST5EDT,PST8PDT,UTC'' WHERE Name = ''client.supportedTimeZones''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.supportedTimeZones'',
|
|
''Comma-separated list of time zones to choose when creating or editing a job
|
|
definition. Default: EST5EDT,PST8PDT,UTC'', ''STRING'', ''EST5EDT,PST8PDT,UTC'',
|
|
''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue where Name
|
|
= 'client.tagLabel';\n if (cnt > 0) then\n execute E'UPDATE OpConfigValue
|
|
SET ValueTypeEnum = ''STRING'', IsHidden = ''Y'', Description = ''FOR INTERNAL
|
|
USE ONLY. Label used when displaying ''''tag'''' values. Default: Category'' WHERE
|
|
Name = ''client.tagLabel''';\n else\n execute E'INSERT INTO OpConfigValue
|
|
(ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''client.tagLabel'', ''FOR INTERNAL USE ONLY. Label used when displaying ''''tag''''
|
|
values. Default: Category'', ''STRING'', ''Category'', ''Y'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'client.tagLabelPlural';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'',
|
|
IsHidden = ''Y'', Description = ''FOR INTERNAL USE ONLY. Label used when displaying
|
|
''''tag'''' values in plural. Default: Categories'' WHERE Name = ''client.tagLabelPlural''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.tagLabelPlural'',
|
|
''FOR INTERNAL USE ONLY. Label used when displaying ''''tag'''' values in plural.
|
|
Default: Categories'', ''STRING'', ''Categories'', ''Y'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'client.tagScope';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'',
|
|
IsHidden = ''Y'', Description = ''FOR INTERNAL USE ONLY. Scope used to display
|
|
already-in-use tag values. One of ''''OBJECT'''' or ''''GLOBAL''''. Default:
|
|
OBJECT'' WHERE Name = ''client.tagScope''';\n else\n execute E'INSERT INTO
|
|
OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden)
|
|
VALUES (nextval(''hibernate_sequence''), ''client.tagScope'', ''FOR INTERNAL
|
|
USE ONLY. Scope used to display already-in-use tag values. One of ''''OBJECT''''
|
|
or ''''GLOBAL''''. Default: OBJECT'', ''STRING'', ''OBJECT'', ''Y'')';\n end
|
|
if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'cluster.autoConfig.protocol';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'',
|
|
IsHidden = ''N'', Description = ''Protocol used to communicate between cluster
|
|
nodes. Options are either TCP (preferred) or UDP. Default: TCP'' WHERE Name =
|
|
''cluster.autoConfig.protocol''';\n else\n execute E'INSERT INTO OpConfigValue
|
|
(ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''cluster.autoConfig.protocol'', ''Protocol used to communicate between cluster
|
|
nodes. Options are either TCP (preferred) or UDP. Default: TCP'', ''STRING'',
|
|
''TCP'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'cluster.autoConfig.hosts';\n if (cnt > 0) then\n execute E'UPDATE
|
|
OpConfigValue SET ValueTypeEnum = ''STRING'', IsHidden = ''N'', Description =
|
|
''Required for TCP only: must specify all hosts in cluster using a comma-separated
|
|
syntax like: host1,host2. Default: <blank>'' WHERE Name = ''cluster.autoConfig.hosts''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''cluster.autoConfig.hosts'',
|
|
''Required for TCP only: must specify all hosts in cluster using a comma-separated
|
|
syntax like: host1,host2. Default: <blank>'', ''STRING'', '''', ''N'')';\n end
|
|
if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'cluster.autoConfig.nic';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'',
|
|
IsHidden = ''N'', Description = ''Optional for TCP/UDP: name of network interface
|
|
card for every node (e.g., \"etho0\"). If not specified, defaults to first non-loopback
|
|
nic on every node, which is usually sufficient. Default: <blank>'' WHERE Name
|
|
= ''cluster.autoConfig.nic''';\n else\n execute E'INSERT INTO OpConfigValue
|
|
(ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''cluster.autoConfig.nic'', ''Optional for TCP/UDP: name of network interface
|
|
card for every node (e.g., \"etho0\"). If not specified, defaults to first non-loopback
|
|
nic on every node, which is usually sufficient. Default: <blank>'', ''STRING'',
|
|
'''', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'cluster.autoConfig.port';\n if (cnt > 0) then\n execute E'UPDATE
|
|
OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description =
|
|
''Required for TCP/UDP: port used to communicate between cluster nodes. If zero,
|
|
defaults to 7840 (TCP) or 45628 (UDP). Default: 0'' WHERE Name = ''cluster.autoConfig.port''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''cluster.autoConfig.port'',
|
|
''Required for TCP/UDP: port used to communicate between cluster nodes. If zero,
|
|
defaults to 7840 (TCP) or 45628 (UDP). Default: 0'', ''INTEGER'', ''0'', ''N'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'cluster.configUrl';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'',
|
|
IsHidden = ''N'', Description = ''Location of existing jgroups configuration file.
|
|
\ Use only if autoConfig options are not sufficient. Default: <blank>'' WHERE
|
|
Name = ''cluster.configUrl''';\n else\n execute E'INSERT INTO OpConfigValue
|
|
(ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''cluster.configUrl'', ''Location of existing jgroups configuration file. Use
|
|
only if autoConfig options are not sufficient. Default: <blank>'', ''STRING'',
|
|
'''', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'cluster.enabled';\n if (cnt > 0) then\n execute E'UPDATE OpConfigValue
|
|
SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description = ''Enables clustering.
|
|
Only enable if installed on a clustered application server. Default: 0'' WHERE
|
|
Name = ''cluster.enabled''';\n else\n execute E'INSERT INTO OpConfigValue
|
|
(ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''cluster.enabled'', ''Enables clustering. Only enable if installed on a clustered
|
|
application server. Default: 0'', ''INTEGER'', ''0'', ''N'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'cpuMonitoring.enabled';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''Y'', Description = ''FOR INTERNAL USE ONLY - Do not change. This
|
|
Control>Center instance will run CPU monitoring reports. Default: 0'' WHERE Name
|
|
= ''cpuMonitoring.enabled''';\n else\n execute E'INSERT INTO OpConfigValue
|
|
(ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''cpuMonitoring.enabled'', ''FOR INTERNAL USE ONLY - Do not change. This Control>Center
|
|
instance will run CPU monitoring reports. Default: 0'', ''INTEGER'', ''0'', ''Y'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'cpuMonitoring.digest';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'',
|
|
IsHidden = ''Y'', Description = ''FOR INTERNAL USE ONLY - Do not change. Control>Center
|
|
instance digest for CPU monitoring reports. Default: <blank>'' WHERE Name = ''cpuMonitoring.digest''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''cpuMonitoring.digest'',
|
|
''FOR INTERNAL USE ONLY - Do not change. Control>Center instance digest for CPU
|
|
monitoring reports. Default: <blank>'', ''STRING'', '''', ''Y'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'cpuUsageReportCheck.enabled';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''This Control>Center instance will run and check
|
|
CPU usage reports. Default: 0'' WHERE Name = ''cpuUsageReportCheck.enabled''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''cpuUsageReportCheck.enabled'',
|
|
''This Control>Center instance will run and check CPU usage reports. Default:
|
|
0'', ''INTEGER'', ''0'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'cpuUsageReportCheck.digest';\n if (cnt > 0)
|
|
then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'', IsHidden
|
|
= ''Y'', Description = ''FOR INTERNAL USE ONLY. Control>Center instance digest
|
|
for CPU usage report checking.'' WHERE Name = ''cpuUsageReportCheck.digest''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''cpuUsageReportCheck.digest'',
|
|
''FOR INTERNAL USE ONLY. Control>Center instance digest for CPU usage report checking.'',
|
|
''STRING'', '''', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'cpuUsageReportCheck.digestRequestTime';\n if (cnt > 0) then\n execute
|
|
E'UPDATE OpConfigValue SET ValueTypeEnum = ''DATE'', IsHidden = ''Y'', Description
|
|
= ''FOR INTERNAL USE ONLY. Generation time of request for CPU usage report check
|
|
digest.'' WHERE Name = ''cpuUsageReportCheck.digestRequestTime''';\n else\n execute
|
|
E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''cpuUsageReportCheck.digestRequestTime'',
|
|
''FOR INTERNAL USE ONLY. Generation time of request for CPU usage report check
|
|
digest.'', ''DATE'', ''2000-01-01 00:00:00.000 UTC'', ''Y'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'cpuUsageReportCheck.digestCreationTime';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''DATE'',
|
|
IsHidden = ''Y'', Description = ''FOR INTERNAL USE ONLY. Creation time of CPU
|
|
usage report check digest from keys@abinitio.com.'' WHERE Name = ''cpuUsageReportCheck.digestCreationTime''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''cpuUsageReportCheck.digestCreationTime'',
|
|
''FOR INTERNAL USE ONLY. Creation time of CPU usage report check digest from keys@abinitio.com.'',
|
|
''DATE'', ''2000-01-01 00:00:00.000 UTC'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpConfigValue where Name = 'cpuUsageReportCheck.digestExpirationTime';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''DATE'',
|
|
IsHidden = ''Y'', Description = ''FOR INTERNAL USE ONLY. Expiration time of CPU
|
|
usage report check digest.'' WHERE Name = ''cpuUsageReportCheck.digestExpirationTime''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''cpuUsageReportCheck.digestExpirationTime'',
|
|
''FOR INTERNAL USE ONLY. Expiration time of CPU usage report check digest.'',
|
|
''DATE'', ''2000-01-01 00:00:00.000 UTC'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpConfigValue where Name = 'config.lastUpdatedAt';\n if
|
|
(cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'',
|
|
IsHidden = ''Y'', Description = ''FOR INTERNAL USE ONLY - Do not change. Timestamp
|
|
for when the OpConfigValue table was last changed.'' WHERE Name = ''config.lastUpdatedAt''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''config.lastUpdatedAt'',
|
|
''FOR INTERNAL USE ONLY - Do not change. Timestamp for when the OpConfigValue
|
|
table was last changed.'', ''STRING'', '''', ''Y'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpConfigValue where Name = 'dbsetup.lastUpdatedAt';\n if
|
|
(cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'',
|
|
IsHidden = ''Y'', Description = ''FOR INTERNAL USE ONLY - Do not change. Timestamp
|
|
for when the installation parameters were last changed.'' WHERE Name = ''dbsetup.lastUpdatedAt''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''dbsetup.lastUpdatedAt'',
|
|
''FOR INTERNAL USE ONLY - Do not change. Timestamp for when the installation parameters
|
|
were last changed.'', ''STRING'', '''', ''Y'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpConfigValue where Name = 'cluster.jgroups.debug';\n if
|
|
(cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Controls JGroups logging verbosity for troubleshooting.
|
|
Default is disabled. Select the checkbox to enable verbose logging. IMPORTANT:
|
|
This change results in large amount of logging output.'' WHERE Name = ''cluster.jgroups.debug''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''cluster.jgroups.debug'',
|
|
''Controls JGroups logging verbosity for troubleshooting. Default is disabled.
|
|
Select the checkbox to enable verbose logging. IMPORTANT: This change results
|
|
in large amount of logging output.'', ''INTEGER'', ''0'', ''N'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'jobsWatcher.checkJobsDelayMinutes';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Delay between a change to the Control>Center
|
|
job schedule and when a check is made to see if any jobs are unclaimed. Default:
|
|
5 minutes'' WHERE Name = ''jobsWatcher.checkJobsDelayMinutes''';\n else\n execute
|
|
E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''jobsWatcher.checkJobsDelayMinutes'',
|
|
''Delay between a change to the Control>Center job schedule and when a check is
|
|
made to see if any jobs are unclaimed. Default: 5 minutes'', ''INTEGER'', ''5'',
|
|
''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue where Name
|
|
= 'jobsWatcher.createJobIssues.enabled';\n if (cnt > 0) then\n execute E'UPDATE
|
|
OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description =
|
|
''Enables creating \"job not claimed\" issues on scheduled jobs when no reporter
|
|
has fetched the job details. Default: 1 (enabled)'' WHERE Name = ''jobsWatcher.createJobIssues.enabled''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''jobsWatcher.createJobIssues.enabled'',
|
|
''Enables creating \"job not claimed\" issues on scheduled jobs when no reporter
|
|
has fetched the job details. Default: 1 (enabled)'', ''INTEGER'', ''1'', ''N'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'productService.defaultWarningNotificationGroup';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'',
|
|
IsHidden = ''N'', Description = ''The default warning notification group for products/services.
|
|
Default: <blank>'' WHERE Name = ''productService.defaultWarningNotificationGroup''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''productService.defaultWarningNotificationGroup'',
|
|
''The default warning notification group for products/services. Default: <blank>'',
|
|
''STRING'', '''', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'productService.defaultErrorNotificationGroup';\n if (cnt > 0) then\n
|
|
\ execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'', IsHidden =
|
|
''N'', Description = ''The default error notification group for products/services.
|
|
Default: <blank>'' WHERE Name = ''productService.defaultErrorNotificationGroup''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''productService.defaultErrorNotificationGroup'',
|
|
''The default error notification group for products/services. Default: <blank>'',
|
|
''STRING'', '''', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'productService.defaultCriticalErrorNotificationGroup';\n if (cnt
|
|
> 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'',
|
|
IsHidden = ''N'', Description = ''The default critical error notification group
|
|
for products/services. Default: <blank>'' WHERE Name = ''productService.defaultCriticalErrorNotificationGroup''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''productService.defaultCriticalErrorNotificationGroup'',
|
|
''The default critical error notification group for products/services. Default:
|
|
<blank>'', ''STRING'', '''', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'reporter.defaultWarningNotificationGroup';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'',
|
|
IsHidden = ''N'', Description = ''The default warning notification group for reporter
|
|
issues. Default: <blank>'' WHERE Name = ''reporter.defaultWarningNotificationGroup''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''reporter.defaultWarningNotificationGroup'',
|
|
''The default warning notification group for reporter issues. Default: <blank>'',
|
|
''STRING'', '''', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'reporter.defaultErrorNotificationGroup';\n if (cnt > 0) then\n
|
|
\ execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'', IsHidden =
|
|
''N'', Description = ''The default error notification group for reporter issues.
|
|
Default: <blank>'' WHERE Name = ''reporter.defaultErrorNotificationGroup''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''reporter.defaultErrorNotificationGroup'',
|
|
''The default error notification group for reporter issues. Default: <blank>'',
|
|
''STRING'', '''', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'reporter.defaultCriticalErrorNotificationGroup';\n if (cnt > 0)
|
|
then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'', IsHidden
|
|
= ''N'', Description = ''The default critical error notification group for reporter
|
|
issues. Default: <blank>'' WHERE Name = ''reporter.defaultCriticalErrorNotificationGroup''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''reporter.defaultCriticalErrorNotificationGroup'',
|
|
''The default critical error notification group for reporter issues. Default:
|
|
<blank>'', ''STRING'', '''', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'reporter.reporterMissingThresholdMins';\n if
|
|
(cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Interval (minutes) before reporter is considered
|
|
inactive. Default: 10'' WHERE Name = ''reporter.reporterMissingThresholdMins''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''reporter.reporterMissingThresholdMins'',
|
|
''Interval (minutes) before reporter is considered inactive. Default: 10'', ''INTEGER'',
|
|
''10'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'reporter.reporterMissingSeverity';\n if (cnt > 0) then\n execute
|
|
E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'', IsHidden = ''N'', Description
|
|
= ''Issue severity for \"Reporter last seen active ...\" issues. One of ''''info'''',
|
|
''''warning'''', ''''error'''', or ''''critical'''' Default: critical'' WHERE
|
|
Name = ''reporter.reporterMissingSeverity''';\n else\n execute E'INSERT INTO
|
|
OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden)
|
|
VALUES (nextval(''hibernate_sequence''), ''reporter.reporterMissingSeverity'',
|
|
''Issue severity for \"Reporter last seen active ...\" issues. One of ''''info'''',
|
|
''''warning'''', ''''error'''', or ''''critical'''' Default: critical'', ''STRING'',
|
|
''critical'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'host.defaultWarningNotificationGroup';\n if (cnt > 0) then\n execute
|
|
E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'', IsHidden = ''N'', Description
|
|
= ''The default warning notification group for hosts. Default: <blank>'' WHERE
|
|
Name = ''host.defaultWarningNotificationGroup''';\n else\n execute E'INSERT
|
|
INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden)
|
|
VALUES (nextval(''hibernate_sequence''), ''host.defaultWarningNotificationGroup'',
|
|
''The default warning notification group for hosts. Default: <blank>'', ''STRING'',
|
|
'''', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'host.defaultErrorNotificationGroup';\n if (cnt > 0) then\n execute
|
|
E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'', IsHidden = ''N'', Description
|
|
= ''The default error notification group for hosts. Default: <blank>'' WHERE Name
|
|
= ''host.defaultErrorNotificationGroup''';\n else\n execute E'INSERT INTO
|
|
OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden)
|
|
VALUES (nextval(''hibernate_sequence''), ''host.defaultErrorNotificationGroup'',
|
|
''The default error notification group for hosts. Default: <blank>'', ''STRING'',
|
|
'''', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'host.defaultCriticalErrorNotificationGroup';\n if (cnt > 0) then\n
|
|
\ execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'', IsHidden =
|
|
''N'', Description = ''The default critical error notification group for hosts.
|
|
Default: <blank>'' WHERE Name = ''host.defaultCriticalErrorNotificationGroup''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''host.defaultCriticalErrorNotificationGroup'',
|
|
''The default critical error notification group for hosts. Default: <blank>'',
|
|
''STRING'', '''', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'reporterConfig.wssEncryptedPasswordFormat';\n if (cnt > 0) then\n
|
|
\ execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden =
|
|
''N'', Description = ''The format used by the bridge for encrypted web service
|
|
account passwords. Can be 0, 2 or 3. Default: 0'' WHERE Name = ''reporterConfig.wssEncryptedPasswordFormat''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''reporterConfig.wssEncryptedPasswordFormat'',
|
|
''The format used by the bridge for encrypted web service account passwords. Can
|
|
be 0, 2 or 3. Default: 0'', ''INTEGER'', ''0'', ''N'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'email.browserUrl';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'',
|
|
IsHidden = ''N'', Description = ''The base URL needed to reach the Control>Center
|
|
-- for example: https://acme.org:1234/controlcenter. Enables Control>Center to
|
|
email links to views of jobs or other objects of interest. Default: <blank>''
|
|
WHERE Name = ''email.browserUrl''';\n else\n execute E'INSERT INTO OpConfigValue
|
|
(ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''email.browserUrl'', ''The base URL needed to reach the Control>Center -- for
|
|
example: https://acme.org:1234/controlcenter. Enables Control>Center to email
|
|
links to views of jobs or other objects of interest. Default: <blank>'', ''STRING'',
|
|
'''', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'email.fromAddress';\n if (cnt > 0) then\n execute E'UPDATE OpConfigValue
|
|
SET ValueTypeEnum = ''STRING'', IsHidden = ''N'', Description = ''Address from
|
|
which email notifications will be sent. Default: <blank>'' WHERE Name = ''email.fromAddress''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''email.fromAddress'',
|
|
''Address from which email notifications will be sent. Default: <blank>'', ''STRING'',
|
|
'''', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'email.mailHost';\n if (cnt > 0) then\n execute E'UPDATE OpConfigValue
|
|
SET ValueTypeEnum = ''STRING'', IsHidden = ''N'', Description = ''SMTP server
|
|
hostname used to send email notifications. Default: <blank>'' WHERE Name = ''email.mailHost''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''email.mailHost'',
|
|
''SMTP server hostname used to send email notifications. Default: <blank>'', ''STRING'',
|
|
'''', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'email.port';\n if (cnt > 0) then\n execute E'UPDATE OpConfigValue
|
|
SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description = ''SMTP server
|
|
port used to send email notifications. Default: 25'' WHERE Name = ''email.port''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''email.port'',
|
|
''SMTP server port used to send email notifications. Default: 25'', ''INTEGER'',
|
|
''25'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'email.protocol';\n if (cnt > 0) then\n execute E'UPDATE OpConfigValue
|
|
SET ValueTypeEnum = ''STRING'', IsHidden = ''N'', Description = ''Protocol used
|
|
to send email notifications. Can be smtp or smtps. Default: smtp'' WHERE Name
|
|
= ''email.protocol''';\n else\n execute E'INSERT INTO OpConfigValue (ConfigValueId,
|
|
Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''email.protocol'', ''Protocol used to send email notifications. Can be smtp
|
|
or smtps. Default: smtp'', ''STRING'', ''smtp'', ''N'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'email.username';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'',
|
|
IsHidden = ''N'', Description = ''Username to use for authenticating email notifications.''
|
|
WHERE Name = ''email.username''';\n else\n execute E'INSERT INTO OpConfigValue
|
|
(ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''email.username'', ''Username to use for authenticating email notifications.'',
|
|
''STRING'', '''', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'email.password';\n if (cnt > 0) then\n execute E'UPDATE OpConfigValue
|
|
SET ValueTypeEnum = ''PASSWORD'', IsHidden = ''N'', Description = ''Password to
|
|
use for authenticating email notifications.'' WHERE Name = ''email.password''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''email.password'',
|
|
''Password to use for authenticating email notifications.'', ''PASSWORD'', '''',
|
|
''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue where Name
|
|
= 'email.uiLink.include';\n if (cnt > 0) then\n execute E'UPDATE OpConfigValue
|
|
SET ValueTypeEnum = ''STRING'', IsHidden = ''N'', Description = ''Include link(s)
|
|
to UI in email, NONE, FLEX, HTML5, or ALL: Default: ALL'' WHERE Name = ''email.uiLink.include''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''email.uiLink.include'',
|
|
''Include link(s) to UI in email, NONE, FLEX, HTML5, or ALL: Default: ALL'', ''STRING'',
|
|
''ALL'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'interop.help.url';\n if (cnt > 0) then\n execute E'UPDATE OpConfigValue
|
|
SET ValueTypeEnum = ''STRING'', IsHidden = ''N'', Description = ''The URL needed
|
|
to access the Ab Initio Help server, for example, http://helpserver:8080/help.
|
|
Default: <blank>'' WHERE Name = ''interop.help.url''';\n else\n execute E'INSERT
|
|
INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden)
|
|
VALUES (nextval(''hibernate_sequence''), ''interop.help.url'', ''The URL needed
|
|
to access the Ab Initio Help server, for example, http://helpserver:8080/help.
|
|
Default: <blank>'', ''STRING'', '''', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'help.version';\n if (cnt > 0) then\n execute
|
|
E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'', IsHidden = ''Y'', Description
|
|
= ''FOR INTERNAL USE ONLY. The version of help requested from the Ab Initio Help
|
|
server. Default: 4.4.1'' WHERE Name = ''help.version''';\n else\n execute
|
|
E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''help.version'', ''FOR
|
|
INTERNAL USE ONLY. The version of help requested from the Ab Initio Help server.
|
|
Default: 4.4.1'', ''STRING'', ''4.4.1'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpConfigValue where Name = 'integration.appconf.propertyTypes';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'',
|
|
IsHidden = ''N'', Description = ''List of Application Configuration property types:
|
|
Name1:Description1,...'' WHERE Name = ''integration.appconf.propertyTypes''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''integration.appconf.propertyTypes'',
|
|
''List of Application Configuration property types: Name1:Description1,...'',
|
|
''STRING'', ''LOGICAL_USER:User account requesting Application Configuration Environment
|
|
job.,APPLICATION_CONFIGURATION:Name of the configuration for the Application Configuration
|
|
Environment job,APPLICATION_TEMPLATE:Name of the template for the Application
|
|
Configuration Environment job'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'interop.trw.url';\n if (cnt > 0) then\n execute
|
|
E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'', IsHidden = ''N'', Description
|
|
= ''URL for the EME Technical Repository Web Interface. Default: <blank>'' WHERE
|
|
Name = ''interop.trw.url''';\n else\n execute E'INSERT INTO OpConfigValue
|
|
(ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''interop.trw.url'', ''URL for the EME Technical Repository Web Interface. Default:
|
|
<blank>'', ''STRING'', '''', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'logAlert.dbSpace.autoDismiss.minutes';\n if
|
|
(cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''Y'', Description = ''Number of minutes after which a critical database
|
|
alert will be automatically dismissed. If -1 (recommended), will never auto-dismiss.
|
|
If 0, will entirely disable critical database alerts and all other log alerts
|
|
(this is highly discouraged). If changed from nonzero value to 0 or vice versa,
|
|
app server must be restarted for change to take effect (value of 0 will cause
|
|
immediate dismissal in the meantime). Default: -1'' WHERE Name = ''logAlert.dbSpace.autoDismiss.minutes''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''logAlert.dbSpace.autoDismiss.minutes'',
|
|
''Number of minutes after which a critical database alert will be automatically
|
|
dismissed. If -1 (recommended), will never auto-dismiss. If 0, will entirely disable
|
|
critical database alerts and all other log alerts (this is highly discouraged).
|
|
If changed from nonzero value to 0 or vice versa, app server must be restarted
|
|
for change to take effect (value of 0 will cause immediate dismissal in the meantime).
|
|
Default: -1'', ''INTEGER'', ''-1'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'logAlert.dbSpace.notification.interval';\n if
|
|
(cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Minimum number of minutes between email and/or
|
|
HTTP notifications for each active log alert that indicates the Operational Database
|
|
is out of space. Default: 15'' WHERE Name = ''logAlert.dbSpace.notification.interval''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''logAlert.dbSpace.notification.interval'',
|
|
''Minimum number of minutes between email and/or HTTP notifications for each active
|
|
log alert that indicates the Operational Database is out of space. Default: 15'',
|
|
''INTEGER'', ''15'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'metrics.allHostsMetricWindowSecs';\n if (cnt > 0) then\n execute
|
|
E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description
|
|
= ''Maximum number of seconds to search back for host history metrics. Default:
|
|
604800 (7 days)'' WHERE Name = ''metrics.allHostsMetricWindowSecs''';\n else\n
|
|
\ execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''metrics.allHostsMetricWindowSecs'',
|
|
''Maximum number of seconds to search back for host history metrics. Default:
|
|
604800 (7 days)'', ''INTEGER'', ''604800'', ''N'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpConfigValue where Name = 'metrics.maxChartPoints';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Maximum number of points shown in the history
|
|
chart. Default: 50'' WHERE Name = ''metrics.maxChartPoints''';\n else\n execute
|
|
E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''metrics.maxChartPoints'',
|
|
''Maximum number of points shown in the history chart. Default: 50'', ''INTEGER'',
|
|
''50'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'metrics.maxMetricValueHistoryDepth';\n if (cnt > 0) then\n execute
|
|
E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description
|
|
= ''Maximum number of history values sent to the CoS for history-based metrics.
|
|
Default: 50'' WHERE Name = ''metrics.maxMetricValueHistoryDepth''';\n else\n
|
|
\ execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''metrics.maxMetricValueHistoryDepth'',
|
|
''Maximum number of history values sent to the CoS for history-based metrics.
|
|
Default: 50'', ''INTEGER'', ''50'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'metrics.minMetricValueHistoryDepth';\n if (cnt
|
|
> 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Minimum number of history values sent to the
|
|
CoS for history-based metrics. Default: 3'' WHERE Name = ''metrics.minMetricValueHistoryDepth''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''metrics.minMetricValueHistoryDepth'',
|
|
''Minimum number of history values sent to the CoS for history-based metrics.
|
|
Default: 3'', ''INTEGER'', ''3'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'metrics.recalcHistoryStatsSecs';\n if (cnt >
|
|
0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden
|
|
= ''N'', Description = ''Interval in seconds between recalculations of history
|
|
stats. Default: 3600'' WHERE Name = ''metrics.recalcHistoryStatsSecs''';\n else\n
|
|
\ execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''metrics.recalcHistoryStatsSecs'',
|
|
''Interval in seconds between recalculations of history stats. Default: 3600'',
|
|
''INTEGER'', ''3600'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'metrics.staleHostMetricValueIntervalSecs';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Interval in seconds after which values in the
|
|
Hosts grid become stale. Default: 300'' WHERE Name = ''metrics.staleHostMetricValueIntervalSecs''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''metrics.staleHostMetricValueIntervalSecs'',
|
|
''Interval in seconds after which values in the Hosts grid become stale. Default:
|
|
300'', ''INTEGER'', ''300'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'network.DNS.expand';\n if (cnt > 0) then\n execute
|
|
E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description
|
|
= ''Indicates whether the Control>Center should use a Domain Network Service (DNS)
|
|
to expand host addresses into fully-qualified domain names. Default: 1'' WHERE
|
|
Name = ''network.DNS.expand''';\n else\n execute E'INSERT INTO OpConfigValue
|
|
(ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''network.DNS.expand'', ''Indicates whether the Control>Center should use a
|
|
Domain Network Service (DNS) to expand host addresses into fully-qualified domain
|
|
names. Default: 1'', ''INTEGER'', ''1'', ''N'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpConfigValue where Name = 'network.rfc2396.validate';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Determines whether the Control>Center validates
|
|
host and host alias names according to RFC 2396. To validate existing hostnames,
|
|
restart the Control>Center web application. Default: 0'' WHERE Name = ''network.rfc2396.validate''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''network.rfc2396.validate'',
|
|
''Determines whether the Control>Center validates host and host alias names according
|
|
to RFC 2396. To validate existing hostnames, restart the Control>Center web application.
|
|
Default: 0'', ''INTEGER'', ''0'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'ocagent.scheduler.identification';\n if (cnt
|
|
> 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'',
|
|
IsHidden = ''N'', Description = ''Identifies each Co>Operating System host''''s
|
|
unique scheduling reporter. Only necessary when a host is configured with multiple
|
|
reporters for multiple graph execution spaces. Example: host1.acme.org=/ab/workdir.
|
|
Default: <blank>'' WHERE Name = ''ocagent.scheduler.identification''';\n else\n
|
|
\ execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''ocagent.scheduler.identification'',
|
|
''Identifies each Co>Operating System host''''s unique scheduling reporter. Only
|
|
necessary when a host is configured with multiple reporters for multiple graph
|
|
execution spaces. Example: host1.acme.org=/ab/workdir. Default: <blank>'', ''STRING'',
|
|
'''', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'predictiveMonitoring.avgJobDuration.defaultSeconds';\n if (cnt
|
|
> 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Default duration (seconds) to use when too few
|
|
jobs are available to calculate average job duration from job history. Default:
|
|
60'' WHERE Name = ''predictiveMonitoring.avgJobDuration.defaultSeconds''';\n else\n
|
|
\ execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''predictiveMonitoring.avgJobDuration.defaultSeconds'',
|
|
''Default duration (seconds) to use when too few jobs are available to calculate
|
|
average job duration from job history. Default: 60'', ''INTEGER'', ''60'', ''N'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'predictiveMonitoring.avgJobDuration.minHistoryDepth';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Minimum number of successful job runs in the
|
|
past 28 days required to use the calculated average duration. Default: 3'' WHERE
|
|
Name = ''predictiveMonitoring.avgJobDuration.minHistoryDepth''';\n else\n execute
|
|
E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''predictiveMonitoring.avgJobDuration.minHistoryDepth'',
|
|
''Minimum number of successful job runs in the past 28 days required to use the
|
|
calculated average duration. Default: 3'', ''INTEGER'', ''3'', ''N'')';\n end
|
|
if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'purgeData.enabled';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''Y'', Description = ''Enables automated purge. Default: 1'' WHERE
|
|
Name = ''purgeData.enabled''';\n else\n execute E'INSERT INTO OpConfigValue
|
|
(ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''purgeData.enabled'', ''Enables automated purge. Default: 1'', ''INTEGER'',
|
|
''1'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'purgeData.nextRun';\n if (cnt > 0) then\n execute E'UPDATE OpConfigValue
|
|
SET ValueTypeEnum = ''DATE'', IsHidden = ''Y'', Description = ''When the next
|
|
automated purge should run; 1-Jan-2000 means never. Default: 2000-01-01 00:00:00.000
|
|
UTC'' WHERE Name = ''purgeData.nextRun''';\n else\n execute E'INSERT INTO
|
|
OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden)
|
|
VALUES (nextval(''hibernate_sequence''), ''purgeData.nextRun'', ''When the next
|
|
automated purge should run; 1-Jan-2000 means never. Default: 2000-01-01 00:00:00.000
|
|
UTC'', ''DATE'', ''2000-01-01 00:00:00.000 UTC'', ''Y'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'purgeData.howOften';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'',
|
|
IsHidden = ''Y'', Description = ''Whether automated purge runs daily or weekly.
|
|
\ Default: daily'' WHERE Name = ''purgeData.howOften''';\n else\n execute
|
|
E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''purgeData.howOften'',
|
|
''Whether automated purge runs daily or weekly. Default: daily'', ''STRING'',
|
|
''daily'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'purgeData.daysToRun';\n if (cnt > 0) then\n execute E'UPDATE
|
|
OpConfigValue SET ValueTypeEnum = ''STRING'', IsHidden = ''Y'', Description =
|
|
''Comma-separated list of days to run automated purge; 0=Sunday, 1=Monday... Default:
|
|
<blank>'' WHERE Name = ''purgeData.daysToRun''';\n else\n execute E'INSERT
|
|
INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden)
|
|
VALUES (nextval(''hibernate_sequence''), ''purgeData.daysToRun'', ''Comma-separated
|
|
list of days to run automated purge; 0=Sunday, 1=Monday... Default: <blank>'',
|
|
''STRING'', '''', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'purgeData.timeOfDay';\n if (cnt > 0) then\n execute E'UPDATE
|
|
OpConfigValue SET ValueTypeEnum = ''STRING'', IsHidden = ''Y'', Description =
|
|
''Time of day to run automated purge. Default: 00:00'' WHERE Name = ''purgeData.timeOfDay''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''purgeData.timeOfDay'',
|
|
''Time of day to run automated purge. Default: 00:00'', ''STRING'', ''00:00'',
|
|
''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue where Name
|
|
= 'purgeData.timeZone';\n if (cnt > 0) then\n execute E'UPDATE OpConfigValue
|
|
SET ValueTypeEnum = ''STRING'', IsHidden = ''Y'', Description = ''Time zone in
|
|
which to run automated purge. Default: UTC'' WHERE Name = ''purgeData.timeZone''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''purgeData.timeZone'',
|
|
''Time zone in which to run automated purge. Default: UTC'', ''STRING'', ''UTC'',
|
|
''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue where Name
|
|
= 'purgeData.jobs.enabled';\n if (cnt > 0) then\n execute E'UPDATE OpConfigValue
|
|
SET ValueTypeEnum = ''INTEGER'', IsHidden = ''Y'', Description = ''Enabled automated
|
|
purge of jobs and job history. Default: 1'' WHERE Name = ''purgeData.jobs.enabled''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''purgeData.jobs.enabled'',
|
|
''Enabled automated purge of jobs and job history. Default: 1'', ''INTEGER'',
|
|
''1'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'purgeData.jobs.olderThanDays';\n if (cnt > 0) then\n execute
|
|
E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''Y'', Description
|
|
= ''Days of job history to keep for automated purge. Default: 365'' WHERE Name
|
|
= ''purgeData.jobs.olderThanDays''';\n else\n execute E'INSERT INTO OpConfigValue
|
|
(ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''purgeData.jobs.olderThanDays'', ''Days of job history to keep for automated
|
|
purge. Default: 365'', ''INTEGER'', ''365'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpConfigValue where Name = 'purgeData.forcePurgeOldMetricValues.enabled';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''Y'', Description = ''Purges all metric values older than the user
|
|
specified job purge threshold. The practical effect is to limit the metric data
|
|
associated with long-running jobs. Default: 1'' WHERE Name = ''purgeData.forcePurgeOldMetricValues.enabled''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''purgeData.forcePurgeOldMetricValues.enabled'',
|
|
''Purges all metric values older than the user specified job purge threshold.
|
|
The practical effect is to limit the metric data associated with long-running
|
|
jobs. Default: 1'', ''INTEGER'', ''1'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpConfigValue where Name = 'purgeData.forcePurgeKeyData.enabled';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''Y'', Description = ''Purges all key data for which there are no references.
|
|
Default: 1'' WHERE Name = ''purgeData.forcePurgeKeyData.enabled''';\n else\n
|
|
\ execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''purgeData.forcePurgeKeyData.enabled'',
|
|
''Purges all key data for which there are no references. Default: 1'', ''INTEGER'',
|
|
''1'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'purgeData.purgeUnusedExecutables.enabled';\n if (cnt > 0) then\n
|
|
\ execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden =
|
|
''Y'', Description = ''Purges all executables that are no longer associated with
|
|
a job, metric, or other executable. Default: 0'' WHERE Name = ''purgeData.purgeUnusedExecutables.enabled''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''purgeData.purgeUnusedExecutables.enabled'',
|
|
''Purges all executables that are no longer associated with a job, metric, or
|
|
other executable. Default: 0'', ''INTEGER'', ''0'', ''Y'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'purgeData.purgeUnusedEmeExecutables.enabled';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''Y'', Description = ''Purges all EME executables that are no longer
|
|
associated with a metric or executable. Default: 0'' WHERE Name = ''purgeData.purgeUnusedEmeExecutables.enabled''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''purgeData.purgeUnusedEmeExecutables.enabled'',
|
|
''Purges all EME executables that are no longer associated with a metric or executable.
|
|
Default: 0'', ''INTEGER'', ''0'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'purgeData.purgeOldResources.enabled';\n if (cnt
|
|
> 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''Y'', Description = ''Purges all resource servers and requests older
|
|
than the user specified job purge threshold. Default: 0'' WHERE Name = ''purgeData.purgeOldResources.enabled''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''purgeData.purgeOldResources.enabled'',
|
|
''Purges all resource servers and requests older than the user specified job purge
|
|
threshold. Default: 0'', ''INTEGER'', ''0'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpConfigValue where Name = 'purgeData.jobs.runningAlso';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''Y'', Description = ''Should automated purge delete running jobs?
|
|
\ Default: 0'' WHERE Name = ''purgeData.jobs.runningAlso''';\n else\n execute
|
|
E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''purgeData.jobs.runningAlso'',
|
|
''Should automated purge delete running jobs? Default: 0'', ''INTEGER'', ''0'',
|
|
''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue where Name
|
|
= 'purgeData.jobs.scheduledAlso';\n if (cnt > 0) then\n execute E'UPDATE OpConfigValue
|
|
SET ValueTypeEnum = ''INTEGER'', IsHidden = ''Y'', Description = ''Should automated
|
|
purge delete scheduled jobs? Default: 1'' WHERE Name = ''purgeData.jobs.scheduledAlso''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''purgeData.jobs.scheduledAlso'',
|
|
''Should automated purge delete scheduled jobs? Default: 1'', ''INTEGER'', ''1'',
|
|
''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue where Name
|
|
= 'purgeData.queues.enabled';\n if (cnt > 0) then\n execute E'UPDATE OpConfigValue
|
|
SET ValueTypeEnum = ''INTEGER'', IsHidden = ''Y'', Description = ''Enable automated
|
|
purge of queue history. Default: 1'' WHERE Name = ''purgeData.queues.enabled''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''purgeData.queues.enabled'',
|
|
''Enable automated purge of queue history. Default: 1'', ''INTEGER'', ''1'',
|
|
''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue where Name
|
|
= 'purgeData.queues.olderThanDays';\n if (cnt > 0) then\n execute E'UPDATE
|
|
OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''Y'', Description =
|
|
''Days of queue history to keep for automated purge. Default: 365'' WHERE Name
|
|
= ''purgeData.queues.olderThanDays''';\n else\n execute E'INSERT INTO OpConfigValue
|
|
(ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''purgeData.queues.olderThanDays'', ''Days of queue history to keep for automated
|
|
purge. Default: 365'', ''INTEGER'', ''365'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpConfigValue where Name = 'purgeData.hosts.enabled';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''Y'', Description = ''Enable automated purge of host history. Default:
|
|
1'' WHERE Name = ''purgeData.hosts.enabled''';\n else\n execute E'INSERT INTO
|
|
OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden)
|
|
VALUES (nextval(''hibernate_sequence''), ''purgeData.hosts.enabled'', ''Enable
|
|
automated purge of host history. Default: 1'', ''INTEGER'', ''1'', ''Y'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'purgeData.hosts.olderThanDays';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''Y'', Description = ''Days of host history to keep for automated purge.
|
|
\ Default: 365'' WHERE Name = ''purgeData.hosts.olderThanDays''';\n else\n execute
|
|
E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''purgeData.hosts.olderThanDays'',
|
|
''Days of host history to keep for automated purge. Default: 365'', ''INTEGER'',
|
|
''365'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'purgeData.products.enabled';\n if (cnt > 0) then\n execute E'UPDATE
|
|
OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''Y'', Description =
|
|
''Enable automated purge of product history. Default: 1'' WHERE Name = ''purgeData.products.enabled''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''purgeData.products.enabled'',
|
|
''Enable automated purge of product history. Default: 1'', ''INTEGER'', ''1'',
|
|
''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue where Name
|
|
= 'purgeData.products.olderThanDays';\n if (cnt > 0) then\n execute E'UPDATE
|
|
OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''Y'', Description =
|
|
''Days of product history to keep for automated purge. Default: 365'' WHERE Name
|
|
= ''purgeData.products.olderThanDays''';\n else\n execute E'INSERT INTO OpConfigValue
|
|
(ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''purgeData.products.olderThanDays'', ''Days of product history to keep for
|
|
automated purge. Default: 365'', ''INTEGER'', ''365'', ''Y'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'purgeData.propertyTypes.enabled';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''Y'', Description = ''Purges all property types that are marked for
|
|
delete and have no remaining references. Default: 1'' WHERE Name = ''purgeData.propertyTypes.enabled''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''purgeData.propertyTypes.enabled'',
|
|
''Purges all property types that are marked for delete and have no remaining references.
|
|
Default: 1'', ''INTEGER'', ''1'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'purgeData.reporters.enabled';\n if (cnt > 0)
|
|
then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden
|
|
= ''Y'', Description = ''Enable automated purge of reporter history. Default:
|
|
1'' WHERE Name = ''purgeData.reporters.enabled''';\n else\n execute E'INSERT
|
|
INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden)
|
|
VALUES (nextval(''hibernate_sequence''), ''purgeData.reporters.enabled'', ''Enable
|
|
automated purge of reporter history. Default: 1'', ''INTEGER'', ''1'', ''Y'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'purgeData.reporters.olderThanDays';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''Y'', Description = ''Days of reporter history to keep for automated
|
|
purge. Default: 365'' WHERE Name = ''purgeData.reporters.olderThanDays''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''purgeData.reporters.olderThanDays'',
|
|
''Days of reporter history to keep for automated purge. Default: 365'', ''INTEGER'',
|
|
''365'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'purgeData.systems.enabled';\n if (cnt > 0) then\n execute E'UPDATE
|
|
OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''Y'', Description =
|
|
''Enable automated purge of systems. Default: 1'' WHERE Name = ''purgeData.systems.enabled''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''purgeData.systems.enabled'',
|
|
''Enable automated purge of systems. Default: 1'', ''INTEGER'', ''1'', ''Y'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'purgeData.systemEvents.enabled';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''Y'', Description = ''Enable automated purge of system events. Default:
|
|
1'' WHERE Name = ''purgeData.systemEvents.enabled''';\n else\n execute E'INSERT
|
|
INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden)
|
|
VALUES (nextval(''hibernate_sequence''), ''purgeData.systemEvents.enabled'',
|
|
''Enable automated purge of system events. Default: 1'', ''INTEGER'', ''1'',
|
|
''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue where Name
|
|
= 'purgeData.systemEvents.olderThanDays';\n if (cnt > 0) then\n execute E'UPDATE
|
|
OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''Y'', Description =
|
|
''Days of system history to keep for automated purge. Default: 365'' WHERE Name
|
|
= ''purgeData.systemEvents.olderThanDays''';\n else\n execute E'INSERT INTO
|
|
OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden)
|
|
VALUES (nextval(''hibernate_sequence''), ''purgeData.systemEvents.olderThanDays'',
|
|
''Days of system history to keep for automated purge. Default: 365'', ''INTEGER'',
|
|
''365'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'purgeData.jamon.enabled';\n if (cnt > 0) then\n execute E'UPDATE
|
|
OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''Y'', Description =
|
|
''Enable automated purge of JAMon report history. Default: 1'' WHERE Name = ''purgeData.jamon.enabled''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''purgeData.jamon.enabled'',
|
|
''Enable automated purge of JAMon report history. Default: 1'', ''INTEGER'',
|
|
''1'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'purgeData.jamon.olderThanDays';\n if (cnt > 0) then\n execute
|
|
E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''Y'', Description
|
|
= ''Days of hourly JAMon report history to keep for automated purge. Default:
|
|
14'' WHERE Name = ''purgeData.jamon.olderThanDays''';\n else\n execute E'INSERT
|
|
INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden)
|
|
VALUES (nextval(''hibernate_sequence''), ''purgeData.jamon.olderThanDays'', ''Days
|
|
of hourly JAMon report history to keep for automated purge. Default: 14'', ''INTEGER'',
|
|
''14'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'dailyCpuRollup.enabled';\n if (cnt > 0) then\n execute E'UPDATE
|
|
OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description =
|
|
''Enable daily CPU rollup background task. Default: 0'' WHERE Name = ''dailyCpuRollup.enabled''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''dailyCpuRollup.enabled'',
|
|
''Enable daily CPU rollup background task. Default: 0'', ''INTEGER'', ''0'', ''N'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'dailyCpuRollup.lookBackDays';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''Y'', Description = ''Recent days covered by daily CPU rollup task.
|
|
\ Default: 7'' WHERE Name = ''dailyCpuRollup.lookBackDays''';\n else\n execute
|
|
E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''dailyCpuRollup.lookBackDays'',
|
|
''Recent days covered by daily CPU rollup task. Default: 7'', ''INTEGER'', ''7'',
|
|
''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue where Name
|
|
= 'dailyCpuRollup.timeOfDay';\n if (cnt > 0) then\n execute E'UPDATE OpConfigValue
|
|
SET ValueTypeEnum = ''STRING'', IsHidden = ''Y'', Description = ''Time of day
|
|
to run daily CPU rollup background task. Default: 03:00'' WHERE Name = ''dailyCpuRollup.timeOfDay''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''dailyCpuRollup.timeOfDay'',
|
|
''Time of day to run daily CPU rollup background task. Default: 03:00'', ''STRING'',
|
|
''03:00'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'dailyCpuRollup.timeZone';\n if (cnt > 0) then\n execute E'UPDATE
|
|
OpConfigValue SET ValueTypeEnum = ''STRING'', IsHidden = ''Y'', Description =
|
|
''Time zone of dailyCpuRollup.timeOfDay. Default: UTC'' WHERE Name = ''dailyCpuRollup.timeZone''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''dailyCpuRollup.timeZone'',
|
|
''Time zone of dailyCpuRollup.timeOfDay. Default: UTC'', ''STRING'', ''UTC'',
|
|
''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue where Name
|
|
= 'dailyCpuRollup.nextRun';\n if (cnt > 0) then\n execute E'UPDATE OpConfigValue
|
|
SET ValueTypeEnum = ''DATE'', IsHidden = ''Y'', Description = ''Scheduled time
|
|
for new run of daily CPU rollup background task. Read-only. No default.'' WHERE
|
|
Name = ''dailyCpuRollup.nextRun''';\n else\n execute E'INSERT INTO OpConfigValue
|
|
(ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''dailyCpuRollup.nextRun'', ''Scheduled time for new run of daily CPU rollup
|
|
background task. Read-only. No default.'', ''DATE'', ''2000-01-01 00:00:00.000
|
|
UTC'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'dbHealthReport.queries.enabled';\n if (cnt > 0) then\n execute
|
|
E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description
|
|
= ''Enable running DB health report queries at application start. Default: 0''
|
|
WHERE Name = ''dbHealthReport.queries.enabled''';\n else\n execute E'INSERT
|
|
INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden)
|
|
VALUES (nextval(''hibernate_sequence''), ''dbHealthReport.queries.enabled'',
|
|
''Enable running DB health report queries at application start. Default: 0'',
|
|
''INTEGER'', ''0'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'dbHealthReport.enabled';\n if (cnt > 0) then\n execute E'UPDATE
|
|
OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description =
|
|
''Enable running DB health report at application start. Default: 1'' WHERE Name
|
|
= ''dbHealthReport.enabled''';\n else\n execute E'INSERT INTO OpConfigValue
|
|
(ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''dbHealthReport.enabled'', ''Enable running DB health report at application
|
|
start. Default: 1'', ''INTEGER'', ''1'', ''N'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpConfigValue where Name = 'jdbc.maxActiveConnections';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''The maximum number of outstanding JDBC connections
|
|
to the database. Default: 8'' WHERE Name = ''jdbc.maxActiveConnections''';\n else\n
|
|
\ execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''jdbc.maxActiveConnections'',
|
|
''The maximum number of outstanding JDBC connections to the database. Default:
|
|
8'', ''INTEGER'', ''8'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'queue.multipublisher.keepAsClientMins';\n if
|
|
(cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Number of minutes after job completion a graph
|
|
job will be associated with its target multipublisher queue. Default: 1440 (1
|
|
day)'' WHERE Name = ''queue.multipublisher.keepAsClientMins''';\n else\n execute
|
|
E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''queue.multipublisher.keepAsClientMins'',
|
|
''Number of minutes after job completion a graph job will be associated with its
|
|
target multipublisher queue. Default: 1440 (1 day)'', ''INTEGER'', ''1440'', ''N'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'queue.email.sendIntervalMinutes';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''A floor on how often issue emails will be sent
|
|
for any one queue. Default: 60 (1 hour)'' WHERE Name = ''queue.email.sendIntervalMinutes''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''queue.email.sendIntervalMinutes'',
|
|
''A floor on how often issue emails will be sent for any one queue. Default: 60
|
|
(1 hour)'', ''INTEGER'', ''60'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'queue.email.sendOnResolvedIssue.enabled';\n if
|
|
(cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Send emails on any queue status change, or (disabled)
|
|
send email on queue status change from OK to any or from WARN to ERROR. Default:
|
|
0 (disabled)'' WHERE Name = ''queue.email.sendOnResolvedIssue.enabled''';\n else\n
|
|
\ execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''queue.email.sendOnResolvedIssue.enabled'',
|
|
''Send emails on any queue status change, or (disabled) send email on queue status
|
|
change from OK to any or from WARN to ERROR. Default: 0 (disabled)'', ''INTEGER'',
|
|
''0'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'SchemaVersion';\n if (cnt > 0) then\n execute E'UPDATE OpConfigValue
|
|
SET ValueTypeEnum = ''STRING'', IsHidden = ''Y'', Description = ''FOR INTERNAL
|
|
USE ONLY. The internal value for the database schema. The Schema Upgrade scripts
|
|
consult this value to decide which upgrades to perform. Default: 4.4.1'' WHERE
|
|
Name = ''SchemaVersion''';\n else\n execute E'INSERT INTO OpConfigValue (ConfigValueId,
|
|
Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''SchemaVersion'', ''FOR INTERNAL USE ONLY. The internal value for the database
|
|
schema. The Schema Upgrade scripts consult this value to decide which upgrades
|
|
to perform. Default: 4.4.1'', ''STRING'', ''4.4.1'', ''Y'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'security.adminpage.sqlconsole.enabled';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Determine whether SQL console on the admin page
|
|
is enabled. Default: 1'' WHERE Name = ''security.adminpage.sqlconsole.enabled''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''security.adminpage.sqlconsole.enabled'',
|
|
''Determine whether SQL console on the admin page is enabled. Default: 1'', ''INTEGER'',
|
|
''1'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'security.adminpage.jobdeletion.enabled';\n if (cnt > 0) then\n
|
|
\ execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden =
|
|
''N'', Description = ''Determine whether job deletion from the admin page is enabled.
|
|
Default: 0'' WHERE Name = ''security.adminpage.jobdeletion.enabled''';\n else\n
|
|
\ execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''security.adminpage.jobdeletion.enabled'',
|
|
''Determine whether job deletion from the admin page is enabled. Default: 0'',
|
|
''INTEGER'', ''0'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'authorizationGateway.url';\n if (cnt > 0) then\n execute E'UPDATE
|
|
OpConfigValue SET ValueTypeEnum = ''STRING'', IsHidden = ''Y'', Description =
|
|
''URL for Authorization Gateway. Default: http://myAGHost:8080/AuthGateway/''
|
|
WHERE Name = ''authorizationGateway.url''';\n else\n execute E'INSERT INTO
|
|
OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden)
|
|
VALUES (nextval(''hibernate_sequence''), ''authorizationGateway.url'', ''URL
|
|
for Authorization Gateway. Default: http://myAGHost:8080/AuthGateway/'', ''STRING'',
|
|
''http://myAGHost:8080/AuthGateway/'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpConfigValue where Name = 'authorizationGateway.username';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'',
|
|
IsHidden = ''Y'', Description = ''Authorization Gateway username used when connecting
|
|
to AG. User must be defined in OC database. Default: agUser'' WHERE Name = ''authorizationGateway.username''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''authorizationGateway.username'',
|
|
''Authorization Gateway username used when connecting to AG. User must be defined
|
|
in OC database. Default: agUser'', ''STRING'', ''agUser'', ''Y'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'authorizationGateway.password';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''PASSWORD'',
|
|
IsHidden = ''Y'', Description = ''AES-encrypted Authorization Gateway password
|
|
used when connecting to AG. Default: <blank>'' WHERE Name = ''authorizationGateway.password''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''authorizationGateway.password'',
|
|
''AES-encrypted Authorization Gateway password used when connecting to AG. Default:
|
|
<blank>'', ''PASSWORD'', '''', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'authorizationGateway.productName';\n if (cnt
|
|
> 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'',
|
|
IsHidden = ''Y'', Description = ''Name displayed within Authorization Gateway
|
|
for this OC instance. If blank, the product name is generated by OC based on the
|
|
database configuration values. If you specify a name, it must be unique (no other
|
|
product within AG has the same name). Default: <blank>'' WHERE Name = ''authorizationGateway.productName''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''authorizationGateway.productName'',
|
|
''Name displayed within Authorization Gateway for this OC instance. If blank,
|
|
the product name is generated by OC based on the database configuration values.
|
|
If you specify a name, it must be unique (no other product within AG has the same
|
|
name). Default: <blank>'', ''STRING'', '''', ''Y'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpConfigValue where Name = 'authorizationGateway.productDescription';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'',
|
|
IsHidden = ''Y'', Description = ''Description for Authorization Gateway for this
|
|
OC. Default: <blank>'' WHERE Name = ''authorizationGateway.productDescription''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''authorizationGateway.productDescription'',
|
|
''Description for Authorization Gateway for this OC. Default: <blank>'', ''STRING'',
|
|
'''', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'security.requireSecureTransport.httpsPort';\n if (cnt > 0) then\n
|
|
\ execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden =
|
|
''N'', Description = ''Application server HTTPS port number. Default: 8443'' WHERE
|
|
Name = ''security.requireSecureTransport.httpsPort''';\n else\n execute E'INSERT
|
|
INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden)
|
|
VALUES (nextval(''hibernate_sequence''), ''security.requireSecureTransport.httpsPort'',
|
|
''Application server HTTPS port number. Default: 8443'', ''INTEGER'', ''8443'',
|
|
''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue where Name
|
|
= 'authentication.type';\n if (cnt > 0) then\n execute E'UPDATE OpConfigValue
|
|
SET ValueTypeEnum = ''STRING'', IsHidden = ''N'', Description = ''The authentication
|
|
provider used to authenticate user accounts. Can be one of SSO, AG or Local. If
|
|
this value is not SSO, it should match the value of the authorization.type parameter.
|
|
Default: Local'' WHERE Name = ''authentication.type''';\n else\n execute E'INSERT
|
|
INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden)
|
|
VALUES (nextval(''hibernate_sequence''), ''authentication.type'', ''The authentication
|
|
provider used to authenticate user accounts. Can be one of SSO, AG or Local. If
|
|
this value is not SSO, it should match the value of the authorization.type parameter.
|
|
Default: Local'', ''STRING'', ''Local'', ''N'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpConfigValue where Name = 'authorization.type';\n if
|
|
(cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'',
|
|
IsHidden = ''N'', Description = ''The authorization provider that manages roles
|
|
and groups for authenticated users. Can be one of AG or Local. This value should
|
|
match the value of the authentication.type parameter (unless the value of the
|
|
authentication.type parameter is SSO). Default: Local'' WHERE Name = ''authorization.type''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''authorization.type'',
|
|
''The authorization provider that manages roles and groups for authenticated users.
|
|
Can be one of AG or Local. This value should match the value of the authentication.type
|
|
parameter (unless the value of the authentication.type parameter is SSO). Default:
|
|
Local'', ''STRING'', ''Local'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'isAGJoined';\n if (cnt > 0) then\n execute
|
|
E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description
|
|
= ''Is the application joined to the AG'' WHERE Name = ''isAGJoined''';\n else\n
|
|
\ execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''isAGJoined'', ''Is
|
|
the application joined to the AG'', ''INTEGER'', ''0'', ''N'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'authentication.enableDirectLogin';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Determines whether authentication is allowed
|
|
via the Control_Center_base_URL/authenticate/login.jsp endpoint. If the Control>Center
|
|
is connected to an Authorization Gateway, this endpoint will use the Authorization
|
|
Gateway to authenticate credentials. If the Control>Center is not connected to
|
|
an Authorization Gateway, the endpoint will use the local database to authenticate
|
|
credentials. Select the Value checkbox to allow authentication via the Control_Center_base_URL/authenticate/login.jsp
|
|
endpoint. NOTE: The value of this parameter will only be used when the value of
|
|
the authentication.type parameter is set to SSO. Default: 1'' WHERE Name = ''authentication.enableDirectLogin''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''authentication.enableDirectLogin'',
|
|
''Determines whether authentication is allowed via the Control_Center_base_URL/authenticate/login.jsp
|
|
endpoint. If the Control>Center is connected to an Authorization Gateway, this
|
|
endpoint will use the Authorization Gateway to authenticate credentials. If the
|
|
Control>Center is not connected to an Authorization Gateway, the endpoint will
|
|
use the local database to authenticate credentials. Select the Value checkbox
|
|
to allow authentication via the Control_Center_base_URL/authenticate/login.jsp
|
|
endpoint. NOTE: The value of this parameter will only be used when the value of
|
|
the authentication.type parameter is set to SSO. Default: 1'', ''INTEGER'', ''1'',
|
|
''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue where Name
|
|
= 'security.requireSecureTransport.enabled';\n if (cnt > 0) then\n execute
|
|
E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description
|
|
= ''Require secure https protocol used by browsers and web service clients (reporters).
|
|
Default: 1'' WHERE Name = ''security.requireSecureTransport.enabled''';\n else\n
|
|
\ execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''security.requireSecureTransport.enabled'',
|
|
''Require secure https protocol used by browsers and web service clients (reporters).
|
|
Default: 1'', ''INTEGER'', ''1'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'security.concurrentSessionPrevention.enabled';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Controls whether concurrent session prevention
|
|
for browser access is enabled. If set to 1, a user may not have more than one
|
|
active session at any time. Changing this value requires application restart.
|
|
Default: 0'' WHERE Name = ''security.concurrentSessionPrevention.enabled''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''security.concurrentSessionPrevention.enabled'',
|
|
''Controls whether concurrent session prevention for browser access is enabled.
|
|
If set to 1, a user may not have more than one active session at any time. Changing
|
|
this value requires application restart. Default: 0'', ''INTEGER'', ''0'', ''N'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'security.concurrentSessionPrevention.invalidateSession';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Controls whether disabled concurrent session
|
|
is also invalidated. Note, this can result in loss of work. Only effective when
|
|
security.concurrentSessionPrevention.enabled is set to 1. Changing this value
|
|
requires application restart. Default: 0'' WHERE Name = ''security.concurrentSessionPrevention.invalidateSession''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''security.concurrentSessionPrevention.invalidateSession'',
|
|
''Controls whether disabled concurrent session is also invalidated. Note, this
|
|
can result in loss of work. Only effective when security.concurrentSessionPrevention.enabled
|
|
is set to 1. Changing this value requires application restart. Default: 0'', ''INTEGER'',
|
|
''0'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'security.csrfPreventionEnabled';\n if (cnt > 0) then\n execute
|
|
E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description
|
|
= ''Controls whether CSRF Prevention for browser access is enabled. Changing this
|
|
value requires application restart. Default: 1'' WHERE Name = ''security.csrfPreventionEnabled''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''security.csrfPreventionEnabled'',
|
|
''Controls whether CSRF Prevention for browser access is enabled. Changing this
|
|
value requires application restart. Default: 1'', ''INTEGER'', ''1'', ''N'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'security.passwordEncryption.encryptionFormat';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'',
|
|
IsHidden = ''Y'', Description = ''The desired format for new encrypted values.
|
|
Can be ''''format3'''' or ''''pre-format3'''''' WHERE Name = ''security.passwordEncryption.encryptionFormat''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''security.passwordEncryption.encryptionFormat'',
|
|
''The desired format for new encrypted values. Can be ''''format3'''' or ''''pre-format3'''''',
|
|
''STRING'', ''format3'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'security.passwordEncryption.keyName';\n if (cnt
|
|
> 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'',
|
|
IsHidden = ''Y'', Description = ''The name of the key in the password key file
|
|
used for Format 3 encryption. Default: '''''''''' WHERE Name = ''security.passwordEncryption.keyName''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''security.passwordEncryption.keyName'',
|
|
''The name of the key in the password key file used for Format 3 encryption. Default:
|
|
'''''''''', ''STRING'', '''', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'security.http.headers.xContentTypeOptions.enabled';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Determines whether X-Content-Type-Options header
|
|
is set in server responses. Changing this value requires application restart.
|
|
Default: 1'' WHERE Name = ''security.http.headers.xContentTypeOptions.enabled''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''security.http.headers.xContentTypeOptions.enabled'',
|
|
''Determines whether X-Content-Type-Options header is set in server responses.
|
|
Changing this value requires application restart. Default: 1'', ''INTEGER'', ''1'',
|
|
''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue where Name
|
|
= 'security.headers.xFrameOptions';\n if (cnt > 0) then\n execute E'UPDATE
|
|
OpConfigValue SET ValueTypeEnum = ''STRING'', IsHidden = ''N'', Description =
|
|
''Sets X-Frame-Options header in the server responses. Valid options are DENY,
|
|
SAMEORIGIN, None. Header is turned off if None is selected. Changing this value
|
|
requires application restart. Default: DENY'' WHERE Name = ''security.headers.xFrameOptions''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''security.headers.xFrameOptions'',
|
|
''Sets X-Frame-Options header in the server responses. Valid options are DENY,
|
|
SAMEORIGIN, None. Header is turned off if None is selected. Changing this value
|
|
requires application restart. Default: DENY'', ''STRING'', ''DENY'', ''N'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'security.http.headers.xXssProtection.enabled';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Determines whether X-XSS-Protection header is
|
|
set in server responses. Changing this value requires application restart. Default:
|
|
1'' WHERE Name = ''security.http.headers.xXssProtection.enabled''';\n else\n
|
|
\ execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''security.http.headers.xXssProtection.enabled'',
|
|
''Determines whether X-XSS-Protection header is set in server responses. Changing
|
|
this value requires application restart. Default: 1'', ''INTEGER'', ''1'', ''N'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'security.secureCookiesEnabled';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''If security.requireSecureTransport.enabled is
|
|
set to \"false\", the value of this parameter determines whether the application
|
|
sets the \"secure\" flag on cookies it returns.'' WHERE Name = ''security.secureCookiesEnabled''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''security.secureCookiesEnabled'',
|
|
''If security.requireSecureTransport.enabled is set to \"false\", the value of
|
|
this parameter determines whether the application sets the \"secure\" flag on
|
|
cookies it returns.'', ''INTEGER'', ''0'', ''N'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpConfigValue where Name = 'authentication.logoutUrl';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'',
|
|
IsHidden = ''N'', Description = ''URL through which Single Sign-On Provider (e.g.,
|
|
Siteminder) is notified upon Control>Center user logout. Contact your SSO administrator
|
|
for correct URL. Default: /controlcenter.html'' WHERE Name = ''authentication.logoutUrl''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''authentication.logoutUrl'',
|
|
''URL through which Single Sign-On Provider (e.g., Siteminder) is notified upon
|
|
Control>Center user logout. Contact your SSO administrator for correct URL. Default:
|
|
/controlcenter.html'', ''STRING'', ''/controlcenter.html'', ''N'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'security.password.length.min';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Minimum length in characters of OC account passwords.
|
|
Default: 1'' WHERE Name = ''security.password.length.min''';\n else\n execute
|
|
E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''security.password.length.min'',
|
|
''Minimum length in characters of OC account passwords. Default: 1'', ''INTEGER'',
|
|
''1'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'packageForSupport.encrypted';\n if (cnt > 0) then\n execute
|
|
E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'', IsHidden = ''N'', Description
|
|
= ''Determines whether or not encryption will be performed when creating a Package
|
|
for Support. ''''Never'''' means a Package for Support will never be encrypted.
|
|
''''Always'''' means a Package for Support will always be encrypted. ''''EncryptForNonAdmins''''
|
|
means the Package for Support will only be encrypted when created by a user who
|
|
does not have Administrator privileges. Default: ''''EncryptForNonAdmins''''''
|
|
WHERE Name = ''packageForSupport.encrypted''';\n else\n execute E'INSERT INTO
|
|
OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden)
|
|
VALUES (nextval(''hibernate_sequence''), ''packageForSupport.encrypted'', ''Determines
|
|
whether or not encryption will be performed when creating a Package for Support.
|
|
''''Never'''' means a Package for Support will never be encrypted. ''''Always''''
|
|
means a Package for Support will always be encrypted. ''''EncryptForNonAdmins''''
|
|
means the Package for Support will only be encrypted when created by a user who
|
|
does not have Administrator privileges. Default: ''''EncryptForNonAdmins'''''',
|
|
''STRING'', ''EncryptForNonAdmins'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'authentication.sso.type';\n if (cnt > 0) then\n
|
|
\ execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'', IsHidden =
|
|
''N'', Description = ''Specifies the type of SSO pre-authentication to be used.
|
|
One of ''''Header'''', ''''OAuth2'''', ''''J2EE'''', or ''''SAML2''''. Default:
|
|
Header'' WHERE Name = ''authentication.sso.type''';\n else\n execute E'INSERT
|
|
INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden)
|
|
VALUES (nextval(''hibernate_sequence''), ''authentication.sso.type'', ''Specifies
|
|
the type of SSO pre-authentication to be used. One of ''''Header'''', ''''OAuth2'''',
|
|
''''J2EE'''', or ''''SAML2''''. Default: Header'', ''STRING'', ''Header'', ''N'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'authentication.sso.requestHeader';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'',
|
|
IsHidden = ''N'', Description = ''Request header attribute name that contains
|
|
the pre-authenticated user ID. Only used when pre-authentication type is Header.
|
|
Default: SM_USER'' WHERE Name = ''authentication.sso.requestHeader''';\n else\n
|
|
\ execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''authentication.sso.requestHeader'',
|
|
''Request header attribute name that contains the pre-authenticated user ID. Only
|
|
used when pre-authentication type is Header. Default: SM_USER'', ''STRING'', ''SM_USER'',
|
|
''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue where Name
|
|
= 'security.webservice.enabled';\n if (cnt > 0) then\n execute E'UPDATE OpConfigValue
|
|
SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description = ''Controls whether
|
|
Web Service Security is in force. Default: 1'' WHERE Name = ''security.webservice.enabled''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''security.webservice.enabled'',
|
|
''Controls whether Web Service Security is in force. Default: 1'', ''INTEGER'',
|
|
''1'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'security.webservice.sqlselect.enabled';\n if (cnt > 0) then\n execute
|
|
E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description
|
|
= ''Controls whether SQL Select access via Web Service is in enabled. Default:
|
|
1'' WHERE Name = ''security.webservice.sqlselect.enabled''';\n else\n execute
|
|
E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''security.webservice.sqlselect.enabled'',
|
|
''Controls whether SQL Select access via Web Service is in enabled. Default: 1'',
|
|
''INTEGER'', ''1'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'security.webservice.sqlupdate.enabled';\n if (cnt > 0) then\n execute
|
|
E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description
|
|
= ''Controls whether SQL Update access via Web Service is in enabled. Default:
|
|
1'' WHERE Name = ''security.webservice.sqlupdate.enabled''';\n else\n execute
|
|
E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''security.webservice.sqlupdate.enabled'',
|
|
''Controls whether SQL Update access via Web Service is in enabled. Default: 1'',
|
|
''INTEGER'', ''1'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'security.webservice.generatejobs.enabled';\n if (cnt > 0) then\n
|
|
\ execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden =
|
|
''N'', Description = ''Controls whether the Generate Jobs webservice is enabled.
|
|
Default: 1'' WHERE Name = ''security.webservice.generatejobs.enabled''';\n else\n
|
|
\ execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''security.webservice.generatejobs.enabled'',
|
|
''Controls whether the Generate Jobs webservice is enabled. Default: 1'', ''INTEGER'',
|
|
''1'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'security.webservice.markjobs.enabled';\n if (cnt > 0) then\n execute
|
|
E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''Y'', Description
|
|
= ''Control whether the Mark Jobs As Failed, Mark Jobs As Succeeded webservices
|
|
are enabled. Default: 1'' WHERE Name = ''security.webservice.markjobs.enabled''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''security.webservice.markjobs.enabled'',
|
|
''Control whether the Mark Jobs As Failed, Mark Jobs As Succeeded webservices
|
|
are enabled. Default: 1'', ''INTEGER'', ''1'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpConfigValue where Name = 'security.webservice.approvedraft.enabled';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Controls whether approvers can approve draft
|
|
job definitions via web service. For compatibility with pre 3.5.1 operation. Default:
|
|
0.'' WHERE Name = ''security.webservice.approvedraft.enabled''';\n else\n execute
|
|
E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''security.webservice.approvedraft.enabled'',
|
|
''Controls whether approvers can approve draft job definitions via web service.
|
|
For compatibility with pre 3.5.1 operation. Default: 0.'', ''INTEGER'', ''0'',
|
|
''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue where Name
|
|
= 'security.allowManualGenerationOfApprovedJdsOnly.enabled';\n if (cnt > 0) then\n
|
|
\ execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden =
|
|
''N'', Description = ''Controls whether the ''''Manually Generate'''' option is
|
|
available only for Job Definitions which have been approved. By default the action
|
|
is available for in-progress and submitted Job Definitions as well. Default: 0''
|
|
WHERE Name = ''security.allowManualGenerationOfApprovedJdsOnly.enabled''';\n else\n
|
|
\ execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''security.allowManualGenerationOfApprovedJdsOnly.enabled'',
|
|
''Controls whether the ''''Manually Generate'''' option is available only for
|
|
Job Definitions which have been approved. By default the action is available for
|
|
in-progress and submitted Job Definitions as well. Default: 0'', ''INTEGER'',
|
|
''0'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'websockets.forceDisable';\n if (cnt > 0) then\n execute E'UPDATE
|
|
OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description =
|
|
''Set to ''''1'''' if WebSockets are not working correctly in your environment.''
|
|
WHERE Name = ''websockets.forceDisable''';\n else\n execute E'INSERT INTO
|
|
OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden)
|
|
VALUES (nextval(''hibernate_sequence''), ''websockets.forceDisable'', ''Set to
|
|
''''1'''' if WebSockets are not working correctly in your environment.'', ''INTEGER'',
|
|
''0'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'schedule.jobGeneration.predecessorOrderingCheck.enabled';\n if
|
|
(cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Determines if Job Generation checks for predecessor
|
|
jobs that might not have been generated. Default: 1'' WHERE Name = ''schedule.jobGeneration.predecessorOrderingCheck.enabled''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''schedule.jobGeneration.predecessorOrderingCheck.enabled'',
|
|
''Determines if Job Generation checks for predecessor jobs that might not have
|
|
been generated. Default: 1'', ''INTEGER'', ''1'', ''N'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'schedule.strictFunctionalUserScheduledJobDistribution.enabled';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Scheduled jobs associated with Functional User
|
|
OSAuthentications will be provided only to Functional User mode reporters. For
|
|
compatibility with pre 3.5.3 operation where these jobs were provided to reporters
|
|
with any mode. Default: 0.'' WHERE Name = ''schedule.strictFunctionalUserScheduledJobDistribution.enabled''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''schedule.strictFunctionalUserScheduledJobDistribution.enabled'',
|
|
''Scheduled jobs associated with Functional User OSAuthentications will be provided
|
|
only to Functional User mode reporters. For compatibility with pre 3.5.3 operation
|
|
where these jobs were provided to reporters with any mode. Default: 0.'', ''INTEGER'',
|
|
''0'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'system.defaultApplicationName';\n if (cnt > 0) then\n execute
|
|
E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'', IsHidden = ''N'', Description
|
|
= ''Name of the application used for detected jobs when AB_APPLICATION_NAME is
|
|
not in the job''''s parameter environment. The installer creates this value. Default:
|
|
DEFAULT'' WHERE Name = ''system.defaultApplicationName''';\n else\n execute
|
|
E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''system.defaultApplicationName'',
|
|
''Name of the application used for detected jobs when AB_APPLICATION_NAME is not
|
|
in the job''''s parameter environment. The installer creates this value. Default:
|
|
DEFAULT'', ''STRING'', ''DEFAULT'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'system.defaultSystemName';\n if (cnt > 0) then\n
|
|
\ execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'', IsHidden =
|
|
''N'', Description = ''Name of the system used for detected jobs when AB_SYSTEM_NAME
|
|
is not in the job''''s parameter environment. The installer creates this value.
|
|
Default: DEFAULT'' WHERE Name = ''system.defaultSystemName''';\n else\n execute
|
|
E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''system.defaultSystemName'',
|
|
''Name of the system used for detected jobs when AB_SYSTEM_NAME is not in the
|
|
job''''s parameter environment. The installer creates this value. Default: DEFAULT'',
|
|
''STRING'', ''DEFAULT'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'viewEndUpdateService.enabled';\n if (cnt > 0)
|
|
then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden
|
|
= ''N'', Description = ''Enable the running of job view end processing. This allows
|
|
a completed parent job to remain in the UI when still-running child jobs run over
|
|
to subsequent production days. Default: 0'' WHERE Name = ''viewEndUpdateService.enabled''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''viewEndUpdateService.enabled'',
|
|
''Enable the running of job view end processing. This allows a completed parent
|
|
job to remain in the UI when still-running child jobs run over to subsequent production
|
|
days. Default: 0'', ''INTEGER'', ''0'', ''N'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpConfigValue where Name = 'viewEndUpdateService.batchSize';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Number of jobs updated by job view end processing.
|
|
Default: 100 jobs'' WHERE Name = ''viewEndUpdateService.batchSize''';\n else\n
|
|
\ execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''viewEndUpdateService.batchSize'',
|
|
''Number of jobs updated by job view end processing. Default: 100 jobs'', ''INTEGER'',
|
|
''100'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'viewEndUpdateService.delayMinutes';\n if (cnt > 0) then\n execute
|
|
E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description
|
|
= ''Delay after application startup before running job view end processing. Default:
|
|
5 minutes'' WHERE Name = ''viewEndUpdateService.delayMinutes''';\n else\n execute
|
|
E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''viewEndUpdateService.delayMinutes'',
|
|
''Delay after application startup before running job view end processing. Default:
|
|
5 minutes'', ''INTEGER'', ''5'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'viewEndUpdateService.wakeupMinutes';\n if (cnt
|
|
> 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''How often job view end processing is run. Default:
|
|
10 minutes'' WHERE Name = ''viewEndUpdateService.wakeupMinutes''';\n else\n execute
|
|
E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''viewEndUpdateService.wakeupMinutes'',
|
|
''How often job view end processing is run. Default: 10 minutes'', ''INTEGER'',
|
|
''10'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'appserverType';\n if (cnt > 0) then\n execute E'UPDATE OpConfigValue
|
|
SET ValueTypeEnum = ''STRING'', IsHidden = ''N'', Description = '''' WHERE Name
|
|
= ''appserverType''';\n else\n execute E'INSERT INTO OpConfigValue (ConfigValueId,
|
|
Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''appserverType'', '''', ''STRING'', '''', ''N'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpConfigValue where Name = 'urlFromBrowser';\n if (cnt
|
|
> 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'',
|
|
IsHidden = ''N'', Description = ''The base URL a web browser uses to reach the
|
|
application server. For example, https://host:443/context.'' WHERE Name = ''urlFromBrowser''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''urlFromBrowser'',
|
|
''The base URL a web browser uses to reach the application server. For example,
|
|
https://host:443/context.'', ''STRING'', '''', ''N'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpConfigValue where Name = 'authentication.sso.saml.idp.metadataFile';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'',
|
|
IsHidden = ''N'', Description = ''SAML Identity Provider Metadata XML file path.
|
|
Must be identical for all cluster members.'' WHERE Name = ''authentication.sso.saml.idp.metadataFile''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''authentication.sso.saml.idp.metadataFile'',
|
|
''SAML Identity Provider Metadata XML file path. Must be identical for all cluster
|
|
members.'', ''STRING'', '''', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'authentication.sso.saml.entityId';\n if (cnt
|
|
> 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'',
|
|
IsHidden = ''N'', Description = ''This SAML Service Provider entity ID. IMPORTANT:
|
|
1. The urlFromBrowser setting must be set; 2. Do not change authentication method
|
|
to SAML before the fields in this section are properly configured, and the Service
|
|
Provider metadata XML is generated. Changes require new SP metadata be submitted
|
|
to IdP. You can generate this from the Administration page of the HTML5 user interface.''
|
|
WHERE Name = ''authentication.sso.saml.entityId''';\n else\n execute E'INSERT
|
|
INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden)
|
|
VALUES (nextval(''hibernate_sequence''), ''authentication.sso.saml.entityId'',
|
|
''This SAML Service Provider entity ID. IMPORTANT: 1. The urlFromBrowser setting
|
|
must be set; 2. Do not change authentication method to SAML before the fields
|
|
in this section are properly configured, and the Service Provider metadata XML
|
|
is generated. Changes require new SP metadata be submitted to IdP. You can generate
|
|
this from the Administration page of the HTML5 user interface.'', ''STRING'',
|
|
'''', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'authentication.sso.saml.key.keyStorePath';\n if (cnt > 0) then\n
|
|
\ execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'', IsHidden =
|
|
''N'', Description = ''File path to JKS keystore used for SAML encryption and
|
|
signing. Must be identical for all cluster members. Changes require new SP metadata
|
|
be submitted to IdP. You can generate this from the Administration page of the
|
|
HTML5 user interface.'' WHERE Name = ''authentication.sso.saml.key.keyStorePath''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''authentication.sso.saml.key.keyStorePath'',
|
|
''File path to JKS keystore used for SAML encryption and signing. Must be identical
|
|
for all cluster members. Changes require new SP metadata be submitted to IdP.
|
|
You can generate this from the Administration page of the HTML5 user interface.'',
|
|
''STRING'', '''', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'authentication.sso.saml.key.keyStorePassword';\n if (cnt > 0) then\n
|
|
\ execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''PASSWORD'', IsHidden
|
|
= ''N'', Description = ''Password for the SAML keystore.'' WHERE Name = ''authentication.sso.saml.key.keyStorePassword''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''authentication.sso.saml.key.keyStorePassword'',
|
|
''Password for the SAML keystore.'', ''PASSWORD'', '''', ''N'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'authentication.sso.saml.key.signingKeyAlias';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'',
|
|
IsHidden = ''N'', Description = ''Alias for key used for signing SAML requests.
|
|
Can be empty if not signing. Changes require new SP metadata be submitted to IdP.
|
|
You can generate this from the Administration page of the HTML5 user interface.''
|
|
WHERE Name = ''authentication.sso.saml.key.signingKeyAlias''';\n else\n execute
|
|
E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''authentication.sso.saml.key.signingKeyAlias'',
|
|
''Alias for key used for signing SAML requests. Can be empty if not signing. Changes
|
|
require new SP metadata be submitted to IdP. You can generate this from the Administration
|
|
page of the HTML5 user interface.'', ''STRING'', '''', ''N'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'authentication.sso.saml.key.signingKeyPassphrase';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''PASSWORD'',
|
|
IsHidden = ''N'', Description = ''Passphrase for key used for signing SAML requests.
|
|
Can be empty if not signing.'' WHERE Name = ''authentication.sso.saml.key.signingKeyPassphrase''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''authentication.sso.saml.key.signingKeyPassphrase'',
|
|
''Passphrase for key used for signing SAML requests. Can be empty if not signing.'',
|
|
''PASSWORD'', '''', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'authentication.sso.saml.key.encryptionKeyAlias';\n if (cnt > 0)
|
|
then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'', IsHidden
|
|
= ''N'', Description = ''Alias for key used for decrypting SAML assertions. Can
|
|
be empty if not IdP is not encrypting. Changes require new SP metadata be submitted
|
|
to IdP. You can generate this from the Administration page of the HTML5 user interface.''
|
|
WHERE Name = ''authentication.sso.saml.key.encryptionKeyAlias''';\n else\n execute
|
|
E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''authentication.sso.saml.key.encryptionKeyAlias'',
|
|
''Alias for key used for decrypting SAML assertions. Can be empty if not IdP
|
|
is not encrypting. Changes require new SP metadata be submitted to IdP. You can
|
|
generate this from the Administration page of the HTML5 user interface.'', ''STRING'',
|
|
'''', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'authentication.sso.saml.key.encryptionKeyPassphrase';\n if (cnt
|
|
> 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''PASSWORD'',
|
|
IsHidden = ''N'', Description = ''Passphrase for key used for decrypting SAML
|
|
assertions. Can be empty if IdP is not encrypting.'' WHERE Name = ''authentication.sso.saml.key.encryptionKeyPassphrase''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''authentication.sso.saml.key.encryptionKeyPassphrase'',
|
|
''Passphrase for key used for decrypting SAML assertions. Can be empty if IdP
|
|
is not encrypting.'', ''PASSWORD'', '''', ''N'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpConfigValue where Name = 'authentication.sso.saml.debug';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''When set to Yes, additional information, including
|
|
SAML assertions is logged. For troubleshooting only: may log user-identifiable
|
|
information.'' WHERE Name = ''authentication.sso.saml.debug''';\n else\n execute
|
|
E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''authentication.sso.saml.debug'',
|
|
''When set to Yes, additional information, including SAML assertions is logged.
|
|
For troubleshooting only: may log user-identifiable information.'', ''INTEGER'',
|
|
''0'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'security.sanitizeExceptions';\n if (cnt > 0) then\n execute
|
|
E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description
|
|
= ''When set to Yes, java exceptions and stack traces are suppressed when returned
|
|
to users.'' WHERE Name = ''security.sanitizeExceptions''';\n else\n execute
|
|
E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''security.sanitizeExceptions'',
|
|
''When set to Yes, java exceptions and stack traces are suppressed when returned
|
|
to users.'', ''INTEGER'', ''0'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'cc.initialized';\n if (cnt > 0) then\n execute
|
|
E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description
|
|
= ''Whether or not this Control>Center has been initialized using external configuration''
|
|
WHERE Name = ''cc.initialized''';\n else\n execute E'INSERT INTO OpConfigValue
|
|
(ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''cc.initialized'', ''Whether or not this Control>Center has been initialized
|
|
using external configuration'', ''INTEGER'', ''0'', ''N'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'jamon.timeZone';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'',
|
|
IsHidden = ''Y'', Description = ''Time zone in which to run JAMon aggregation.
|
|
Default: UTC'' WHERE Name = ''jamon.timeZone''';\n else\n execute E'INSERT
|
|
INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden)
|
|
VALUES (nextval(''hibernate_sequence''), ''jamon.timeZone'', ''Time zone in which
|
|
to run JAMon aggregation. Default: UTC'', ''STRING'', ''UTC'', ''Y'')';\n end
|
|
if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'jamon.enabled';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Enable the collection of JAMon reports, which
|
|
replace standard JAMon monitoring.'' WHERE Name = ''jamon.enabled''';\n else\n
|
|
\ execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''jamon.enabled'',
|
|
''Enable the collection of JAMon reports, which replace standard JAMon monitoring.'',
|
|
''INTEGER'', ''1'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'calendar.missing.horizon';\n if (cnt > 0) then\n execute E'UPDATE
|
|
OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description =
|
|
''Days in advance of New Years Day in which to start checking for in-use calendars
|
|
which lack entries for next year.'' WHERE Name = ''calendar.missing.horizon''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''calendar.missing.horizon'',
|
|
''Days in advance of New Years Day in which to start checking for in-use calendars
|
|
which lack entries for next year.'', ''INTEGER'', ''30'', ''N'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'job.alert.sendOnTimerEvents.enabled';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''N'', Description = ''Turns on HTTP alerts when SLA timers expire.
|
|
This may result in lots of alerts. Default 1'' WHERE Name = ''job.alert.sendOnTimerEvents.enabled''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''job.alert.sendOnTimerEvents.enabled'',
|
|
''Turns on HTTP alerts when SLA timers expire. This may result in lots of alerts.
|
|
Default 1'', ''INTEGER'', ''1'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'server.memoryWarn.threshold';\n if (cnt > 0)
|
|
then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden
|
|
= ''Y'', Description = ''Deprecated as of 4.2.3. Was: \"Threshold percentage between
|
|
peak memory usage and maximum configured before a warning is issued. Default:
|
|
80\"'' WHERE Name = ''server.memoryWarn.threshold''';\n else\n execute E'INSERT
|
|
INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden)
|
|
VALUES (nextval(''hibernate_sequence''), ''server.memoryWarn.threshold'', ''Deprecated
|
|
as of 4.2.3. Was: \"Threshold percentage between peak memory usage and maximum
|
|
configured before a warning is issued. Default: 80\"'', ''INTEGER'', ''80'',
|
|
''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue where Name
|
|
= 'server.importExport.enabled';\n if (cnt > 0) then\n execute E'UPDATE OpConfigValue
|
|
SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description = ''Enables import
|
|
and export by server instead of ops-admin commands. Default: 1'' WHERE Name =
|
|
''server.importExport.enabled''';\n else\n execute E'INSERT INTO OpConfigValue
|
|
(ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''server.importExport.enabled'', ''Enables import and export by server instead
|
|
of ops-admin commands. Default: 1'', ''INTEGER'', ''1'', ''N'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'schedule.cluster.balance.task.intervalSec';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''Y'', Description = ''Experimental: The rate in seconds at which to
|
|
check if any jobs should move from one cluster node to another or are in need
|
|
of an initial cluster node assignment. Lower values will allow recovering from
|
|
failed nodes faster while increasing processing load on the server & database.
|
|
Default=60'' WHERE Name = ''schedule.cluster.balance.task.intervalSec''';\n else\n
|
|
\ execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''schedule.cluster.balance.task.intervalSec'',
|
|
''Experimental: The rate in seconds at which to check if any jobs should move
|
|
from one cluster node to another or are in need of an initial cluster node assignment.
|
|
Lower values will allow recovering from failed nodes faster while increasing processing
|
|
load on the server & database. Default=60'', ''INTEGER'', ''60'', ''Y'')';\n end
|
|
if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'schedule.cluster.balance.task.initialDelaySec';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''Y'', Description = ''Experimental: The delay after application-startup
|
|
to start the task governed by ''''schedule.cluster.balance.task.intervalSec''''.
|
|
A delay after startup allows for reporters to catch up if the application was
|
|
stopped for a while. Default=60'' WHERE Name = ''schedule.cluster.balance.task.initialDelaySec''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''schedule.cluster.balance.task.initialDelaySec'',
|
|
''Experimental: The delay after application-startup to start the task governed
|
|
by ''''schedule.cluster.balance.task.intervalSec''''. A delay after startup allows
|
|
for reporters to catch up if the application was stopped for a while. Default=60'',
|
|
''INTEGER'', ''60'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'schedule.cluster.balance.cache.secondsUntilNodeStale';\n if (cnt
|
|
> 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''Y'', Description = ''Experimental: The number of seconds of not hearing
|
|
from a reporter at which it is considered stale. At this point jobs assigned to
|
|
that cluster node might be candidates for moving to another node. Default=120''
|
|
WHERE Name = ''schedule.cluster.balance.cache.secondsUntilNodeStale''';\n else\n
|
|
\ execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''schedule.cluster.balance.cache.secondsUntilNodeStale'',
|
|
''Experimental: The number of seconds of not hearing from a reporter at which
|
|
it is considered stale. At this point jobs assigned to that cluster node might
|
|
be candidates for moving to another node. Default=120'', ''INTEGER'', ''120'',
|
|
''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function
|
|
anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare
|
|
\n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue where Name
|
|
= 'schedule.cluster.balance.bufferBeforeJobStartMins';\n if (cnt > 0) then\n
|
|
\ execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden =
|
|
''Y'', Description = ''Experimental: When deciding whether to move jobs from one
|
|
cluster node to another, don''''t move jobs scheduled to start within this many
|
|
minutes if they already have a valid assignment. This should be somewhat greater
|
|
than the total time spent waiting before moving a job, which is dictated by config
|
|
params ''''schedule.cluster.balance.cache.secondsUntilNodeStale'''', ''''schedule.cluster.balance.reassignTaskRetries''''
|
|
and ''''schedule.cluster.balance.reassignTaskRetryIntervalSec''''. Default=5''
|
|
WHERE Name = ''schedule.cluster.balance.bufferBeforeJobStartMins''';\n else\n
|
|
\ execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''schedule.cluster.balance.bufferBeforeJobStartMins'',
|
|
''Experimental: When deciding whether to move jobs from one cluster node to another,
|
|
don''''t move jobs scheduled to start within this many minutes if they already
|
|
have a valid assignment. This should be somewhat greater than the total time spent
|
|
waiting before moving a job, which is dictated by config params ''''schedule.cluster.balance.cache.secondsUntilNodeStale'''',
|
|
''''schedule.cluster.balance.reassignTaskRetries'''' and ''''schedule.cluster.balance.reassignTaskRetryIntervalSec''''.
|
|
Default=5'', ''INTEGER'', ''2'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'schedule.cluster.balance.defaultStrategy.maxNodeJobCountDiff';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''Y'', Description = ''Experimental: When using the ''''Default''''
|
|
cluster balance strategy, this is the default maximum difference in job count
|
|
between two nodes. If one node has this many more jobs than another, some jobs
|
|
will be moved to attempt to evenly distribute the processing load. Default=5''
|
|
WHERE Name = ''schedule.cluster.balance.defaultStrategy.maxNodeJobCountDiff''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''schedule.cluster.balance.defaultStrategy.maxNodeJobCountDiff'',
|
|
''Experimental: When using the ''''Default'''' cluster balance strategy, this
|
|
is the default maximum difference in job count between two nodes. If one node
|
|
has this many more jobs than another, some jobs will be moved to attempt to evenly
|
|
distribute the processing load. Default=5'', ''INTEGER'', ''5'', ''Y'')';\n end
|
|
if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'schedule.cluster.balance.reassignTaskRetries';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''Y'', Description = ''Experimental: When moving jobs from one cluster
|
|
node to another, check this many times to see if reporters have noticed & relinquished
|
|
their previous schedules. Default=12'' WHERE Name = ''schedule.cluster.balance.reassignTaskRetries''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''schedule.cluster.balance.reassignTaskRetries'',
|
|
''Experimental: When moving jobs from one cluster node to another, check this
|
|
many times to see if reporters have noticed & relinquished their previous schedules.
|
|
Default=12'', ''INTEGER'', ''12'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpConfigValue where Name = 'schedule.cluster.balance.reassignTaskRetryIntervalSec';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'',
|
|
IsHidden = ''Y'', Description = ''Experimental: When moving jobs from one cluster
|
|
node to another, wait this long between checks to see if reporters of relinquished
|
|
their previous schedule. Default=10'' WHERE Name = ''schedule.cluster.balance.reassignTaskRetryIntervalSec''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''schedule.cluster.balance.reassignTaskRetryIntervalSec'',
|
|
''Experimental: When moving jobs from one cluster node to another, wait this long
|
|
between checks to see if reporters of relinquished their previous schedule. Default=10'',
|
|
''INTEGER'', ''10'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue
|
|
where Name = 'schedule.cluster.balance.enabled';\n if (cnt > 0) then\n execute
|
|
E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''Y'', Description
|
|
= ''Experimental: Enable dynamically moving jobs between cluster nodes. Each cluster
|
|
must have ''''Redistribute jobs'''' set. Default=0'' WHERE Name = ''schedule.cluster.balance.enabled''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''schedule.cluster.balance.enabled'',
|
|
''Experimental: Enable dynamically moving jobs between cluster nodes. Each cluster
|
|
must have ''''Redistribute jobs'''' set. Default=0'', ''INTEGER'', ''0'', ''Y'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'security.http.headers.contentSecurityPolicy';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'',
|
|
IsHidden = ''N'', Description = ''The value of the Content-Security-Policy header
|
|
for the Control>Center. In the Value text box, enter an HTTP header. If no value
|
|
is specified, then no Content-Security-Policy header will be emitted. NOTE: Contact
|
|
Ab Initio Support for information about the recommended policy directives.'' WHERE
|
|
Name = ''security.http.headers.contentSecurityPolicy''';\n else\n execute
|
|
E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum,
|
|
Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''security.http.headers.contentSecurityPolicy'',
|
|
''The value of the Content-Security-Policy header for the Control>Center. In the
|
|
Value text box, enter an HTTP header. If no value is specified, then no Content-Security-Policy
|
|
header will be emitted. NOTE: Contact Ab Initio Support for information about
|
|
the recommended policy directives.'', ''STRING'', '''', ''N'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\n-- ---------------------------------------------------\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpLogAlertRule where logAlertPattern = 'ORA-01650';\n
|
|
\ if (cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId,
|
|
logAlertPattern, databaseType, customErrorMessage, isTablespaceError, isEnabled)
|
|
VALUES (nextval(''hibernate_sequence''), ''ORA-01650'', ''ORACLE'', ''Operational
|
|
Database has reached a memory limit. Contact your Database Administrator to allocate
|
|
more space. Error Code: 01650'', ''Y'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpLogAlertRule where logAlertPattern = 'ORA-01651';\n if
|
|
(cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId, logAlertPattern,
|
|
databaseType, customErrorMessage, isTablespaceError, isEnabled) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''ORA-01651'', ''ORACLE'', ''Operational Database has reached a memory limit.
|
|
Contact your Database Administrator to allocate more space. Error Code: 01651'',
|
|
''Y'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpLogAlertRule
|
|
where logAlertPattern = 'ORA-01652';\n if (cnt = 0) then\n execute E'INSERT
|
|
INTO OpLogAlertRule (logAlertRuleId, logAlertPattern, databaseType, customErrorMessage,
|
|
isTablespaceError, isEnabled) VALUES (nextval(''hibernate_sequence''), ''ORA-01652'',
|
|
''ORACLE'', ''Operational Database has reached a memory limit. Contact your Database
|
|
Administrator to allocate more space. Error Code: 01652'', ''Y'', ''Y'')';\n end
|
|
if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpLogAlertRule where logAlertPattern = 'ORA-01653';\n
|
|
\ if (cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId,
|
|
logAlertPattern, databaseType, customErrorMessage, isTablespaceError, isEnabled)
|
|
VALUES (nextval(''hibernate_sequence''), ''ORA-01653'', ''ORACLE'', ''Operational
|
|
Database has reached a memory limit. Contact your Database Administrator to allocate
|
|
more space. Error Code: 01653'', ''Y'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpLogAlertRule where logAlertPattern = 'ORA-01654';\n if
|
|
(cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId, logAlertPattern,
|
|
databaseType, customErrorMessage, isTablespaceError, isEnabled) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''ORA-01654'', ''ORACLE'', ''Operational Database has reached a memory limit.
|
|
Contact your Database Administrator to allocate more space. Error Code: 01654'',
|
|
''Y'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpLogAlertRule
|
|
where logAlertPattern = 'ORA-01655';\n if (cnt = 0) then\n execute E'INSERT
|
|
INTO OpLogAlertRule (logAlertRuleId, logAlertPattern, databaseType, customErrorMessage,
|
|
isTablespaceError, isEnabled) VALUES (nextval(''hibernate_sequence''), ''ORA-01655'',
|
|
''ORACLE'', ''Operational Database has reached a memory limit. Contact your Database
|
|
Administrator to allocate more space. Error Code: 01655'', ''Y'', ''Y'')';\n end
|
|
if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpLogAlertRule where logAlertPattern = 'ORA-01656';\n
|
|
\ if (cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId,
|
|
logAlertPattern, databaseType, customErrorMessage, isTablespaceError, isEnabled)
|
|
VALUES (nextval(''hibernate_sequence''), ''ORA-01656'', ''ORACLE'', ''Operational
|
|
Database has reached a memory limit. Contact your Database Administrator to allocate
|
|
more space. Error Code: 01656'', ''Y'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpLogAlertRule where logAlertPattern = 'ORA-01658';\n if
|
|
(cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId, logAlertPattern,
|
|
databaseType, customErrorMessage, isTablespaceError, isEnabled) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''ORA-01658'', ''ORACLE'', ''Operational Database has reached a memory limit.
|
|
Contact your Database Administrator to allocate more space. Error Code: 01658'',
|
|
''Y'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpLogAlertRule
|
|
where logAlertPattern = 'ORA-01659';\n if (cnt = 0) then\n execute E'INSERT
|
|
INTO OpLogAlertRule (logAlertRuleId, logAlertPattern, databaseType, customErrorMessage,
|
|
isTablespaceError, isEnabled) VALUES (nextval(''hibernate_sequence''), ''ORA-01659'',
|
|
''ORACLE'', ''Operational Database has reached a memory limit. Contact your Database
|
|
Administrator to allocate more space. Error Code: 01659'', ''Y'', ''Y'')';\n end
|
|
if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpLogAlertRule where logAlertPattern = 'ORA-01680';\n
|
|
\ if (cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId,
|
|
logAlertPattern, databaseType, customErrorMessage, isTablespaceError, isEnabled)
|
|
VALUES (nextval(''hibernate_sequence''), ''ORA-01680'', ''ORACLE'', ''Operational
|
|
Database has reached a memory limit. Contact your Database Administrator to allocate
|
|
more space. Error Code: 01680'', ''Y'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpLogAlertRule where logAlertPattern = 'ORA-01681';\n if
|
|
(cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId, logAlertPattern,
|
|
databaseType, customErrorMessage, isTablespaceError, isEnabled) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''ORA-01681'', ''ORACLE'', ''Operational Database has reached a memory limit.
|
|
Contact your Database Administrator to allocate more space. Error Code: 01681'',
|
|
''Y'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpLogAlertRule
|
|
where logAlertPattern = 'ORA-01683';\n if (cnt = 0) then\n execute E'INSERT
|
|
INTO OpLogAlertRule (logAlertRuleId, logAlertPattern, databaseType, customErrorMessage,
|
|
isTablespaceError, isEnabled) VALUES (nextval(''hibernate_sequence''), ''ORA-01683'',
|
|
''ORACLE'', ''Operational Database has reached a memory limit. Contact your Database
|
|
Administrator to allocate more space. Error Code: 01683'', ''Y'', ''Y'')';\n end
|
|
if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpLogAlertRule where logAlertPattern = 'ORA-01688';\n
|
|
\ if (cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId,
|
|
logAlertPattern, databaseType, customErrorMessage, isTablespaceError, isEnabled)
|
|
VALUES (nextval(''hibernate_sequence''), ''ORA-01688'', ''ORACLE'', ''Operational
|
|
Database has reached a memory limit. Contact your Database Administrator to allocate
|
|
more space. Error Code: 01688'', ''Y'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpLogAlertRule where logAlertPattern = 'ORA-01691';\n if
|
|
(cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId, logAlertPattern,
|
|
databaseType, customErrorMessage, isTablespaceError, isEnabled) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''ORA-01691'', ''ORACLE'', ''Operational Database has reached a memory limit.
|
|
Contact your Database Administrator to allocate more space. Error Code: 01691'',
|
|
''Y'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpLogAlertRule
|
|
where logAlertPattern = 'ORA-01692';\n if (cnt = 0) then\n execute E'INSERT
|
|
INTO OpLogAlertRule (logAlertRuleId, logAlertPattern, databaseType, customErrorMessage,
|
|
isTablespaceError, isEnabled) VALUES (nextval(''hibernate_sequence''), ''ORA-01692'',
|
|
''ORACLE'', ''Operational Database has reached a memory limit. Contact your Database
|
|
Administrator to allocate more space. Error Code: 01692'', ''Y'', ''Y'')';\n end
|
|
if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpLogAlertRule where logAlertPattern = 'SQL state:
|
|
25000';\n if (cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId,
|
|
logAlertPattern, databaseType, customErrorMessage, isTablespaceError, isEnabled)
|
|
VALUES (nextval(''hibernate_sequence''), ''SQL state: 25000'', ''POSTGRESQL'',
|
|
''Operational Database has reached a memory limit. Contact your Database Administrator
|
|
to allocate more space. Error Code: 25000'', ''Y'', ''Y'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpLogAlertRule where logAlertPattern = 'SQL state:
|
|
53000';\n if (cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId,
|
|
logAlertPattern, databaseType, customErrorMessage, isTablespaceError, isEnabled)
|
|
VALUES (nextval(''hibernate_sequence''), ''SQL state: 53000'', ''POSTGRESQL'',
|
|
''Operational Database has reached a memory limit. Contact your Database Administrator
|
|
to allocate more space. Error Code: 53000'', ''Y'', ''Y'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpLogAlertRule where logAlertPattern = 'SQL state:
|
|
53100';\n if (cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId,
|
|
logAlertPattern, databaseType, customErrorMessage, isTablespaceError, isEnabled)
|
|
VALUES (nextval(''hibernate_sequence''), ''SQL state: 53100'', ''POSTGRESQL'',
|
|
''Operational Database has reached a memory limit. Contact your Database Administrator
|
|
to allocate more space. Error Code: 53100'', ''Y'', ''Y'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpLogAlertRule where logAlertPattern = 'SQL state:
|
|
53200';\n if (cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId,
|
|
logAlertPattern, databaseType, customErrorMessage, isTablespaceError, isEnabled)
|
|
VALUES (nextval(''hibernate_sequence''), ''SQL state: 53200'', ''POSTGRESQL'',
|
|
''Operational Database has reached a memory limit. Contact your Database Administrator
|
|
to allocate more space. Error Code: 53200'', ''Y'', ''Y'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpLogAlertRule where logAlertPattern = 'SQL state:
|
|
HV001';\n if (cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId,
|
|
logAlertPattern, databaseType, customErrorMessage, isTablespaceError, isEnabled)
|
|
VALUES (nextval(''hibernate_sequence''), ''SQL state: HV001'', ''POSTGRESQL'',
|
|
''Operational Database has reached a memory limit. Contact your Database Administrator
|
|
to allocate more space. Error Code: HV001'', ''Y'', ''Y'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpLogAlertRule where logAlertPattern = 'Error
|
|
1101';\n if (cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId,
|
|
logAlertPattern, databaseType, customErrorMessage, isTablespaceError, isEnabled)
|
|
VALUES (nextval(''hibernate_sequence''), ''Error 1101'', ''SQLSERVER'', ''Operational
|
|
Database has reached a memory limit. Contact your Database Administrator to allocate
|
|
more space. Error Code: 1101'', ''Y'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpLogAlertRule where logAlertPattern = 'Error: 1101';\n
|
|
\ if (cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId,
|
|
logAlertPattern, databaseType, customErrorMessage, isTablespaceError, isEnabled)
|
|
VALUES (nextval(''hibernate_sequence''), ''Error: 1101'', ''SQLSERVER'', ''Operational
|
|
Database has reached a memory limit. Contact your Database Administrator to allocate
|
|
more space. Error Code: 1101'', ''Y'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpLogAlertRule where logAlertPattern = 'Error 1105';\n
|
|
\ if (cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId,
|
|
logAlertPattern, databaseType, customErrorMessage, isTablespaceError, isEnabled)
|
|
VALUES (nextval(''hibernate_sequence''), ''Error 1105'', ''SQLSERVER'', ''Operational
|
|
Database has reached a memory limit. Contact your Database Administrator to allocate
|
|
more space. Error Code: 1105'', ''Y'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpLogAlertRule where logAlertPattern = 'Error: 1105';\n
|
|
\ if (cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId,
|
|
logAlertPattern, databaseType, customErrorMessage, isTablespaceError, isEnabled)
|
|
VALUES (nextval(''hibernate_sequence''), ''Error: 1105'', ''SQLSERVER'', ''Operational
|
|
Database has reached a memory limit. Contact your Database Administrator to allocate
|
|
more space. Error Code: 1105'', ''Y'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpLogAlertRule where logAlertPattern = 'Error 9002';\n
|
|
\ if (cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId,
|
|
logAlertPattern, databaseType, customErrorMessage, isTablespaceError, isEnabled)
|
|
VALUES (nextval(''hibernate_sequence''), ''Error 9002'', ''SQLSERVER'', ''Operational
|
|
Database has reached a memory limit. Contact your Database Administrator to allocate
|
|
more space. Error Code: 9002'', ''Y'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpLogAlertRule where logAlertPattern = 'Error: 9002';\n
|
|
\ if (cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId,
|
|
logAlertPattern, databaseType, customErrorMessage, isTablespaceError, isEnabled)
|
|
VALUES (nextval(''hibernate_sequence''), ''Error: 9002'', ''SQLSERVER'', ''Operational
|
|
Database has reached a memory limit. Contact your Database Administrator to allocate
|
|
more space. Error Code: 9002'', ''Y'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpLogAlertRule where logAlertPattern = 'SQLCODE=-960';\n
|
|
\ if (cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId,
|
|
logAlertPattern, databaseType, customErrorMessage, isTablespaceError, isEnabled)
|
|
VALUES (nextval(''hibernate_sequence''), ''SQLCODE=-960'', ''DB2'', ''Operational
|
|
Database has reached a memory limit. Contact your Database Administrator to allocate
|
|
more space. Error Code: -960'', ''Y'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpLogAlertRule where logAlertPattern = 'SQLCODE=-964';\n
|
|
\ if (cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId,
|
|
logAlertPattern, databaseType, customErrorMessage, isTablespaceError, isEnabled)
|
|
VALUES (nextval(''hibernate_sequence''), ''SQLCODE=-964'', ''DB2'', ''Operational
|
|
Database has reached a memory limit. Contact your Database Administrator to allocate
|
|
more space. Error Code: -964'', ''Y'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpLogAlertRule where logAlertPattern = 'SQLCODE=-968';\n
|
|
\ if (cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId,
|
|
logAlertPattern, databaseType, customErrorMessage, isTablespaceError, isEnabled)
|
|
VALUES (nextval(''hibernate_sequence''), ''SQLCODE=-968'', ''DB2'', ''Operational
|
|
Database has reached a memory limit. Contact your Database Administrator to allocate
|
|
more space. Error Code: -968'', ''Y'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpLogAlertRule where logAlertPattern = 'SQLCODE=-978';\n
|
|
\ if (cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId,
|
|
logAlertPattern, databaseType, customErrorMessage, isTablespaceError, isEnabled)
|
|
VALUES (nextval(''hibernate_sequence''), ''SQLCODE=-978'', ''DB2'', ''Operational
|
|
Database has reached a memory limit. Contact your Database Administrator to allocate
|
|
more space. Error Code: -978'', ''Y'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpLogAlertRule where logAlertPattern = 'SQLCODE=-289';\n
|
|
\ if (cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId,
|
|
logAlertPattern, databaseType, customErrorMessage, isTablespaceError, isEnabled)
|
|
VALUES (nextval(''hibernate_sequence''), ''SQLCODE=-289'', ''DB2'', ''Operational
|
|
Database has reached a memory limit. Contact your Database Administrator to allocate
|
|
more space. Error Code: -289'', ''Y'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpLogAlertRule where logAlertPattern = 'SQLCODE=-296';\n
|
|
\ if (cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId,
|
|
logAlertPattern, databaseType, customErrorMessage, isTablespaceError, isEnabled)
|
|
VALUES (nextval(''hibernate_sequence''), ''SQLCODE=-296'', ''DB2'', ''Operational
|
|
Database has reached a memory limit. Contact your Database Administrator to allocate
|
|
more space. Error Code: -296'', ''Y'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpLogAlertRule where logAlertPattern = 'ORA-01401';\n if
|
|
(cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId, logAlertPattern,
|
|
databaseType, customErrorMessage, isTablespaceError, isEnabled) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''ORA-01401'', ''ORACLE'', ''Invalid attempt to insert or update column. Value
|
|
exceeds maximum column width. Error Code: 01401'', ''N'', ''Y'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpLogAlertRule where logAlertPattern = 'ORA-12899';\n
|
|
\ if (cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId,
|
|
logAlertPattern, databaseType, customErrorMessage, isTablespaceError, isEnabled)
|
|
VALUES (nextval(''hibernate_sequence''), ''ORA-12899'', ''ORACLE'', ''Invalid
|
|
attempt to insert or update column. Value exceeds maximum column width. Error
|
|
Code: 12899'', ''N'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpLogAlertRule where logAlertPattern = 'ORA-24920';\n if (cnt = 0) then\n
|
|
\ execute E'INSERT INTO OpLogAlertRule (logAlertRuleId, logAlertPattern, databaseType,
|
|
customErrorMessage, isTablespaceError, isEnabled) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''ORA-24920'', ''ORACLE'', ''Invalid attempt to insert or update column. Value
|
|
exceeds maximum column width. Error Code: 24920'', ''N'', ''Y'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpLogAlertRule where logAlertPattern = 'SQL state:
|
|
01004';\n if (cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId,
|
|
logAlertPattern, databaseType, customErrorMessage, isTablespaceError, isEnabled)
|
|
VALUES (nextval(''hibernate_sequence''), ''SQL state: 01004'', ''POSTGRESQL'',
|
|
''Invalid attempt to insert or update column. Value exceeds maximum column width.
|
|
Error Code: 01004'', ''N'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpLogAlertRule where logAlertPattern = 'SQL state: 22026';\n if (cnt = 0)
|
|
then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId, logAlertPattern,
|
|
databaseType, customErrorMessage, isTablespaceError, isEnabled) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''SQL state: 22026'', ''POSTGRESQL'', ''Invalid attempt to insert or update
|
|
column. Value exceeds maximum column width. Error Code: 22026'', ''N'', ''Y'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpLogAlertRule where logAlertPattern = 'SQL state:
|
|
42622';\n if (cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId,
|
|
logAlertPattern, databaseType, customErrorMessage, isTablespaceError, isEnabled)
|
|
VALUES (nextval(''hibernate_sequence''), ''SQL state: 42622'', ''POSTGRESQL'',
|
|
''Invalid attempt to insert or update column. Value exceeds maximum column width.
|
|
Error Code: 42622'', ''N'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpLogAlertRule where logAlertPattern = 'Error 2570';\n if (cnt = 0) then\n
|
|
\ execute E'INSERT INTO OpLogAlertRule (logAlertRuleId, logAlertPattern, databaseType,
|
|
customErrorMessage, isTablespaceError, isEnabled) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''Error 2570'', ''SQLSERVER'', ''Invalid attempt to insert or update column.
|
|
Value exceeds maximum column width. Error Code: 2570'', ''N'', ''Y'')';\n end
|
|
if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpLogAlertRule where logAlertPattern = 'Error:
|
|
2570';\n if (cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId,
|
|
logAlertPattern, databaseType, customErrorMessage, isTablespaceError, isEnabled)
|
|
VALUES (nextval(''hibernate_sequence''), ''Error: 2570'', ''SQLSERVER'', ''Invalid
|
|
attempt to insert or update column. Value exceeds maximum column width. Error
|
|
Code: 2570'', ''N'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpLogAlertRule
|
|
where logAlertPattern = 'Error 2628';\n if (cnt = 0) then\n execute E'INSERT
|
|
INTO OpLogAlertRule (logAlertRuleId, logAlertPattern, databaseType, customErrorMessage,
|
|
isTablespaceError, isEnabled) VALUES (nextval(''hibernate_sequence''), ''Error
|
|
2628'', ''SQLSERVER'', ''Invalid attempt to insert or update column. Value exceeds
|
|
maximum column width. Error Code: 2628'', ''N'', ''Y'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpLogAlertRule where logAlertPattern = 'Error:
|
|
2628';\n if (cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId,
|
|
logAlertPattern, databaseType, customErrorMessage, isTablespaceError, isEnabled)
|
|
VALUES (nextval(''hibernate_sequence''), ''Error: 2628'', ''SQLSERVER'', ''Invalid
|
|
attempt to insert or update column. Value exceeds maximum column width. Error
|
|
Code: 2628'', ''N'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpLogAlertRule
|
|
where logAlertPattern = 'Error 2716';\n if (cnt = 0) then\n execute E'INSERT
|
|
INTO OpLogAlertRule (logAlertRuleId, logAlertPattern, databaseType, customErrorMessage,
|
|
isTablespaceError, isEnabled) VALUES (nextval(''hibernate_sequence''), ''Error
|
|
2716'', ''SQLSERVER'', ''Invalid attempt to insert or update column. Value exceeds
|
|
maximum column width. Error Code: 2716'', ''N'', ''Y'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpLogAlertRule where logAlertPattern = 'Error:
|
|
2716';\n if (cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId,
|
|
logAlertPattern, databaseType, customErrorMessage, isTablespaceError, isEnabled)
|
|
VALUES (nextval(''hibernate_sequence''), ''Error: 2716'', ''SQLSERVER'', ''Invalid
|
|
attempt to insert or update column. Value exceeds maximum column width. Error
|
|
Code: 2716'', ''N'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpLogAlertRule
|
|
where logAlertPattern = 'Error 2731';\n if (cnt = 0) then\n execute E'INSERT
|
|
INTO OpLogAlertRule (logAlertRuleId, logAlertPattern, databaseType, customErrorMessage,
|
|
isTablespaceError, isEnabled) VALUES (nextval(''hibernate_sequence''), ''Error
|
|
2731'', ''SQLSERVER'', ''Invalid attempt to insert or update column. Value exceeds
|
|
maximum column width. Error Code: 2731'', ''N'', ''Y'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpLogAlertRule where logAlertPattern = 'Error:
|
|
2731';\n if (cnt = 0) then\n execute E'INSERT INTO OpLogAlertRule (logAlertRuleId,
|
|
logAlertPattern, databaseType, customErrorMessage, isTablespaceError, isEnabled)
|
|
VALUES (nextval(''hibernate_sequence''), ''Error: 2731'', ''SQLSERVER'', ''Invalid
|
|
attempt to insert or update column. Value exceeds maximum column width. Error
|
|
Code: 2731'', ''N'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpLogAlertRule
|
|
where logAlertPattern = 'SQLCODE=-404';\n if (cnt = 0) then\n execute E'INSERT
|
|
INTO OpLogAlertRule (logAlertRuleId, logAlertPattern, databaseType, customErrorMessage,
|
|
isTablespaceError, isEnabled) VALUES (nextval(''hibernate_sequence''), ''SQLCODE=-404'',
|
|
''DB2'', ''Invalid attempt to insert or update column. Value exceeds maximum column
|
|
width. Error Code: -404'', ''N'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpLogAlertRule where logAlertPattern = 'SQLCODE=-410';\n if (cnt = 0) then\n
|
|
\ execute E'INSERT INTO OpLogAlertRule (logAlertRuleId, logAlertPattern, databaseType,
|
|
customErrorMessage, isTablespaceError, isEnabled) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''SQLCODE=-410'', ''DB2'', ''Invalid attempt to insert or update column. Value
|
|
exceeds maximum column width. Error Code: -410'', ''N'', ''Y'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\n-- ---------------------------------------------------\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpProductType WHERE TypeName = 'AB_APP';\n if
|
|
(cnt > 0) then\n execute E'UPDATE OpProductType SET ProductName=E''Ab Initio
|
|
Servlet Container'', ProductNameString=E''${officialProductName} (${contextRoot})'',
|
|
KeyFileProductId=E'''', ProductVendor=E''Ab Initio'', ProductVariety=E''SERVICE'',
|
|
IsAddByAdmin=E''Y'', VersionTreatment=E''AUTOMATIC'', AbHomeTreatment=E''AUTOMATIC'',
|
|
AbApplicationHubTreatment=E''AUTOMATIC'', RootDirectoryTreatment=E''KEY'', RootDirectoryEnvVar=E''AB_APP_HOME'',
|
|
ContextRootTreatment=E''KEY'', ConfigFileTreatment=E''AUTOMATIC'', ConfigurationUserTreatment=E''REQUIRED'',
|
|
PortTreatment=E''AUTOMATIC'', UrlTreatment=E''NA'', AbWorkDirTreatment=E''AUTOMATIC'',
|
|
AbDataDirTreatment=E''AUTOMATIC'', LogFilePathTreatment=E''AUTOMATIC'', WorkDirTreatment=E''NA'',
|
|
StartCommandString=E''ab-app start ${contextRoot}'', StopCommandString=E''ab-app
|
|
stop ${contextRoot}'', RestartCommandString=E'''', StatusCommandString=E''ab-app
|
|
status ${contextRoot}'', GoodStatusRegex=E''is running'', BadStatusRegex=E''is
|
|
stopped'', AbAppIdentifier=E'''' WHERE TypeName = ''AB_APP''';\n else\n execute
|
|
E'INSERT INTO OpProductType (ProductTypeId, TypeName,ProductName,ProductNameString,KeyFileProductId,ProductVendor,ProductVariety,IsAddByAdmin,VersionTreatment,AbHomeTreatment,AbApplicationHubTreatment,RootDirectoryTreatment,RootDirectoryEnvVar,ContextRootTreatment,ConfigFileTreatment,ConfigurationUserTreatment,PortTreatment,UrlTreatment,AbWorkDirTreatment,AbDataDirTreatment,LogFilePathTreatment,WorkDirTreatment,StartCommandString,StopCommandString,RestartCommandString,StatusCommandString,GoodStatusRegex,BadStatusRegex,AbAppIdentifier)
|
|
VALUES (nextval(''hibernate_sequence''), E''AB_APP'',E''Ab Initio Servlet Container'',E''${officialProductName}
|
|
(${contextRoot})'',E'''',E''Ab Initio'',E''SERVICE'',E''Y'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''KEY'',E''AB_APP_HOME'',E''KEY'',E''AUTOMATIC'',E''REQUIRED'',E''AUTOMATIC'',E''NA'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''NA'',E''ab-app
|
|
start ${contextRoot}'',E''ab-app stop ${contextRoot}'',E'''',E''ab-app status
|
|
${contextRoot}'',E''is running'',E''is stopped'',E'''')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpProductType WHERE TypeName = 'AB_APP_INSTANCE';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpProductType SET ProductName=E''Ab
|
|
Initio Web Application'', ProductNameString=E''${contextRoot} - ${officialProductName}'',
|
|
KeyFileProductId=E'''', ProductVendor=E''Ab Initio'', ProductVariety=E''PRODUCT'',
|
|
IsAddByAdmin=E''Y'', VersionTreatment=E''AUTOMATIC'', AbHomeTreatment=E''AUTOMATIC'',
|
|
AbApplicationHubTreatment=E''AUTOMATIC'', RootDirectoryTreatment=E''KEY'', RootDirectoryEnvVar=E''AB_APP_HOME'',
|
|
ContextRootTreatment=E''KEY'', ConfigFileTreatment=E''AUTOMATIC'', ConfigurationUserTreatment=E''REQUIRED'',
|
|
PortTreatment=E''AUTOMATIC'', UrlTreatment=E''AUTOMATIC'', AbWorkDirTreatment=E''AUTOMATIC'',
|
|
AbDataDirTreatment=E''AUTOMATIC'', LogFilePathTreatment=E''AUTOMATIC'', WorkDirTreatment=E''NA'',
|
|
StartCommandString=E''ab-app start ${contextRoot}'', StopCommandString=E''ab-app
|
|
stop ${contextRoot}'', RestartCommandString=E'''', StatusCommandString=E''ab-app
|
|
status ${contextRoot}'', GoodStatusRegex=E''is running'', BadStatusRegex=E''is
|
|
stopped'', AbAppIdentifier=E'''' WHERE TypeName = ''AB_APP_INSTANCE''';\n else\n
|
|
\ execute E'INSERT INTO OpProductType (ProductTypeId, TypeName,ProductName,ProductNameString,KeyFileProductId,ProductVendor,ProductVariety,IsAddByAdmin,VersionTreatment,AbHomeTreatment,AbApplicationHubTreatment,RootDirectoryTreatment,RootDirectoryEnvVar,ContextRootTreatment,ConfigFileTreatment,ConfigurationUserTreatment,PortTreatment,UrlTreatment,AbWorkDirTreatment,AbDataDirTreatment,LogFilePathTreatment,WorkDirTreatment,StartCommandString,StopCommandString,RestartCommandString,StatusCommandString,GoodStatusRegex,BadStatusRegex,AbAppIdentifier)
|
|
VALUES (nextval(''hibernate_sequence''), E''AB_APP_INSTANCE'',E''Ab Initio Web
|
|
Application'',E''${contextRoot} - ${officialProductName}'',E'''',E''Ab Initio'',E''PRODUCT'',E''Y'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''KEY'',E''AB_APP_HOME'',E''KEY'',E''AUTOMATIC'',E''REQUIRED'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''NA'',E''ab-app
|
|
start ${contextRoot}'',E''ab-app stop ${contextRoot}'',E'''',E''ab-app status
|
|
${contextRoot}'',E''is running'',E''is stopped'',E'''')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpProductType WHERE TypeName = 'AB_DB';\n if
|
|
(cnt > 0) then\n execute E'UPDATE OpProductType SET ProductName=E''Ab Initio
|
|
Database'', ProductNameString=E''${officialProductName} (${contextRoot})'', KeyFileProductId=E'''',
|
|
ProductVendor=E''Ab Initio'', ProductVariety=E''SERVICE'', IsAddByAdmin=E''Y'',
|
|
VersionTreatment=E''AUTOMATIC'', AbHomeTreatment=E''NA'', AbApplicationHubTreatment=E''AUTOMATIC'',
|
|
RootDirectoryTreatment=E''KEY'', RootDirectoryEnvVar=E''AB_DB_DATA_DIR'', ContextRootTreatment=E''KEY'',
|
|
ConfigFileTreatment=E''AUTOMATIC'', ConfigurationUserTreatment=E''REQUIRED'',
|
|
PortTreatment=E''AUTOMATIC'', UrlTreatment=E''NA'', AbWorkDirTreatment=E''AUTOMATIC'',
|
|
AbDataDirTreatment=E''AUTOMATIC'', LogFilePathTreatment=E''AUTOMATIC'', WorkDirTreatment=E''NA'',
|
|
StartCommandString=E''ab-db start ${contextRoot}'', StopCommandString=E''ab-db
|
|
stop ${contextRoot}'', RestartCommandString=E'''', StatusCommandString=E''ab-db
|
|
status ${contextRoot}'', GoodStatusRegex=E''\\\\\\\\s+Running\\\\\\\\s+'', BadStatusRegex=E''\\\\\\\\s+(Unknown|Stopped)\\\\\\\\s+'',
|
|
AbAppIdentifier=E'''' WHERE TypeName = ''AB_DB''';\n else\n execute E'INSERT
|
|
INTO OpProductType (ProductTypeId, TypeName,ProductName,ProductNameString,KeyFileProductId,ProductVendor,ProductVariety,IsAddByAdmin,VersionTreatment,AbHomeTreatment,AbApplicationHubTreatment,RootDirectoryTreatment,RootDirectoryEnvVar,ContextRootTreatment,ConfigFileTreatment,ConfigurationUserTreatment,PortTreatment,UrlTreatment,AbWorkDirTreatment,AbDataDirTreatment,LogFilePathTreatment,WorkDirTreatment,StartCommandString,StopCommandString,RestartCommandString,StatusCommandString,GoodStatusRegex,BadStatusRegex,AbAppIdentifier)
|
|
VALUES (nextval(''hibernate_sequence''), E''AB_DB'',E''Ab Initio Database'',E''${officialProductName}
|
|
(${contextRoot})'',E'''',E''Ab Initio'',E''SERVICE'',E''Y'',E''AUTOMATIC'',E''NA'',E''AUTOMATIC'',E''KEY'',E''AB_DB_DATA_DIR'',E''KEY'',E''AUTOMATIC'',E''REQUIRED'',E''AUTOMATIC'',E''NA'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''NA'',E''ab-db
|
|
start ${contextRoot}'',E''ab-db stop ${contextRoot}'',E'''',E''ab-db status ${contextRoot}'',E''\\\\\\\\s+Running\\\\\\\\s+'',E''\\\\\\\\s+(Unknown|Stopped)\\\\\\\\s+'',E'''')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpProductType WHERE TypeName = 'ABSQL_QUERY_IT';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpProductType SET ProductName=E''Ab
|
|
Initio Query>It Administrator'', ProductNameString=E''${contextRoot} - ${officialProductName}'',
|
|
KeyFileProductId=E'''', ProductVendor=E''Ab Initio'', ProductVariety=E''PRODUCT'',
|
|
IsAddByAdmin=E''Y'', VersionTreatment=E''AUTOMATIC'', AbHomeTreatment=E''AUTOMATIC'',
|
|
AbApplicationHubTreatment=E''AUTOMATIC'', RootDirectoryTreatment=E''KEY'', RootDirectoryEnvVar=E''AB_APP_HOME'',
|
|
ContextRootTreatment=E''KEY'', ConfigFileTreatment=E''AUTOMATIC'', ConfigurationUserTreatment=E''REQUIRED'',
|
|
PortTreatment=E''AUTOMATIC'', UrlTreatment=E''AUTOMATIC'', AbWorkDirTreatment=E''AUTOMATIC'',
|
|
AbDataDirTreatment=E''AUTOMATIC'', LogFilePathTreatment=E''AUTOMATIC'', WorkDirTreatment=E''NA'',
|
|
StartCommandString=E''ab-app start ${contextRoot}'', StopCommandString=E''ab-app
|
|
stop ${contextRoot}'', RestartCommandString=E'''', StatusCommandString=E''ab-app
|
|
status ${contextRoot}'', GoodStatusRegex=E''is running'', BadStatusRegex=E''is
|
|
stopped'', AbAppIdentifier=E''AbSqlAdmin'' WHERE TypeName = ''ABSQL_QUERY_IT''';\n
|
|
\ else\n execute E'INSERT INTO OpProductType (ProductTypeId, TypeName,ProductName,ProductNameString,KeyFileProductId,ProductVendor,ProductVariety,IsAddByAdmin,VersionTreatment,AbHomeTreatment,AbApplicationHubTreatment,RootDirectoryTreatment,RootDirectoryEnvVar,ContextRootTreatment,ConfigFileTreatment,ConfigurationUserTreatment,PortTreatment,UrlTreatment,AbWorkDirTreatment,AbDataDirTreatment,LogFilePathTreatment,WorkDirTreatment,StartCommandString,StopCommandString,RestartCommandString,StatusCommandString,GoodStatusRegex,BadStatusRegex,AbAppIdentifier)
|
|
VALUES (nextval(''hibernate_sequence''), E''ABSQL_QUERY_IT'',E''Ab Initio Query>It
|
|
Administrator'',E''${contextRoot} - ${officialProductName}'',E'''',E''Ab Initio'',E''PRODUCT'',E''Y'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''KEY'',E''AB_APP_HOME'',E''KEY'',E''AUTOMATIC'',E''REQUIRED'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''NA'',E''ab-app
|
|
start ${contextRoot}'',E''ab-app stop ${contextRoot}'',E'''',E''ab-app status
|
|
${contextRoot}'',E''is running'',E''is stopped'',E''AbSqlAdmin'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpProductType WHERE TypeName = 'ACE';\n if (cnt
|
|
> 0) then\n execute E'UPDATE OpProductType SET ProductName=E''Ab Initio Express>It'',
|
|
ProductNameString=E''${contextRoot} - ${officialProductName}'', KeyFileProductId=E'''',
|
|
ProductVendor=E''Ab Initio'', ProductVariety=E''PRODUCT'', IsAddByAdmin=E''Y'',
|
|
VersionTreatment=E''AUTOMATIC'', AbHomeTreatment=E''AUTOMATIC'', AbApplicationHubTreatment=E''AUTOMATIC'',
|
|
RootDirectoryTreatment=E''KEY'', RootDirectoryEnvVar=E''AB_APP_HOME'', ContextRootTreatment=E''KEY'',
|
|
ConfigFileTreatment=E''AUTOMATIC'', ConfigurationUserTreatment=E''NA'', PortTreatment=E''AUTOMATIC'',
|
|
UrlTreatment=E''AUTOMATIC'', AbWorkDirTreatment=E''AUTOMATIC'', AbDataDirTreatment=E''AUTOMATIC'',
|
|
LogFilePathTreatment=E''AUTOMATIC'', WorkDirTreatment=E''NA'', StartCommandString=E''ab-app
|
|
start ${contextRoot}'', StopCommandString=E''ab-app stop ${contextRoot}'', RestartCommandString=E'''',
|
|
StatusCommandString=E''ab-app status ${contextRoot}'', GoodStatusRegex=E''is running'',
|
|
BadStatusRegex=E''is stopped'', AbAppIdentifier=E''appconf'' WHERE TypeName =
|
|
''ACE''';\n else\n execute E'INSERT INTO OpProductType (ProductTypeId, TypeName,ProductName,ProductNameString,KeyFileProductId,ProductVendor,ProductVariety,IsAddByAdmin,VersionTreatment,AbHomeTreatment,AbApplicationHubTreatment,RootDirectoryTreatment,RootDirectoryEnvVar,ContextRootTreatment,ConfigFileTreatment,ConfigurationUserTreatment,PortTreatment,UrlTreatment,AbWorkDirTreatment,AbDataDirTreatment,LogFilePathTreatment,WorkDirTreatment,StartCommandString,StopCommandString,RestartCommandString,StatusCommandString,GoodStatusRegex,BadStatusRegex,AbAppIdentifier)
|
|
VALUES (nextval(''hibernate_sequence''), E''ACE'',E''Ab Initio Express>It'',E''${contextRoot}
|
|
- ${officialProductName}'',E'''',E''Ab Initio'',E''PRODUCT'',E''Y'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''KEY'',E''AB_APP_HOME'',E''KEY'',E''AUTOMATIC'',E''NA'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''NA'',E''ab-app
|
|
start ${contextRoot}'',E''ab-app stop ${contextRoot}'',E'''',E''ab-app status
|
|
${contextRoot}'',E''is running'',E''is stopped'',E''appconf'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpProductType WHERE TypeName = 'AIW';\n if (cnt
|
|
> 0) then\n execute E'UPDATE OpProductType SET ProductName=E''Technical Repository
|
|
Web Interface'', ProductNameString=E''${contextRoot} - ${officialProductName}'',
|
|
KeyFileProductId=E''p0203'', ProductVendor=E''Ab Initio'', ProductVariety=E''PRODUCT'',
|
|
IsAddByAdmin=E''Y'', VersionTreatment=E''AUTOMATIC'', AbHomeTreatment=E''AUTOMATIC'',
|
|
AbApplicationHubTreatment=E''AUTOMATIC'', RootDirectoryTreatment=E''KEY'', RootDirectoryEnvVar=E''AB_APP_HOME'',
|
|
ContextRootTreatment=E''KEY'', ConfigFileTreatment=E''AUTOMATIC'', ConfigurationUserTreatment=E''REQUIRED'',
|
|
PortTreatment=E''AUTOMATIC'', UrlTreatment=E''AUTOMATIC'', AbWorkDirTreatment=E''AUTOMATIC'',
|
|
AbDataDirTreatment=E''AUTOMATIC'', LogFilePathTreatment=E''AUTOMATIC'', WorkDirTreatment=E''NA'',
|
|
StartCommandString=E''ab-app start ${contextRoot}'', StopCommandString=E''ab-app
|
|
stop ${contextRoot}'', RestartCommandString=E'''', StatusCommandString=E''ab-app
|
|
status ${contextRoot}'', GoodStatusRegex=E''is running'', BadStatusRegex=E''is
|
|
stopped'', AbAppIdentifier=E''aiw'' WHERE TypeName = ''AIW''';\n else\n execute
|
|
E'INSERT INTO OpProductType (ProductTypeId, TypeName,ProductName,ProductNameString,KeyFileProductId,ProductVendor,ProductVariety,IsAddByAdmin,VersionTreatment,AbHomeTreatment,AbApplicationHubTreatment,RootDirectoryTreatment,RootDirectoryEnvVar,ContextRootTreatment,ConfigFileTreatment,ConfigurationUserTreatment,PortTreatment,UrlTreatment,AbWorkDirTreatment,AbDataDirTreatment,LogFilePathTreatment,WorkDirTreatment,StartCommandString,StopCommandString,RestartCommandString,StatusCommandString,GoodStatusRegex,BadStatusRegex,AbAppIdentifier)
|
|
VALUES (nextval(''hibernate_sequence''), E''AIW'',E''Technical Repository Web
|
|
Interface'',E''${contextRoot} - ${officialProductName}'',E''p0203'',E''Ab Initio'',E''PRODUCT'',E''Y'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''KEY'',E''AB_APP_HOME'',E''KEY'',E''AUTOMATIC'',E''REQUIRED'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''NA'',E''ab-app
|
|
start ${contextRoot}'',E''ab-app stop ${contextRoot}'',E'''',E''ab-app status
|
|
${contextRoot}'',E''is running'',E''is stopped'',E''aiw'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpProductType WHERE TypeName = 'APP_HUB';\n if
|
|
(cnt > 0) then\n execute E'UPDATE OpProductType SET ProductName=E''Application
|
|
Hub'', ProductNameString=E''${officialProductName} ($(version))'', KeyFileProductId=E'''',
|
|
ProductVendor=E''Ab Initio'', ProductVariety=E''PRODUCT'', IsAddByAdmin=E''Y'',
|
|
VersionTreatment=E''AUTOMATIC'', AbHomeTreatment=E''AUTOMATIC'', AbApplicationHubTreatment=E''KEY'',
|
|
RootDirectoryTreatment=E''NA'', RootDirectoryEnvVar=E'''', ContextRootTreatment=E''NA'',
|
|
ConfigFileTreatment=E''AUTOMATIC'', ConfigurationUserTreatment=E''REQUIRED'',
|
|
PortTreatment=E''NA'', UrlTreatment=E''NA'', AbWorkDirTreatment=E''AUTOMATIC'',
|
|
AbDataDirTreatment=E''AUTOMATIC'', LogFilePathTreatment=E''NA'', WorkDirTreatment=E''NA'',
|
|
StartCommandString=E'''', StopCommandString=E'''', RestartCommandString=E'''',
|
|
StatusCommandString=E'''', GoodStatusRegex=E'''', BadStatusRegex=E'''', AbAppIdentifier=E''''
|
|
WHERE TypeName = ''APP_HUB''';\n else\n execute E'INSERT INTO OpProductType
|
|
(ProductTypeId, TypeName,ProductName,ProductNameString,KeyFileProductId,ProductVendor,ProductVariety,IsAddByAdmin,VersionTreatment,AbHomeTreatment,AbApplicationHubTreatment,RootDirectoryTreatment,RootDirectoryEnvVar,ContextRootTreatment,ConfigFileTreatment,ConfigurationUserTreatment,PortTreatment,UrlTreatment,AbWorkDirTreatment,AbDataDirTreatment,LogFilePathTreatment,WorkDirTreatment,StartCommandString,StopCommandString,RestartCommandString,StatusCommandString,GoodStatusRegex,BadStatusRegex,AbAppIdentifier)
|
|
VALUES (nextval(''hibernate_sequence''), E''APP_HUB'',E''Application Hub'',E''${officialProductName}
|
|
($(version))'',E'''',E''Ab Initio'',E''PRODUCT'',E''Y'',E''AUTOMATIC'',E''AUTOMATIC'',E''KEY'',E''NA'',E'''',E''NA'',E''AUTOMATIC'',E''REQUIRED'',E''NA'',E''NA'',E''AUTOMATIC'',E''AUTOMATIC'',E''NA'',E''NA'',E'''',E'''',E'''',E'''',E'''',E'''',E'''')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpProductType WHERE TypeName = 'AUTHORIZATION_GATEWAY';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpProductType SET ProductName=E''Authorization
|
|
Gateway'', ProductNameString=E''${contextRoot} - ${officialProductName}'', KeyFileProductId=E'''',
|
|
ProductVendor=E''Ab Initio'', ProductVariety=E''PRODUCT'', IsAddByAdmin=E''Y'',
|
|
VersionTreatment=E''AUTOMATIC'', AbHomeTreatment=E''AUTOMATIC'', AbApplicationHubTreatment=E''AUTOMATIC'',
|
|
RootDirectoryTreatment=E''KEY'', RootDirectoryEnvVar=E''AB_APP_HOME'', ContextRootTreatment=E''KEY'',
|
|
ConfigFileTreatment=E''AUTOMATIC'', ConfigurationUserTreatment=E''REQUIRED'',
|
|
PortTreatment=E''AUTOMATIC'', UrlTreatment=E''AUTOMATIC'', AbWorkDirTreatment=E''AUTOMATIC'',
|
|
AbDataDirTreatment=E''AUTOMATIC'', LogFilePathTreatment=E''AUTOMATIC'', WorkDirTreatment=E''NA'',
|
|
StartCommandString=E''ab-app start ${contextRoot}'', StopCommandString=E''ab-app
|
|
stop ${contextRoot}'', RestartCommandString=E'''', StatusCommandString=E''ab-app
|
|
status ${contextRoot}'', GoodStatusRegex=E''is running'', BadStatusRegex=E''is
|
|
stopped'', AbAppIdentifier=E''ag|auth|gate'' WHERE TypeName = ''AUTHORIZATION_GATEWAY''';\n
|
|
\ else\n execute E'INSERT INTO OpProductType (ProductTypeId, TypeName,ProductName,ProductNameString,KeyFileProductId,ProductVendor,ProductVariety,IsAddByAdmin,VersionTreatment,AbHomeTreatment,AbApplicationHubTreatment,RootDirectoryTreatment,RootDirectoryEnvVar,ContextRootTreatment,ConfigFileTreatment,ConfigurationUserTreatment,PortTreatment,UrlTreatment,AbWorkDirTreatment,AbDataDirTreatment,LogFilePathTreatment,WorkDirTreatment,StartCommandString,StopCommandString,RestartCommandString,StatusCommandString,GoodStatusRegex,BadStatusRegex,AbAppIdentifier)
|
|
VALUES (nextval(''hibernate_sequence''), E''AUTHORIZATION_GATEWAY'',E''Authorization
|
|
Gateway'',E''${contextRoot} - ${officialProductName}'',E'''',E''Ab Initio'',E''PRODUCT'',E''Y'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''KEY'',E''AB_APP_HOME'',E''KEY'',E''AUTOMATIC'',E''REQUIRED'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''NA'',E''ab-app
|
|
start ${contextRoot}'',E''ab-app stop ${contextRoot}'',E'''',E''ab-app status
|
|
${contextRoot}'',E''is running'',E''is stopped'',E''ag|auth|gate'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpProductType WHERE TypeName = 'BRIDGE';\n if
|
|
(cnt > 0) then\n execute E'UPDATE OpProductType SET ProductName=E''Ab Initio
|
|
Bridge (pre-3.2.5)'', ProductNameString=E''Ab Initio Bridge (${port})'', KeyFileProductId=E'''',
|
|
ProductVendor=E''Ab Initio'', ProductVariety=E''SERVICE'', IsAddByAdmin=E''Y'',
|
|
VersionTreatment=E''AUTOMATIC'', AbHomeTreatment=E''AUTOMATIC'', AbApplicationHubTreatment=E''AUTOMATIC'',
|
|
RootDirectoryTreatment=E''NA'', RootDirectoryEnvVar=E'''', ContextRootTreatment=E''NA'',
|
|
ConfigFileTreatment=E''KEY'', ConfigurationUserTreatment=E''REQUIRED'', PortTreatment=E''AUTOMATIC'',
|
|
UrlTreatment=E''AUTOMATIC'', AbWorkDirTreatment=E''AUTOMATIC'', AbDataDirTreatment=E''AUTOMATIC'',
|
|
LogFilePathTreatment=E''AUTOMATIC'', WorkDirTreatment=E''NA'', StartCommandString=E''ab-bridge
|
|
start -config ${configFile}'', StopCommandString=E''ab-bridge stop -config ${configFile}'',
|
|
RestartCommandString=E''ab-bridge restart -config ${configFile}'', StatusCommandString=E''ab-bridge
|
|
status -config ${configFile}'', GoodStatusRegex=E''is running'', BadStatusRegex=E''is
|
|
not running'', AbAppIdentifier=E'''' WHERE TypeName = ''BRIDGE''';\n else\n execute
|
|
E'INSERT INTO OpProductType (ProductTypeId, TypeName,ProductName,ProductNameString,KeyFileProductId,ProductVendor,ProductVariety,IsAddByAdmin,VersionTreatment,AbHomeTreatment,AbApplicationHubTreatment,RootDirectoryTreatment,RootDirectoryEnvVar,ContextRootTreatment,ConfigFileTreatment,ConfigurationUserTreatment,PortTreatment,UrlTreatment,AbWorkDirTreatment,AbDataDirTreatment,LogFilePathTreatment,WorkDirTreatment,StartCommandString,StopCommandString,RestartCommandString,StatusCommandString,GoodStatusRegex,BadStatusRegex,AbAppIdentifier)
|
|
VALUES (nextval(''hibernate_sequence''), E''BRIDGE'',E''Ab Initio Bridge (pre-3.2.5)'',E''Ab
|
|
Initio Bridge (${port})'',E'''',E''Ab Initio'',E''SERVICE'',E''Y'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''NA'',E'''',E''NA'',E''KEY'',E''REQUIRED'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''NA'',E''ab-bridge
|
|
start -config ${configFile}'',E''ab-bridge stop -config ${configFile}'',E''ab-bridge
|
|
restart -config ${configFile}'',E''ab-bridge status -config ${configFile}'',E''is
|
|
running'',E''is not running'',E'''')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpProductType WHERE TypeName = 'BRIDGE_325';\n if (cnt > 0) then\n execute
|
|
E'UPDATE OpProductType SET ProductName=E''Ab Initio Bridge'', ProductNameString=E''${officialProductName}
|
|
(${port})'', KeyFileProductId=E'''', ProductVendor=E''Ab Initio'', ProductVariety=E''SERVICE'',
|
|
IsAddByAdmin=E''Y'', VersionTreatment=E''AUTOMATIC'', AbHomeTreatment=E''AUTOMATIC'',
|
|
AbApplicationHubTreatment=E''AUTOMATIC'', RootDirectoryTreatment=E''KEY'', RootDirectoryEnvVar=E''AB_BRIDGE_CONFIGURATION_DIR'',
|
|
ContextRootTreatment=E''KEY'', ConfigFileTreatment=E''AUTOMATIC'', ConfigurationUserTreatment=E''REQUIRED'',
|
|
PortTreatment=E''AUTOMATIC'', UrlTreatment=E''AUTOMATIC'', AbWorkDirTreatment=E''AUTOMATIC'',
|
|
AbDataDirTreatment=E''AUTOMATIC'', LogFilePathTreatment=E''AUTOMATIC'', WorkDirTreatment=E''NA'',
|
|
StartCommandString=E''ab-bridge start -name ${contextRoot}'', StopCommandString=E''ab-bridge
|
|
stop -name ${contextRoot}'', RestartCommandString=E''ab-bridge restart -name ${contextRoot}'',
|
|
StatusCommandString=E''ab-bridge status -name ${contextRoot}'', GoodStatusRegex=E''is
|
|
running'', BadStatusRegex=E''is not running'', AbAppIdentifier=E'''' WHERE TypeName
|
|
= ''BRIDGE_325''';\n else\n execute E'INSERT INTO OpProductType (ProductTypeId,
|
|
TypeName,ProductName,ProductNameString,KeyFileProductId,ProductVendor,ProductVariety,IsAddByAdmin,VersionTreatment,AbHomeTreatment,AbApplicationHubTreatment,RootDirectoryTreatment,RootDirectoryEnvVar,ContextRootTreatment,ConfigFileTreatment,ConfigurationUserTreatment,PortTreatment,UrlTreatment,AbWorkDirTreatment,AbDataDirTreatment,LogFilePathTreatment,WorkDirTreatment,StartCommandString,StopCommandString,RestartCommandString,StatusCommandString,GoodStatusRegex,BadStatusRegex,AbAppIdentifier)
|
|
VALUES (nextval(''hibernate_sequence''), E''BRIDGE_325'',E''Ab Initio Bridge'',E''${officialProductName}
|
|
(${port})'',E'''',E''Ab Initio'',E''SERVICE'',E''Y'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''KEY'',E''AB_BRIDGE_CONFIGURATION_DIR'',E''KEY'',E''AUTOMATIC'',E''REQUIRED'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''NA'',E''ab-bridge
|
|
start -name ${contextRoot}'',E''ab-bridge stop -name ${contextRoot}'',E''ab-bridge
|
|
restart -name ${contextRoot}'',E''ab-bridge status -name ${contextRoot}'',E''is
|
|
running'',E''is not running'',E'''')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpProductType WHERE TypeName = 'CO_OPERATING_SYSTEM';\n if (cnt > 0) then\n
|
|
\ execute E'UPDATE OpProductType SET ProductName=E''Co>Operating System'', ProductNameString=E''${contextRoot}
|
|
- ${officialProductName}||${officialProductName} ($(version))'', KeyFileProductId=E''p0101'',
|
|
ProductVendor=E''Ab Initio'', ProductVariety=E''PRODUCT'', IsAddByAdmin=E''Y'',
|
|
VersionTreatment=E''AUTOMATIC'', AbHomeTreatment=E''KEY'', AbApplicationHubTreatment=E''AUTOMATIC'',
|
|
RootDirectoryTreatment=E''NA'', RootDirectoryEnvVar=E'''', ContextRootTreatment=E''AUTOMATIC'',
|
|
ConfigFileTreatment=E''AUTOMATIC'', ConfigurationUserTreatment=E''REQUIRED'',
|
|
PortTreatment=E''NA'', UrlTreatment=E''NA'', AbWorkDirTreatment=E''AUTOMATIC'',
|
|
AbDataDirTreatment=E''AUTOMATIC'', LogFilePathTreatment=E''NA'', WorkDirTreatment=E''NA'',
|
|
StartCommandString=E'''', StopCommandString=E'''', RestartCommandString=E'''',
|
|
StatusCommandString=E'''', GoodStatusRegex=E'''', BadStatusRegex=E'''', AbAppIdentifier=E''''
|
|
WHERE TypeName = ''CO_OPERATING_SYSTEM''';\n else\n execute E'INSERT INTO
|
|
OpProductType (ProductTypeId, TypeName,ProductName,ProductNameString,KeyFileProductId,ProductVendor,ProductVariety,IsAddByAdmin,VersionTreatment,AbHomeTreatment,AbApplicationHubTreatment,RootDirectoryTreatment,RootDirectoryEnvVar,ContextRootTreatment,ConfigFileTreatment,ConfigurationUserTreatment,PortTreatment,UrlTreatment,AbWorkDirTreatment,AbDataDirTreatment,LogFilePathTreatment,WorkDirTreatment,StartCommandString,StopCommandString,RestartCommandString,StatusCommandString,GoodStatusRegex,BadStatusRegex,AbAppIdentifier)
|
|
VALUES (nextval(''hibernate_sequence''), E''CO_OPERATING_SYSTEM'',E''Co>Operating
|
|
System'',E''${contextRoot} - ${officialProductName}||${officialProductName} ($(version))'',E''p0101'',E''Ab
|
|
Initio'',E''PRODUCT'',E''Y'',E''AUTOMATIC'',E''KEY'',E''AUTOMATIC'',E''NA'',E'''',E''AUTOMATIC'',E''AUTOMATIC'',E''REQUIRED'',E''NA'',E''NA'',E''AUTOMATIC'',E''AUTOMATIC'',E''NA'',E''NA'',E'''',E'''',E'''',E'''',E'''',E'''',E'''')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpProductType WHERE TypeName = 'CONDUCT_IT';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpProductType SET ProductName=E''Conduct>It'',
|
|
ProductNameString=E''${officialProductName} ($(version))||${officialProductName}'',
|
|
KeyFileProductId=E''p0401'', ProductVendor=E''Ab Initio'', ProductVariety=E''PRODUCT'',
|
|
IsAddByAdmin=E''N'', VersionTreatment=E''AUTOMATIC'', AbHomeTreatment=E''KEY'',
|
|
AbApplicationHubTreatment=E''AUTOMATIC'', RootDirectoryTreatment=E''NA'', RootDirectoryEnvVar=E'''',
|
|
ContextRootTreatment=E''NA'', ConfigFileTreatment=E''NA'', ConfigurationUserTreatment=E''NA'',
|
|
PortTreatment=E''NA'', UrlTreatment=E''NA'', AbWorkDirTreatment=E''AUTOMATIC'',
|
|
AbDataDirTreatment=E''AUTOMATIC'', LogFilePathTreatment=E''NA'', WorkDirTreatment=E''NA'',
|
|
StartCommandString=E'''', StopCommandString=E'''', RestartCommandString=E'''',
|
|
StatusCommandString=E'''', GoodStatusRegex=E'''', BadStatusRegex=E'''', AbAppIdentifier=E''''
|
|
WHERE TypeName = ''CONDUCT_IT''';\n else\n execute E'INSERT INTO OpProductType
|
|
(ProductTypeId, TypeName,ProductName,ProductNameString,KeyFileProductId,ProductVendor,ProductVariety,IsAddByAdmin,VersionTreatment,AbHomeTreatment,AbApplicationHubTreatment,RootDirectoryTreatment,RootDirectoryEnvVar,ContextRootTreatment,ConfigFileTreatment,ConfigurationUserTreatment,PortTreatment,UrlTreatment,AbWorkDirTreatment,AbDataDirTreatment,LogFilePathTreatment,WorkDirTreatment,StartCommandString,StopCommandString,RestartCommandString,StatusCommandString,GoodStatusRegex,BadStatusRegex,AbAppIdentifier)
|
|
VALUES (nextval(''hibernate_sequence''), E''CONDUCT_IT'',E''Conduct>It'',E''${officialProductName}
|
|
($(version))||${officialProductName}'',E''p0401'',E''Ab Initio'',E''PRODUCT'',E''N'',E''AUTOMATIC'',E''KEY'',E''AUTOMATIC'',E''NA'',E'''',E''NA'',E''NA'',E''NA'',E''NA'',E''NA'',E''AUTOMATIC'',E''AUTOMATIC'',E''NA'',E''NA'',E'''',E'''',E'''',E'''',E'''',E'''',E'''')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpProductType WHERE TypeName = 'CONTINUOUS_FLOWS';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpProductType SET ProductName=E''Continuous
|
|
Flows'', ProductNameString=E''${officialProductName} ($(version))||${officialProductName}'',
|
|
KeyFileProductId=E''p0301'', ProductVendor=E''Ab Initio'', ProductVariety=E''PRODUCT'',
|
|
IsAddByAdmin=E''N'', VersionTreatment=E''AUTOMATIC'', AbHomeTreatment=E''KEY'',
|
|
AbApplicationHubTreatment=E''AUTOMATIC'', RootDirectoryTreatment=E''NA'', RootDirectoryEnvVar=E'''',
|
|
ContextRootTreatment=E''NA'', ConfigFileTreatment=E''NA'', ConfigurationUserTreatment=E''NA'',
|
|
PortTreatment=E''NA'', UrlTreatment=E''NA'', AbWorkDirTreatment=E''AUTOMATIC'',
|
|
AbDataDirTreatment=E''AUTOMATIC'', LogFilePathTreatment=E''NA'', WorkDirTreatment=E''NA'',
|
|
StartCommandString=E'''', StopCommandString=E'''', RestartCommandString=E'''',
|
|
StatusCommandString=E'''', GoodStatusRegex=E'''', BadStatusRegex=E'''', AbAppIdentifier=E''''
|
|
WHERE TypeName = ''CONTINUOUS_FLOWS''';\n else\n execute E'INSERT INTO OpProductType
|
|
(ProductTypeId, TypeName,ProductName,ProductNameString,KeyFileProductId,ProductVendor,ProductVariety,IsAddByAdmin,VersionTreatment,AbHomeTreatment,AbApplicationHubTreatment,RootDirectoryTreatment,RootDirectoryEnvVar,ContextRootTreatment,ConfigFileTreatment,ConfigurationUserTreatment,PortTreatment,UrlTreatment,AbWorkDirTreatment,AbDataDirTreatment,LogFilePathTreatment,WorkDirTreatment,StartCommandString,StopCommandString,RestartCommandString,StatusCommandString,GoodStatusRegex,BadStatusRegex,AbAppIdentifier)
|
|
VALUES (nextval(''hibernate_sequence''), E''CONTINUOUS_FLOWS'',E''Continuous
|
|
Flows'',E''${officialProductName} ($(version))||${officialProductName}'',E''p0301'',E''Ab
|
|
Initio'',E''PRODUCT'',E''N'',E''AUTOMATIC'',E''KEY'',E''AUTOMATIC'',E''NA'',E'''',E''NA'',E''NA'',E''NA'',E''NA'',E''NA'',E''AUTOMATIC'',E''AUTOMATIC'',E''NA'',E''NA'',E'''',E'''',E'''',E'''',E'''',E'''',E'''')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpProductType WHERE TypeName = 'CONTROL_CENTER';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpProductType SET ProductName=E''Ab
|
|
Initio Control>Center'', ProductNameString=E''${contextRoot} - ${officialProductName}'',
|
|
KeyFileProductId=E'''', ProductVendor=E''Ab Initio'', ProductVariety=E''PRODUCT'',
|
|
IsAddByAdmin=E''Y'', VersionTreatment=E''AUTOMATIC'', AbHomeTreatment=E''AUTOMATIC'',
|
|
AbApplicationHubTreatment=E''AUTOMATIC'', RootDirectoryTreatment=E''KEY'', RootDirectoryEnvVar=E''AB_APP_HOME'',
|
|
ContextRootTreatment=E''KEY'', ConfigFileTreatment=E''AUTOMATIC'', ConfigurationUserTreatment=E''REQUIRED'',
|
|
PortTreatment=E''AUTOMATIC'', UrlTreatment=E''AUTOMATIC'', AbWorkDirTreatment=E''AUTOMATIC'',
|
|
AbDataDirTreatment=E''AUTOMATIC'', LogFilePathTreatment=E''AUTOMATIC'', WorkDirTreatment=E''NA'',
|
|
StartCommandString=E''ab-app start ${contextRoot}'', StopCommandString=E''ab-app
|
|
stop ${contextRoot}'', RestartCommandString=E'''', StatusCommandString=E''ab-app
|
|
status ${contextRoot}'', GoodStatusRegex=E''is running'', BadStatusRegex=E''is
|
|
stopped'', AbAppIdentifier=E''control'' WHERE TypeName = ''CONTROL_CENTER''';\n
|
|
\ else\n execute E'INSERT INTO OpProductType (ProductTypeId, TypeName,ProductName,ProductNameString,KeyFileProductId,ProductVendor,ProductVariety,IsAddByAdmin,VersionTreatment,AbHomeTreatment,AbApplicationHubTreatment,RootDirectoryTreatment,RootDirectoryEnvVar,ContextRootTreatment,ConfigFileTreatment,ConfigurationUserTreatment,PortTreatment,UrlTreatment,AbWorkDirTreatment,AbDataDirTreatment,LogFilePathTreatment,WorkDirTreatment,StartCommandString,StopCommandString,RestartCommandString,StatusCommandString,GoodStatusRegex,BadStatusRegex,AbAppIdentifier)
|
|
VALUES (nextval(''hibernate_sequence''), E''CONTROL_CENTER'',E''Ab Initio Control>Center'',E''${contextRoot}
|
|
- ${officialProductName}'',E'''',E''Ab Initio'',E''PRODUCT'',E''Y'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''KEY'',E''AB_APP_HOME'',E''KEY'',E''AUTOMATIC'',E''REQUIRED'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''NA'',E''ab-app
|
|
start ${contextRoot}'',E''ab-app stop ${contextRoot}'',E'''',E''ab-app status
|
|
${contextRoot}'',E''is running'',E''is stopped'',E''control'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpProductType WHERE TypeName = 'EME_TR';\n if
|
|
(cnt > 0) then\n execute E'UPDATE OpProductType SET ProductName=E''EME Technical
|
|
Repository Server'', ProductNameString=E''${contextRoot} - ${officialProductName}'',
|
|
KeyFileProductId=E''p0205'', ProductVendor=E''Ab Initio'', ProductVariety=E''SERVICE'',
|
|
IsAddByAdmin=E''Y'', VersionTreatment=E''AUTOMATIC'', AbHomeTreatment=E''AUTOMATIC'',
|
|
AbApplicationHubTreatment=E''NA'', RootDirectoryTreatment=E''KEY'', RootDirectoryEnvVar=E''AB_AIR_ROOT'',
|
|
ContextRootTreatment=E''AUTOMATIC'', ConfigFileTreatment=E''NA'', ConfigurationUserTreatment=E''NA'',
|
|
PortTreatment=E''NA'', UrlTreatment=E''NA'', AbWorkDirTreatment=E''AUTOMATIC'',
|
|
AbDataDirTreatment=E''AUTOMATIC'', LogFilePathTreatment=E''NA'', WorkDirTreatment=E''NA'',
|
|
StartCommandString=E''air -root ${rootDirectory} repository start'', StopCommandString=E''air
|
|
-root ${rootDirectory} repository shutdown'', RestartCommandString=E''air -root
|
|
${rootDirectory} repository restart'', StatusCommandString=E''air -root ${rootDirectory}
|
|
repository show-server'', GoodStatusRegex=E''Server ID:'', BadStatusRegex=E''Command
|
|
Failed:'', AbAppIdentifier=E'''' WHERE TypeName = ''EME_TR''';\n else\n execute
|
|
E'INSERT INTO OpProductType (ProductTypeId, TypeName,ProductName,ProductNameString,KeyFileProductId,ProductVendor,ProductVariety,IsAddByAdmin,VersionTreatment,AbHomeTreatment,AbApplicationHubTreatment,RootDirectoryTreatment,RootDirectoryEnvVar,ContextRootTreatment,ConfigFileTreatment,ConfigurationUserTreatment,PortTreatment,UrlTreatment,AbWorkDirTreatment,AbDataDirTreatment,LogFilePathTreatment,WorkDirTreatment,StartCommandString,StopCommandString,RestartCommandString,StatusCommandString,GoodStatusRegex,BadStatusRegex,AbAppIdentifier)
|
|
VALUES (nextval(''hibernate_sequence''), E''EME_TR'',E''EME Technical Repository
|
|
Server'',E''${contextRoot} - ${officialProductName}'',E''p0205'',E''Ab Initio'',E''SERVICE'',E''Y'',E''AUTOMATIC'',E''AUTOMATIC'',E''NA'',E''KEY'',E''AB_AIR_ROOT'',E''AUTOMATIC'',E''NA'',E''NA'',E''NA'',E''NA'',E''AUTOMATIC'',E''AUTOMATIC'',E''NA'',E''NA'',E''air
|
|
-root ${rootDirectory} repository start'',E''air -root ${rootDirectory} repository
|
|
shutdown'',E''air -root ${rootDirectory} repository restart'',E''air -root ${rootDirectory}
|
|
repository show-server'',E''Server ID:'',E''Command Failed:'',E'''')';\n end
|
|
if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpProductType WHERE TypeName = 'HELP_SERVER';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpProductType SET ProductName=E''Ab
|
|
Initio Help'', ProductNameString=E'''', KeyFileProductId=E'''', ProductVendor=E''Ab
|
|
Initio'', ProductVariety=E''PRODUCT'', IsAddByAdmin=E''Y'', VersionTreatment=E''AUTOMATIC'',
|
|
AbHomeTreatment=E''AUTOMATIC'', AbApplicationHubTreatment=E''AUTOMATIC'', RootDirectoryTreatment=E''KEY'',
|
|
RootDirectoryEnvVar=E''AB_APP_HOME'', ContextRootTreatment=E''KEY'', ConfigFileTreatment=E''AUTOMATIC'',
|
|
ConfigurationUserTreatment=E''REQUIRED'', PortTreatment=E''AUTOMATIC'', UrlTreatment=E''AUTOMATIC'',
|
|
AbWorkDirTreatment=E''AUTOMATIC'', AbDataDirTreatment=E''AUTOMATIC'', LogFilePathTreatment=E''AUTOMATIC'',
|
|
WorkDirTreatment=E''NA'', StartCommandString=E''ab-app start ${contextRoot}'',
|
|
StopCommandString=E''ab-app stop ${contextRoot}'', RestartCommandString=E'''',
|
|
StatusCommandString=E''ab-app status ${contextRoot}'', GoodStatusRegex=E''is running'',
|
|
BadStatusRegex=E''is stopped'', AbAppIdentifier=E''help'' WHERE TypeName = ''HELP_SERVER''';\n
|
|
\ else\n execute E'INSERT INTO OpProductType (ProductTypeId, TypeName,ProductName,ProductNameString,KeyFileProductId,ProductVendor,ProductVariety,IsAddByAdmin,VersionTreatment,AbHomeTreatment,AbApplicationHubTreatment,RootDirectoryTreatment,RootDirectoryEnvVar,ContextRootTreatment,ConfigFileTreatment,ConfigurationUserTreatment,PortTreatment,UrlTreatment,AbWorkDirTreatment,AbDataDirTreatment,LogFilePathTreatment,WorkDirTreatment,StartCommandString,StopCommandString,RestartCommandString,StatusCommandString,GoodStatusRegex,BadStatusRegex,AbAppIdentifier)
|
|
VALUES (nextval(''hibernate_sequence''), E''HELP_SERVER'',E''Ab Initio Help'',E'''',E'''',E''Ab
|
|
Initio'',E''PRODUCT'',E''Y'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''KEY'',E''AB_APP_HOME'',E''KEY'',E''AUTOMATIC'',E''REQUIRED'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''NA'',E''ab-app
|
|
start ${contextRoot}'',E''ab-app stop ${contextRoot}'',E'''',E''ab-app status
|
|
${contextRoot}'',E''is running'',E''is stopped'',E''help'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpProductType WHERE TypeName = 'KEY_CLIENT_DAEMON';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpProductType SET ProductName=E''Ab
|
|
Initio Key Client'', ProductNameString=E''${officialProductName}'', KeyFileProductId=E'''',
|
|
ProductVendor=E''Ab Initio'', ProductVariety=E''SERVICE'', IsAddByAdmin=E''Y'',
|
|
VersionTreatment=E''AUTOMATIC'', AbHomeTreatment=E''AUTOMATIC'', AbApplicationHubTreatment=E''AUTOMATIC'',
|
|
RootDirectoryTreatment=E''NA'', RootDirectoryEnvVar=E'''', ContextRootTreatment=E''NA'',
|
|
ConfigFileTreatment=E''AUTOMATIC'', ConfigurationUserTreatment=E''REQUIRED'',
|
|
PortTreatment=E''NA'', UrlTreatment=E''NA'', AbWorkDirTreatment=E''AUTOMATIC'',
|
|
AbDataDirTreatment=E''AUTOMATIC'', LogFilePathTreatment=E''AUTOMATIC'', WorkDirTreatment=E''KEY'',
|
|
StartCommandString=E''abkc-control start ${workDir}'', StopCommandString=E''abkc-control
|
|
stop ${workDir}'', RestartCommandString=E''abkc-control restart ${workDir}'',
|
|
StatusCommandString=E''abkc-control status ${workDir}'', GoodStatusRegex=E''RUNNING-.*'',
|
|
BadStatusRegex=E''STOPPED'', AbAppIdentifier=E'''' WHERE TypeName = ''KEY_CLIENT_DAEMON''';\n
|
|
\ else\n execute E'INSERT INTO OpProductType (ProductTypeId, TypeName,ProductName,ProductNameString,KeyFileProductId,ProductVendor,ProductVariety,IsAddByAdmin,VersionTreatment,AbHomeTreatment,AbApplicationHubTreatment,RootDirectoryTreatment,RootDirectoryEnvVar,ContextRootTreatment,ConfigFileTreatment,ConfigurationUserTreatment,PortTreatment,UrlTreatment,AbWorkDirTreatment,AbDataDirTreatment,LogFilePathTreatment,WorkDirTreatment,StartCommandString,StopCommandString,RestartCommandString,StatusCommandString,GoodStatusRegex,BadStatusRegex,AbAppIdentifier)
|
|
VALUES (nextval(''hibernate_sequence''), E''KEY_CLIENT_DAEMON'',E''Ab Initio
|
|
Key Client'',E''${officialProductName}'',E'''',E''Ab Initio'',E''SERVICE'',E''Y'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''NA'',E'''',E''NA'',E''AUTOMATIC'',E''REQUIRED'',E''NA'',E''NA'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''KEY'',E''abkc-control
|
|
start ${workDir}'',E''abkc-control stop ${workDir}'',E''abkc-control restart ${workDir}'',E''abkc-control
|
|
status ${workDir}'',E''RUNNING-.*'',E''STOPPED'',E'''')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpProductType WHERE TypeName = 'KEY_SERVER';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpProductType SET ProductName=E''Ab
|
|
Initio Key Server'', ProductNameString=E''${officialProductName}'', KeyFileProductId=E''p3001'',
|
|
ProductVendor=E''Ab Initio'', ProductVariety=E''SERVICE'', IsAddByAdmin=E''Y'',
|
|
VersionTreatment=E''AUTOMATIC'', AbHomeTreatment=E''AUTOMATIC'', AbApplicationHubTreatment=E''AUTOMATIC'',
|
|
RootDirectoryTreatment=E''NA'', RootDirectoryEnvVar=E'''', ContextRootTreatment=E''NA'',
|
|
ConfigFileTreatment=E''KEY'', ConfigurationUserTreatment=E''REQUIRED'', PortTreatment=E''AUTOMATIC'',
|
|
UrlTreatment=E''AUTOMATIC'', AbWorkDirTreatment=E''AUTOMATIC'', AbDataDirTreatment=E''AUTOMATIC'',
|
|
LogFilePathTreatment=E''AUTOMATIC'', WorkDirTreatment=E''NA'', StartCommandString=E''abks-control
|
|
start ${configFile} ${keyServerGroup}'', StopCommandString=E''abks-control stop
|
|
${configFile} ${keyServerGroup}'', RestartCommandString=E''abks-control restart
|
|
${configFile} ${keyServerGroup}'', StatusCommandString=E''abks-control status
|
|
abks://${hostname}:${port}'', GoodStatusRegex=E''status=ks_server_online'', BadStatusRegex=E''.*'',
|
|
AbAppIdentifier=E'''' WHERE TypeName = ''KEY_SERVER''';\n else\n execute E'INSERT
|
|
INTO OpProductType (ProductTypeId, TypeName,ProductName,ProductNameString,KeyFileProductId,ProductVendor,ProductVariety,IsAddByAdmin,VersionTreatment,AbHomeTreatment,AbApplicationHubTreatment,RootDirectoryTreatment,RootDirectoryEnvVar,ContextRootTreatment,ConfigFileTreatment,ConfigurationUserTreatment,PortTreatment,UrlTreatment,AbWorkDirTreatment,AbDataDirTreatment,LogFilePathTreatment,WorkDirTreatment,StartCommandString,StopCommandString,RestartCommandString,StatusCommandString,GoodStatusRegex,BadStatusRegex,AbAppIdentifier)
|
|
VALUES (nextval(''hibernate_sequence''), E''KEY_SERVER'',E''Ab Initio Key Server'',E''${officialProductName}'',E''p3001'',E''Ab
|
|
Initio'',E''SERVICE'',E''Y'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''NA'',E'''',E''NA'',E''KEY'',E''REQUIRED'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''NA'',E''abks-control
|
|
start ${configFile} ${keyServerGroup}'',E''abks-control stop ${configFile} ${keyServerGroup}'',E''abks-control
|
|
restart ${configFile} ${keyServerGroup}'',E''abks-control status abks://${hostname}:${port}'',E''status=ks_server_online'',E''.*'',E'''')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpProductType WHERE TypeName = 'METADATA_HUB';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpProductType SET ProductName=E''Ab
|
|
Initio Metadata Hub'', ProductNameString=E''${contextRoot} - ${officialProductName}'',
|
|
KeyFileProductId=E'''', ProductVendor=E''Ab Initio'', ProductVariety=E''PRODUCT'',
|
|
IsAddByAdmin=E''Y'', VersionTreatment=E''AUTOMATIC'', AbHomeTreatment=E''AUTOMATIC'',
|
|
AbApplicationHubTreatment=E''AUTOMATIC'', RootDirectoryTreatment=E''KEY'', RootDirectoryEnvVar=E''AB_APP_HOME'',
|
|
ContextRootTreatment=E''KEY'', ConfigFileTreatment=E''AUTOMATIC'', ConfigurationUserTreatment=E''REQUIRED'',
|
|
PortTreatment=E''AUTOMATIC'', UrlTreatment=E''AUTOMATIC'', AbWorkDirTreatment=E''AUTOMATIC'',
|
|
AbDataDirTreatment=E''AUTOMATIC'', LogFilePathTreatment=E''AUTOMATIC'', WorkDirTreatment=E''NA'',
|
|
StartCommandString=E''ab-app start ${contextRoot}'', StopCommandString=E''ab-app
|
|
stop ${contextRoot}'', RestartCommandString=E'''', StatusCommandString=E''ab-app
|
|
status ${contextRoot}'', GoodStatusRegex=E''is running'', BadStatusRegex=E''is
|
|
stopped'', AbAppIdentifier=E''meta|mhub'' WHERE TypeName = ''METADATA_HUB''';\n
|
|
\ else\n execute E'INSERT INTO OpProductType (ProductTypeId, TypeName,ProductName,ProductNameString,KeyFileProductId,ProductVendor,ProductVariety,IsAddByAdmin,VersionTreatment,AbHomeTreatment,AbApplicationHubTreatment,RootDirectoryTreatment,RootDirectoryEnvVar,ContextRootTreatment,ConfigFileTreatment,ConfigurationUserTreatment,PortTreatment,UrlTreatment,AbWorkDirTreatment,AbDataDirTreatment,LogFilePathTreatment,WorkDirTreatment,StartCommandString,StopCommandString,RestartCommandString,StatusCommandString,GoodStatusRegex,BadStatusRegex,AbAppIdentifier)
|
|
VALUES (nextval(''hibernate_sequence''), E''METADATA_HUB'',E''Ab Initio Metadata
|
|
Hub'',E''${contextRoot} - ${officialProductName}'',E'''',E''Ab Initio'',E''PRODUCT'',E''Y'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''KEY'',E''AB_APP_HOME'',E''KEY'',E''AUTOMATIC'',E''REQUIRED'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''NA'',E''ab-app
|
|
start ${contextRoot}'',E''ab-app stop ${contextRoot}'',E'''',E''ab-app status
|
|
${contextRoot}'',E''is running'',E''is stopped'',E''meta|mhub'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpProductType WHERE TypeName = 'OP_CONSOLE';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpProductType SET ProductName=E''Ab
|
|
Initio Operational Console'', ProductNameString=E''${contextRoot} - ${officialProductName}'',
|
|
KeyFileProductId=E'''', ProductVendor=E''Ab Initio'', ProductVariety=E''PRODUCT'',
|
|
IsAddByAdmin=E''Y'', VersionTreatment=E''AUTOMATIC'', AbHomeTreatment=E''AUTOMATIC'',
|
|
AbApplicationHubTreatment=E''AUTOMATIC'', RootDirectoryTreatment=E''KEY'', RootDirectoryEnvVar=E''AB_APP_HOME'',
|
|
ContextRootTreatment=E''KEY'', ConfigFileTreatment=E''AUTOMATIC'', ConfigurationUserTreatment=E''REQUIRED'',
|
|
PortTreatment=E''AUTOMATIC'', UrlTreatment=E''AUTOMATIC'', AbWorkDirTreatment=E''AUTOMATIC'',
|
|
AbDataDirTreatment=E''AUTOMATIC'', LogFilePathTreatment=E''AUTOMATIC'', WorkDirTreatment=E''NA'',
|
|
StartCommandString=E''ab-app start ${contextRoot}'', StopCommandString=E''ab-app
|
|
stop ${contextRoot}'', RestartCommandString=E'''', StatusCommandString=E''ab-app
|
|
status ${contextRoot}'', GoodStatusRegex=E''is running'', BadStatusRegex=E''is
|
|
stopped'', AbAppIdentifier=E''oc|opconsole'' WHERE TypeName = ''OP_CONSOLE''';\n
|
|
\ else\n execute E'INSERT INTO OpProductType (ProductTypeId, TypeName,ProductName,ProductNameString,KeyFileProductId,ProductVendor,ProductVariety,IsAddByAdmin,VersionTreatment,AbHomeTreatment,AbApplicationHubTreatment,RootDirectoryTreatment,RootDirectoryEnvVar,ContextRootTreatment,ConfigFileTreatment,ConfigurationUserTreatment,PortTreatment,UrlTreatment,AbWorkDirTreatment,AbDataDirTreatment,LogFilePathTreatment,WorkDirTreatment,StartCommandString,StopCommandString,RestartCommandString,StatusCommandString,GoodStatusRegex,BadStatusRegex,AbAppIdentifier)
|
|
VALUES (nextval(''hibernate_sequence''), E''OP_CONSOLE'',E''Ab Initio Operational
|
|
Console'',E''${contextRoot} - ${officialProductName}'',E'''',E''Ab Initio'',E''PRODUCT'',E''Y'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''KEY'',E''AB_APP_HOME'',E''KEY'',E''AUTOMATIC'',E''REQUIRED'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''NA'',E''ab-app
|
|
start ${contextRoot}'',E''ab-app stop ${contextRoot}'',E'''',E''ab-app status
|
|
${contextRoot}'',E''is running'',E''is stopped'',E''oc|opconsole'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpProductType WHERE TypeName = 'OTHER_PRODUCT';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpProductType SET ProductName=E''Other
|
|
Product'', ProductNameString=E'''', KeyFileProductId=E'''', ProductVendor=E''Other'',
|
|
ProductVariety=E''PRODUCT'', IsAddByAdmin=E''Y'', VersionTreatment=E''OPTIONAL'',
|
|
AbHomeTreatment=E''OPTIONAL'', AbApplicationHubTreatment=E''AUTOMATIC'', RootDirectoryTreatment=E''NA'',
|
|
RootDirectoryEnvVar=E'''', ContextRootTreatment=E''NA'', ConfigFileTreatment=E''OPTIONAL'',
|
|
ConfigurationUserTreatment=E''OPTIONAL'', PortTreatment=E''OPTIONAL'', UrlTreatment=E''OPTIONAL'',
|
|
AbWorkDirTreatment=E''AUTOMATIC'', AbDataDirTreatment=E''AUTOMATIC'', LogFilePathTreatment=E''OPTIONAL'',
|
|
WorkDirTreatment=E''OPTIONAL'', StartCommandString=E'''', StopCommandString=E'''',
|
|
RestartCommandString=E'''', StatusCommandString=E'''', GoodStatusRegex=E'''',
|
|
BadStatusRegex=E'''', AbAppIdentifier=E'''' WHERE TypeName = ''OTHER_PRODUCT''';\n
|
|
\ else\n execute E'INSERT INTO OpProductType (ProductTypeId, TypeName,ProductName,ProductNameString,KeyFileProductId,ProductVendor,ProductVariety,IsAddByAdmin,VersionTreatment,AbHomeTreatment,AbApplicationHubTreatment,RootDirectoryTreatment,RootDirectoryEnvVar,ContextRootTreatment,ConfigFileTreatment,ConfigurationUserTreatment,PortTreatment,UrlTreatment,AbWorkDirTreatment,AbDataDirTreatment,LogFilePathTreatment,WorkDirTreatment,StartCommandString,StopCommandString,RestartCommandString,StatusCommandString,GoodStatusRegex,BadStatusRegex,AbAppIdentifier)
|
|
VALUES (nextval(''hibernate_sequence''), E''OTHER_PRODUCT'',E''Other Product'',E'''',E'''',E''Other'',E''PRODUCT'',E''Y'',E''OPTIONAL'',E''OPTIONAL'',E''AUTOMATIC'',E''NA'',E'''',E''NA'',E''OPTIONAL'',E''OPTIONAL'',E''OPTIONAL'',E''OPTIONAL'',E''AUTOMATIC'',E''AUTOMATIC'',E''OPTIONAL'',E''OPTIONAL'',E'''',E'''',E'''',E'''',E'''',E'''',E'''')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpProductType WHERE TypeName = 'OTHER_SERVICE';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpProductType SET ProductName=E''Other
|
|
Service'', ProductNameString=E'''', KeyFileProductId=E'''', ProductVendor=E''Other'',
|
|
ProductVariety=E''SERVICE'', IsAddByAdmin=E''Y'', VersionTreatment=E''OPTIONAL'',
|
|
AbHomeTreatment=E''OPTIONAL'', AbApplicationHubTreatment=E''AUTOMATIC'', RootDirectoryTreatment=E''NA'',
|
|
RootDirectoryEnvVar=E'''', ContextRootTreatment=E''NA'', ConfigFileTreatment=E''OPTIONAL'',
|
|
ConfigurationUserTreatment=E''OPTIONAL'', PortTreatment=E''OPTIONAL'', UrlTreatment=E''OPTIONAL'',
|
|
AbWorkDirTreatment=E''AUTOMATIC'', AbDataDirTreatment=E''AUTOMATIC'', LogFilePathTreatment=E''OPTIONAL'',
|
|
WorkDirTreatment=E''OPTIONAL'', StartCommandString=E'''', StopCommandString=E'''',
|
|
RestartCommandString=E'''', StatusCommandString=E'''', GoodStatusRegex=E'''',
|
|
BadStatusRegex=E'''', AbAppIdentifier=E'''' WHERE TypeName = ''OTHER_SERVICE''';\n
|
|
\ else\n execute E'INSERT INTO OpProductType (ProductTypeId, TypeName,ProductName,ProductNameString,KeyFileProductId,ProductVendor,ProductVariety,IsAddByAdmin,VersionTreatment,AbHomeTreatment,AbApplicationHubTreatment,RootDirectoryTreatment,RootDirectoryEnvVar,ContextRootTreatment,ConfigFileTreatment,ConfigurationUserTreatment,PortTreatment,UrlTreatment,AbWorkDirTreatment,AbDataDirTreatment,LogFilePathTreatment,WorkDirTreatment,StartCommandString,StopCommandString,RestartCommandString,StatusCommandString,GoodStatusRegex,BadStatusRegex,AbAppIdentifier)
|
|
VALUES (nextval(''hibernate_sequence''), E''OTHER_SERVICE'',E''Other Service'',E'''',E'''',E''Other'',E''SERVICE'',E''Y'',E''OPTIONAL'',E''OPTIONAL'',E''AUTOMATIC'',E''NA'',E'''',E''NA'',E''OPTIONAL'',E''OPTIONAL'',E''OPTIONAL'',E''OPTIONAL'',E''AUTOMATIC'',E''AUTOMATIC'',E''OPTIONAL'',E''OPTIONAL'',E'''',E'''',E'''',E'''',E'''',E'''',E'''')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpProductType WHERE TypeName = 'REPORTER';\n if
|
|
(cnt > 0) then\n execute E'UPDATE OpProductType SET ProductName=E''Reporter'',
|
|
ProductNameString=E''${officialProductName} (${hostname})'', KeyFileProductId=E'''',
|
|
ProductVendor=E''Ab Initio'', ProductVariety=E''SERVICE'', IsAddByAdmin=E''N'',
|
|
VersionTreatment=E''AUTOMATIC'', AbHomeTreatment=E''AUTOMATIC'', AbApplicationHubTreatment=E''AUTOMATIC'',
|
|
RootDirectoryTreatment=E''NA'', RootDirectoryEnvVar=E'''', ContextRootTreatment=E''NA'',
|
|
ConfigFileTreatment=E''AUTOMATIC'', ConfigurationUserTreatment=E''AUTOMATIC'',
|
|
PortTreatment=E''NA'', UrlTreatment=E''NA'', AbWorkDirTreatment=E''AUTOMATIC'',
|
|
AbDataDirTreatment=E''AUTOMATIC'', LogFilePathTreatment=E''AUTOMATIC'', WorkDirTreatment=E''KEY'',
|
|
StartCommandString=E''ab-reporter start -config ${configFile}'', StopCommandString=E''ab-reporter
|
|
stop -config ${configFile}'', RestartCommandString=E''ab-reporter restart -config
|
|
${configFile}'', StatusCommandString=E''ab-reporter status -config ${configFile}'',
|
|
GoodStatusRegex=E''is running'', BadStatusRegex=E'''', AbAppIdentifier=E'''' WHERE
|
|
TypeName = ''REPORTER''';\n else\n execute E'INSERT INTO OpProductType (ProductTypeId,
|
|
TypeName,ProductName,ProductNameString,KeyFileProductId,ProductVendor,ProductVariety,IsAddByAdmin,VersionTreatment,AbHomeTreatment,AbApplicationHubTreatment,RootDirectoryTreatment,RootDirectoryEnvVar,ContextRootTreatment,ConfigFileTreatment,ConfigurationUserTreatment,PortTreatment,UrlTreatment,AbWorkDirTreatment,AbDataDirTreatment,LogFilePathTreatment,WorkDirTreatment,StartCommandString,StopCommandString,RestartCommandString,StatusCommandString,GoodStatusRegex,BadStatusRegex,AbAppIdentifier)
|
|
VALUES (nextval(''hibernate_sequence''), E''REPORTER'',E''Reporter'',E''${officialProductName}
|
|
(${hostname})'',E'''',E''Ab Initio'',E''SERVICE'',E''N'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''NA'',E'''',E''NA'',E''AUTOMATIC'',E''AUTOMATIC'',E''NA'',E''NA'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''KEY'',E''ab-reporter
|
|
start -config ${configFile}'',E''ab-reporter stop -config ${configFile}'',E''ab-reporter
|
|
restart -config ${configFile}'',E''ab-reporter status -config ${configFile}'',E''is
|
|
running'',E'''',E'''')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop
|
|
function anonymous();\n\n\ncreate or replace function anonymous() returns void
|
|
as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpProductType
|
|
WHERE TypeName = 'RESOURCE_SERVER';\n if (cnt > 0) then\n execute E'UPDATE
|
|
OpProductType SET ProductName=E''Ab Initio Resource Server'', ProductNameString=E''${officialProductName}'',
|
|
KeyFileProductId=E'''', ProductVendor=E''Ab Initio'', ProductVariety=E''SERVICE'',
|
|
IsAddByAdmin=E''N'', VersionTreatment=E''NA'', AbHomeTreatment=E''NA'', AbApplicationHubTreatment=E''NA'',
|
|
RootDirectoryTreatment=E''NA'', RootDirectoryEnvVar=E'''', ContextRootTreatment=E''NA'',
|
|
ConfigFileTreatment=E''NA'', ConfigurationUserTreatment=E''NA'', PortTreatment=E''NA'',
|
|
UrlTreatment=E''NA'', AbWorkDirTreatment=E''KEY'', AbDataDirTreatment=E''NA'',
|
|
LogFilePathTreatment=E''AUTOMATIC'', WorkDirTreatment=E''NA'', StartCommandString=E''resource-admin
|
|
queue'', StopCommandString=E''resource-admin shutdown'', RestartCommandString=E''resource-admin
|
|
shutdown; resource-admin queue'', StatusCommandString=E'''', GoodStatusRegex=E'''',
|
|
BadStatusRegex=E'''', AbAppIdentifier=E'''' WHERE TypeName = ''RESOURCE_SERVER''';\n
|
|
\ else\n execute E'INSERT INTO OpProductType (ProductTypeId, TypeName,ProductName,ProductNameString,KeyFileProductId,ProductVendor,ProductVariety,IsAddByAdmin,VersionTreatment,AbHomeTreatment,AbApplicationHubTreatment,RootDirectoryTreatment,RootDirectoryEnvVar,ContextRootTreatment,ConfigFileTreatment,ConfigurationUserTreatment,PortTreatment,UrlTreatment,AbWorkDirTreatment,AbDataDirTreatment,LogFilePathTreatment,WorkDirTreatment,StartCommandString,StopCommandString,RestartCommandString,StatusCommandString,GoodStatusRegex,BadStatusRegex,AbAppIdentifier)
|
|
VALUES (nextval(''hibernate_sequence''), E''RESOURCE_SERVER'',E''Ab Initio Resource
|
|
Server'',E''${officialProductName}'',E'''',E''Ab Initio'',E''SERVICE'',E''N'',E''NA'',E''NA'',E''NA'',E''NA'',E'''',E''NA'',E''NA'',E''NA'',E''NA'',E''NA'',E''KEY'',E''NA'',E''AUTOMATIC'',E''NA'',E''resource-admin
|
|
queue'',E''resource-admin shutdown'',E''resource-admin shutdown; resource-admin
|
|
queue'',E'''',E'''',E'''',E'''')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpProductType WHERE TypeName = 'WEB_SERVICES';\n if (cnt > 0) then\n execute
|
|
E'UPDATE OpProductType SET ProductName=E''Ab Initio Web Services'', ProductNameString=E''${contextRoot}
|
|
- ${officialProductName}'', KeyFileProductId=E'''', ProductVendor=E''Ab Initio'',
|
|
ProductVariety=E''SERVICE'', IsAddByAdmin=E''Y'', VersionTreatment=E''AUTOMATIC'',
|
|
AbHomeTreatment=E''AUTOMATIC'', AbApplicationHubTreatment=E''NA'', RootDirectoryTreatment=E''KEY'',
|
|
RootDirectoryEnvVar=E''AB_APP_HOME'', ContextRootTreatment=E''KEY'', ConfigFileTreatment=E''AUTOMATIC'',
|
|
ConfigurationUserTreatment=E''REQUIRED'', PortTreatment=E''AUTOMATIC'', UrlTreatment=E''AUTOMATIC'',
|
|
AbWorkDirTreatment=E''AUTOMATIC'', AbDataDirTreatment=E''AUTOMATIC'', LogFilePathTreatment=E''AUTOMATIC'',
|
|
WorkDirTreatment=E''NA'', StartCommandString=E''ab-app start ${contextRoot}'',
|
|
StopCommandString=E''ab-app stop ${contextRoot}'', RestartCommandString=E'''',
|
|
StatusCommandString=E''ab-app status ${contextRoot}'', GoodStatusRegex=E''is running'',
|
|
BadStatusRegex=E''is stopped'', AbAppIdentifier=E''AIWebServices'' WHERE TypeName
|
|
= ''WEB_SERVICES''';\n else\n execute E'INSERT INTO OpProductType (ProductTypeId,
|
|
TypeName,ProductName,ProductNameString,KeyFileProductId,ProductVendor,ProductVariety,IsAddByAdmin,VersionTreatment,AbHomeTreatment,AbApplicationHubTreatment,RootDirectoryTreatment,RootDirectoryEnvVar,ContextRootTreatment,ConfigFileTreatment,ConfigurationUserTreatment,PortTreatment,UrlTreatment,AbWorkDirTreatment,AbDataDirTreatment,LogFilePathTreatment,WorkDirTreatment,StartCommandString,StopCommandString,RestartCommandString,StatusCommandString,GoodStatusRegex,BadStatusRegex,AbAppIdentifier)
|
|
VALUES (nextval(''hibernate_sequence''), E''WEB_SERVICES'',E''Ab Initio Web Services'',E''${contextRoot}
|
|
- ${officialProductName}'',E'''',E''Ab Initio'',E''SERVICE'',E''Y'',E''AUTOMATIC'',E''AUTOMATIC'',E''NA'',E''KEY'',E''AB_APP_HOME'',E''KEY'',E''AUTOMATIC'',E''REQUIRED'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''NA'',E''ab-app
|
|
start ${contextRoot}'',E''ab-app stop ${contextRoot}'',E'''',E''ab-app status
|
|
${contextRoot}'',E''is running'',E''is stopped'',E''AIWebServices'')';\n end
|
|
if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpProductType WHERE TypeName = 'WORKLOAD_MANAGER';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpProductType SET ProductName=E''Ab
|
|
Initio Workload Manager'', ProductNameString=E'''', KeyFileProductId=E'''', ProductVendor=E''Ab
|
|
Initio'', ProductVariety=E''SERVICE'', IsAddByAdmin=E''N'', VersionTreatment=E''AUTOMATIC'',
|
|
AbHomeTreatment=E''KEY'', AbApplicationHubTreatment=E''AUTOMATIC'', RootDirectoryTreatment=E''NA'',
|
|
RootDirectoryEnvVar=E'''', ContextRootTreatment=E''NA'', ConfigFileTreatment=E''OPTIONAL'',
|
|
ConfigurationUserTreatment=E''OPTIONAL'', PortTreatment=E''NA'', UrlTreatment=E''NA'',
|
|
AbWorkDirTreatment=E''AUTOMATIC'', AbDataDirTreatment=E''AUTOMATIC'', LogFilePathTreatment=E''AUTOMATIC'',
|
|
WorkDirTreatment=E''NA'', StartCommandString=E''abwlm-control start'', StopCommandString=E''abwlm-control
|
|
stop'', RestartCommandString=E''abwlm-control restart'', StatusCommandString=E''abwlm-control
|
|
status'', GoodStatusRegex=E''wl_status'', BadStatusRegex=E''connection information
|
|
could not be found'', AbAppIdentifier=E'''' WHERE TypeName = ''WORKLOAD_MANAGER''';\n
|
|
\ else\n execute E'INSERT INTO OpProductType (ProductTypeId, TypeName,ProductName,ProductNameString,KeyFileProductId,ProductVendor,ProductVariety,IsAddByAdmin,VersionTreatment,AbHomeTreatment,AbApplicationHubTreatment,RootDirectoryTreatment,RootDirectoryEnvVar,ContextRootTreatment,ConfigFileTreatment,ConfigurationUserTreatment,PortTreatment,UrlTreatment,AbWorkDirTreatment,AbDataDirTreatment,LogFilePathTreatment,WorkDirTreatment,StartCommandString,StopCommandString,RestartCommandString,StatusCommandString,GoodStatusRegex,BadStatusRegex,AbAppIdentifier)
|
|
VALUES (nextval(''hibernate_sequence''), E''WORKLOAD_MANAGER'',E''Ab Initio Workload
|
|
Manager'',E'''',E'''',E''Ab Initio'',E''SERVICE'',E''N'',E''AUTOMATIC'',E''KEY'',E''AUTOMATIC'',E''NA'',E'''',E''NA'',E''OPTIONAL'',E''OPTIONAL'',E''NA'',E''NA'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''NA'',E''abwlm-control
|
|
start'',E''abwlm-control stop'',E''abwlm-control restart'',E''abwlm-control status'',E''wl_status'',E''connection
|
|
information could not be found'',E'''')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous()
|
|
returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt
|
|
from OpProductType WHERE TypeName = 'THIS_CC';\n if (cnt > 0) then\n execute
|
|
E'UPDATE OpProductType SET ProductName=E''Control>Center'', ProductNameString=E''${officialProductName}'',
|
|
KeyFileProductId=E'''', ProductVendor=E''Ab Initio'', ProductVariety=E''PRODUCT'',
|
|
IsAddByAdmin=E''N'', VersionTreatment=E''AUTOMATIC'', AbHomeTreatment=E''NA'',
|
|
AbApplicationHubTreatment=E''NA'', RootDirectoryTreatment=E''NA'', RootDirectoryEnvVar=E'''',
|
|
ContextRootTreatment=E''NA'', ConfigFileTreatment=E''NA'', ConfigurationUserTreatment=E''NA'',
|
|
PortTreatment=E''NA'', UrlTreatment=E''NA'', AbWorkDirTreatment=E''NA'', AbDataDirTreatment=E''NA'',
|
|
LogFilePathTreatment=E''NA'', WorkDirTreatment=E''NA'', StartCommandString=E'''',
|
|
StopCommandString=E'''', RestartCommandString=E'''', StatusCommandString=E'''',
|
|
GoodStatusRegex=E'''', BadStatusRegex=E'''', AbAppIdentifier=E'''' WHERE TypeName
|
|
= ''THIS_CC''';\n else\n execute E'INSERT INTO OpProductType (ProductTypeId,
|
|
TypeName,ProductName,ProductNameString,KeyFileProductId,ProductVendor,ProductVariety,IsAddByAdmin,VersionTreatment,AbHomeTreatment,AbApplicationHubTreatment,RootDirectoryTreatment,RootDirectoryEnvVar,ContextRootTreatment,ConfigFileTreatment,ConfigurationUserTreatment,PortTreatment,UrlTreatment,AbWorkDirTreatment,AbDataDirTreatment,LogFilePathTreatment,WorkDirTreatment,StartCommandString,StopCommandString,RestartCommandString,StatusCommandString,GoodStatusRegex,BadStatusRegex,AbAppIdentifier)
|
|
VALUES (nextval(''hibernate_sequence''), E''THIS_CC'',E''Control>Center'',E''${officialProductName}'',E'''',E''Ab
|
|
Initio'',E''PRODUCT'',E''N'',E''AUTOMATIC'',E''NA'',E''NA'',E''NA'',E'''',E''NA'',E''NA'',E''NA'',E''NA'',E''NA'',E''NA'',E''NA'',E''NA'',E''NA'',E'''',E'''',E'''',E'''',E'''',E'''',E'''')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpProductType WHERE TypeName = 'TRW';\n if (cnt
|
|
> 0) then\n execute E'UPDATE OpProductType SET ProductName=E''EME Technical
|
|
Repository Web Interface'', ProductNameString=E''${contextRoot} - ${officialProductName}'',
|
|
KeyFileProductId=E''p0203'', ProductVendor=E''Ab Initio'', ProductVariety=E''PRODUCT'',
|
|
IsAddByAdmin=E''Y'', VersionTreatment=E''AUTOMATIC'', AbHomeTreatment=E''AUTOMATIC'',
|
|
AbApplicationHubTreatment=E''AUTOMATIC'', RootDirectoryTreatment=E''KEY'', RootDirectoryEnvVar=E''AB_APP_HOME'',
|
|
ContextRootTreatment=E''KEY'', ConfigFileTreatment=E''AUTOMATIC'', ConfigurationUserTreatment=E''REQUIRED'',
|
|
PortTreatment=E''AUTOMATIC'', UrlTreatment=E''AUTOMATIC'', AbWorkDirTreatment=E''AUTOMATIC'',
|
|
AbDataDirTreatment=E''AUTOMATIC'', LogFilePathTreatment=E''AUTOMATIC'', WorkDirTreatment=E''NA'',
|
|
StartCommandString=E''ab-app start ${contextRoot}'', StopCommandString=E''ab-app
|
|
stop ${contextRoot}'', RestartCommandString=E'''', StatusCommandString=E''ab-app
|
|
status ${contextRoot}'', GoodStatusRegex=E''is running'', BadStatusRegex=E''is
|
|
stopped'', AbAppIdentifier=E''trw'' WHERE TypeName = ''TRW''';\n else\n execute
|
|
E'INSERT INTO OpProductType (ProductTypeId, TypeName,ProductName,ProductNameString,KeyFileProductId,ProductVendor,ProductVariety,IsAddByAdmin,VersionTreatment,AbHomeTreatment,AbApplicationHubTreatment,RootDirectoryTreatment,RootDirectoryEnvVar,ContextRootTreatment,ConfigFileTreatment,ConfigurationUserTreatment,PortTreatment,UrlTreatment,AbWorkDirTreatment,AbDataDirTreatment,LogFilePathTreatment,WorkDirTreatment,StartCommandString,StopCommandString,RestartCommandString,StatusCommandString,GoodStatusRegex,BadStatusRegex,AbAppIdentifier)
|
|
VALUES (nextval(''hibernate_sequence''), E''TRW'',E''EME Technical Repository
|
|
Web Interface'',E''${contextRoot} - ${officialProductName}'',E''p0203'',E''Ab
|
|
Initio'',E''PRODUCT'',E''Y'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''KEY'',E''AB_APP_HOME'',E''KEY'',E''AUTOMATIC'',E''REQUIRED'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''AUTOMATIC'',E''NA'',E''ab-app
|
|
start ${contextRoot}'',E''ab-app stop ${contextRoot}'',E'''',E''ab-app status
|
|
${contextRoot}'',E''is running'',E''is stopped'',E''trw'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\n-- ---------------------------------------------------\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'AbDataDirs';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.80'',
|
|
EndVersion=E''1.130'', Description=E''Monitored AB_DATA_DIR paths'', ItemType=E''STRING'',
|
|
Value=E''/~ab_data_dir'', ReporterParameterGroupType=E''OBSOLETE'', ReporterConfigValueType=E''ARRAY''
|
|
WHERE Name = ''AbDataDirs''';\n else\n execute E'INSERT INTO OpReporterDefaultConfigItem
|
|
(ReporterDefaultConfigItemId, Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''AbDataDirs'',E''1.80'',E''1.130'',E''Monitored
|
|
AB_DATA_DIR paths'',E''STRING'',E''/~ab_data_dir'',E''OBSOLETE'',E''ARRAY'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'AbOpsMonitorDirectorys';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.130'',
|
|
EndVersion=NULL, Description=E''Monitored AB_OPS_MONITOR_DIRECTORY paths'', ItemType=E''STRING'',
|
|
Value=E''/~$AB_OPS_MONITOR_DIRECTORY'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''ARRAY'' WHERE Name = ''AbOpsMonitorDirectorys''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''AbOpsMonitorDirectorys'',E''1.130'',NULL,E''Monitored
|
|
AB_OPS_MONITOR_DIRECTORY paths'',E''STRING'',E''/~$AB_OPS_MONITOR_DIRECTORY'',E''NORMAL'',E''ARRAY'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'ApplicationsPollInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=E''1.40'', Description=E''Polling interval (seconds) for checking for
|
|
OpApplication updates (Applicable only to Operational Console 3.0.x and Operational
|
|
Console 3.1.1.x)'', ItemType=E''DOUBLE'', Value=E''3600'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''ApplicationsPollInterval''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''ApplicationsPollInterval'',E''1.20'',E''1.40'',E''Polling
|
|
interval (seconds) for checking for OpApplication updates (Applicable only to
|
|
Operational Console 3.0.x and Operational Console 3.1.1.x)'',E''DOUBLE'',E''3600'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'CCInstallableExtractCommand';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.90'',
|
|
EndVersion=NULL, Description=E''Command to be used to fetch and unpack the \"Control>Center
|
|
installable files\" tar file'', ItemType=E''STRING'', Value=E''cc-installable-extract'',
|
|
ReporterParameterGroupType=E''NORMAL'', ReporterConfigValueType=E''CONFIG'' WHERE
|
|
Name = ''CCInstallableExtractCommand''';\n else\n execute E'INSERT INTO OpReporterDefaultConfigItem
|
|
(ReporterDefaultConfigItemId, Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''CCInstallableExtractCommand'',E''1.90'',NULL,E''Command
|
|
to be used to fetch and unpack the \"Control>Center installable files\" tar file'',E''STRING'',E''cc-installable-extract'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'CacheVersionsPollInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.40'',
|
|
EndVersion=NULL, Description=E''Polling interval (seconds) for checking Control>Center
|
|
data cache updates (Operational Console 3.1.2 or later)'', ItemType=E''DOUBLE'',
|
|
Value=E''5'', ReporterParameterGroupType=E''NORMAL'', ReporterConfigValueType=E''CONFIG''
|
|
WHERE Name = ''CacheVersionsPollInterval''';\n else\n execute E'INSERT INTO
|
|
OpReporterDefaultConfigItem (ReporterDefaultConfigItemId, Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''CacheVersionsPollInterval'',E''1.40'',NULL,E''Polling
|
|
interval (seconds) for checking Control>Center data cache updates (Operational
|
|
Console 3.1.2 or later)'',E''DOUBLE'',E''5'',E''NORMAL'',E''CONFIG'')';\n end
|
|
if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'CalendarsPollInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=E''1.40'', Description=E''Polling interval (seconds) for checking for
|
|
calendar updates (Applicable only to Operational Console 3.0.x and Operational
|
|
Console 3.1.1.x)'', ItemType=E''DOUBLE'', Value=E''120'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''CalendarsPollInterval''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''CalendarsPollInterval'',E''1.20'',E''1.40'',E''Polling
|
|
interval (seconds) for checking for calendar updates (Applicable only to Operational
|
|
Console 3.0.x and Operational Console 3.1.1.x)'',E''DOUBLE'',E''120'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'ConfigValuesPollInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=E''1.40'', Description=E''Polling interval (seconds) for checking for
|
|
OpConfigValue updates (Applicable only to Operational Console 3.0.x and Operational
|
|
Console 3.1.1.x)'', ItemType=E''DOUBLE'', Value=E''3600'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''ConfigValuesPollInterval''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''ConfigValuesPollInterval'',E''1.20'',E''1.40'',E''Polling
|
|
interval (seconds) for checking for OpConfigValue updates (Applicable only to
|
|
Operational Console 3.0.x and Operational Console 3.1.1.x)'',E''DOUBLE'',E''3600'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'CpuMonitorMaxBufferedSnapshots';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.170'',
|
|
EndVersion=NULL, Description=E''The maximum number of run snapshots the cpu-monitor
|
|
will retain in memory'', ItemType=E''LONG'', Value=E''1000'', ReporterParameterGroupType=E''CPU_MONITOR'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''CpuMonitorMaxBufferedSnapshots''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''CpuMonitorMaxBufferedSnapshots'',E''1.170'',NULL,E''The
|
|
maximum number of run snapshots the cpu-monitor will retain in memory'',E''LONG'',E''1000'',E''CPU_MONITOR'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'CpuMonitorMaxOutstandingJobs';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.170'',
|
|
EndVersion=NULL, Description=E''Maximum number of jobs that the cpu-monitor processes
|
|
simultaneously'', ItemType=E''LONG'', Value=E''200'', ReporterParameterGroupType=E''CPU_MONITOR'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''CpuMonitorMaxOutstandingJobs''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''CpuMonitorMaxOutstandingJobs'',E''1.170'',NULL,E''Maximum
|
|
number of jobs that the cpu-monitor processes simultaneously'',E''LONG'',E''200'',E''CPU_MONITOR'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'CpuMonitorSnapshotShelfLife';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.170'',
|
|
EndVersion=NULL, Description=E''The maximum number of seconds the cpu-monitor
|
|
will retain a run snapshot in memory before flushing it to disk'', ItemType=E''DOUBLE'',
|
|
Value=E''1800.000'', ReporterParameterGroupType=E''CPU_MONITOR'', ReporterConfigValueType=E''CONFIG''
|
|
WHERE Name = ''CpuMonitorSnapshotShelfLife''';\n else\n execute E'INSERT INTO
|
|
OpReporterDefaultConfigItem (ReporterDefaultConfigItemId, Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''CpuMonitorSnapshotShelfLife'',E''1.170'',NULL,E''The
|
|
maximum number of seconds the cpu-monitor will retain a run snapshot in memory
|
|
before flushing it to disk'',E''DOUBLE'',E''1800.000'',E''CPU_MONITOR'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'CpuMonitoringInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.170'',
|
|
EndVersion=NULL, Description=E''The interval in seconds upon which the cpu-monitor
|
|
checks deadlines'', ItemType=E''DOUBLE'', Value=E''3600.000'', ReporterParameterGroupType=E''CPU_MONITOR'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''CpuMonitoringInterval''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''CpuMonitoringInterval'',E''1.170'',NULL,E''The
|
|
interval in seconds upon which the cpu-monitor checks deadlines'',E''DOUBLE'',E''3600.000'',E''CPU_MONITOR'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'DataLoggingMaxSize';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.70'',
|
|
EndVersion=NULL, Description=E''Maximum size of data logged in certain reporter.log
|
|
messages. See ReadLoggingPrefixes.'', ItemType=E''LONG'', Value=E''256'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''DataLoggingMaxSize''';\n else\n
|
|
\ execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''DataLoggingMaxSize'',E''1.70'',NULL,E''Maximum
|
|
size of data logged in certain reporter.log messages. See ReadLoggingPrefixes.'',E''LONG'',E''256'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'EnvironmentScrub';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=NULL, Description=E''Unsets these variables in the constraint-server
|
|
and ops-monitor environment'', ItemType=E''STRING'', Value=E''PROJECT_DIR'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''EnvironmentScrub''';\n else\n
|
|
\ execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''EnvironmentScrub'',E''1.20'',NULL,E''Unsets
|
|
these variables in the constraint-server and ops-monitor environment'',E''STRING'',E''PROJECT_DIR'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'ExecutablesPollInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=E''1.40'', Description=E''Polling interval (seconds) for checking for
|
|
executable metric definition updates (Applicable only to Operational Console 3.0.x
|
|
and Operational Console 3.1.1.x)'', ItemType=E''DOUBLE'', Value=E''30'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''ExecutablesPollInterval''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''ExecutablesPollInterval'',E''1.20'',E''1.40'',E''Polling
|
|
interval (seconds) for checking for executable metric definition updates (Applicable
|
|
only to Operational Console 3.0.x and Operational Console 3.1.1.x)'',E''DOUBLE'',E''30'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'FileAbandonGraceTime';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.70'',
|
|
EndVersion=NULL, Description=E''Seconds after reporter seeing file writer unlock
|
|
before file is considered abandoned'', ItemType=E''DOUBLE'', Value=E''60'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''FileAbandonGraceTime''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''FileAbandonGraceTime'',E''1.70'',NULL,E''Seconds
|
|
after reporter seeing file writer unlock before file is considered abandoned'',E''DOUBLE'',E''60'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'FileLandingRetryInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=NULL, Description=E''Interval (seconds) before retrying failing file
|
|
write'', ItemType=E''DOUBLE'', Value=E''12'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''FileLandingRetryInterval''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''FileLandingRetryInterval'',E''1.20'',NULL,E''Interval
|
|
(seconds) before retrying failing file write'',E''DOUBLE'',E''12'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'FileSystemMetricUnit';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.80'',
|
|
EndVersion=NULL, Description=E''Units in which file-system storage sizes are reported.
|
|
Choices: MBytes or GBytes.'', ItemType=E''STRING'', Value=E''MBytes'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''FileSystemMetricUnit''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''FileSystemMetricUnit'',E''1.80'',NULL,E''Units
|
|
in which file-system storage sizes are reported. Choices: MBytes or GBytes.'',E''STRING'',E''MBytes'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'FileSystemsPollInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.80'',
|
|
EndVersion=E''1.40'', Description=E''Polling interval (seconds) for checking for
|
|
file-system updates (for collecting metric values)'', ItemType=E''DOUBLE'', Value=E''60'',
|
|
ReporterParameterGroupType=E''OBSOLETE'', ReporterConfigValueType=E''CONFIG''
|
|
WHERE Name = ''FileSystemsPollInterval''';\n else\n execute E'INSERT INTO
|
|
OpReporterDefaultConfigItem (ReporterDefaultConfigItemId, Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''FileSystemsPollInterval'',E''1.80'',E''1.40'',E''Polling
|
|
interval (seconds) for checking for file-system updates (for collecting metric
|
|
values)'',E''DOUBLE'',E''60'',E''OBSOLETE'',E''CONFIG'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'FullGraphMetrics';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.180'',
|
|
EndVersion=NULL, Description=E''Collect all graph metrics or just metrics for
|
|
CPU usage.'', ItemType=E''BOOLEAN'', Value=E''Y'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''FullGraphMetrics''';\n else\n
|
|
\ execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''FullGraphMetrics'',E''1.180'',NULL,E''Collect
|
|
all graph metrics or just metrics for CPU usage.'',E''BOOLEAN'',E''Y'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'FunctionalUser';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.40'',
|
|
EndVersion=NULL, Description=E''Operating system account for reporter, graph monitors,
|
|
and schedulers.'', ItemType=E''STRING'', Value=E''<emptyString/>'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''FunctionalUser''';\n else\n
|
|
\ execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''FunctionalUser'',E''1.40'',NULL,E''Operating
|
|
system account for reporter, graph monitors, and schedulers.'',E''STRING'',E''<emptyString/>'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'GraphMonitorProcessLimit';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=NULL, Description=E''Maximum number of graph tracking monitor processes
|
|
allowed to run at once'', ItemType=E''LONG'', Value=E''100'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''GraphMonitorProcessLimit''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''GraphMonitorProcessLimit'',E''1.20'',NULL,E''Maximum
|
|
number of graph tracking monitor processes allowed to run at once'',E''LONG'',E''100'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'HostMetricValueElementsLimit';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.80'',
|
|
EndVersion=NULL, Description=E''Maximum number of host metric values in single
|
|
SOAP request'', ItemType=E''LONG'', Value=E''200'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''HostMetricValueElementsLimit''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''HostMetricValueElementsLimit'',E''1.80'',NULL,E''Maximum
|
|
number of host metric values in single SOAP request'',E''LONG'',E''200'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'HostMetricValuesRefreshInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.80'',
|
|
EndVersion=NULL, Description=E''Interval (seconds) between checking for new host
|
|
metric values data'', ItemType=E''DOUBLE'', Value=E''5'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''HostMetricValuesRefreshInterval''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''HostMetricValuesRefreshInterval'',E''1.80'',NULL,E''Interval
|
|
(seconds) between checking for new host metric values data'',E''DOUBLE'',E''5'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'HostMetricValuesSubmitInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.80'',
|
|
EndVersion=NULL, Description=E''Seconds between host metric value SOAP request
|
|
submissions'', ItemType=E''DOUBLE'', Value=E''0.5'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''HostMetricValuesSubmitInterval''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''HostMetricValuesSubmitInterval'',E''1.80'',NULL,E''Seconds
|
|
between host metric value SOAP request submissions'',E''DOUBLE'',E''0.5'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'HostMonitorRunInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.80'',
|
|
EndVersion=NULL, Description=E''Interval (seconds) between runs of ops-host-monitor
|
|
to collect host metric values'', ItemType=E''DOUBLE'', Value=E''60'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''HostMonitorRunInterval''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''HostMonitorRunInterval'',E''1.80'',NULL,E''Interval
|
|
(seconds) between runs of ops-host-monitor to collect host metric values'',E''DOUBLE'',E''60'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'IsEphemeralHost';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.180'',
|
|
EndVersion=NULL, Description=E''This reporter is configured for a short-lived
|
|
host, typically a container.'', ItemType=E''BOOLEAN'', Value=E''N'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''IsEphemeralHost''';\n else\n
|
|
\ execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''IsEphemeralHost'',E''1.180'',NULL,E''This
|
|
reporter is configured for a short-lived host, typically a container.'',E''BOOLEAN'',E''N'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'JobCompletionsPollInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=E''1.40'', Description=E''Polling interval (seconds) for checking for
|
|
inter-host job completion updates (Applicable only to Operational Console 3.0.x
|
|
and Operational Console 3.1.1.x)'', ItemType=E''DOUBLE'', Value=E''60'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''JobCompletionsPollInterval''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''JobCompletionsPollInterval'',E''1.20'',E''1.40'',E''Polling
|
|
interval (seconds) for checking for inter-host job completion updates (Applicable
|
|
only to Operational Console 3.0.x and Operational Console 3.1.1.x)'',E''DOUBLE'',E''60'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'JobDirectoryCreateAhead';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.130'',
|
|
EndVersion=NULL, Description=E''Number of days ahead to create yyyy-mm-dd directories
|
|
under ops/log, ops/error, ops/tracking'', ItemType=E''LONG'', Value=E''7'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''JobDirectoryCreateAhead''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''JobDirectoryCreateAhead'',E''1.130'',NULL,E''Number
|
|
of days ahead to create yyyy-mm-dd directories under ops/log, ops/error, ops/tracking'',E''LONG'',E''7'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'KeyInfoElementsLimit';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.120'',
|
|
EndVersion=NULL, Description=E''Maximum number of keys in a single SOAP request'',
|
|
ItemType=E''LONG'', Value=E''5'', ReporterParameterGroupType=E''NORMAL'', ReporterConfigValueType=E''CONFIG''
|
|
WHERE Name = ''KeyInfoElementsLimit''';\n else\n execute E'INSERT INTO OpReporterDefaultConfigItem
|
|
(ReporterDefaultConfigItemId, Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''KeyInfoElementsLimit'',E''1.120'',NULL,E''Maximum
|
|
number of keys in a single SOAP request'',E''LONG'',E''5'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'KeyInfoRefreshInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.120'',
|
|
EndVersion=NULL, Description=E''Interval (seconds) between checking key cache
|
|
directory for new key data'', ItemType=E''DOUBLE'', Value=E''60'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''KeyInfoRefreshInterval''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''KeyInfoRefreshInterval'',E''1.120'',NULL,E''Interval
|
|
(seconds) between checking key cache directory for new key data'',E''DOUBLE'',E''60'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'KeyServerUrls';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.170'',
|
|
EndVersion=NULL, Description=E''Key servers for logging CPU time-oriented job
|
|
monitoring'', ItemType=E''STRING'', Value=E''<emptyString/>'', ReporterParameterGroupType=E''CPU_MONITOR'',
|
|
ReporterConfigValueType=E''ARRAY'' WHERE Name = ''KeyServerUrls''';\n else\n
|
|
\ execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''KeyServerUrls'',E''1.170'',NULL,E''Key
|
|
servers for logging CPU time-oriented job monitoring'',E''STRING'',E''<emptyString/>'',E''CPU_MONITOR'',E''ARRAY'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'LogFile';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=NULL, Description=E''Path of log file'', ItemType=E''STRING'', Value=E''/~$AB_OPS_MONITOR_DIRECTORY/log/reporter.log'',
|
|
ReporterParameterGroupType=E''NORMAL'', ReporterConfigValueType=E''CONFIG'' WHERE
|
|
Name = ''LogFile''';\n else\n execute E'INSERT INTO OpReporterDefaultConfigItem
|
|
(ReporterDefaultConfigItemId, Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''LogFile'',E''1.20'',NULL,E''Path
|
|
of log file'',E''STRING'',E''/~$AB_OPS_MONITOR_DIRECTORY/log/reporter.log'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'LogFileSizeLimit';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=NULL, Description=E''Threshold (MB) for log file rollover'', ItemType=E''LONG'',
|
|
Value=E''16'', ReporterParameterGroupType=E''NORMAL'', ReporterConfigValueType=E''CONFIG''
|
|
WHERE Name = ''LogFileSizeLimit''';\n else\n execute E'INSERT INTO OpReporterDefaultConfigItem
|
|
(ReporterDefaultConfigItemId, Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''LogFileSizeLimit'',E''1.20'',NULL,E''Threshold
|
|
(MB) for log file rollover'',E''LONG'',E''16'',E''NORMAL'',E''CONFIG'')';\n end
|
|
if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'MaxWebServiceRetryInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.150'',
|
|
EndVersion=NULL, Description=E''Limit on interval (seconds) between web service
|
|
retry attempts'', ItemType=E''DOUBLE'', Value=E''300'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''MaxWebServiceRetryInterval''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''MaxWebServiceRetryInterval'',E''1.150'',NULL,E''Limit
|
|
on interval (seconds) between web service retry attempts'',E''DOUBLE'',E''300'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'MetadataBatchSubmitInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=NULL, Description=E''Interval (seconds) between posting metrics objects
|
|
information to the Metadata Hub (enabled by setting configvar AB_METADATA_HUB_URL)'',
|
|
ItemType=E''DOUBLE'', Value=E''5'', ReporterParameterGroupType=E''NORMAL'', ReporterConfigValueType=E''CONFIG''
|
|
WHERE Name = ''MetadataBatchSubmitInterval''';\n else\n execute E'INSERT INTO
|
|
OpReporterDefaultConfigItem (ReporterDefaultConfigItemId, Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''MetadataBatchSubmitInterval'',E''1.20'',NULL,E''Interval
|
|
(seconds) between posting metrics objects information to the Metadata Hub (enabled
|
|
by setting configvar AB_METADATA_HUB_URL)'',E''DOUBLE'',E''5'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'MetadataElementsLimit';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=NULL, Description=E''Maximum number of metrics objects data items for
|
|
Metadata Hub in single SOAP request'', ItemType=E''LONG'', Value=E''200'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''MetadataElementsLimit''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''MetadataElementsLimit'',E''1.20'',NULL,E''Maximum
|
|
number of metrics objects data items for Metadata Hub in single SOAP request'',E''LONG'',E''200'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'MetadataFileRefreshInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=NULL, Description=E''Interval (seconds) between checking for new metrics
|
|
objects data for Metadata Hub'', ItemType=E''DOUBLE'', Value=E''1800'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''MetadataFileRefreshInterval''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''MetadataFileRefreshInterval'',E''1.20'',NULL,E''Interval
|
|
(seconds) between checking for new metrics objects data for Metadata Hub'',E''DOUBLE'',E''1800'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'MetadataHubExecutableFilter';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.40'',
|
|
EndVersion=NULL, Description=E''Regular expression (pcre) exclusion filter run
|
|
against executable path in Metadata Hub data'', ItemType=E''STRING'', Value=E''<emptyString/>'',
|
|
ReporterParameterGroupType=E''NORMAL'', ReporterConfigValueType=E''CONFIG'' WHERE
|
|
Name = ''MetadataHubExecutableFilter''';\n else\n execute E'INSERT INTO OpReporterDefaultConfigItem
|
|
(ReporterDefaultConfigItemId, Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''MetadataHubExecutableFilter'',E''1.40'',NULL,E''Regular
|
|
expression (pcre) exclusion filter run against executable path in Metadata Hub
|
|
data'',E''STRING'',E''<emptyString/>'',E''NORMAL'',E''CONFIG'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'MetadataHubFilesLimit';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=NULL, Description=E''Limit on nubmer of metric object files (mo-*.xml)
|
|
being actively monitored for import into the Metadata Hub.'', ItemType=E''LONG'',
|
|
Value=E''200'', ReporterParameterGroupType=E''NORMAL'', ReporterConfigValueType=E''CONFIG''
|
|
WHERE Name = ''MetadataHubFilesLimit''';\n else\n execute E'INSERT INTO OpReporterDefaultConfigItem
|
|
(ReporterDefaultConfigItemId, Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''MetadataHubFilesLimit'',E''1.20'',NULL,E''Limit
|
|
on nubmer of metric object files (mo-*.xml) being actively monitored for import
|
|
into the Metadata Hub.'',E''LONG'',E''200'',E''NORMAL'',E''CONFIG'')';\n end
|
|
if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'MetadataHubImport';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.80'',
|
|
EndVersion=NULL, Description=E''Enable import of executable metrics and data set
|
|
metrics in to the Metadata Hub'', ItemType=E''BOOLEAN'', Value=E''Y'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''MetadataHubImport''';\n else\n
|
|
\ execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''MetadataHubImport'',E''1.80'',NULL,E''Enable
|
|
import of executable metrics and data set metrics in to the Metadata Hub'',E''BOOLEAN'',E''Y'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'MetadataHubMainBranch';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=NULL, Description=E''Main branch name used for import of operational
|
|
data to the Metadata Hub'', ItemType=E''STRING'', Value=E''mhub_main'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''MetadataHubMainBranch''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''MetadataHubMainBranch'',E''1.20'',NULL,E''Main
|
|
branch name used for import of operational data to the Metadata Hub'',E''STRING'',E''mhub_main'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'MetadataHubProfile';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=NULL, Description=E''Profile import of operational data to the Metadata
|
|
Hub'', ItemType=E''BOOLEAN'', Value=E''N'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''MetadataHubProfile''';\n else\n
|
|
\ execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''MetadataHubProfile'',E''1.20'',NULL,E''Profile
|
|
import of operational data to the Metadata Hub'',E''BOOLEAN'',E''N'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'MetadataHubSubmitWithoutSourceLoc';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.40'',
|
|
EndVersion=NULL, Description=E''Accept Metadata Hub object data lacking source
|
|
location (EME TR AB_AIR_ROOT)'', ItemType=E''BOOLEAN'', Value=E''N'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''MetadataHubSubmitWithoutSourceLoc''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''MetadataHubSubmitWithoutSourceLoc'',E''1.40'',NULL,E''Accept
|
|
Metadata Hub object data lacking source location (EME TR AB_AIR_ROOT)'',E''BOOLEAN'',E''N'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'MetadataHubVersionPollInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=NULL, Description=E''Polling interval (seconds) for checking Metadata
|
|
Hub web service version'', ItemType=E''DOUBLE'', Value=E''3600'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''MetadataHubVersionPollInterval''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''MetadataHubVersionPollInterval'',E''1.20'',NULL,E''Polling
|
|
interval (seconds) for checking Metadata Hub web service version'',E''DOUBLE'',E''3600'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'MetadataHubWssPassword';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=NULL, Description=E''Encrypted (m_password) web service security password
|
|
used for Metadata Hub import'', ItemType=E''PASSWORD'', Value=E''vDTBC0PWtzeW5VJIpqwx9p'',
|
|
ReporterParameterGroupType=E''CREDENTIALS'', ReporterConfigValueType=E''CONFIG''
|
|
WHERE Name = ''MetadataHubWssPassword''';\n else\n execute E'INSERT INTO OpReporterDefaultConfigItem
|
|
(ReporterDefaultConfigItemId, Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''MetadataHubWssPassword'',E''1.20'',NULL,E''Encrypted
|
|
(m_password) web service security password used for Metadata Hub import'',E''PASSWORD'',E''vDTBC0PWtzeW5VJIpqwx9p'',E''CREDENTIALS'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'MetadataHubWssUsername';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=NULL, Description=E''Web service security username used for Metadata
|
|
Hub import'', ItemType=E''STRING'', Value=E''admin'', ReporterParameterGroupType=E''CREDENTIALS'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''MetadataHubWssUsername''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''MetadataHubWssUsername'',E''1.20'',NULL,E''Web
|
|
service security username used for Metadata Hub import'',E''STRING'',E''admin'',E''CREDENTIALS'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'MonitorCpu';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.170'',
|
|
EndVersion=NULL, Description=E''Enable CPU time-oriented monitoring of graph jobs
|
|
to be sent to KeyServerUrls'', ItemType=E''BOOLEAN'', Value=E''N'', ReporterParameterGroupType=E''CPU_MONITOR'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''MonitorCpu''';\n else\n execute
|
|
E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId, Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''MonitorCpu'',E''1.170'',NULL,E''Enable
|
|
CPU time-oriented monitoring of graph jobs to be sent to KeyServerUrls'',E''BOOLEAN'',E''N'',E''CPU_MONITOR'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'MonitorHosts';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.80'',
|
|
EndVersion=NULL, Description=E''Enable gathering of host and file metrics on this
|
|
host for use in the Control>Center'', ItemType=E''BOOLEAN'', Value=E''Y'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''MonitorHosts''';\n else\n
|
|
\ execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''MonitorHosts'',E''1.80'',NULL,E''Enable
|
|
gathering of host and file metrics on this host for use in the Control>Center'',E''BOOLEAN'',E''Y'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'MonitorJobs';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.80'',
|
|
EndVersion=NULL, Description=E''Enable monitoring of graph and plan jobs by the
|
|
Control>Center'', ItemType=E''BOOLEAN'', Value=E''Y'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''MonitorJobs''';\n else\n execute
|
|
E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId, Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''MonitorJobs'',E''1.80'',NULL,E''Enable
|
|
monitoring of graph and plan jobs by the Control>Center'',E''BOOLEAN'',E''Y'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'MonitorKeyInfo';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.120'',
|
|
EndVersion=NULL, Description=E''Enable gathering of key information from running
|
|
graphs for use in the Control>Center'', ItemType=E''BOOLEAN'', Value=E''Y'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''MonitorKeyInfo''';\n else\n
|
|
\ execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''MonitorKeyInfo'',E''1.120'',NULL,E''Enable
|
|
gathering of key information from running graphs for use in the Control>Center'',E''BOOLEAN'',E''Y'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'MonitorProducts';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.80'',
|
|
EndVersion=NULL, Description=E''Enable discovery and status updates of Ab Initio
|
|
products on this host for use in the Control>Center'', ItemType=E''BOOLEAN'',
|
|
Value=E''Y'', ReporterParameterGroupType=E''NORMAL'', ReporterConfigValueType=E''CONFIG''
|
|
WHERE Name = ''MonitorProducts''';\n else\n execute E'INSERT INTO OpReporterDefaultConfigItem
|
|
(ReporterDefaultConfigItemId, Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''MonitorProducts'',E''1.80'',NULL,E''Enable
|
|
discovery and status updates of Ab Initio products on this host for use in the
|
|
Control>Center'',E''BOOLEAN'',E''Y'',E''NORMAL'',E''CONFIG'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'OSAuthenticationsConnectionMethod';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.70'',
|
|
EndVersion=NULL, Description=E''Connection method (see AB_CONNECTION) used for
|
|
OSAuthentication-launched processes'', ItemType=E''STRING'', Value=E''rexec'',
|
|
ReporterParameterGroupType=E''NORMAL'', ReporterConfigValueType=E''CONFIG'' WHERE
|
|
Name = ''OSAuthenticationsConnectionMethod''';\n else\n execute E'INSERT INTO
|
|
OpReporterDefaultConfigItem (ReporterDefaultConfigItemId, Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''OSAuthenticationsConnectionMethod'',E''1.70'',NULL,E''Connection
|
|
method (see AB_CONNECTION) used for OSAuthentication-launched processes'',E''STRING'',E''rexec'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'OSAuthenticationsPollInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.70'',
|
|
EndVersion=E''1.40'', Description=E''Polling interval (seconds) for checking for
|
|
OSAuthentication updates'', ItemType=E''DOUBLE'', Value=E''60'', ReporterParameterGroupType=E''OBSOLETE'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''OSAuthenticationsPollInterval''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''OSAuthenticationsPollInterval'',E''1.70'',E''1.40'',E''Polling
|
|
interval (seconds) for checking for OSAuthentication updates'',E''DOUBLE'',E''60'',E''OBSOLETE'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'OpConsoleFilesLimit';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=NULL, Description=E''Limit on number of job event files (cst-, pi-,
|
|
and mp-*.xml) being actively monitored for import into the Control>Center.'',
|
|
ItemType=E''LONG'', Value=E''200'', ReporterParameterGroupType=E''NORMAL'', ReporterConfigValueType=E''CONFIG''
|
|
WHERE Name = ''OpConsoleFilesLimit''';\n else\n execute E'INSERT INTO OpReporterDefaultConfigItem
|
|
(ReporterDefaultConfigItemId, Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''OpConsoleFilesLimit'',E''1.20'',NULL,E''Limit
|
|
on number of job event files (cst-, pi-, and mp-*.xml) being actively monitored
|
|
for import into the Control>Center.'',E''LONG'',E''200'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'OpConsoleOperationalArtifactFilesLimit';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.70'',
|
|
EndVersion=E''1.80'', Description=E''Maximum number of operational event file
|
|
handles to hold open.'', ItemType=E''LONG'', Value=E''200'', ReporterParameterGroupType=E''OBSOLETE'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''OpConsoleOperationalArtifactFilesLimit''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''OpConsoleOperationalArtifactFilesLimit'',E''1.70'',E''1.80'',E''Maximum
|
|
number of operational event file handles to hold open.'',E''LONG'',E''200'',E''OBSOLETE'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'OpConsoleProductFilesLimit';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.80'',
|
|
EndVersion=NULL, Description=E''Limit on number of product event files (pm-*.xml)
|
|
being actively monitored for import into the Control>Center.'', ItemType=E''LONG'',
|
|
Value=E''10'', ReporterParameterGroupType=E''NORMAL'', ReporterConfigValueType=E''CONFIG''
|
|
WHERE Name = ''OpConsoleProductFilesLimit''';\n else\n execute E'INSERT INTO
|
|
OpReporterDefaultConfigItem (ReporterDefaultConfigItemId, Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''OpConsoleProductFilesLimit'',E''1.80'',NULL,E''Limit
|
|
on number of product event files (pm-*.xml) being actively monitored for import
|
|
into the Control>Center.'',E''LONG'',E''10'',E''NORMAL'',E''CONFIG'')';\n end
|
|
if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'OpConsoleQueueFilesLimit';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.50'',
|
|
EndVersion=NULL, Description=E''Maximum number of operational queue file handles
|
|
held open'', ItemType=E''LONG'', Value=E''200'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''OpConsoleQueueFilesLimit''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''OpConsoleQueueFilesLimit'',E''1.50'',NULL,E''Maximum
|
|
number of operational queue file handles held open'',E''LONG'',E''200'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'OpConsoleRsFilesLimit';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=NULL, Description=E''Limit on number of resource server event files
|
|
(rs-*.xml) being actively monitored for import into the Control>Center.'', ItemType=E''LONG'',
|
|
Value=E''10'', ReporterParameterGroupType=E''NORMAL'', ReporterConfigValueType=E''CONFIG''
|
|
WHERE Name = ''OpConsoleRsFilesLimit''';\n else\n execute E'INSERT INTO OpReporterDefaultConfigItem
|
|
(ReporterDefaultConfigItemId, Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''OpConsoleRsFilesLimit'',E''1.20'',NULL,E''Limit
|
|
on number of resource server event files (rs-*.xml) being actively monitored for
|
|
import into the Control>Center.'',E''LONG'',E''10'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'OpConsoleWssPassword';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=NULL, Description=E''Encrypted (m_password) web service security password
|
|
used for Control>Center web service requests'', ItemType=E''PASSWORD'', Value=E''h1D9hGrEWJ4_t9xh7arGss'',
|
|
ReporterParameterGroupType=E''CREDENTIALS'', ReporterConfigValueType=E''CONFIG''
|
|
WHERE Name = ''OpConsoleWssPassword''';\n else\n execute E'INSERT INTO OpReporterDefaultConfigItem
|
|
(ReporterDefaultConfigItemId, Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''OpConsoleWssPassword'',E''1.20'',NULL,E''Encrypted
|
|
(m_password) web service security password used for Control>Center web service
|
|
requests'',E''PASSWORD'',E''h1D9hGrEWJ4_t9xh7arGss'',E''CREDENTIALS'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'OpConsoleWssUsername';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=NULL, Description=E''Web service security username used for Control>Center
|
|
web service requests'', ItemType=E''STRING'', Value=E''ocagent'', ReporterParameterGroupType=E''CREDENTIALS'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''OpConsoleWssUsername''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''OpConsoleWssUsername'',E''1.20'',NULL,E''Web
|
|
service security username used for Control>Center web service requests'',E''STRING'',E''ocagent'',E''CREDENTIALS'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'OpenFilesLimit';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=NULL, Description=E''Maximum number of operational event data file
|
|
handles held open'', ItemType=E''LONG'', Value=E''500'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''OpenFilesLimit''';\n else\n
|
|
\ execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''OpenFilesLimit'',E''1.20'',NULL,E''Maximum
|
|
number of operational event data file handles held open'',E''LONG'',E''500'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'OperationalArtifactElementsLimit';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.70'',
|
|
EndVersion=E''1.80'', Description=E''Maximum number of operational artifact events
|
|
in single SOAP request.'', ItemType=E''LONG'', Value=E''100'', ReporterParameterGroupType=E''OBSOLETE'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''OperationalArtifactElementsLimit''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''OperationalArtifactElementsLimit'',E''1.70'',E''1.80'',E''Maximum
|
|
number of operational artifact events in single SOAP request.'',E''LONG'',E''100'',E''OBSOLETE'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'OperationalArtifactRefreshInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.70'',
|
|
EndVersion=E''1.80'', Description=E''Interval (seconds) between checks for new
|
|
operational artifact event data.'', ItemType=E''DOUBLE'', Value=E''10'', ReporterParameterGroupType=E''OBSOLETE'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''OperationalArtifactRefreshInterval''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''OperationalArtifactRefreshInterval'',E''1.70'',E''1.80'',E''Interval
|
|
(seconds) between checks for new operational artifact event data.'',E''DOUBLE'',E''10'',E''OBSOLETE'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'OpsFileElementsLimit';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=NULL, Description=E''Maximum number of operational event data items
|
|
in single SOAP request'', ItemType=E''LONG'', Value=E''50'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''OpsFileElementsLimit''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''OpsFileElementsLimit'',E''1.20'',NULL,E''Maximum
|
|
number of operational event data items in single SOAP request'',E''LONG'',E''50'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'OpsFileRefreshInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=NULL, Description=E''Interval (seconds) between checking for new job
|
|
event data'', ItemType=E''DOUBLE'', Value=E''1'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''OpsFileRefreshInterval''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''OpsFileRefreshInterval'',E''1.20'',NULL,E''Interval
|
|
(seconds) between checking for new job event data'',E''DOUBLE'',E''1'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'OpsItemBatchSubmitInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=NULL, Description=E''Seconds between operational item batch SOAP request
|
|
submissions'', ItemType=E''DOUBLE'', Value=E''0.1'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''OpsItemBatchSubmitInterval''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''OpsItemBatchSubmitInterval'',E''1.20'',NULL,E''Seconds
|
|
between operational item batch SOAP request submissions'',E''DOUBLE'',E''0.1'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'OpsSingleItemEventSubmitInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=E''1.80'', Description=E''[Obsolete] Seconds between operational single
|
|
item SOAP request submissions'', ItemType=E''DOUBLE'', Value=E''0.25'', ReporterParameterGroupType=E''OBSOLETE'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''OpsSingleItemEventSubmitInterval''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''OpsSingleItemEventSubmitInterval'',E''1.20'',E''1.80'',E''[Obsolete]
|
|
Seconds between operational single item SOAP request submissions'',E''DOUBLE'',E''0.25'',E''OBSOLETE'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'ProcessControl';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.90'',
|
|
EndVersion=NULL, Description=E''Process control library used to manage child processes.
|
|
\ Only use under direction of Ab Initio Support.'', ItemType=E''STRING'', Value=E''local'',
|
|
ReporterParameterGroupType=E''NORMAL'', ReporterConfigValueType=E''CONFIG'' WHERE
|
|
Name = ''ProcessControl''';\n else\n execute E'INSERT INTO OpReporterDefaultConfigItem
|
|
(ReporterDefaultConfigItemId, Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''ProcessControl'',E''1.90'',NULL,E''Process
|
|
control library used to manage child processes. Only use under direction of Ab
|
|
Initio Support.'',E''STRING'',E''local'',E''NORMAL'',E''CONFIG'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'ProcessStartupHoldInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.70'',
|
|
EndVersion=NULL, Description=E''Interval (seconds) after reporter startup before
|
|
proceeding without reaching the Control>Center'', ItemType=E''DOUBLE'', Value=E''120'',
|
|
ReporterParameterGroupType=E''NORMAL'', ReporterConfigValueType=E''CONFIG'' WHERE
|
|
Name = ''ProcessStartupHoldInterval''';\n else\n execute E'INSERT INTO OpReporterDefaultConfigItem
|
|
(ReporterDefaultConfigItemId, Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''ProcessStartupHoldInterval'',E''1.70'',NULL,E''Interval
|
|
(seconds) after reporter startup before proceeding without reaching the Control>Center'',E''DOUBLE'',E''120'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'ProductDiscoveryRunInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.80'',
|
|
EndVersion=NULL, Description=E''Interval (seconds) between runs of ops-product-monitor
|
|
to discover products on this host'', ItemType=E''DOUBLE'', Value=E''21600'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''ProductDiscoveryRunInterval''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''ProductDiscoveryRunInterval'',E''1.80'',NULL,E''Interval
|
|
(seconds) between runs of ops-product-monitor to discover products on this host'',E''DOUBLE'',E''21600'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'ProductElementsLimit';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.80'',
|
|
EndVersion=NULL, Description=E''Maximum number of product values in single SOAP
|
|
request'', ItemType=E''LONG'', Value=E''100'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''ProductElementsLimit''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''ProductElementsLimit'',E''1.80'',NULL,E''Maximum
|
|
number of product values in single SOAP request'',E''LONG'',E''100'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'ProductMonitorRefreshInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.80'',
|
|
EndVersion=NULL, Description=E''Polling interval (seconds) for checking for additional
|
|
product information'', ItemType=E''DOUBLE'', Value=E''5'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''ProductMonitorRefreshInterval''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''ProductMonitorRefreshInterval'',E''1.80'',NULL,E''Polling
|
|
interval (seconds) for checking for additional product information'',E''DOUBLE'',E''5'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'ProductStatusRunInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.80'',
|
|
EndVersion=NULL, Description=E''Interval (seconds) between runs of ops-product-monitor
|
|
to collect status information on known products'', ItemType=E''DOUBLE'', Value=E''60'',
|
|
ReporterParameterGroupType=E''NORMAL'', ReporterConfigValueType=E''CONFIG'' WHERE
|
|
Name = ''ProductStatusRunInterval''';\n else\n execute E'INSERT INTO OpReporterDefaultConfigItem
|
|
(ReporterDefaultConfigItemId, Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''ProductStatusRunInterval'',E''1.80'',NULL,E''Interval
|
|
(seconds) between runs of ops-product-monitor to collect status information on
|
|
known products'',E''DOUBLE'',E''60'',E''NORMAL'',E''CONFIG'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'ProductsPollInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.80'',
|
|
EndVersion=E''1.40'', Description=E''Polling interval (seconds) for checking for
|
|
product updates'', ItemType=E''DOUBLE'', Value=E''60'', ReporterParameterGroupType=E''OBSOLETE'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''ProductsPollInterval''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''ProductsPollInterval'',E''1.80'',E''1.40'',E''Polling
|
|
interval (seconds) for checking for product updates'',E''DOUBLE'',E''60'',E''OBSOLETE'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'QueueElementsLimit';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.50'',
|
|
EndVersion=NULL, Description=E''Maximum number of queue status items in single
|
|
SOAP request'', ItemType=E''LONG'', Value=E''100'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''QueueElementsLimit''';\n else\n
|
|
\ execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''QueueElementsLimit'',E''1.50'',NULL,E''Maximum
|
|
number of queue status items in single SOAP request'',E''LONG'',E''100'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'QueueGatherStatusInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.50'',
|
|
EndVersion=NULL, Description=E''Interval (seconds) for running ops-queue-monitor
|
|
to gather queue status'', ItemType=E''DOUBLE'', Value=E''600'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''QueueGatherStatusInterval''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''QueueGatherStatusInterval'',E''1.50'',NULL,E''Interval
|
|
(seconds) for running ops-queue-monitor to gather queue status'',E''DOUBLE'',E''600'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'QueueRefreshInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.50'',
|
|
EndVersion=NULL, Description=E''Interval (seconds) between checking for new operational
|
|
queue data'', ItemType=E''DOUBLE'', Value=E''10'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''QueueRefreshInterval''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''QueueRefreshInterval'',E''1.50'',NULL,E''Interval
|
|
(seconds) between checking for new operational queue data'',E''DOUBLE'',E''10'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'QueuesPollInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.50'',
|
|
EndVersion=E''1.40'', Description=E''Polling interval (seconds) for checking for
|
|
queue updates'', ItemType=E''DOUBLE'', Value=E''60'', ReporterParameterGroupType=E''OBSOLETE'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''QueuesPollInterval''';\n else\n
|
|
\ execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''QueuesPollInterval'',E''1.50'',E''1.40'',E''Polling
|
|
interval (seconds) for checking for queue updates'',E''DOUBLE'',E''60'',E''OBSOLETE'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'ReadLoggingPrefixes';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.70'',
|
|
EndVersion=NULL, Description=E''Colon separated list of prefixes (for example
|
|
\"pi:mp:cst\") for logging of stage-directory file reads. This debugging option
|
|
will cause the reporter.log file to very quickly roll over.'', ItemType=E''STRING'',
|
|
Value=E''<emptyString/>'', ReporterParameterGroupType=E''NORMAL'', ReporterConfigValueType=E''CONFIG''
|
|
WHERE Name = ''ReadLoggingPrefixes''';\n else\n execute E'INSERT INTO OpReporterDefaultConfigItem
|
|
(ReporterDefaultConfigItemId, Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''ReadLoggingPrefixes'',E''1.70'',NULL,E''Colon
|
|
separated list of prefixes (for example \"pi:mp:cst\") for logging of stage-directory
|
|
file reads. This debugging option will cause the reporter.log file to very quickly
|
|
roll over.'',E''STRING'',E''<emptyString/>'',E''NORMAL'',E''CONFIG'')';\n end
|
|
if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'ReporterEventsElementsLimit';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.80'',
|
|
EndVersion=NULL, Description=E''Maximum number of reporter events in a single
|
|
SOAP request'', ItemType=E''LONG'', Value=E''50'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''ReporterEventsElementsLimit''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''ReporterEventsElementsLimit'',E''1.80'',NULL,E''Maximum
|
|
number of reporter events in a single SOAP request'',E''LONG'',E''50'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'ReporterEventsFileRefreshInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.80'',
|
|
EndVersion=NULL, Description=E''Interval (seconds) between checking stage directory
|
|
for new reporter event data'', ItemType=E''DOUBLE'', Value=E''5'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''ReporterEventsFileRefreshInterval''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''ReporterEventsFileRefreshInterval'',E''1.80'',NULL,E''Interval
|
|
(seconds) between checking stage directory for new reporter event data'',E''DOUBLE'',E''5'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'ReporterEventsFilesLimit';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.80'',
|
|
EndVersion=NULL, Description=E''Maximum number of reporter event file handles
|
|
held open'', ItemType=E''LONG'', Value=E''2'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''ReporterEventsFilesLimit''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''ReporterEventsFilesLimit'',E''1.80'',NULL,E''Maximum
|
|
number of reporter event file handles held open'',E''LONG'',E''2'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'ReporterHostMetricCommand';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.80'',
|
|
EndVersion=NULL, Description=E''Reserved for Ab Initio use'', ItemType=E''STRING'',
|
|
Value=E''<emptyString/>'', ReporterParameterGroupType=E''NORMAL'', ReporterConfigValueType=E''CONFIG''
|
|
WHERE Name = ''ReporterHostMetricCommand''';\n else\n execute E'INSERT INTO
|
|
OpReporterDefaultConfigItem (ReporterDefaultConfigItemId, Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''ReporterHostMetricCommand'',E''1.80'',NULL,E''Reserved
|
|
for Ab Initio use'',E''STRING'',E''<emptyString/>'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'ResourceServerBatchSubmitInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=NULL, Description=E''Seconds between resource server batch SOAP request
|
|
submissions'', ItemType=E''DOUBLE'', Value=E''3'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''ResourceServerBatchSubmitInterval''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''ResourceServerBatchSubmitInterval'',E''1.20'',NULL,E''Seconds
|
|
between resource server batch SOAP request submissions'',E''DOUBLE'',E''3'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'ResourceServerElementsLimit';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=NULL, Description=E''Maximum number of resource server event data items
|
|
in single SOAP request'', ItemType=E''LONG'', Value=E''100'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''ResourceServerElementsLimit''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''ResourceServerElementsLimit'',E''1.20'',NULL,E''Maximum
|
|
number of resource server event data items in single SOAP request'',E''LONG'',E''100'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'ResourceServerFileRefreshInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=NULL, Description=E''Interval (seconds) between checking for new resource
|
|
server event data'', ItemType=E''DOUBLE'', Value=E''5'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''ResourceServerFileRefreshInterval''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''ResourceServerFileRefreshInterval'',E''1.20'',NULL,E''Interval
|
|
(seconds) between checking for new resource server event data'',E''DOUBLE'',E''5'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'ResourceServerSingleSubmitInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=E''1.100'', Description=E''[Obsolete] Seconds between resource server
|
|
single item SOAP request submissions'', ItemType=E''DOUBLE'', Value=E''0.25'',
|
|
ReporterParameterGroupType=E''OBSOLETE'', ReporterConfigValueType=E''CONFIG''
|
|
WHERE Name = ''ResourceServerSingleSubmitInterval''';\n else\n execute E'INSERT
|
|
INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId, Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''ResourceServerSingleSubmitInterval'',E''1.20'',E''1.100'',E''[Obsolete]
|
|
Seconds between resource server single item SOAP request submissions'',E''DOUBLE'',E''0.25'',E''OBSOLETE'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'RunFileRefreshInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.40'',
|
|
EndVersion=NULL, Description=E''Interval (seconds) between checking for new graph
|
|
job run files'', ItemType=E''DOUBLE'', Value=E''1'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''RunFileRefreshInterval''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''RunFileRefreshInterval'',E''1.40'',NULL,E''Interval
|
|
(seconds) between checking for new graph job run files'',E''DOUBLE'',E''1'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'RunningJobsRefreshInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=NULL, Description=E''Wait interval (seconds) between submitting runnning
|
|
jobs guids to Control>Center'', ItemType=E''DOUBLE'', Value=E''3600'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''RunningJobsRefreshInterval''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''RunningJobsRefreshInterval'',E''1.20'',NULL,E''Wait
|
|
interval (seconds) between submitting runnning jobs guids to Control>Center'',E''DOUBLE'',E''3600'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'ScheduleJobs';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=NULL, Description=E''Enable running of scheduled jobs as directed by
|
|
Control>Center'', ItemType=E''BOOLEAN'', Value=E''Y'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''ScheduleJobs''';\n else\n
|
|
\ execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''ScheduleJobs'',E''1.20'',NULL,E''Enable
|
|
running of scheduled jobs as directed by Control>Center'',E''BOOLEAN'',E''Y'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'SchedulePollInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=E''1.40'', Description=E''Polling interval (seconds) for checking for
|
|
schedule updates (Applicable only to Operational Console 3.0.x and Operational
|
|
Console 3.1.1.x)'', ItemType=E''DOUBLE'', Value=E''30'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''SchedulePollInterval''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''SchedulePollInterval'',E''1.20'',E''1.40'',E''Polling
|
|
interval (seconds) for checking for schedule updates (Applicable only to Operational
|
|
Console 3.0.x and Operational Console 3.1.1.x)'',E''DOUBLE'',E''30'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'ShutdownInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=NULL, Description=E''Wait interval (seconds) for subprocess completions
|
|
at reporter shutdown'', ItemType=E''DOUBLE'', Value=E''60'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''ShutdownInterval''';\n else\n
|
|
\ execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''ShutdownInterval'',E''1.20'',NULL,E''Wait
|
|
interval (seconds) for subprocess completions at reporter shutdown'',E''DOUBLE'',E''60'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'SoapRetryInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=NULL, Description=E''Interval (seconds) before retry after transport
|
|
error of failed web service request'', ItemType=E''DOUBLE'', Value=E''10'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''SoapRetryInterval''';\n else\n
|
|
\ execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''SoapRetryInterval'',E''1.20'',NULL,E''Interval
|
|
(seconds) before retry after transport error of failed web service request'',E''DOUBLE'',E''10'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'SoapTrace';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=NULL, Description=E''Log text of SOAP web service requests and responses'',
|
|
ItemType=E''BOOLEAN'', Value=E''N'', ReporterParameterGroupType=E''NORMAL'', ReporterConfigValueType=E''CONFIG''
|
|
WHERE Name = ''SoapTrace''';\n else\n execute E'INSERT INTO OpReporterDefaultConfigItem
|
|
(ReporterDefaultConfigItemId, Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''SoapTrace'',E''1.20'',NULL,E''Log
|
|
text of SOAP web service requests and responses'',E''BOOLEAN'',E''N'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'StageDirectoryAlertThreshold';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.90'',
|
|
EndVersion=NULL, Description=E''Create warning and error events as the number
|
|
of stage-directory files crosses 1X, 2X, etc'', ItemType=E''LONG'', Value=E''1000'',
|
|
ReporterParameterGroupType=E''NORMAL'', ReporterConfigValueType=E''CONFIG'' WHERE
|
|
Name = ''StageDirectoryAlertThreshold''';\n else\n execute E'INSERT INTO OpReporterDefaultConfigItem
|
|
(ReporterDefaultConfigItemId, Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''StageDirectoryAlertThreshold'',E''1.90'',NULL,E''Create
|
|
warning and error events as the number of stage-directory files crosses 1X, 2X,
|
|
etc'',E''LONG'',E''1000'',E''NORMAL'',E''CONFIG'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select
|
|
count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'StageDirectoryRefreshInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.80'',
|
|
EndVersion=NULL, Description=E''Interval (seconds) between checking stage directory
|
|
for new operational event data'', ItemType=E''DOUBLE'', Value=E''1'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''StageDirectoryRefreshInterval''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''StageDirectoryRefreshInterval'',E''1.80'',NULL,E''Interval
|
|
(seconds) between checking stage directory for new operational event data'',E''DOUBLE'',E''1'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'StageDirFlushTimeout';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.180'',
|
|
EndVersion=NULL, Description=E''How long (seconds) this reporter will try to flush
|
|
data to Control>Center, if flushing on reporter shutdown is requested.'', ItemType=E''LONG'',
|
|
Value=E''10'', ReporterParameterGroupType=E''NORMAL'', ReporterConfigValueType=E''CONFIG''
|
|
WHERE Name = ''StageDirFlushTimeout''';\n else\n execute E'INSERT INTO OpReporterDefaultConfigItem
|
|
(ReporterDefaultConfigItemId, Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''StageDirFlushTimeout'',E''1.180'',NULL,E''How
|
|
long (seconds) this reporter will try to flush data to Control>Center, if flushing
|
|
on reporter shutdown is requested.'',E''LONG'',E''10'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'SystemsPollInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=E''1.40'', Description=E''Polling interval (seconds) for checking for
|
|
OpSystem and associated data updates (Applicable only to Operational Console 3.0.x
|
|
and Operational Console 3.1.1.x)'', ItemType=E''DOUBLE'', Value=E''3600'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''SystemsPollInterval''';\n else\n
|
|
\ execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''SystemsPollInterval'',E''1.20'',E''1.40'',E''Polling
|
|
interval (seconds) for checking for OpSystem and associated data updates (Applicable
|
|
only to Operational Console 3.0.x and Operational Console 3.1.1.x)'',E''DOUBLE'',E''3600'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'SystemPropertiesVersion';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.200'',
|
|
EndVersion=NULL, Description=E''Control>Center web services version corresponding
|
|
to oldest Co>Operating System to be monitored for jobs'', ItemType=E''STRING'',
|
|
Value=E''1.90'', ReporterParameterGroupType=E''NORMAL'', ReporterConfigValueType=E''CONFIG''
|
|
WHERE Name = ''SystemPropertiesVersion''';\n else\n execute E'INSERT INTO
|
|
OpReporterDefaultConfigItem (ReporterDefaultConfigItemId, Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''SystemPropertiesVersion'',E''1.200'',NULL,E''Control>Center
|
|
web services version corresponding to oldest Co>Operating System to be monitored
|
|
for jobs'',E''STRING'',E''1.90'',E''NORMAL'',E''CONFIG'')';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'UserHostMetricCommand';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.80'',
|
|
EndVersion=NULL, Description=E''Executable and arguments that produce user defined
|
|
host metric values'', ItemType=E''STRING'', Value=E''<emptyString/>'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''UserHostMetricCommand''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''UserHostMetricCommand'',E''1.80'',NULL,E''Executable
|
|
and arguments that produce user defined host metric values'',E''STRING'',E''<emptyString/>'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'VersionNegotiationPollInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=NULL, Description=E''Polling interval (seconds) for checking Control>Center
|
|
web service version'', ItemType=E''DOUBLE'', Value=E''300'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''VersionNegotiationPollInterval''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''VersionNegotiationPollInterval'',E''1.20'',NULL,E''Polling
|
|
interval (seconds) for checking Control>Center web service version'',E''DOUBLE'',E''300'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'VirtualHostUsernamePrefix';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.20'',
|
|
EndVersion=NULL, Description=E''Prefix added to username to map username to hetero
|
|
configuration virtual host entry'', ItemType=E''STRING'', Value=E''ops-'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''VirtualHostUsernamePrefix''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''VirtualHostUsernamePrefix'',E''1.20'',NULL,E''Prefix
|
|
added to username to map username to hetero configuration virtual host entry'',E''STRING'',E''ops-'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'XmlParseErrorCountLimit';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.80'',
|
|
EndVersion=NULL, Description=E''Number of retries of XML parse errors tolerated
|
|
before a file is \"dropped\"'', ItemType=E''LONG'', Value=E''6'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''XmlParseErrorCountLimit''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''XmlParseErrorCountLimit'',E''1.80'',NULL,E''Number
|
|
of retries of XML parse errors tolerated before a file is \"dropped\"'',E''LONG'',E''6'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterDefaultConfigItem WHERE Name = 'XmlParseErrorInterval';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpReporterDefaultConfigItem SET StartVersion=E''1.80'',
|
|
EndVersion=NULL, Description=E''Number of seconds before the XML parse error count
|
|
is reset to zero'', ItemType=E''DOUBLE'', Value=E''30'', ReporterParameterGroupType=E''NORMAL'',
|
|
ReporterConfigValueType=E''CONFIG'' WHERE Name = ''XmlParseErrorInterval''';\n
|
|
\ else\n execute E'INSERT INTO OpReporterDefaultConfigItem (ReporterDefaultConfigItemId,
|
|
Name,StartVersion,EndVersion,Description,ItemType,Value,ReporterParameterGroupType,ReporterConfigValueType)
|
|
VALUES (nextval(''hibernate_sequence''), E''XmlParseErrorInterval'',E''1.80'',NULL,E''Number
|
|
of seconds before the XML parse error count is reset to zero'',E''DOUBLE'',E''30'',E''NORMAL'',E''CONFIG'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\n--
|
|
---------------------------------------------------\ncreate or replace function
|
|
anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*)
|
|
into cnt from OpReporterConfigSet WHERE ReporterConfigSetType = 'BUILTIN';\n if
|
|
(cnt > 0) then\n execute E'UPDATE OpReporterConfigSet SET Source=E''Built-in
|
|
defaults'', Version=E''3.3.1'', Description=E''Built-in default values for all
|
|
reporter parameters.'', ReporterConfigSetType=E''BUILTIN'' WHERE ReporterConfigSetType
|
|
= ''BUILTIN''';\n else\n execute E'INSERT INTO OpReporterConfigSet (ReporterConfigSetId,
|
|
Name,Source,Version,Description,ReporterConfigSetType) VALUES (nextval(''hibernate_sequence''),
|
|
\ E''Ab Initio Default'',E''Built-in defaults'',E''3.3.1'',E''Built-in default
|
|
values for all reporter parameters.'',E''BUILTIN'')';\n end if;\nend;\n$$ LANGUAGE
|
|
plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace
|
|
function anonymous() returns void as $$\nbegin\n execute E'INSERT INTO OpReporterConfigItem
|
|
(ReporterConfigItemId, PropertyTypeDiscriminator, ReporterDefaultConfigItemId,
|
|
LongValue, ReporterConfigSetId) SELECT nextval(''hibernate_sequence''), D.ItemType
|
|
AS PropertyTypeDiscriminator, D.ReporterDefaultConfigItemId, CAST(D.Value AS
|
|
int8) as LongValue, S.ReporterConfigSetId from OpReporterDefaultConfigItem D,
|
|
OpReporterConfigSet S WHERE D.ItemType=''LONG'' AND S.ReporterConfigSetType=''BUILTIN''
|
|
AND D.ReporterDefaultConfigItemId NOT IN (SELECT D2.ReporterDefaultConfigItemId
|
|
FROM OpReporterConfigSet S2 JOIN OpReporterConfigItem I2 ON I2.ReporterConfigSetId
|
|
= S2.ReporterConfigSetId JOIN OpReporterDefaultConfigItem D2 ON D2.ReporterDefaultConfigItemId
|
|
= I2.ReporterDefaultConfigItemId WHERE D2.ItemType=''LONG'' AND S2.ReporterConfigSetType=''BUILTIN'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpReporterConfigItem (ReporterConfigItemId, PropertyTypeDiscriminator, ReporterDefaultConfigItemId,
|
|
DoubleValue, ReporterConfigSetId) SELECT nextval(''hibernate_sequence''), D.ItemType
|
|
AS PropertyTypeDiscriminator, D.ReporterDefaultConfigItemId, CAST(D.Value AS
|
|
DOUBLE PRECISION) as DoubleValue, S.ReporterConfigSetId from OpReporterDefaultConfigItem
|
|
D, OpReporterConfigSet S WHERE D.ItemType=''DOUBLE'' AND S.ReporterConfigSetType=''BUILTIN''
|
|
AND D.ReporterDefaultConfigItemId NOT IN (SELECT D2.ReporterDefaultConfigItemId
|
|
FROM OpReporterConfigSet S2 JOIN OpReporterConfigItem I2 ON I2.ReporterConfigSetId
|
|
= S2.ReporterConfigSetId JOIN OpReporterDefaultConfigItem D2 ON D2.ReporterDefaultConfigItemId
|
|
= I2.ReporterDefaultConfigItemId WHERE D2.ItemType=''DOUBLE'' AND S2.ReporterConfigSetType=''BUILTIN'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpReporterConfigItem (ReporterConfigItemId, PropertyTypeDiscriminator, ReporterDefaultConfigItemId,
|
|
StringValue, ReporterConfigSetId) SELECT nextval(''hibernate_sequence''), D.ItemType
|
|
AS PropertyTypeDiscriminator, D.ReporterDefaultConfigItemId, D.Value as StringValue,
|
|
S.ReporterConfigSetId from OpReporterDefaultConfigItem D, OpReporterConfigSet
|
|
S WHERE D.ItemType=''STRING'' AND S.ReporterConfigSetType=''BUILTIN'' AND D.ReporterDefaultConfigItemId
|
|
NOT IN (SELECT D2.ReporterDefaultConfigItemId FROM OpReporterConfigSet S2 JOIN
|
|
OpReporterConfigItem I2 ON I2.ReporterConfigSetId = S2.ReporterConfigSetId JOIN
|
|
OpReporterDefaultConfigItem D2 ON D2.ReporterDefaultConfigItemId = I2.ReporterDefaultConfigItemId
|
|
WHERE D2.ItemType=''STRING'' AND S2.ReporterConfigSetType=''BUILTIN'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpReporterConfigItem (ReporterConfigItemId, PropertyTypeDiscriminator, ReporterDefaultConfigItemId,
|
|
BooleanValue, ReporterConfigSetId) SELECT nextval(''hibernate_sequence''), D.ItemType
|
|
AS PropertyTypeDiscriminator, D.ReporterDefaultConfigItemId, CAST(D.Value AS
|
|
char(1)) as BooleanValue, S.ReporterConfigSetId from OpReporterDefaultConfigItem
|
|
D, OpReporterConfigSet S WHERE D.ItemType=''BOOLEAN'' AND S.ReporterConfigSetType=''BUILTIN''
|
|
AND D.ReporterDefaultConfigItemId NOT IN (SELECT D2.ReporterDefaultConfigItemId
|
|
FROM OpReporterConfigSet S2 JOIN OpReporterConfigItem I2 ON I2.ReporterConfigSetId
|
|
= S2.ReporterConfigSetId JOIN OpReporterDefaultConfigItem D2 ON D2.ReporterDefaultConfigItemId
|
|
= I2.ReporterDefaultConfigItemId WHERE D2.ItemType=''BOOLEAN'' AND S2.ReporterConfigSetType=''BUILTIN'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT
|
|
INTO OpReporterConfigItem (ReporterConfigItemId, PropertyTypeDiscriminator, ReporterDefaultConfigItemId,
|
|
PasswordValue, ReporterConfigSetId) SELECT nextval(''hibernate_sequence''), D.ItemType
|
|
AS PropertyTypeDiscriminator, D.ReporterDefaultConfigItemId, D.Value as PasswordValue,
|
|
S.ReporterConfigSetId from OpReporterDefaultConfigItem D, OpReporterConfigSet
|
|
S WHERE D.ItemType=''PASSWORD'' AND S.ReporterConfigSetType=''BUILTIN'' AND D.ReporterDefaultConfigItemId
|
|
NOT IN (SELECT D2.ReporterDefaultConfigItemId FROM OpReporterConfigSet S2 JOIN
|
|
OpReporterConfigItem I2 ON I2.ReporterConfigSetId = S2.ReporterConfigSetId JOIN
|
|
OpReporterDefaultConfigItem D2 ON D2.ReporterDefaultConfigItemId = I2.ReporterDefaultConfigItemId
|
|
WHERE D2.ItemType=''PASSWORD'' AND S2.ReporterConfigSetType=''BUILTIN'')';\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\n-- ---------------------------------------------------\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpReporterConfigSet WHERE ReporterConfigSetType
|
|
= 'STANDARD';\n if (cnt = 0) then\n execute E'INSERT INTO OpReporterConfigSet
|
|
(ReporterConfigSetId, Name,Source,Version,Description,ReporterConfigSetType) VALUES
|
|
(nextval(''hibernate_sequence''), E''Standard'',E''OPDB Install'',E''3.3.1'',E''Standard
|
|
reporter configuration definition.'',E''STANDARD'')';\n execute E'INSERT INTO
|
|
OpReporterConfigItem (ReporterConfigItemId, PropertyTypeDiscriminator, StringValue,
|
|
ReporterDefaultConfigItemId, ReporterConfigSetId) SELECT nextval(''hibernate_sequence''),
|
|
\ ''STRING'', ''/~$AB_OPS_MONITOR_DIRECTORY'', D.ReporterDefaultConfigItemId,
|
|
S.ReporterConfigSetId FROM OpReporterDefaultConfigItem D, OpReporterConfigSet
|
|
S WHERE D.Name=''AbOpsMonitorDirectorys'' AND D.ItemType=''STRING'' AND S.ReporterConfigSetType=''STANDARD''';\n
|
|
\ execute E'INSERT INTO OpReporterConfigItem (ReporterConfigItemId, PropertyTypeDiscriminator,
|
|
StringValue, ReporterDefaultConfigItemId, ReporterConfigSetId) SELECT nextval(''hibernate_sequence''),
|
|
\ ''STRING'', ''ocagent'', D.ReporterDefaultConfigItemId, S.ReporterConfigSetId
|
|
FROM OpReporterDefaultConfigItem D, OpReporterConfigSet S WHERE D.Name=''OpConsoleWssUsername''
|
|
AND D.ItemType=''STRING'' AND S.ReporterConfigSetType=''STANDARD''';\n execute
|
|
E'INSERT INTO OpReporterConfigItem (ReporterConfigItemId, PropertyTypeDiscriminator,
|
|
StringValue, ReporterDefaultConfigItemId, ReporterConfigSetId) SELECT nextval(''hibernate_sequence''),
|
|
\ ''STRING'', ''admin'', D.ReporterDefaultConfigItemId, S.ReporterConfigSetId
|
|
FROM OpReporterDefaultConfigItem D, OpReporterConfigSet S WHERE D.Name=''MetadataHubWssUsername''
|
|
AND D.ItemType=''STRING'' AND S.ReporterConfigSetType=''STANDARD''';\n end if;\nend;\n$$
|
|
LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\n-- ---------------------------------------------------\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'SchemaVersion';\n
|
|
\ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'',
|
|
IsHidden = ''Y'', Description = ''Database schema number'', Value = ''4.4.1''
|
|
WHERE Name = ''SchemaVersion''';\n else\n execute E'INSERT INTO OpConfigValue
|
|
(ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''),
|
|
\ ''SchemaVersion'', ''Database schema number'', ''STRING'', ''4.4.1'', ''Y'')';\n
|
|
\ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate
|
|
or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n
|
|
\ select count(*) into cnt from OpConfigValue where Name = 'help.version';\n if
|
|
(cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'',
|
|
IsHidden = ''Y'', Description = ''FOR INTERNAL USE ONLY. The version of help requested
|
|
from the Ab Initio Help server.'', Value = ''4.4.1'' WHERE Name = ''help.version''';\n
|
|
\ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description,
|
|
ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''help.version'',
|
|
''FOR INTERNAL USE ONLY. The version of help requested from the Ab Initio Help
|
|
server.'', ''STRING'', ''4.4.1'', ''Y'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect
|
|
anonymous();\ndrop function anonymous();\n\n\n--end-script\n"
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: controlcenter-sql
|
|
namespace: abinitio-db
|