# Functions
IsDefaultPolicies checks if the policies are the default policies.
MustParseResolution parses a resolution in the form of window@precision, and panics if the input string is invalid.
MustParseRetention parses a retention, and panics if the input is invalid.
MustParseStoragePolicy parses a storage policy in the form of resolution:retention, and panics if the input string is invalid.
NewPoliciesFromProto creates multiple new policies from given proto policies.
NewPoliciesPool creates a new policies pool.
NewPolicy creates a policy.
NewPolicyFromProto creates a new policy from a proto policy.
NewStagedPolicies create a new staged policies.
NewStoragePoliciesFromProto creates a list of storage policies from given storage policies proto.
NewStoragePolicy creates a new storage policy given a resolution and a retention.
NewStoragePolicyFromProto creates a new storage policy from a storage policy protobuf message.
ParseDropPolicy parses a drop policy.
ParsePolicy parses a policy in the form of resolution:retention|aggregationTypes.
ParseResolution parses a resolution.
ParseRetention parses a retention.
ParseStoragePolicy parses a storage policy in the form of resolution:retention.
StoragePoliciesFromProto converts a list of protobuf storage policies to a storage policy in place.
ValidDropPolicies returns a copy of all the valid drop policies.
ValueFromResolution returns the value given a resolution.
ValueFromRetention returns the value given a retention.
# Constants
DefaultDropPolicy is to drop none.
DropIfOnlyMatch specifies to drop matched metrics, but only if no other rules match.
DropMust specifies to always drop matched metrics, irregardless of other rules.
DropNone specifies not to drop any of the matched metrics.
List of known resolution values.
List of known retention values.
List of known retention values.
List of known retention values.
List of known retention values.
List of known resolution values.
List of known resolution values.
List of known retention values.
List of known retention values.
List of known resolution values.
List of known resolution values.
List of known retention values.
List of known retention values.
List of known retention values.
List of known resolution values.
List of known retention values.
# Variables
DefaultPoliciesList represents a default policies list.
DefaultPolicy represents a default policy.
DefaultStagedPolicies represents a default staged policies.
EmptyResolution is an empty resolution.
EmptyRetention is an empty retention.
EmptyStoragePolicy represents an empty storage policy.
# Structs
Policy contains a storage policy and a list of custom aggregation types.
Resolution is the sampling resolution for datapoints.
StagedPolicies represent a list of policies at a specified version.
StoragePolicy represents the resolution and retention period metric datapoints are stored at.
VersionedPoliciesList is a versioned policies list.
# Interfaces
PoliciesPool provides a pool for variable-sized policy slices.
# Type aliases
ByResolutionAscRetentionDesc implements the sort.Sort interface that enables sorting storage policies by resolution in ascending order and then by retention in descending order.
ByRetentionAscResolutionAsc implements the sort.Sort interface that enables sorting storage policies by retention in ascending order and then by resolution in ascending order.
DropPolicy is a metrics dropping policy.
Policies is a list of policies.
PoliciesList is a list of staged policies.
ResolutionValue is the resolution value.
Retention is the retention period for datapoints.
RetentionValue is the retention value.
StoragePolicies is a list of storage policies.