Struct google_api_proto::google::analytics::data::v1alpha::AudienceList
source · pub struct AudienceList {
pub name: String,
pub audience: String,
pub audience_display_name: String,
pub dimensions: Vec<AudienceDimension>,
pub state: Option<i32>,
pub begin_creating_time: Option<Timestamp>,
pub creation_quota_tokens_charged: i32,
pub row_count: Option<i32>,
pub error_message: Option<String>,
pub percentage_completed: Option<f64>,
pub recurring_audience_list: Option<String>,
pub webhook_notification: Option<WebhookNotification>,
}
Expand description
An audience list is a list of users in an audience at the time of the list’s creation. One audience may have multiple audience lists created for different days.
Fields§
§name: String
Output only. Identifier. The audience list resource name assigned during
creation. This resource name identifies this AudienceList
.
Format: properties/{property}/audienceLists/{audience_list}
audience: String
Required. The audience resource name. This resource name identifies the audience being listed and is shared between the Analytics Data & Admin APIs.
Format: properties/{property}/audiences/{audience}
audience_display_name: String
Output only. The descriptive display name for this audience. For example, “Purchasers”.
dimensions: Vec<AudienceDimension>
Required. The dimensions requested and displayed in the query response.
state: Option<i32>
Output only. The current state for this AudienceList.
begin_creating_time: Option<Timestamp>
Output only. The time when CreateAudienceList was called and the
AudienceList began the CREATING
state.
creation_quota_tokens_charged: i32
Output only. The total quota tokens charged during creation of the
AudienceList. Because this token count is based on activity from the
CREATING
state, this tokens charged will be fixed once an AudienceList
enters the ACTIVE
or FAILED
states.
row_count: Option<i32>
Output only. The total number of rows in the AudienceList result.
error_message: Option<String>
Output only. Error message is populated when an audience list fails during creation. A common reason for such a failure is quota exhaustion.
percentage_completed: Option<f64>
Output only. The percentage completed for this audience export ranging between 0 to 100.
recurring_audience_list: Option<String>
Output only. The recurring audience list that created this audience list. Recurring audience lists create audience lists daily.
If audience lists are created directly, they will have no associated recurring audience list, and this field will be blank.
webhook_notification: Option<WebhookNotification>
Optional. Configures webhook notifications to be sent from the Google Analytics Data API to your webhook server. Use of webhooks is optional. If unused, you’ll need to poll this API to determine when an audience list is ready to be used. Webhooks allow a notification to be sent to your servers & avoid the need for polling.
Either one or two POST requests will be sent to the webhook. The first POST request will be sent immediately showing the newly created audience list in its CREATING state. The second POST request will be sent after the audience list completes creation (either the ACTIVE or FAILED state).
If identical audience lists are requested in quick succession, the second & subsequent audience lists can be served from cache. In that case, the audience list create method can return an audience list is already ACTIVE. In this scenario, only one POST request will be sent to the webhook.
Implementations§
source§impl AudienceList
impl AudienceList
sourcepub fn state(&self) -> State
pub fn state(&self) -> State
Returns the enum value of state
, or the default if the field is unset or set to an invalid enum value.
sourcepub fn row_count(&self) -> i32
pub fn row_count(&self) -> i32
Returns the value of row_count
, or the default value if row_count
is unset.
sourcepub fn error_message(&self) -> &str
pub fn error_message(&self) -> &str
Returns the value of error_message
, or the default value if error_message
is unset.
sourcepub fn percentage_completed(&self) -> f64
pub fn percentage_completed(&self) -> f64
Returns the value of percentage_completed
, or the default value if percentage_completed
is unset.
sourcepub fn recurring_audience_list(&self) -> &str
pub fn recurring_audience_list(&self) -> &str
Returns the value of recurring_audience_list
, or the default value if recurring_audience_list
is unset.
Trait Implementations§
source§impl Clone for AudienceList
impl Clone for AudienceList
source§fn clone(&self) -> AudienceList
fn clone(&self) -> AudienceList
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AudienceList
impl Debug for AudienceList
source§impl Default for AudienceList
impl Default for AudienceList
source§impl Message for AudienceList
impl Message for AudienceList
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for AudienceList
impl PartialEq for AudienceList
source§fn eq(&self, other: &AudienceList) -> bool
fn eq(&self, other: &AudienceList) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AudienceList
Auto Trait Implementations§
impl Freeze for AudienceList
impl RefUnwindSafe for AudienceList
impl Send for AudienceList
impl Sync for AudienceList
impl Unpin for AudienceList
impl UnwindSafe for AudienceList
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request