fuchsia.cobalt

PROTOCOLS

MetricEventLoggerFactory

Defined in fuchsia.cobalt/cobalt.fidl

CreateMetricEventLogger

Request

NameType
project_spec ProjectSpec
logger request<MetricEventLogger>

Response

NameType
status Status

LoggerFactory

Defined in fuchsia.cobalt/cobalt.fidl

CreateLoggerFromProjectId

Request

NameType
project_id uint32
logger request<Logger>

Response

NameType
status Status

CreateLoggerSimpleFromProjectId

Request

NameType
project_id uint32
logger request<LoggerSimple>

Response

NameType
status Status

MetricEventLogger

Defined in fuchsia.cobalt/cobalt.fidl

LogOccurrence

Request

NameType
metric_id uint32
count uint64
event_codes event_vector

Response

NameType
status Status

LogInteger

Request

NameType
metric_id uint32
value int64
event_codes event_vector

Response

NameType
status Status

LogIntegerHistogram

Request

NameType
metric_id uint32
histogram integer_histogram
event_codes event_vector

Response

NameType
status Status

LogString

Request

NameType
metric_id uint32
string_value string[256]
event_codes event_vector

Response

NameType
status Status

LogMetricEvents

Request

NameType
events vector<MetricEvent>[500]

Response

NameType
status Status

LogCustomEvent

Request

NameType
metric_id uint32
event_values vector<CustomEventValue>

Response

NameType
status Status

LoggerBase

Defined in fuchsia.cobalt/cobalt.fidl

LoggerBase Interface

LogEvent

Request

NameType
metric_id uint32
event_code uint32

Response

NameType
status Status

LogEventCount

Request

NameType
metric_id uint32
event_code uint32
component string[64]
period_duration_micros int64
count int64

Response

NameType
status Status

LogElapsedTime

Request

NameType
metric_id uint32
event_code uint32
component string[64]
elapsed_micros int64

Response

NameType
status Status

LogFrameRate

Request

NameType
metric_id uint32
event_code uint32
component string[64]
fps float32

Response

NameType
status Status

LogMemoryUsage

Request

NameType
metric_id uint32
event_code uint32
component string[64]
bytes int64

Response

NameType
status Status

StartTimer

Request

NameType
metric_id uint32
event_code uint32
component string[64]
timer_id string[64]
timestamp uint64
timeout_s uint32

Response

NameType
status Status

EndTimer

Request

NameType
timer_id string[64]
timestamp uint64
timeout_s uint32

Response

NameType
status Status

Logger

Defined in fuchsia.cobalt/cobalt.fidl

LogEvent

Request

NameType
metric_id uint32
event_code uint32

Response

NameType
status Status

LogEventCount

Request

NameType
metric_id uint32
event_code uint32
component string[64]
period_duration_micros int64
count int64

Response

NameType
status Status

LogElapsedTime

Request

NameType
metric_id uint32
event_code uint32
component string[64]
elapsed_micros int64

Response

NameType
status Status

LogFrameRate

Request

NameType
metric_id uint32
event_code uint32
component string[64]
fps float32

Response

NameType
status Status

LogMemoryUsage

Request

NameType
metric_id uint32
event_code uint32
component string[64]
bytes int64

Response

NameType
status Status

StartTimer

Request

NameType
metric_id uint32
event_code uint32
component string[64]
timer_id string[64]
timestamp uint64
timeout_s uint32

Response

NameType
status Status

EndTimer

Request

NameType
timer_id string[64]
timestamp uint64
timeout_s uint32

Response

NameType
status Status

LogIntHistogram

Request

NameType
metric_id uint32
event_code uint32
component string[64]
histogram vector<HistogramBucket>[500]

Response

NameType
status Status

LogCustomEvent

Request

NameType
metric_id uint32
event_values vector<CustomEventValue>

Response

NameType
status Status

LogCobaltEvent

Request

NameType
event CobaltEvent

Response

NameType
status Status

LogCobaltEvents

Request

NameType
events vector<CobaltEvent>[500]

Response

NameType
status Status

LoggerSimple

Defined in fuchsia.cobalt/cobalt.fidl

LoggerSimple Interface

LogEvent

Request

NameType
metric_id uint32
event_code uint32

Response

NameType
status Status

LogEventCount

Request

NameType
metric_id uint32
event_code uint32
component string[64]
period_duration_micros int64
count int64

Response

NameType
status Status

LogElapsedTime

Request

NameType
metric_id uint32
event_code uint32
component string[64]
elapsed_micros int64

Response

NameType
status Status

LogFrameRate

Request

NameType
metric_id uint32
event_code uint32
component string[64]
fps float32

Response

NameType
status Status

LogMemoryUsage

Request

NameType
metric_id uint32
event_code uint32
component string[64]
bytes int64

Response

NameType
status Status

StartTimer

Request

NameType
metric_id uint32
event_code uint32
component string[64]
timer_id string[64]
timestamp uint64
timeout_s uint32

Response

NameType
status Status

EndTimer

Request

NameType
timer_id string[64]
timestamp uint64
timeout_s uint32

Response

NameType
status Status

LogIntHistogram

Request

NameType
metric_id uint32
event_code uint32
component string[64]
bucket_indices vector<uint32>[500]
bucket_counts vector<uint64>[500]

Response

NameType
status Status

SystemDataUpdater

Defined in fuchsia.cobalt/cobalt.fidl

SetExperimentState

Request

NameType
experiments vector<Experiment>

Response

NameType
status Status

SetChannel

Request

NameType
current_channel string[256]

Response

NameType
status Status

Controller

Defined in fuchsia.cobalt/cobalt_controller.fidl

RequestSendSoon

Request

NameType

Response

NameType
success bool

BlockUntilEmpty

Request

NameType
max_wait_seconds uint32

Response

NameType

GetNumSendAttempts

Request

NameType

Response

NameType
num uint32

GetFailedSendAttempts

Request

NameType

Response

NameType
num uint32

GetNumObservationsAdded

Request

NameType

Response

NameType
num_obs uint64

GetNumEventAggregatorRuns

Request

NameType

Response

NameType
num_runs uint64

GenerateAggregatedObservations

Request

NameType
day_index uint32
report_ids vector<uint32>

Response

NameType
num_obs vector<uint64>

STRUCTS

MetricEvent

Defined in fuchsia.cobalt/cobalt.fidl

NameTypeDescriptionDefault
metric_id uint32 No default
event_codes event_vector No default
payload MetricEventPayload No default

CustomEventValue

Defined in fuchsia.cobalt/cobalt.fidl

Logger Interface

NameTypeDescriptionDefault
dimension_name string No default
value Value No default

HistogramBucket

Defined in fuchsia.cobalt/cobalt.fidl

NameTypeDescriptionDefault
index uint32 No default
count uint64 No default

CountEvent

Defined in fuchsia.cobalt/cobalt.fidl

NameTypeDescriptionDefault
period_duration_micros int64 No default
count int64 No default

Event

Defined in fuchsia.cobalt/cobalt.fidl

NameTypeDescriptionDefault

CobaltEvent

Defined in fuchsia.cobalt/cobalt.fidl

NameTypeDescriptionDefault
metric_id uint32 No default
event_codes vector<uint32>[5] No default
component string[64]? No default
payload EventPayload No default

Experiment

Defined in fuchsia.cobalt/cobalt.fidl

SystemProfileUpdater Interface

NameTypeDescriptionDefault
experiment_id uint64 No default
arm_id uint32 No default

ENUMS

Status

Type: int32

Defined in fuchsia.cobalt/cobalt.fidl

NameValueDescription
OK 0
INVALID_ARGUMENTS 1
EVENT_TOO_BIG 2
BUFFER_FULL 3
INTERNAL_ERROR -1

TABLES

ProjectSpec

Defined in fuchsia.cobalt/cobalt.fidl

OrdinalNameTypeDescription
1 customer_id uint32
2 project_id uint32

UNIONS

MetricEventPayload

Defined in fuchsia.cobalt/cobalt.fidl

NameTypeDescription
count uint64
integer_value int64
histogram integer_histogram
string_value string[256]

Value

Defined in fuchsia.cobalt/cobalt.fidl

NameTypeDescription
string_value string
int_value int64
double_value float64
index_value uint32

EventPayload

Defined in fuchsia.cobalt/cobalt.fidl

NameTypeDescription
event Event
event_count CountEvent
elapsed_micros int64
fps float32
memory_bytes_used int64
int_histogram vector<HistogramBucket>[500]

CONSTANTS

NameValueTypeDescription
MAX_BYTES_PER_EVENT 102400 int64
MAX_HISTOGRAM_BUCKETS 500 uint32
MAX_BATCHED_EVENTS 500 uint32
MAX_COMPONENT_LENGTH 64 uint32
MAX_TIMER_ID_LENGTH 64 uint32
MAX_STRING_EVENT_SIZE 256 uint32
MAX_EVENT_CODE_COUNT 5 uint32
MAX_METRIC_DIMENSIONS 10 uint32
MAX_CHANNEL_NAME_LENGTH 256 uint32

TYPE ALIASES

NameValueDescription
event_vector vector[MAX_METRIC_DIMENSIONS]
integer_histogram vector[MAX_HISTOGRAM_BUCKETS]