/** The name of the function used to initialize a Polaris library. */ export declare const POLARIS_INIT_LIB_FN_NAME = "initPolarisLib"; /** The name of the file that contains the function to initialize a Polaris library (.ts needs to be appended). */ export declare const POLARIS_INIT_FN_FILE_NAME = "init-polaris-lib"; /** * The suffix of files containing a Polaris Resource Model type (.ts needs to be appended). * * A distinct suffix is needed to tell the metadata generation compiler plugin which files to process. */ export declare const MODEL_FILE_SUFFIX = ".prm"; /** * The directory (within the root of the workspace), in which SloMapping instances should be placed. */ export declare const SLO_MAPPINGS_DIR = "slo-mappings"; /** * Represents a set of commonly used forms of the same name, as returned by the `name()` function of `@nx/devkit`. */ export interface NormalizedNames { /** * The name given as input. */ name: string; /** * @example 'MyName' */ className: string; /** * @example 'myName' */ propertyName: string; /** * @example 'MY_NAME' */ constantName: string; /** * @example 'my-name' */ fileName: string; } /** * Represents a set of commonly used forms of an SLO name. */ export interface SloNames { /** * @example 'CpuUsage' */ sloName: string; /** * @example 'CpuUsageSlo' */ sloMicrocontrollerName: string; /** * @example 'cpu-usage.slo-mapping' */ sloMappingFileName: string; /** * @example 'cpu-usage.slo' */ sloMicrocontrollerFileName: string; /** * @example 'CpuUsageSloConfig' */ sloConfigType: string; /** * @example 'CpuUsageSloMapping' */ sloMappingType: string; /** * @example 'CpuUsageSloMappingSpec' */ sloMappingSpecType: string; /** * @example cpuusageslomappings */ sloMappingK8sResources: string; /** * @example 'slo.polaris-slo-cloud.github.io' */ sloMappingTypeApiGroup: string; } /** * Represents a set of commonly used forms of an ElasticityStrategy name. */ export interface ElasticityStrategyNames { /** * @example 'Horizontal' */ eStratName: string; /** * @example 'HorizontalElasticityStrategyController' */ eStratControllerName: string; /** * @example 'horizontal-elasticity-strategy.prm' */ eStratFileName: string; /** * @example 'horizontal-elasticity-strategy.controller' */ eStratControllerFileName: string; /** * @example 'HorizontalElasticityStrategyConfig' */ eStratConfigType: string; /** * @example 'HorizontalElasticityStrategy' */ eStratType: string; /** * @example 'HorizontalElasticityStrategyKind' */ eStratKind: string; /** * @example horizontalelasticitystrategies */ eStratK8sResources: string; /** * @example 'elasticity.polaris-slo-cloud.github.io' */ eStratTypeApiGroup: string; } /** * Represents a set of commonly used forms of a ComposedMetricType name. */ export interface ComposedMetricTypeNames { /** * @example 'CostEfficiency' */ compMetricValueType: string; /** * @example 'cost-efficiency' */ compMetricDirName: string; /** * @example 'cost-efficiency.prm' */ compMetricFileName: string; /** * @example 'cost-efficiency.metric-source' */ compMetricSourceFileName: string; /** * @example 'cost-efficiency.metric-source.factory' */ compMetricSourceFactoryFileName: string; /** * @example 'CostEfficiencyParams' */ compMetricParams: string; /** * @example 'CostEfficiencyMetric' */ compMetricType: string; /** * @example 'CostEfficiencyMetricSource' */ compMetricSource: string; /** * @example 'CostEfficiencyMetricSourceFactory' */ compMetricSourceFactory: string; /** * Used for generating the `metricTypeName` property of the composed metric type. * * @example 'cost-efficiency' */ compMetricUniqueTypeName: string; /** * @example 'CostEfficiencyMetricMapping' */ compMetricMapping: string; /** * @example 'costefficiencymetricmappings' */ compMetricK8sResources: string; } /** * Generates various SLO-related names, based on the name of an SLO mapping class. * * @param sloMappingTypeName The name of the SLO mapping class. */ export declare function getSloNames(sloMappingTypeName: string): SloNames; /** * Generates various ElasticityStrategy-related names, based on the name of an ElasticityStrategy class. * * @param eStratTypeName The name of the SLO mapping class. */ export declare function getElasticityStrategyNames(eStratTypeName: string): ElasticityStrategyNames; /** * Generates various ComposedMetricType-related names, based on the name of a ComposedMetric's value interface. * * @param compMetricValueType The name of the ComposedMetric's value interface. */ export declare function getComposedMetricTypeNames(compMetricValueType: string): ComposedMetricTypeNames; /** * @returns The plural form of the specified `singular`. */ export declare function getPlural(singular: string): string;