// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class GetPrometheusViewResponseBodyPrometheusViewPrometheusInstances extends $dara.Model { /** * @remarks * The instance ID. * * @example * rw-63549e054ff596a4149927961dff */ prometheusInstanceId?: string; /** * @remarks * The region ID. * * @example * cn-north-2-gov-1 */ regionId?: string; /** * @remarks * The user ID. * * @example * 122xxxxx */ userId?: string; static names(): { [key: string]: string } { return { prometheusInstanceId: 'prometheusInstanceId', regionId: 'regionId', userId: 'userId', }; } static types(): { [key: string]: any } { return { prometheusInstanceId: 'string', regionId: 'string', userId: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class GetPrometheusViewResponseBodyPrometheusViewTags extends $dara.Model { /** * @remarks * The integration key of PagerDuty. * * @example * global_score_series */ key?: string; /** * @remarks * The tag value. * * @example * 371293199010092839 */ value?: string; static names(): { [key: string]: string } { return { key: 'key', value: 'value', }; } static types(): { [key: string]: any } { return { key: 'string', value: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class GetPrometheusViewResponseBodyPrometheusView extends $dara.Model { /** * @remarks * The authentication-free read policy. IP CIDR blocks and VPC IDs are supported. * * @example * { * "SourceIp": [ * "192.168.1.0/24", * "172.168.2.22" * ], * "SourceVpc": [ * "vpc-xx1", * "vpc-xx2" * ] * } */ authFreeReadPolicy?: string; /** * @remarks * The authentication token string. * * @example * eJxxxxxx */ authToken?: string; /** * @remarks * The time when the instance was created. The time is in UTC+0 and in the yyyy-MM-ddTHH:mmZ format. * * @example * 2025-08-10T02:07:53Z */ createTime?: string; /** * @remarks * Indicates whether authentication-free read is enabled. * * @example * true */ enableAuthFreeRead?: boolean; /** * @remarks * Indicates whether the authentication token is enabled. * * @example * true */ enableAuthToken?: boolean; /** * @remarks * The dashboard URL. * * @example * https://xxxx */ folderUrl?: string; /** * @remarks * The instance ID of the attached managed Grafana instance. * * @example * g-xxx */ grafanaInstanceId?: string; /** * @remarks * The name of the associated managed Grafana instance. * * @example * gxxx */ grafanaInstanceName?: string; /** * @remarks * The public HTTP URL. * * @example * http://xxxxxxxx */ httpApiInterUrl?: string; /** * @remarks * The internal HTTP URL. * * @example * https://workspace-xxx.cn-hangzhou-internal.log.aliyuncs.com/prometheus/workspace-xxx/aliyun-prom-rw-xxx */ httpApiInternalUrl?: string; /** * @remarks * The internal HTTP URL. * * @example * http://xxxxxxxx */ httpApiIntraUrl?: string; /** * @remarks * The instance type. The value is fixed as prom-view. * * @example * prom-view */ instanceType?: string; /** * @remarks * The billing type. The value is currently fixed as FREE. * * @example * FREE */ paymentType?: string; /** * @remarks * The product to which the Prometheus instance belongs. * * @example * cms */ product?: string; /** * @remarks * The list of Prometheus instances. */ prometheusInstances?: GetPrometheusViewResponseBodyPrometheusViewPrometheusInstances[]; /** * @remarks * The Prometheus view ID. * * @example * view-xxx */ prometheusViewId?: string; /** * @remarks * The Prometheus view name. * * @example * view1 */ prometheusViewName?: string; /** * @remarks * The region ID. * * @example * cn-shanghai */ regionId?: string; /** * @remarks * The public URL for remote read. * * @example * http://workspace-default-cms-xxx-cn-hangzhou.cn-hangzhou.log.aliyuncs.com/prometheus/workspace-default-cms-xxx-cn-hangzhou/xxx/api/v1/read */ remoteReadInterUrl?: string; /** * @remarks * The internal endpoint for remote read. * * @example * http://workspace-default-cms-xxx-cn-hangzhou.cn-hangzhou-internal.log.aliyuncs.com/prometheus/workspace-default-cms-xxx-cn-hangzhou/xxx/api/v1/read */ remoteReadInternalUrl?: string; /** * @remarks * The internal URL for remote read. * * @example * http://workspace-default-cms-xxx-cn-hangzhou.cn-hangzhou-intranet.log.aliyuncs.com/prometheus/workspace-default-cms-xxx-cn-hangzhou/xxx/api/v1/read */ remoteReadIntraUrl?: string; /** * @remarks * The resource group ID. * * @example * rg-acfm3gn5i6bigbi */ resourceGroupId?: string; /** * @remarks * The resource type. The value is fixed as PrometheusView. * * @example * RegistryModule */ resourceType?: string; /** * @remarks * The status of the backend data storage. * * @example * Pending2Running */ status?: string; /** * @remarks * The supported authentication types. */ supportAuthTypes?: string[]; /** * @remarks * The tag keys of the instance. */ tags?: GetPrometheusViewResponseBodyPrometheusViewTags[]; /** * @remarks * The user ID. * * @example * 11222 */ userId?: string; /** * @remarks * The version. * * @example * V1 */ version?: string; /** * @remarks * The workspace to which the environment belongs. * * @example * cms-monitor-test-aysls-pub-cn-fuzhou-monitor */ workspace?: string; static names(): { [key: string]: string } { return { authFreeReadPolicy: 'authFreeReadPolicy', authToken: 'authToken', createTime: 'createTime', enableAuthFreeRead: 'enableAuthFreeRead', enableAuthToken: 'enableAuthToken', folderUrl: 'folderUrl', grafanaInstanceId: 'grafanaInstanceId', grafanaInstanceName: 'grafanaInstanceName', httpApiInterUrl: 'httpApiInterUrl', httpApiInternalUrl: 'httpApiInternalUrl', httpApiIntraUrl: 'httpApiIntraUrl', instanceType: 'instanceType', paymentType: 'paymentType', product: 'product', prometheusInstances: 'prometheusInstances', prometheusViewId: 'prometheusViewId', prometheusViewName: 'prometheusViewName', regionId: 'regionId', remoteReadInterUrl: 'remoteReadInterUrl', remoteReadInternalUrl: 'remoteReadInternalUrl', remoteReadIntraUrl: 'remoteReadIntraUrl', resourceGroupId: 'resourceGroupId', resourceType: 'resourceType', status: 'status', supportAuthTypes: 'supportAuthTypes', tags: 'tags', userId: 'userId', version: 'version', workspace: 'workspace', }; } static types(): { [key: string]: any } { return { authFreeReadPolicy: 'string', authToken: 'string', createTime: 'string', enableAuthFreeRead: 'boolean', enableAuthToken: 'boolean', folderUrl: 'string', grafanaInstanceId: 'string', grafanaInstanceName: 'string', httpApiInterUrl: 'string', httpApiInternalUrl: 'string', httpApiIntraUrl: 'string', instanceType: 'string', paymentType: 'string', product: 'string', prometheusInstances: { 'type': 'array', 'itemType': GetPrometheusViewResponseBodyPrometheusViewPrometheusInstances }, prometheusViewId: 'string', prometheusViewName: 'string', regionId: 'string', remoteReadInterUrl: 'string', remoteReadInternalUrl: 'string', remoteReadIntraUrl: 'string', resourceGroupId: 'string', resourceType: 'string', status: 'string', supportAuthTypes: { 'type': 'array', 'itemType': 'string' }, tags: { 'type': 'array', 'itemType': GetPrometheusViewResponseBodyPrometheusViewTags }, userId: 'string', version: 'string', workspace: 'string', }; } validate() { if(Array.isArray(this.prometheusInstances)) { $dara.Model.validateArray(this.prometheusInstances); } if(Array.isArray(this.supportAuthTypes)) { $dara.Model.validateArray(this.supportAuthTypes); } if(Array.isArray(this.tags)) { $dara.Model.validateArray(this.tags); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class GetPrometheusViewResponseBody extends $dara.Model { /** * @remarks * The view instance. */ prometheusView?: GetPrometheusViewResponseBodyPrometheusView; /** * @remarks * Id of the request * * @example * 0B9377D9-C56B-5C2E-A8A4-A01D6CC3F4B8 */ requestId?: string; static names(): { [key: string]: string } { return { prometheusView: 'prometheusView', requestId: 'requestId', }; } static types(): { [key: string]: any } { return { prometheusView: GetPrometheusViewResponseBodyPrometheusView, requestId: 'string', }; } validate() { if(this.prometheusView && typeof (this.prometheusView as any).validate === 'function') { (this.prometheusView as any).validate(); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }