public static class ServiceCollectionExtensionsReference documentation and code samples for the Google Cloud Monitoring v3 API class ServiceCollectionExtensions.
Static class to provide extension methods to configure API clients.
Namespace
Microsoft.Extensions.DependencyInjectionAssembly
Google.Cloud.Monitoring.V3.dll
Methods
AddAlertPolicyServiceClient(IServiceCollection, Action<AlertPolicyServiceClientBuilder>)
public static IServiceCollection AddAlertPolicyServiceClient(this IServiceCollection services, Action<AlertPolicyServiceClientBuilder> action = null)Adds a singleton AlertPolicyServiceClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionAlertPolicyServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddAlertPolicyServiceClient(IServiceCollection, Action<IServiceProvider, AlertPolicyServiceClientBuilder>)
public static IServiceCollection AddAlertPolicyServiceClient(this IServiceCollection services, Action<IServiceProvider, AlertPolicyServiceClientBuilder> action)Adds a singleton AlertPolicyServiceClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderAlertPolicyServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddGroupServiceClient(IServiceCollection, Action<GroupServiceClientBuilder>)
public static IServiceCollection AddGroupServiceClient(this IServiceCollection services, Action<GroupServiceClientBuilder> action = null)Adds a singleton GroupServiceClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionGroupServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddGroupServiceClient(IServiceCollection, Action<IServiceProvider, GroupServiceClientBuilder>)
public static IServiceCollection AddGroupServiceClient(this IServiceCollection services, Action<IServiceProvider, GroupServiceClientBuilder> action)Adds a singleton GroupServiceClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderGroupServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddMetricServiceClient(IServiceCollection, Action<MetricServiceClientBuilder>)
public static IServiceCollection AddMetricServiceClient(this IServiceCollection services, Action<MetricServiceClientBuilder> action = null)Adds a singleton MetricServiceClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionMetricServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddMetricServiceClient(IServiceCollection, Action<IServiceProvider, MetricServiceClientBuilder>)
public static IServiceCollection AddMetricServiceClient(this IServiceCollection services, Action<IServiceProvider, MetricServiceClientBuilder> action)Adds a singleton MetricServiceClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderMetricServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddNotificationChannelServiceClient(IServiceCollection, Action<NotificationChannelServiceClientBuilder>)
public static IServiceCollection AddNotificationChannelServiceClient(this IServiceCollection services, Action<NotificationChannelServiceClientBuilder> action = null)Adds a singleton NotificationChannelServiceClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionNotificationChannelServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddNotificationChannelServiceClient(IServiceCollection, Action<IServiceProvider, NotificationChannelServiceClientBuilder>)
public static IServiceCollection AddNotificationChannelServiceClient(this IServiceCollection services, Action<IServiceProvider, NotificationChannelServiceClientBuilder> action)Adds a singleton NotificationChannelServiceClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderNotificationChannelServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddQueryServiceClient(IServiceCollection, Action<QueryServiceClientBuilder>)
public static IServiceCollection AddQueryServiceClient(this IServiceCollection services, Action<QueryServiceClientBuilder> action = null)Adds a singleton QueryServiceClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionQueryServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddQueryServiceClient(IServiceCollection, Action<IServiceProvider, QueryServiceClientBuilder>)
public static IServiceCollection AddQueryServiceClient(this IServiceCollection services, Action<IServiceProvider, QueryServiceClientBuilder> action)Adds a singleton QueryServiceClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderQueryServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddServiceMonitoringServiceClient(IServiceCollection, Action<ServiceMonitoringServiceClientBuilder>)
public static IServiceCollection AddServiceMonitoringServiceClient(this IServiceCollection services, Action<ServiceMonitoringServiceClientBuilder> action = null)Adds a singleton ServiceMonitoringServiceClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionServiceMonitoringServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddServiceMonitoringServiceClient(IServiceCollection, Action<IServiceProvider, ServiceMonitoringServiceClientBuilder>)
public static IServiceCollection AddServiceMonitoringServiceClient(this IServiceCollection services, Action<IServiceProvider, ServiceMonitoringServiceClientBuilder> action)Adds a singleton ServiceMonitoringServiceClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderServiceMonitoringServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddSnoozeServiceClient(IServiceCollection, Action<SnoozeServiceClientBuilder>)
public static IServiceCollection AddSnoozeServiceClient(this IServiceCollection services, Action<SnoozeServiceClientBuilder> action = null)Adds a singleton SnoozeServiceClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSnoozeServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddSnoozeServiceClient(IServiceCollection, Action<IServiceProvider, SnoozeServiceClientBuilder>)
public static IServiceCollection AddSnoozeServiceClient(this IServiceCollection services, Action<IServiceProvider, SnoozeServiceClientBuilder> action)Adds a singleton SnoozeServiceClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderSnoozeServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddUptimeCheckServiceClient(IServiceCollection, Action<UptimeCheckServiceClientBuilder>)
public static IServiceCollection AddUptimeCheckServiceClient(this IServiceCollection services, Action<UptimeCheckServiceClientBuilder> action = null)Adds a singleton UptimeCheckServiceClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionUptimeCheckServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddUptimeCheckServiceClient(IServiceCollection, Action<IServiceProvider, UptimeCheckServiceClientBuilder>)
public static IServiceCollection AddUptimeCheckServiceClient(this IServiceCollection services, Action<IServiceProvider, UptimeCheckServiceClientBuilder> action)Adds a singleton UptimeCheckServiceClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderUptimeCheckServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|