{
"mapping_rule": {
"filters": [
{
"name": "job",
"value_glob": "myservice*"
}
],
"name": "<string>",
"aggregation_policy": {
"aggregation": "LAST",
"drop_timestamp": true,
"interval": "<string>",
"storage_policy": {
"resolution": "<string>",
"retention": "<string>"
}
},
"bucket_slug": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"drop": true,
"mode": "ENABLED",
"slug": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"mapping_rule": {
"filters": [
{
"name": "job",
"value_glob": "myservice*"
}
],
"name": "<string>",
"aggregation_policy": {
"aggregation": "LAST",
"drop_timestamp": true,
"interval": "<string>",
"storage_policy": {
"resolution": "<string>",
"retention": "<string>"
}
},
"bucket_slug": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"drop": true,
"mode": "ENABLED",
"slug": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
}Chronosphere API token
If true, validates the specified configuration without creating the MappingRule. If the specified configuration is valid, the endpoint returns a partial response without the MappingRule. If the specified configuration is invalid, the endpoint returns an error.
The MappingRule to create.
Show child attributes
The filters that determine which metrics should have rules applied to them. To be considered a match, a metric must meet the criteria for all of the filters specified in this array.
The name of the MappingRule. You can modify this value after the MappingRule is created.
Specifies how to aggregate the metric. Cannot be set if the drop
parameter is set.
Show child attributes
Defines the method by which metrics are aggregated.
LAST, MIN, MAX, MEAN, MEDIAN, COUNT, SUM, SUMSQ, STDEV, P10, P20, P30, P40, P50, P60, P70, P80, P90, P95, P99, P999, P9999, P25, P75, COUNT_SAMPLES, HISTOGRAM Deprecated: This parameter is no longer supported.
The interval between aggregated data points.
The slug of the bucket the MappingRule belongs to.
Specifies whether to drop the given set of metrics. Cannot be set if the
aggregation_policy object is set.
The operational mode for this mapping rule. If set to enabled, the rule
is applied. If set to preview, the rule is not applied, but shaping
impact statistics for the rule are recorded. Default: enabled.
ENABLED, PREVIEW The unique identifier of the MappingRule. If a slug isn't provided, one is generated based on the name field. You can't modify this field after the MappingRule is created.
A successful response containing the created MappingRule.
Show child attributes
The filters that determine which metrics should have rules applied to them. To be considered a match, a metric must meet the criteria for all of the filters specified in this array.
The name of the MappingRule. You can modify this value after the MappingRule is created.
Specifies how to aggregate the metric. Cannot be set if the drop
parameter is set.
Show child attributes
Defines the method by which metrics are aggregated.
LAST, MIN, MAX, MEAN, MEDIAN, COUNT, SUM, SUMSQ, STDEV, P10, P20, P30, P40, P50, P60, P70, P80, P90, P95, P99, P999, P9999, P25, P75, COUNT_SAMPLES, HISTOGRAM Deprecated: This parameter is no longer supported.
The interval between aggregated data points.
The slug of the bucket the MappingRule belongs to.
Timestamp of when the MappingRule was created. Cannot be set by clients.
Specifies whether to drop the given set of metrics. Cannot be set if the
aggregation_policy object is set.
The operational mode for this mapping rule. If set to enabled, the rule
is applied. If set to preview, the rule is not applied, but shaping
impact statistics for the rule are recorded. Default: enabled.
ENABLED, PREVIEW The unique identifier of the MappingRule. If a slug isn't provided, one is generated based on the name field. You can't modify this field after the MappingRule is created.
Timestamp of when the MappingRule was last updated. Cannot be set by clients.