blob: 3a7dedcd482f4a942eca632bb52ebeabfae473dd [file] [log] [blame]
###########################################################################
# This file contains the source of truth for the set of Metrics
# that are registered in version 0.1 of Cobalt.
#
# This file is maintained by hand. To add a new Metric or change
# the definition of a Metric, manually edit this file and
# commit the change to the Cobalt repo.
#
# The format of this file is the textual representation of the
# RegisteredMetrics Protocol Buffer message, which is defined in
# metrics.proto
##########################################################################
#########################
# Customer 1 (Fuchsia)
########################
## Project 1
#### Metric (1, 1, 1)
element {
customer_id: 1
project_id: 1
id: 1
name: "Fuchsia Popular URLs"
description: "This is a fictional metric used for the development of Cobalt."
time_zone_policy: LOCAL
parts {
key: "url"
value {
description: "A URL."
data_type: STRING
}
}
}
#### Metric (1, 1, 2)
element {
customer_id: 1
project_id: 1
id: 2
name: "Fuschsia Usage by Hour"
description: "This is a fictional metric used for the development of Cobalt."
time_zone_policy: LOCAL
parts {
key: "hour"
value {
description: "An integer from 0 to 23 representing the hour of the day."
data_type: INT
}
}
}
#### Metric (1, 1, 3)
element {
customer_id: 1
project_id: 1
id: 3
name: "Fuschsia Fruit Consumption and Rating"
description: "This is a fictional metric used for the development of Cobalt."
time_zone_policy: LOCAL
parts {
key: "fruit"
value {
description: "The name of a fruit that was consumed."
}
}
parts {
key: "rating"
value {
description: "An integer from 0 to 10"
data_type: INT
}
}
}
#### Metric (1, 1, 4)
element {
customer_id: 1
project_id: 1
id: 4
name: "Rare Events"
description: "This is a fictional metric used for the development of Cobalt."
time_zone_policy: LOCAL
parts {
key: "event"
value {
description: "The index of a rare event. See report config (1,1,4) for the labels corresponding to each index."
data_type: INDEX
}
}
}
#### Metric (1, 1, 5)
element {
customer_id: 1
project_id: 1
id: 5
name: "Fuchsia Module Usage"
description: "This is a fictional metric used for the development of Cobalt."
time_zone_policy: LOCAL
parts {
key: "module"
value {
description: "A module identifier"
data_type: STRING
}
}
}
#### Metric (1, 1, 6)
element {
customer_id: 1
project_id: 1
id: 6
name: "Device Type"
description: "This is a fictional metric used for the development of Cobalt."
time_zone_policy: LOCAL
parts {
key: "device"
value {
description: "Which type of device is Fuchsia running on"
data_type: INDEX
}
}
}
#########################
# Customer 2 (Acme)
########################
## Project 1
#### Metric (2, 1, 1)
element {
customer_id: 2
project_id: 1
id: 1
name: "Acme Module name"
description: "This is a fictional metric used for the development of Cobalt."
time_zone_policy: LOCAL
parts {
key: "name"
value {
description: "The name of a module."
data_type: STRING
}
}
}
#### Metric (2, 1, 2)
element {
customer_id: 2
project_id: 1
id: 2
name: "Acme Popular URLs"
description: "This is a fictional metric used for the development of Cobalt."
time_zone_policy: UTC
parts {
key: "url"
value {
description: "A URL."
}
}
}