Skip to content

Instantly share code, notes, and snippets.

View clement-joye's full-sized avatar

clement-joye

View GitHub Profile
{
"cluster":
{
"resourceGroup": "n/a",
"name": "your-cluster-name",
"nodeCount": 1,
"vmSize": "n/a",
"wait": true,
"isLocal": true
},
apiVersion: "apps/v1"
kind: Deployment
metadata:
name: locust-client-deployment
spec:
replicas: {replicas}
...
spec:
containers:
- image: {image}
...
env:
- name: LOCUST_MASTER_NODE_HOST
value: "10.96.0.2"
...
apiVersion: v1
kind: Service
metadata:
name: locust-server-service-connect
spec:
ports:
- port: 5557
protocol: TCP
targetPort: 5557
clusterIP: 10.96.0.2
FROM locustio/locust
RUN pip3 install beautifulsoup4
USER root
ENTRYPOINT ["locust"]
ENV PYTHONUNBUFFERED=1
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { HttpClientModule } from '@angular/common/http';
import { AppComponent } from './app.component';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
import { DashboardGalleryComponent } from './dashboard-gallery/dashboard-gallery.component';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
@NgModule({
{
"resources": [
{
"absoluteUrl": "https://dev.azure.com/${organization}/${project}/_apis/build/latest/${definition}",
"values": {
"status": "result",
"webUrl": "_links.web.href"
}
}
],
{
"resources": [
{
"absoluteUrl": "https://vsrm.dev.azure.com/${organization}/${project}/_apis/release/releases?definitionId=${definitionId}&$top=1",
"values": {
"releaseId": "value[0].id"
}
},
{
"absoluteUrl": "https://vsrm.dev.azure.com/${organization}/${project}/_apis/Release/releases/${releaseId}",
{
"resources": [
{
"absoluteUrl": "https://api.github.com/repos/${company}/${repo}/actions/runs",
"values": {
"status": "workflow_runs[0].conclusion",
"webUrl": "workflow_runs[0].html_url"
}
}
],
export class DashboardCard {
readonly family: string;
readonly name: string;
readonly datasource: string;
readonly pat: string;
readonly resources: DashboardCardResource[];
variables: { [key: string] : string };