10 lines
868 B
TypeScript
10 lines
868 B
TypeScript
// Fixed12 source-partition DATA policy, candidate build artifact for review.
|
|
// No observed-schema enrollment, caller policy, expected catalogue or authority.
|
|
import {canonical,sha} from './application-writer-profile-canonical.js'
|
|
const PERIODS=Object.freeze({flow_buckets:'d',flow_minute_stats:'d',flow_minute_dims:'d',flow_daily_dims:'m',flow_hour_facts:'d',flow_daily_facts:'m',traffic_samples:'w',servers_rest_ping_samples:'w',uptime_probe_samples:'w',uptime_resource_samples:'w',server_snapshots:'w',internet_path_snapshots:'w'} as const)
|
|
export type FixedCatalogueParentPeriodData='d'|'w'|'m'
|
|
export const FIXED_CATALOGUE_PARENT_POLICY_DATA_SHA256=sha(canonical(PERIODS))
|
|
export function fixedCatalogueParentPeriodData(name:string):FixedCatalogueParentPeriodData|undefined {
|
|
return Object.hasOwn(PERIODS,name)?PERIODS[name as keyof typeof PERIODS]:undefined
|
|
}
|