HP Operations Manager for Windows

OV_CalculationRule


Description
If the CalculationThresholdType is set to threshold_by_number, the values indicate the absolute number of children that have to pass a certain severity. Because the Threshold properties are of the type real, you must use 1.0, 2.0, 3.0, and so on.

If the CalculationThresholdType is set to threshold_by_percentage, the values are between 0.0 and 1.0. For example, a single threshold of 25% translates into a value of 0.25 (not 25.0).

class OV_CalculationRule
{
Properties:
string SettingID;
uint16 CalculationType;
uint16 CalculationThresholdType;
real32 CriticalThreshold;
real32 MajorThreshold;
real32 MinorThreshold;
real32 WarningThreshold;
real32 NormalThreshold;
real32 SingleThreshold;
uint16 CriticalSetTo;
uint16 MajorSetTo;
uint16 MinorSetTo;
uint16 WarningSetTo;
uint16 NormalSetTo;
uint16 SingleSetTo;

Class Methods:
OV_CalculationRule Create(
[in] string Caption,
[in] uint16 CalculationType,
[in] uint16 CalculationThresholdType,
[in, optional] uint16 SingleSetTo,
[in, optional] real32 SingleThreshold,
[in, optional] uint16 CriticalSetTo,
[in, optional] real32 CriticalThreshold,
[in, optional] uint16 MajorSetTo,
[in, optional] real32 MajorThreshold,
[in, optional] uint16 MinorSetTo,
[in, optional] real32 MinorThreshold,
[in, optional] uint16 WarningSetTo,
[in, optional] real32 WarningThreshold,
[in, optional] uint16 NormalSetTo,
[in, optional] real32 NormalThreshold,
[in, optional] string SettingID,
[in, optional] string Description
);
OV_CalculationRule Create_Trans(
[in] string TransId,
[in] string Caption,
[in] uint16 CalculationType,
[in] uint16 CalculationThresholdType,
[in, optional] uint16 SingleSetTo,
[in, optional] real32 SingleThreshold,
[in, optional] uint16 CriticalSetTo,
[in, optional] real32 CriticalThreshold,
[in, optional] uint16 MajorSetTo,
[in, optional] real32 MajorThreshold,
[in, optional] uint16 MinorSetTo,
[in, optional] real32 MinorThreshold,
[in, optional] uint16 WarningSetTo,
[in, optional] real32 WarningThreshold,
[in, optional] uint16 NormalSetTo,
[in, optional] real32 NormalThreshold,
[in, optional] string SettingID,
[in, optional] string Description
);
void Remove(
[in] string SettingId
);
void Remove_Trans(
[in] string TransId,
[in] string SettingId
);
OV_CalculationRule GetById(
[in] string SettingId
);
OV_CalculationRule GetById_Trans(
[in] string TransId,
[in] string SettingId
);
OV_CalculationRule GetByCaption(
[in] string Caption
);
OV_CalculationRule GetByCaption_Trans(
[in] string TransId,
[in] string Caption
);

Instance Methods:
void Modify(
[in] OV_CalculationRule CalculationRule
);
void Modify_Trans(
[in] string TransId,
[in] OV_CalculationRule CalculationRule
);
sint32 GetServices(
[out] OV_Service Services[]
);
sint32 GetServices_Trans(
[in] string TransId,
[out] OV_Service Services[]
);
sint32 GetServiceTypes(
[out] OV_ServiceTypeDefinition ServiceTypes[]
);
sint32 GetServiceTypes_Trans(
[in] string TransId,
[out] OV_ServiceTypeDefinition ServiceTypes[]
);
};