Struct gapi_grpc::google::analytics::admin::v1alpha::CustomMetric[][src]

pub struct CustomMetric {
    pub name: String,
    pub parameter_name: String,
    pub display_name: String,
    pub description: String,
    pub measurement_unit: i32,
    pub scope: i32,
}

A definition for a custom metric.

Fields

name: String

Output only. Resource name for this CustomMetric resource. Format: properties/{property}/customMetrics/{customMetric}

parameter_name: String

Required. Immutable. Tagging name for this custom metric.

If this is an event-scoped metric, then this is the event parameter name.

May only contain alphanumeric and underscore charactes, starting with a letter. Max length of 40 characters for event-scoped metrics.

display_name: String

Required. Display name for this custom metric as shown in the Analytics UI. Max length of 82 characters, alphanumeric plus space and underscore starting with a letter. Legacy system-generated display names may contain square brackets, but updates to this field will never permit square brackets.

description: String

Optional. Description for this custom dimension. Max length of 150 characters.

measurement_unit: i32

Required. Immutable. The type for the custom metric’s value.

scope: i32

Required. Immutable. The scope of this custom metric.

Implementations

impl CustomMetric[src]

pub fn measurement_unit(&self) -> MeasurementUnit[src]

Returns the enum value of measurement_unit, or the default if the field is set to an invalid enum value.

pub fn set_measurement_unit(&mut self, value: MeasurementUnit)[src]

Sets measurement_unit to the provided enum value.

pub fn scope(&self) -> MetricScope[src]

Returns the enum value of scope, or the default if the field is set to an invalid enum value.

pub fn set_scope(&mut self, value: MetricScope)[src]

Sets scope to the provided enum value.

Trait Implementations

impl Clone for CustomMetric[src]

impl Debug for CustomMetric[src]

impl Default for CustomMetric[src]

impl Message for CustomMetric[src]

impl PartialEq<CustomMetric> for CustomMetric[src]

impl StructuralPartialEq for CustomMetric[src]

Auto Trait Implementations

impl RefUnwindSafe for CustomMetric

impl Send for CustomMetric

impl Sync for CustomMetric

impl Unpin for CustomMetric

impl UnwindSafe for CustomMetric

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]