语言

你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

ArmMonitorWorkspacesModelFactory.MonitorEntityOrigin Method

Definition

Details about the origin of the entity - the source that added it to the issue.

public static Azure.ResourceManager.Monitor.Workspaces.Models.MonitorEntityOrigin MonitorEntityOrigin(string addedBy = default, Azure.ResourceManager.Monitor.Workspaces.Models.MonitorEntityType addedByType = default);
static member MonitorEntityOrigin : string * Azure.ResourceManager.Monitor.Workspaces.Models.MonitorEntityType -> Azure.ResourceManager.Monitor.Workspaces.Models.MonitorEntityOrigin
Public Shared Function MonitorEntityOrigin (Optional addedBy As String = Nothing, Optional addedByType As MonitorEntityType = Nothing) As MonitorEntityOrigin

Parameters

addedBy
String

The ID of the origin - for example, in case of 'Manual', the user ID/app ID, and in case of 'Automatic', the name of the automatic system.

addedByType
MonitorEntityType

The source of the origin - Manual or Automatic.

Returns

A new MonitorEntityOrigin instance for mocking.

Applies to